diff --git a/librarian.yaml b/librarian.yaml
index 1a538d4e020e..7c5624495b96 100644
--- a/librarian.yaml
+++ b/librarian.yaml
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
language: nodejs
-version: v0.24.0
+version: v0.25.0
repo: googleapis/google-cloud-node
sources:
googleapis:
@@ -888,6 +888,13 @@ libraries:
copyright_year: "2026"
nodejs:
default_version: v1
+ - name: google-cloud-error-reporting-api
+ version: 1.0.0
+ apis:
+ - path: google/devtools/clouderrorreporting/v1beta1
+ copyright_year: "2026"
+ nodejs:
+ package_name: '@google-cloud/error-reporting-api'
- name: google-cloud-essentialcontacts
version: 4.2.2
apis:
diff --git a/packages/google-cloud-error-reporting-api/.gitignore b/packages/google-cloud-error-reporting-api/.gitignore
new file mode 100644
index 000000000000..d4f03a0df2e8
--- /dev/null
+++ b/packages/google-cloud-error-reporting-api/.gitignore
@@ -0,0 +1,14 @@
+**/*.log
+**/node_modules
+/.coverage
+/coverage
+/.nyc_output
+/docs/
+/out/
+/build/
+system-test/secrets.js
+system-test/*key.json
+*.lock
+.DS_Store
+package-lock.json
+__pycache__
diff --git a/packages/google-cloud-error-reporting-api/.jsdoc.js b/packages/google-cloud-error-reporting-api/.jsdoc.js
new file mode 100644
index 000000000000..beab5eabcd37
--- /dev/null
+++ b/packages/google-cloud-error-reporting-api/.jsdoc.js
@@ -0,0 +1,55 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// ** This file is automatically generated by gapic-generator-typescript. **
+// ** https://github.com/googleapis/gapic-generator-typescript **
+// ** All changes to this file may be overwritten. **
+
+'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 2026 Google LLC',
+ includeDate: false,
+ sourceFiles: false,
+ systemName: '@google-cloud/error-reporting-api',
+ theme: 'lumen',
+ default: {
+ outputSourceFiles: false
+ }
+ },
+ markdown: {
+ idInHeadings: true
+ }
+};
diff --git a/packages/google-cloud-error-reporting-api/.nycrc b/packages/google-cloud-error-reporting-api/.nycrc
new file mode 100644
index 000000000000..81a95fc94b00
--- /dev/null
+++ b/packages/google-cloud-error-reporting-api/.nycrc
@@ -0,0 +1,24 @@
+{
+ "report-dir": "./.coverage",
+ "reporter": ["text", "lcov"],
+ "exclude": [
+ "**/*-test",
+ "**/.coverage",
+ "**/apis",
+ "**/benchmark",
+ "**/conformance",
+ "**/docs",
+ "**/samples",
+ "**/scripts",
+ "**/protos",
+ "**/test",
+ "**/*.d.ts",
+ ".jsdoc.js",
+ "**/.jsdoc.js",
+ "karma.conf.js",
+ "webpack-tests.config.js",
+ "webpack.config.js"
+ ],
+ "exclude-after-remap": false,
+ "all": true
+}
\ No newline at end of file
diff --git a/packages/google-cloud-error-reporting-api/.repo-metadata.json b/packages/google-cloud-error-reporting-api/.repo-metadata.json
new file mode 100644
index 000000000000..66ca90c8afdb
--- /dev/null
+++ b/packages/google-cloud-error-reporting-api/.repo-metadata.json
@@ -0,0 +1,16 @@
+{
+ "api_description": "Groups and counts similar errors from cloud services and applications,\nreports new errors, and provides access to error groups and their\nassociated errors.",
+ "api_id": "clouderrorreporting.googleapis.com",
+ "api_shortname": "clouderrorreporting",
+ "client_documentation": "https://cloud.google.com/nodejs/docs/reference/error-reporting-api/latest",
+ "default_version": "v1beta1",
+ "distribution_name": "@google-cloud/error-reporting-api",
+ "issue_tracker": "https://issuetracker.google.com/savedsearches/559780",
+ "language": "nodejs",
+ "library_type": "GAPIC_AUTO",
+ "name": "clouderrorreporting",
+ "name_pretty": "Error Reporting",
+ "product_documentation": "https://cloud.google.com/error-reporting/docs",
+ "release_level": "preview",
+ "repo": "googleapis/google-cloud-node"
+}
\ No newline at end of file
diff --git a/packages/google-cloud-error-reporting-api/README.md b/packages/google-cloud-error-reporting-api/README.md
new file mode 100644
index 000000000000..fad5daf55f99
--- /dev/null
+++ b/packages/google-cloud-error-reporting-api/README.md
@@ -0,0 +1,108 @@
+[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
+[//]: # "The comments you see below are used to generate those parts of the template in later states."
+
+
+# [Error Reporting API: Nodejs Client][homepage]
+
+[//]: # "releaseLevel"
+
+[](https://www.npmjs.org/package/@google-cloud/error-reporting-api)
+
+Error Reporting API client for Node.js
+
+[//]: # "partials.introduction"
+
+A comprehensive list of changes in each version may be found in
+[the CHANGELOG][homepage_changelog].
+
+* [Error Reporting API Nodejs Client API Reference](https://cloud.google.com/nodejs/docs/reference/clouderrorreporting/latest)
+
+
+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 Error Reporting API API][enable_api].
+1. [Set up authentication][auth] so you can access the
+ API from your local workstation.
+### Installing the client library
+
+```bash
+npm install @google-cloud/error-reporting-api
+```
+
+[//]: # "partials.body"
+
+## Samples
+
+Samples are in the [`samples/`][homepage_samples] directory. Each sample's `README.md` has instructions for running its sample.
+
+[//]: # "samples"
+
+## Supported Node.js Versions
+
+Our client libraries follow the [Node.js release schedule](https://github.com/nodejs/release#release-schedule).
+Libraries are compatible with all current _active_ and _maintenance_ versions of
+Node.js.
+If you are using an end-of-life version of Node.js, we recommend that you update
+as soon as possible to an actively supported LTS version.
+
+Google's client libraries support legacy versions of Node.js runtimes on a
+best-efforts basis with the following warnings:
+
+* Legacy versions are not tested in continuous integration.
+* Some security patches and features cannot be backported.
+* Dependencies cannot be kept up-to-date.
+
+Client libraries targeting some end-of-life versions of Node.js are available, and
+can be installed through npm [dist-tags](https://docs.npmjs.com/cli/dist-tag).
+The dist-tags follow the naming convention `legacy-(version)`.
+For example, `npm install @google-cloud/error-reporting-api@legacy-8` installs client libraries
+for versions compatible with Node.js 8.
+
+## Versioning
+
+This library follows [Semantic Versioning](http://semver.org/).
+
+More Information: [Google Cloud Platform Launch Stages][launch_stages]
+
+[launch_stages]: https://cloud.google.com/terms/launch-stages
+
+## Contributing
+
+Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/CONTRIBUTING.md).
+
+Please note that this `README.md`
+and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`)
+are generated from a central template.
+
+## License
+
+Apache Version 2.0
+
+See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
+
+[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
+[projects]: https://console.cloud.google.com/project
+[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
+[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=clouderrorreporting.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local
+[homepage_samples]: https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-clouderrorreporting/samples
+[homepage_changelog]: https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-clouderrorreporting/CHANGELOG.md
+[homepage]: https://github.com/googleapis/google-cloud-node/blob/main/packages/google-devtools-clouderrorreporting
diff --git a/packages/google-cloud-error-reporting-api/package.json b/packages/google-cloud-error-reporting-api/package.json
new file mode 100644
index 000000000000..6fd0acb1cd73
--- /dev/null
+++ b/packages/google-cloud-error-reporting-api/package.json
@@ -0,0 +1,64 @@
+{
+ "name": "@google-cloud/error-reporting-api",
+ "version": "0.1.0",
+ "description": "Clouderrorreporting client for Node.js",
+ "repository": {
+ "type": "git",
+ "directory": "packages/google-cloud-error-reporting-api",
+ "url": "https://github.com/googleapis/google-cloud-node.git"
+ },
+ "license": "Apache-2.0",
+ "author": "Google LLC",
+ "main": "build/src/index.js",
+ "files": [
+ "build/src",
+ "build/protos"
+ ],
+ "keywords": [
+ "google apis client",
+ "google api client",
+ "google apis",
+ "google api",
+ "google",
+ "google cloud platform",
+ "google cloud",
+ "cloud",
+ "google clouderrorreporting",
+ "clouderrorreporting",
+ "error group service",
+ "error stats service",
+ "report errors service"
+ ],
+ "scripts": {
+ "clean": "gts clean",
+ "compile": "tsc -p . && cp -r protos build/ && minifyProtoJson",
+ "compile-protos": "compileProtos src",
+ "docs": "jsdoc -c .jsdoc.js",
+ "fix": "gts fix",
+ "lint": "gts check",
+ "prepare": "npm run compile-protos && npm run compile",
+ "system-test": "c8 mocha --config ../../.mocharc.cjs --no-parallel build/system-test",
+ "test": "c8 mocha --config ../../.mocharc.cjs build/test"
+ },
+ "dependencies": {
+ "google-gax": "^5.1.1-rc.1"
+ },
+ "devDependencies": {
+ "@types/mocha": "^10.0.10",
+ "@types/node": "^22.18.12",
+ "@types/sinon": "^20.0.0",
+ "c8": "^10.1.3",
+ "gapic-tools": "^1.0.3",
+ "gts": "^6.0.2",
+ "jsdoc": "^4.0.5",
+ "jsdoc-fresh": "^5.0.2",
+ "jsdoc-region-tag": "^4.0.1",
+ "mocha": "^11.7.4",
+ "pack-n-play": "^4.2.1",
+ "typescript": "5.8.3",
+ "sinon": "^20.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+}
diff --git a/packages/google-cloud-error-reporting-api/protos/google/devtools/clouderrorreporting/v1beta1/common.proto b/packages/google-cloud-error-reporting-api/protos/google/devtools/clouderrorreporting/v1beta1/common.proto
new file mode 100644
index 000000000000..f8dab0af1d71
--- /dev/null
+++ b/packages/google-cloud-error-reporting-api/protos/google/devtools/clouderrorreporting/v1beta1/common.proto
@@ -0,0 +1,216 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.devtools.clouderrorreporting.v1beta1;
+
+import "google/api/resource.proto";
+import "google/protobuf/timestamp.proto";
+
+option cc_enable_arenas = true;
+option csharp_namespace = "Google.Cloud.ErrorReporting.V1Beta1";
+option go_package = "cloud.google.com/go/errorreporting/apiv1beta1/errorreportingpb;errorreportingpb";
+option java_multiple_files = true;
+option java_outer_classname = "CommonProto";
+option java_package = "com.google.devtools.clouderrorreporting.v1beta1";
+option php_namespace = "Google\\Cloud\\ErrorReporting\\V1beta1";
+option ruby_package = "Google::Cloud::ErrorReporting::V1beta1";
+
+// Description of a group of similar error events.
+message ErrorGroup {
+ option (google.api.resource) = {
+ type: "clouderrorreporting.googleapis.com/ErrorGroup"
+ pattern: "projects/{project}/groups/{group}"
+ };
+
+ // The group resource name.
+ // Written as `projects/{projectID}/groups/{group_id}` or
+ // `projects/{projectID}/locations/{location}/groups/{group_id}`
+ //
+ // Examples: `projects/my-project-123/groups/my-group`,
+ // `projects/my-project-123/locations/us-central1/groups/my-group`
+ //
+ // In the group resource name, the `group_id` is a unique identifier for a
+ // particular error group. The identifier is derived from key parts of the
+ // error-log content and is treated as Service Data. For information about
+ // how Service Data is handled, see [Google Cloud Privacy
+ // Notice](https://cloud.google.com/terms/cloud-privacy-notice).
+ //
+ // For a list of supported locations, see [Supported
+ // Regions](https://cloud.google.com/logging/docs/region-support). `global` is
+ // the default when unspecified.
+ string name = 1;
+
+ // An opaque identifier of the group. This field is assigned by the Error
+ // Reporting system and always populated.
+ //
+ // In the group resource name, the `group_id` is a unique identifier for a
+ // particular error group. The identifier is derived from key parts of the
+ // error-log content and is treated as Service Data. For information about
+ // how Service Data is handled, see [Google Cloud Privacy
+ // Notice](https://cloud.google.com/terms/cloud-privacy-notice).
+ string group_id = 2;
+
+ // Associated tracking issues.
+ repeated TrackingIssue tracking_issues = 3;
+
+ // Error group's resolution status.
+ //
+ // An unspecified resolution status will be interpreted as OPEN
+ ResolutionStatus resolution_status = 5;
+}
+
+// Information related to tracking the progress on resolving the error.
+message TrackingIssue {
+ // A URL pointing to a related entry in an issue tracking system.
+ // Example: `https://github.com/user/project/issues/4`
+ string url = 1;
+}
+
+// An error event which is returned by the Error Reporting system.
+message ErrorEvent {
+ // Time when the event occurred as provided in the error report.
+ // If the report did not contain a timestamp, the time the error was received
+ // by the Error Reporting system is used.
+ google.protobuf.Timestamp event_time = 1;
+
+ // The `ServiceContext` for which this error was reported.
+ ServiceContext service_context = 2;
+
+ // The stack trace that was reported or logged by the service.
+ string message = 3;
+
+ // Data about the context in which the error occurred.
+ ErrorContext context = 5;
+}
+
+// Describes a running service that sends errors.
+// Its version changes over time and multiple versions can run in parallel.
+message ServiceContext {
+ // An identifier of the service, such as the name of the
+ // executable, job, or Google App Engine service name. This field is expected
+ // to have a low number of values that are relatively stable over time, as
+ // opposed to `version`, which can be changed whenever new code is deployed.
+ //
+ // Contains the service name for error reports extracted from Google
+ // App Engine logs or `default` if the App Engine default service is used.
+ string service = 2;
+
+ // Represents the source code version that the developer provided,
+ // which could represent a version label or a Git SHA-1 hash, for example.
+ // For App Engine standard environment, the version is set to the version of
+ // the app.
+ string version = 3;
+
+ // Type of the MonitoredResource. List of possible values:
+ // https://cloud.google.com/monitoring/api/resources
+ //
+ // Value is set automatically for incoming errors and must not be set when
+ // reporting errors.
+ string resource_type = 4;
+}
+
+// A description of the context in which an error occurred.
+// This data should be provided by the application when reporting an error,
+// unless the
+// error report has been generated automatically from Google App Engine logs.
+message ErrorContext {
+ // The HTTP request which was processed when the error was
+ // triggered.
+ HttpRequestContext http_request = 1;
+
+ // The user who caused or was affected by the crash.
+ // This can be a user ID, an email address, or an arbitrary token that
+ // uniquely identifies the user.
+ // When sending an error report, leave this field empty if the user was not
+ // logged in. In this case the
+ // Error Reporting system will use other data, such as remote IP address, to
+ // distinguish affected users. See `affected_users_count` in
+ // `ErrorGroupStats`.
+ string user = 2;
+
+ // The location in the source code where the decision was made to
+ // report the error, usually the place where it was logged.
+ // For a logged exception this would be the source line where the
+ // exception is logged, usually close to the place where it was
+ // caught.
+ SourceLocation report_location = 3;
+}
+
+// HTTP request data that is related to a reported error.
+// This data should be provided by the application when reporting an error,
+// unless the
+// error report has been generated automatically from Google App Engine logs.
+message HttpRequestContext {
+ // The type of HTTP request, such as `GET`, `POST`, etc.
+ string method = 1;
+
+ // The URL of the request.
+ string url = 2;
+
+ // The user agent information that is provided with the request.
+ string user_agent = 3;
+
+ // The referrer information that is provided with the request.
+ string referrer = 4;
+
+ // The HTTP response status code for the request.
+ int32 response_status_code = 5;
+
+ // The IP address from which the request originated.
+ // This can be IPv4, IPv6, or a token which is derived from the
+ // IP address, depending on the data that has been provided
+ // in the error report.
+ string remote_ip = 6;
+}
+
+// Indicates a location in the source code of the service for which errors are
+// reported. `functionName` must be provided by the application when reporting
+// an error, unless the error report contains a `message` with a supported
+// exception stack trace. All fields are optional for the later case.
+message SourceLocation {
+ // The source code filename, which can include a truncated relative
+ // path, or a full path from a production machine.
+ string file_path = 1;
+
+ // 1-based. 0 indicates that the line number is unknown.
+ int32 line_number = 2;
+
+ // Human-readable name of a function or method.
+ // The value can include optional context like the class or package name.
+ // For example, `my.package.MyClass.method` in case of Java.
+ string function_name = 4;
+}
+
+// Resolution status of an error group.
+enum ResolutionStatus {
+ // Status is unknown. When left unspecified in requests, it is treated like
+ // OPEN.
+ RESOLUTION_STATUS_UNSPECIFIED = 0;
+
+ // The error group is not being addressed. This is the default for
+ // new groups. It is also used for errors re-occurring after marked RESOLVED.
+ OPEN = 1;
+
+ // Error Group manually acknowledged, it can have an issue link attached.
+ ACKNOWLEDGED = 2;
+
+ // Error Group manually resolved, more events for this group are not expected
+ // to occur.
+ RESOLVED = 3;
+
+ // The error group is muted and excluded by default on group stats requests.
+ MUTED = 4;
+}
diff --git a/packages/google-cloud-error-reporting-api/protos/google/devtools/clouderrorreporting/v1beta1/error_group_service.proto b/packages/google-cloud-error-reporting-api/protos/google/devtools/clouderrorreporting/v1beta1/error_group_service.proto
new file mode 100644
index 000000000000..bc05a9e34f47
--- /dev/null
+++ b/packages/google-cloud-error-reporting-api/protos/google/devtools/clouderrorreporting/v1beta1/error_group_service.proto
@@ -0,0 +1,99 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.devtools.clouderrorreporting.v1beta1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/devtools/clouderrorreporting/v1beta1/common.proto";
+
+option cc_enable_arenas = true;
+option csharp_namespace = "Google.Cloud.ErrorReporting.V1Beta1";
+option go_package = "cloud.google.com/go/errorreporting/apiv1beta1/errorreportingpb;errorreportingpb";
+option java_multiple_files = true;
+option java_outer_classname = "ErrorGroupServiceProto";
+option java_package = "com.google.devtools.clouderrorreporting.v1beta1";
+option php_namespace = "Google\\Cloud\\ErrorReporting\\V1beta1";
+option ruby_package = "Google::Cloud::ErrorReporting::V1beta1";
+
+// Service for retrieving and updating individual error groups.
+service ErrorGroupService {
+ option (google.api.default_host) = "clouderrorreporting.googleapis.com";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ // Get the specified group.
+ rpc GetGroup(GetGroupRequest) returns (ErrorGroup) {
+ option (google.api.http) = {
+ get: "/v1beta1/{group_name=projects/*/groups/*}"
+ additional_bindings {
+ get: "/v1beta1/{group_name=projects/*/locations/*/groups/*}"
+ }
+ };
+ option (google.api.method_signature) = "group_name";
+ }
+
+ // Replace the data for the specified group.
+ // Fails if the group does not exist.
+ rpc UpdateGroup(UpdateGroupRequest) returns (ErrorGroup) {
+ option (google.api.http) = {
+ put: "/v1beta1/{group.name=projects/*/groups/*}"
+ body: "group"
+ additional_bindings {
+ put: "/v1beta1/{group.name=projects/*/locations/*/groups/*}"
+ body: "group"
+ }
+ };
+ option (google.api.method_signature) = "group";
+ }
+}
+
+// A request to return an individual group.
+message GetGroupRequest {
+ // Required. The group resource name. Written as either
+ // `projects/{projectID}/groups/{group_id}` or
+ // `projects/{projectID}/locations/{location}/groups/{group_id}`. Call
+ // [groupStats.list]
+ // [google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.ListGroupStats]
+ // to return a list of groups belonging to this project.
+ //
+ // Examples: `projects/my-project-123/groups/my-group`,
+ // `projects/my-project-123/locations/global/groups/my-group`
+ //
+ // In the group resource name, the `group_id` is a unique identifier for a
+ // particular error group. The identifier is derived from key parts of the
+ // error-log content and is treated as Service Data. For information about
+ // how Service Data is handled, see [Google Cloud Privacy
+ // Notice](https://cloud.google.com/terms/cloud-privacy-notice).
+ //
+ // For a list of supported locations, see [Supported
+ // Regions](https://cloud.google.com/logging/docs/region-support). `global` is
+ // the default when unspecified.
+ string group_name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "clouderrorreporting.googleapis.com/ErrorGroup"
+ }
+ ];
+}
+
+// A request to replace the existing data for the given group.
+message UpdateGroupRequest {
+ // Required. The group which replaces the resource on the server.
+ ErrorGroup group = 1 [(google.api.field_behavior) = REQUIRED];
+}
diff --git a/packages/google-cloud-error-reporting-api/protos/google/devtools/clouderrorreporting/v1beta1/error_stats_service.proto b/packages/google-cloud-error-reporting-api/protos/google/devtools/clouderrorreporting/v1beta1/error_stats_service.proto
new file mode 100644
index 000000000000..30e9888a3981
--- /dev/null
+++ b/packages/google-cloud-error-reporting-api/protos/google/devtools/clouderrorreporting/v1beta1/error_stats_service.proto
@@ -0,0 +1,443 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.devtools.clouderrorreporting.v1beta1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/devtools/clouderrorreporting/v1beta1/common.proto";
+import "google/protobuf/duration.proto";
+import "google/protobuf/timestamp.proto";
+
+option cc_enable_arenas = true;
+option csharp_namespace = "Google.Cloud.ErrorReporting.V1Beta1";
+option go_package = "cloud.google.com/go/errorreporting/apiv1beta1/errorreportingpb;errorreportingpb";
+option java_multiple_files = true;
+option java_outer_classname = "ErrorStatsServiceProto";
+option java_package = "com.google.devtools.clouderrorreporting.v1beta1";
+option php_namespace = "Google\\Cloud\\ErrorReporting\\V1beta1";
+option ruby_package = "Google::Cloud::ErrorReporting::V1beta1";
+
+// An API for retrieving and managing error statistics as well as data for
+// individual events.
+service ErrorStatsService {
+ option (google.api.default_host) = "clouderrorreporting.googleapis.com";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ // Lists the specified groups.
+ rpc ListGroupStats(ListGroupStatsRequest) returns (ListGroupStatsResponse) {
+ option (google.api.http) = {
+ get: "/v1beta1/{project_name=projects/*}/groupStats"
+ additional_bindings {
+ get: "/v1beta1/{project_name=projects/*/locations/*}/groupStats"
+ }
+ };
+ option (google.api.method_signature) = "project_name,time_range";
+ }
+
+ // Lists the specified events.
+ rpc ListEvents(ListEventsRequest) returns (ListEventsResponse) {
+ option (google.api.http) = {
+ get: "/v1beta1/{project_name=projects/*}/events"
+ additional_bindings {
+ get: "/v1beta1/{project_name=projects/*/locations/*}/events"
+ }
+ };
+ option (google.api.method_signature) = "project_name,group_id";
+ }
+
+ // Deletes all error events of a given project.
+ rpc DeleteEvents(DeleteEventsRequest) returns (DeleteEventsResponse) {
+ option (google.api.http) = {
+ delete: "/v1beta1/{project_name=projects/*}/events"
+ additional_bindings {
+ delete: "/v1beta1/{project_name=projects/*/locations/*}/events"
+ }
+ };
+ option (google.api.method_signature) = "project_name";
+ }
+}
+
+// Specifies a set of `ErrorGroupStats` to return.
+message ListGroupStatsRequest {
+ // Required. The resource name of the Google Cloud Platform project. Written
+ // as `projects/{projectID}` or `projects/{projectNumber}`, where
+ // `{projectID}` and `{projectNumber}` can be found in the
+ // [Google Cloud console](https://support.google.com/cloud/answer/6158840).
+ // It may also include a location, such as
+ // `projects/{projectID}/locations/{location}` where `{location}` is a cloud
+ // region.
+ //
+ // Examples: `projects/my-project-123`, `projects/5551234`,
+ // `projects/my-project-123/locations/us-central1`,
+ // `projects/5551234/locations/us-central1`.
+ //
+ // For a list of supported locations, see [Supported
+ // Regions](https://cloud.google.com/logging/docs/region-support). `global` is
+ // the default when unspecified. Use `-` as a wildcard to request group stats
+ // from all regions.
+ string project_name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudresourcemanager.googleapis.com/Project"
+ }
+ ];
+
+ // Optional. List all [ErrorGroupStats]
+ // [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with these
+ // IDs. The `group_id` is a unique identifier for a particular error group.
+ // The identifier is derived from key parts of the error-log content and is
+ // treated as Service Data. For information about how Service Data
+ // is handled, see [Google Cloud Privacy Notice]
+ // (https://cloud.google.com/terms/cloud-privacy-notice).
+ repeated string group_id = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. List only [ErrorGroupStats]
+ // [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] which belong
+ // to a service context that matches the filter. Data for all service contexts
+ // is returned if this field is not specified.
+ ServiceContextFilter service_filter = 3
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. List data for the given time range.
+ // If not set, a default time range is used. The field
+ // [time_range_begin]
+ // [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.time_range_begin]
+ // in the response will specify the beginning of this time range. Only
+ // [ErrorGroupStats]
+ // [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with a
+ // non-zero count in the given time range are returned, unless the request
+ // contains an explicit [group_id]
+ // [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
+ // list. If a [group_id]
+ // [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id]
+ // list is given, also [ErrorGroupStats]
+ // [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with zero
+ // occurrences are returned.
+ QueryTimeRange time_range = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The preferred duration for a single returned [TimedCount]
+ // [google.devtools.clouderrorreporting.v1beta1.TimedCount]. If not set, no
+ // timed counts are returned.
+ google.protobuf.Duration timed_count_duration = 6
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The alignment of the timed counts to be returned.
+ // Default is `ALIGNMENT_EQUAL_AT_END`.
+ TimedCountAlignment alignment = 7 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Time where the timed counts shall be aligned if rounded
+ // alignment is chosen. Default is 00:00 UTC.
+ google.protobuf.Timestamp alignment_time = 8
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The sort order in which the results are returned.
+ // Default is `COUNT_DESC`.
+ ErrorGroupOrder order = 9 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The maximum number of results to return per response.
+ // Default is 20.
+ int32 page_size = 11 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A [next_page_token]
+ // [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.next_page_token]
+ // provided by a previous response. To view additional results, pass this
+ // token along with the identical query parameters as the first request.
+ string page_token = 12 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Contains a set of requested error group stats.
+message ListGroupStatsResponse {
+ // The error group stats which match the given request.
+ repeated ErrorGroupStats error_group_stats = 1;
+
+ // If non-empty, more results are available.
+ // Pass this token, along with the same query parameters as the first
+ // request, to view the next page of results.
+ string next_page_token = 2;
+
+ // The timestamp specifies the start time to which the request was restricted.
+ // The start time is set based on the requested time range. It may be adjusted
+ // to a later time if a project has exceeded the storage quota and older data
+ // has been deleted.
+ google.protobuf.Timestamp time_range_begin = 4;
+}
+
+// Specifies how the time periods of error group counts are aligned.
+enum TimedCountAlignment {
+ // No alignment specified.
+ ERROR_COUNT_ALIGNMENT_UNSPECIFIED = 0;
+
+ // The time periods shall be consecutive, have width equal to the
+ // requested duration, and be aligned at the
+ // [alignment_time]
+ // [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.alignment_time]
+ // provided in the request.
+ //
+ // The [alignment_time]
+ // [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.alignment_time]
+ // does not have to be inside the query period but even if it is outside, only
+ // time periods are returned which overlap with the query period.
+ //
+ // A rounded alignment will typically result in a different size of the first
+ // or the last time period.
+ ALIGNMENT_EQUAL_ROUNDED = 1;
+
+ // The time periods shall be consecutive, have width equal to the
+ // requested duration, and be aligned at the end of the requested time
+ // period. This can result in a different size of the
+ // first time period.
+ ALIGNMENT_EQUAL_AT_END = 2;
+}
+
+// A sorting order of error groups.
+enum ErrorGroupOrder {
+ // No group order specified.
+ GROUP_ORDER_UNSPECIFIED = 0;
+
+ // Total count of errors in the given time window in descending order.
+ COUNT_DESC = 1;
+
+ // Timestamp when the group was last seen in the given time window
+ // in descending order.
+ LAST_SEEN_DESC = 2;
+
+ // Timestamp when the group was created in descending order.
+ CREATED_DESC = 3;
+
+ // Number of affected users in the given time window in descending order.
+ AFFECTED_USERS_DESC = 4;
+}
+
+// Data extracted for a specific group based on certain filter criteria,
+// such as a given time period and/or service filter.
+message ErrorGroupStats {
+ // Group data that is independent of the filter criteria.
+ ErrorGroup group = 1;
+
+ // Approximate total number of events in the given group that match
+ // the filter criteria.
+ int64 count = 2;
+
+ // Approximate number of affected users in the given group that
+ // match the filter criteria.
+ // Users are distinguished by data in the [ErrorContext]
+ // [google.devtools.clouderrorreporting.v1beta1.ErrorContext] of the
+ // individual error events, such as their login name or their remote
+ // IP address in case of HTTP requests.
+ // The number of affected users can be zero even if the number of
+ // errors is non-zero if no data was provided from which the
+ // affected user could be deduced.
+ // Users are counted based on data in the request
+ // context that was provided in the error report. If more users are
+ // implicitly affected, such as due to a crash of the whole service,
+ // this is not reflected here.
+ int64 affected_users_count = 3;
+
+ // Approximate number of occurrences over time.
+ // Timed counts returned by ListGroups are guaranteed to be:
+ //
+ // - Inside the requested time interval
+ // - Non-overlapping, and
+ // - Ordered by ascending time.
+ repeated TimedCount timed_counts = 4;
+
+ // Approximate first occurrence that was ever seen for this group
+ // and which matches the given filter criteria, ignoring the
+ // time_range that was specified in the request.
+ google.protobuf.Timestamp first_seen_time = 5;
+
+ // Approximate last occurrence that was ever seen for this group and
+ // which matches the given filter criteria, ignoring the time_range
+ // that was specified in the request.
+ google.protobuf.Timestamp last_seen_time = 6;
+
+ // Service contexts with a non-zero error count for the given filter
+ // criteria. This list can be truncated if multiple services are affected.
+ // Refer to `num_affected_services` for the total count.
+ repeated ServiceContext affected_services = 7;
+
+ // The total number of services with a non-zero error count for the given
+ // filter criteria.
+ int32 num_affected_services = 8;
+
+ // An arbitrary event that is chosen as representative for the whole group.
+ // The representative event is intended to be used as a quick preview for
+ // the whole group. Events in the group are usually sufficiently similar
+ // to each other such that showing an arbitrary representative provides
+ // insight into the characteristics of the group as a whole.
+ ErrorEvent representative = 9;
+}
+
+// The number of errors in a given time period.
+// All numbers are approximate since the error events are sampled
+// before counting them.
+message TimedCount {
+ // Approximate number of occurrences in the given time period.
+ int64 count = 1;
+
+ // Start of the time period to which `count` refers (included).
+ google.protobuf.Timestamp start_time = 2;
+
+ // End of the time period to which `count` refers (excluded).
+ google.protobuf.Timestamp end_time = 3;
+}
+
+// Specifies a set of error events to return.
+message ListEventsRequest {
+ // Required. The resource name of the Google Cloud Platform project. Written
+ // as `projects/{projectID}` or `projects/{projectID}/locations/{location}`,
+ // where `{projectID}` is the [Google Cloud Platform project
+ // ID](https://support.google.com/cloud/answer/6158840) and `{location}` is
+ // a Cloud region.
+ //
+ // Examples: `projects/my-project-123`,
+ // `projects/my-project-123/locations/global`.
+ //
+ // For a list of supported locations, see [Supported
+ // Regions](https://cloud.google.com/logging/docs/region-support). `global` is
+ // the default when unspecified.
+ string project_name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudresourcemanager.googleapis.com/Project"
+ }
+ ];
+
+ // Required. The group for which events shall be returned.
+ // The `group_id` is a unique identifier for a particular error group. The
+ // identifier is derived from key parts of the error-log content and is
+ // treated as Service Data. For information about how Service Data
+ // is handled, see [Google Cloud Privacy
+ // Notice](https://cloud.google.com/terms/cloud-privacy-notice).
+ string group_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. List only ErrorGroups which belong to a service context that
+ // matches the filter.
+ // Data for all service contexts is returned if this field is not specified.
+ ServiceContextFilter service_filter = 3
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. List only data for the given time range.
+ // If not set a default time range is used. The field time_range_begin
+ // in the response will specify the beginning of this time range.
+ QueryTimeRange time_range = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The maximum number of results to return per response.
+ int32 page_size = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A `next_page_token` provided by a previous response.
+ string page_token = 7 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Contains a set of requested error events.
+message ListEventsResponse {
+ // The error events which match the given request.
+ repeated ErrorEvent error_events = 1;
+
+ // If non-empty, more results are available.
+ // Pass this token, along with the same query parameters as the first
+ // request, to view the next page of results.
+ string next_page_token = 2;
+
+ // The timestamp specifies the start time to which the request was restricted.
+ google.protobuf.Timestamp time_range_begin = 4;
+}
+
+// A time range for which error group data shall be displayed.
+// Query time ranges end at 'now'.
+// When longer time ranges are selected, the resolution of the data decreases.
+// The description of each time range below indicates the suggested minimum
+// timed count duration for that range.
+//
+// Requests might be rejected or the resulting timed count durations might be
+// adjusted for lower durations.
+message QueryTimeRange {
+ // The supported time ranges.
+ enum Period {
+ // Do not use.
+ PERIOD_UNSPECIFIED = 0;
+
+ // Retrieve data for the last hour.
+ // Recommended minimum timed count duration: 1 min.
+ PERIOD_1_HOUR = 1;
+
+ // Retrieve data for the last 6 hours.
+ // Recommended minimum timed count duration: 10 min.
+ PERIOD_6_HOURS = 2;
+
+ // Retrieve data for the last day.
+ // Recommended minimum timed count duration: 1 hour.
+ PERIOD_1_DAY = 3;
+
+ // Retrieve data for the last week.
+ // Recommended minimum timed count duration: 6 hours.
+ PERIOD_1_WEEK = 4;
+
+ // Retrieve data for the last 30 days.
+ // Recommended minimum timed count duration: 1 day.
+ PERIOD_30_DAYS = 5;
+ }
+
+ // Restricts the query to the specified time range.
+ Period period = 1;
+}
+
+// Specifies criteria for filtering a subset of service contexts.
+// The fields in the filter correspond to the fields in `ServiceContext`.
+// Only exact, case-sensitive matches are supported.
+// If a field is unset or empty, it matches arbitrary values.
+message ServiceContextFilter {
+ // Optional. The exact value to match against
+ // [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service).
+ string service = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The exact value to match against
+ // [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version).
+ string version = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The exact value to match against
+ // [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type).
+ string resource_type = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Deletes all events in the project.
+message DeleteEventsRequest {
+ // Required. The resource name of the Google Cloud Platform project. Written
+ // as `projects/{projectID}` or `projects/{projectID}/locations/{location}`,
+ // where `{projectID}` is the [Google Cloud Platform project
+ // ID](https://support.google.com/cloud/answer/6158840) and `{location}` is
+ // a Cloud region.
+ //
+ // Examples: `projects/my-project-123`,
+ // `projects/my-project-123/locations/global`.
+ //
+ // For a list of supported locations, see [Supported
+ // Regions](https://cloud.google.com/logging/docs/region-support). `global` is
+ // the default when unspecified.
+ string project_name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudresourcemanager.googleapis.com/Project"
+ }
+ ];
+}
+
+// Response message for deleting error events.
+message DeleteEventsResponse {}
diff --git a/packages/google-cloud-error-reporting-api/protos/google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto b/packages/google-cloud-error-reporting-api/protos/google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto
new file mode 100644
index 000000000000..47b35965d940
--- /dev/null
+++ b/packages/google-cloud-error-reporting-api/protos/google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto
@@ -0,0 +1,137 @@
+// Copyright 2025 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.devtools.clouderrorreporting.v1beta1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/devtools/clouderrorreporting/v1beta1/common.proto";
+import "google/protobuf/timestamp.proto";
+
+option cc_enable_arenas = true;
+option csharp_namespace = "Google.Cloud.ErrorReporting.V1Beta1";
+option go_package = "cloud.google.com/go/errorreporting/apiv1beta1/errorreportingpb;errorreportingpb";
+option java_multiple_files = true;
+option java_outer_classname = "ReportErrorsServiceProto";
+option java_package = "com.google.devtools.clouderrorreporting.v1beta1";
+option php_namespace = "Google\\Cloud\\ErrorReporting\\V1beta1";
+option ruby_package = "Google::Cloud::ErrorReporting::V1beta1";
+
+// An API for reporting error events.
+service ReportErrorsService {
+ option (google.api.default_host) = "clouderrorreporting.googleapis.com";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ // Report an individual error event and record the event to a log.
+ //
+ // This endpoint accepts **either** an OAuth token,
+ // **or** an [API key](https://support.google.com/cloud/answer/6158862)
+ // for authentication. To use an API key, append it to the URL as the value of
+ // a `key` parameter. For example:
+ //
+ // `POST
+ // https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456`
+ //
+ // **Note:** [Error Reporting] (https://cloud.google.com/error-reporting)
+ // is a service built on Cloud Logging and can analyze log entries when all of
+ // the following are true:
+ //
+ // * Customer-managed encryption keys (CMEK) are disabled on the log bucket.
+ // * The log bucket satisfies one of the following:
+ // * The log bucket is stored in the same project where the logs
+ // originated.
+ // * The logs were routed to a project, and then that project stored those
+ // logs in a log bucket that it owns.
+ rpc ReportErrorEvent(ReportErrorEventRequest)
+ returns (ReportErrorEventResponse) {
+ option (google.api.http) = {
+ post: "/v1beta1/{project_name=projects/*}/events:report"
+ body: "event"
+ };
+ option (google.api.method_signature) = "project_name,event";
+ }
+}
+
+// A request for reporting an individual error event.
+message ReportErrorEventRequest {
+ // Required. The resource name of the Google Cloud Platform project. Written
+ // as `projects/{projectId}`, where `{projectId}` is the
+ // [Google Cloud Platform project
+ // ID](https://support.google.com/cloud/answer/6158840).
+ //
+ // Example: // `projects/my-project-123`.
+ string project_name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "cloudresourcemanager.googleapis.com/Project"
+ }
+ ];
+
+ // Required. The error event to be reported.
+ ReportedErrorEvent event = 2 [(google.api.field_behavior) = REQUIRED];
+}
+
+// Response for reporting an individual error event.
+// Data may be added to this message in the future.
+message ReportErrorEventResponse {}
+
+// An error event which is reported to the Error Reporting system.
+message ReportedErrorEvent {
+ // Optional. Time when the event occurred.
+ // If not provided, the time when the event was received by the
+ // Error Reporting system is used. If provided, the time must not
+ // exceed the [logs retention
+ // period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
+ // the past, or be more than 24 hours in the future.
+ // If an invalid time is provided, then an error is returned.
+ google.protobuf.Timestamp event_time = 1
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. The service context in which this error has occurred.
+ ServiceContext service_context = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The error message.
+ // If no `context.reportLocation` is provided, the message must contain a
+ // header (typically consisting of the exception type name and an error
+ // message) and an exception stack trace in one of the supported programming
+ // languages and formats.
+ // Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go.
+ // Supported stack trace formats are:
+ //
+ // * **Java**: Must be the return value of
+ // [`Throwable.printStackTrace()`](https://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html#printStackTrace%28%29).
+ // * **Python**: Must be the return value of
+ // [`traceback.format_exc()`](https://docs.python.org/2/library/traceback.html#traceback.format_exc).
+ // * **JavaScript**: Must be the value of
+ // [`error.stack`](https://github.com/v8/v8/wiki/Stack-Trace-API) as returned
+ // by V8.
+ // * **Ruby**: Must contain frames returned by
+ // [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#method-i-backtrace).
+ // * **C#**: Must be the return value of
+ // [`Exception.ToString()`](https://msdn.microsoft.com/en-us/library/system.exception.tostring.aspx).
+ // * **PHP**: Must be prefixed with `"PHP (Notice|Parse error|Fatal
+ // error|Warning): "` and contain the result of
+ // [`(string)$exception`](https://php.net/manual/en/exception.tostring.php).
+ // * **Go**: Must be the return value of
+ // [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack).
+ string message = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. A description of the context in which the error occurred.
+ ErrorContext context = 4 [(google.api.field_behavior) = OPTIONAL];
+}
diff --git a/packages/google-cloud-error-reporting-api/protos/protos.d.ts b/packages/google-cloud-error-reporting-api/protos/protos.d.ts
new file mode 100644
index 000000000000..6116919851b4
--- /dev/null
+++ b/packages/google-cloud-error-reporting-api/protos/protos.d.ts
@@ -0,0 +1,9646 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+import type {protobuf as $protobuf} from "google-gax";
+import Long = require("long");
+/** Namespace google. */
+export namespace google {
+
+ /** Namespace devtools. */
+ namespace devtools {
+
+ /** Namespace clouderrorreporting. */
+ namespace clouderrorreporting {
+
+ /** Namespace v1beta1. */
+ namespace v1beta1 {
+
+ /** Properties of an ErrorGroup. */
+ interface IErrorGroup {
+
+ /** ErrorGroup name */
+ name?: (string|null);
+
+ /** ErrorGroup groupId */
+ groupId?: (string|null);
+
+ /** ErrorGroup trackingIssues */
+ trackingIssues?: (google.devtools.clouderrorreporting.v1beta1.ITrackingIssue[]|null);
+
+ /** ErrorGroup resolutionStatus */
+ resolutionStatus?: (google.devtools.clouderrorreporting.v1beta1.ResolutionStatus|keyof typeof google.devtools.clouderrorreporting.v1beta1.ResolutionStatus|null);
+ }
+
+ /** Represents an ErrorGroup. */
+ class ErrorGroup implements IErrorGroup {
+
+ /**
+ * Constructs a new ErrorGroup.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.devtools.clouderrorreporting.v1beta1.IErrorGroup);
+
+ /** ErrorGroup name. */
+ public name: string;
+
+ /** ErrorGroup groupId. */
+ public groupId: string;
+
+ /** ErrorGroup trackingIssues. */
+ public trackingIssues: google.devtools.clouderrorreporting.v1beta1.ITrackingIssue[];
+
+ /** ErrorGroup resolutionStatus. */
+ public resolutionStatus: (google.devtools.clouderrorreporting.v1beta1.ResolutionStatus|keyof typeof google.devtools.clouderrorreporting.v1beta1.ResolutionStatus);
+
+ /**
+ * Creates a new ErrorGroup instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ErrorGroup instance
+ */
+ public static create(properties?: google.devtools.clouderrorreporting.v1beta1.IErrorGroup): google.devtools.clouderrorreporting.v1beta1.ErrorGroup;
+
+ /**
+ * Encodes the specified ErrorGroup message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ErrorGroup.verify|verify} messages.
+ * @param message ErrorGroup message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.devtools.clouderrorreporting.v1beta1.IErrorGroup, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ErrorGroup message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ErrorGroup.verify|verify} messages.
+ * @param message ErrorGroup message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.devtools.clouderrorreporting.v1beta1.IErrorGroup, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ErrorGroup message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ErrorGroup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.clouderrorreporting.v1beta1.ErrorGroup;
+
+ /**
+ * Decodes an ErrorGroup message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ErrorGroup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.clouderrorreporting.v1beta1.ErrorGroup;
+
+ /**
+ * Verifies an ErrorGroup message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ErrorGroup message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ErrorGroup
+ */
+ public static fromObject(object: { [k: string]: any }): google.devtools.clouderrorreporting.v1beta1.ErrorGroup;
+
+ /**
+ * Creates a plain object from an ErrorGroup message. Also converts values to other types if specified.
+ * @param message ErrorGroup
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.devtools.clouderrorreporting.v1beta1.ErrorGroup, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ErrorGroup to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ErrorGroup
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TrackingIssue. */
+ interface ITrackingIssue {
+
+ /** TrackingIssue url */
+ url?: (string|null);
+ }
+
+ /** Represents a TrackingIssue. */
+ class TrackingIssue implements ITrackingIssue {
+
+ /**
+ * Constructs a new TrackingIssue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.devtools.clouderrorreporting.v1beta1.ITrackingIssue);
+
+ /** TrackingIssue url. */
+ public url: string;
+
+ /**
+ * Creates a new TrackingIssue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TrackingIssue instance
+ */
+ public static create(properties?: google.devtools.clouderrorreporting.v1beta1.ITrackingIssue): google.devtools.clouderrorreporting.v1beta1.TrackingIssue;
+
+ /**
+ * Encodes the specified TrackingIssue message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.TrackingIssue.verify|verify} messages.
+ * @param message TrackingIssue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.devtools.clouderrorreporting.v1beta1.ITrackingIssue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TrackingIssue message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.TrackingIssue.verify|verify} messages.
+ * @param message TrackingIssue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.devtools.clouderrorreporting.v1beta1.ITrackingIssue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TrackingIssue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TrackingIssue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.clouderrorreporting.v1beta1.TrackingIssue;
+
+ /**
+ * Decodes a TrackingIssue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TrackingIssue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.clouderrorreporting.v1beta1.TrackingIssue;
+
+ /**
+ * Verifies a TrackingIssue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TrackingIssue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TrackingIssue
+ */
+ public static fromObject(object: { [k: string]: any }): google.devtools.clouderrorreporting.v1beta1.TrackingIssue;
+
+ /**
+ * Creates a plain object from a TrackingIssue message. Also converts values to other types if specified.
+ * @param message TrackingIssue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.devtools.clouderrorreporting.v1beta1.TrackingIssue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TrackingIssue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TrackingIssue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ErrorEvent. */
+ interface IErrorEvent {
+
+ /** ErrorEvent eventTime */
+ eventTime?: (google.protobuf.ITimestamp|null);
+
+ /** ErrorEvent serviceContext */
+ serviceContext?: (google.devtools.clouderrorreporting.v1beta1.IServiceContext|null);
+
+ /** ErrorEvent message */
+ message?: (string|null);
+
+ /** ErrorEvent context */
+ context?: (google.devtools.clouderrorreporting.v1beta1.IErrorContext|null);
+ }
+
+ /** Represents an ErrorEvent. */
+ class ErrorEvent implements IErrorEvent {
+
+ /**
+ * Constructs a new ErrorEvent.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.devtools.clouderrorreporting.v1beta1.IErrorEvent);
+
+ /** ErrorEvent eventTime. */
+ public eventTime?: (google.protobuf.ITimestamp|null);
+
+ /** ErrorEvent serviceContext. */
+ public serviceContext?: (google.devtools.clouderrorreporting.v1beta1.IServiceContext|null);
+
+ /** ErrorEvent message. */
+ public message: string;
+
+ /** ErrorEvent context. */
+ public context?: (google.devtools.clouderrorreporting.v1beta1.IErrorContext|null);
+
+ /**
+ * Creates a new ErrorEvent instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ErrorEvent instance
+ */
+ public static create(properties?: google.devtools.clouderrorreporting.v1beta1.IErrorEvent): google.devtools.clouderrorreporting.v1beta1.ErrorEvent;
+
+ /**
+ * Encodes the specified ErrorEvent message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ErrorEvent.verify|verify} messages.
+ * @param message ErrorEvent message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.devtools.clouderrorreporting.v1beta1.IErrorEvent, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ErrorEvent message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ErrorEvent.verify|verify} messages.
+ * @param message ErrorEvent message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.devtools.clouderrorreporting.v1beta1.IErrorEvent, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ErrorEvent message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ErrorEvent
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.clouderrorreporting.v1beta1.ErrorEvent;
+
+ /**
+ * Decodes an ErrorEvent message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ErrorEvent
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.clouderrorreporting.v1beta1.ErrorEvent;
+
+ /**
+ * Verifies an ErrorEvent message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ErrorEvent message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ErrorEvent
+ */
+ public static fromObject(object: { [k: string]: any }): google.devtools.clouderrorreporting.v1beta1.ErrorEvent;
+
+ /**
+ * Creates a plain object from an ErrorEvent message. Also converts values to other types if specified.
+ * @param message ErrorEvent
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.devtools.clouderrorreporting.v1beta1.ErrorEvent, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ErrorEvent to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ErrorEvent
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceContext. */
+ interface IServiceContext {
+
+ /** ServiceContext service */
+ service?: (string|null);
+
+ /** ServiceContext version */
+ version?: (string|null);
+
+ /** ServiceContext resourceType */
+ resourceType?: (string|null);
+ }
+
+ /** Represents a ServiceContext. */
+ class ServiceContext implements IServiceContext {
+
+ /**
+ * Constructs a new ServiceContext.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.devtools.clouderrorreporting.v1beta1.IServiceContext);
+
+ /** ServiceContext service. */
+ public service: string;
+
+ /** ServiceContext version. */
+ public version: string;
+
+ /** ServiceContext resourceType. */
+ public resourceType: string;
+
+ /**
+ * Creates a new ServiceContext instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceContext instance
+ */
+ public static create(properties?: google.devtools.clouderrorreporting.v1beta1.IServiceContext): google.devtools.clouderrorreporting.v1beta1.ServiceContext;
+
+ /**
+ * Encodes the specified ServiceContext message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ServiceContext.verify|verify} messages.
+ * @param message ServiceContext message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.devtools.clouderrorreporting.v1beta1.IServiceContext, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceContext message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ServiceContext.verify|verify} messages.
+ * @param message ServiceContext message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.devtools.clouderrorreporting.v1beta1.IServiceContext, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceContext message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceContext
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.clouderrorreporting.v1beta1.ServiceContext;
+
+ /**
+ * Decodes a ServiceContext message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceContext
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.clouderrorreporting.v1beta1.ServiceContext;
+
+ /**
+ * Verifies a ServiceContext message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceContext message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceContext
+ */
+ public static fromObject(object: { [k: string]: any }): google.devtools.clouderrorreporting.v1beta1.ServiceContext;
+
+ /**
+ * Creates a plain object from a ServiceContext message. Also converts values to other types if specified.
+ * @param message ServiceContext
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.devtools.clouderrorreporting.v1beta1.ServiceContext, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceContext to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceContext
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an ErrorContext. */
+ interface IErrorContext {
+
+ /** ErrorContext httpRequest */
+ httpRequest?: (google.devtools.clouderrorreporting.v1beta1.IHttpRequestContext|null);
+
+ /** ErrorContext user */
+ user?: (string|null);
+
+ /** ErrorContext reportLocation */
+ reportLocation?: (google.devtools.clouderrorreporting.v1beta1.ISourceLocation|null);
+ }
+
+ /** Represents an ErrorContext. */
+ class ErrorContext implements IErrorContext {
+
+ /**
+ * Constructs a new ErrorContext.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.devtools.clouderrorreporting.v1beta1.IErrorContext);
+
+ /** ErrorContext httpRequest. */
+ public httpRequest?: (google.devtools.clouderrorreporting.v1beta1.IHttpRequestContext|null);
+
+ /** ErrorContext user. */
+ public user: string;
+
+ /** ErrorContext reportLocation. */
+ public reportLocation?: (google.devtools.clouderrorreporting.v1beta1.ISourceLocation|null);
+
+ /**
+ * Creates a new ErrorContext instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ErrorContext instance
+ */
+ public static create(properties?: google.devtools.clouderrorreporting.v1beta1.IErrorContext): google.devtools.clouderrorreporting.v1beta1.ErrorContext;
+
+ /**
+ * Encodes the specified ErrorContext message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ErrorContext.verify|verify} messages.
+ * @param message ErrorContext message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.devtools.clouderrorreporting.v1beta1.IErrorContext, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ErrorContext message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ErrorContext.verify|verify} messages.
+ * @param message ErrorContext message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.devtools.clouderrorreporting.v1beta1.IErrorContext, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ErrorContext message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ErrorContext
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.clouderrorreporting.v1beta1.ErrorContext;
+
+ /**
+ * Decodes an ErrorContext message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ErrorContext
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.clouderrorreporting.v1beta1.ErrorContext;
+
+ /**
+ * Verifies an ErrorContext message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ErrorContext message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ErrorContext
+ */
+ public static fromObject(object: { [k: string]: any }): google.devtools.clouderrorreporting.v1beta1.ErrorContext;
+
+ /**
+ * Creates a plain object from an ErrorContext message. Also converts values to other types if specified.
+ * @param message ErrorContext
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.devtools.clouderrorreporting.v1beta1.ErrorContext, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ErrorContext to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ErrorContext
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HttpRequestContext. */
+ interface IHttpRequestContext {
+
+ /** HttpRequestContext method */
+ method?: (string|null);
+
+ /** HttpRequestContext url */
+ url?: (string|null);
+
+ /** HttpRequestContext userAgent */
+ userAgent?: (string|null);
+
+ /** HttpRequestContext referrer */
+ referrer?: (string|null);
+
+ /** HttpRequestContext responseStatusCode */
+ responseStatusCode?: (number|null);
+
+ /** HttpRequestContext remoteIp */
+ remoteIp?: (string|null);
+ }
+
+ /** Represents a HttpRequestContext. */
+ class HttpRequestContext implements IHttpRequestContext {
+
+ /**
+ * Constructs a new HttpRequestContext.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.devtools.clouderrorreporting.v1beta1.IHttpRequestContext);
+
+ /** HttpRequestContext method. */
+ public method: string;
+
+ /** HttpRequestContext url. */
+ public url: string;
+
+ /** HttpRequestContext userAgent. */
+ public userAgent: string;
+
+ /** HttpRequestContext referrer. */
+ public referrer: string;
+
+ /** HttpRequestContext responseStatusCode. */
+ public responseStatusCode: number;
+
+ /** HttpRequestContext remoteIp. */
+ public remoteIp: string;
+
+ /**
+ * Creates a new HttpRequestContext instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HttpRequestContext instance
+ */
+ public static create(properties?: google.devtools.clouderrorreporting.v1beta1.IHttpRequestContext): google.devtools.clouderrorreporting.v1beta1.HttpRequestContext;
+
+ /**
+ * Encodes the specified HttpRequestContext message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.HttpRequestContext.verify|verify} messages.
+ * @param message HttpRequestContext message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.devtools.clouderrorreporting.v1beta1.IHttpRequestContext, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HttpRequestContext message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.HttpRequestContext.verify|verify} messages.
+ * @param message HttpRequestContext message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.devtools.clouderrorreporting.v1beta1.IHttpRequestContext, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HttpRequestContext message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HttpRequestContext
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.clouderrorreporting.v1beta1.HttpRequestContext;
+
+ /**
+ * Decodes a HttpRequestContext message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HttpRequestContext
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.clouderrorreporting.v1beta1.HttpRequestContext;
+
+ /**
+ * Verifies a HttpRequestContext message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HttpRequestContext message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HttpRequestContext
+ */
+ public static fromObject(object: { [k: string]: any }): google.devtools.clouderrorreporting.v1beta1.HttpRequestContext;
+
+ /**
+ * Creates a plain object from a HttpRequestContext message. Also converts values to other types if specified.
+ * @param message HttpRequestContext
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.devtools.clouderrorreporting.v1beta1.HttpRequestContext, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HttpRequestContext to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HttpRequestContext
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SourceLocation. */
+ interface ISourceLocation {
+
+ /** SourceLocation filePath */
+ filePath?: (string|null);
+
+ /** SourceLocation lineNumber */
+ lineNumber?: (number|null);
+
+ /** SourceLocation functionName */
+ functionName?: (string|null);
+ }
+
+ /** Represents a SourceLocation. */
+ class SourceLocation implements ISourceLocation {
+
+ /**
+ * Constructs a new SourceLocation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.devtools.clouderrorreporting.v1beta1.ISourceLocation);
+
+ /** SourceLocation filePath. */
+ public filePath: string;
+
+ /** SourceLocation lineNumber. */
+ public lineNumber: number;
+
+ /** SourceLocation functionName. */
+ public functionName: string;
+
+ /**
+ * Creates a new SourceLocation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SourceLocation instance
+ */
+ public static create(properties?: google.devtools.clouderrorreporting.v1beta1.ISourceLocation): google.devtools.clouderrorreporting.v1beta1.SourceLocation;
+
+ /**
+ * Encodes the specified SourceLocation message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.SourceLocation.verify|verify} messages.
+ * @param message SourceLocation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.devtools.clouderrorreporting.v1beta1.ISourceLocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SourceLocation message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.SourceLocation.verify|verify} messages.
+ * @param message SourceLocation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.devtools.clouderrorreporting.v1beta1.ISourceLocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SourceLocation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SourceLocation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.clouderrorreporting.v1beta1.SourceLocation;
+
+ /**
+ * Decodes a SourceLocation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SourceLocation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.clouderrorreporting.v1beta1.SourceLocation;
+
+ /**
+ * Verifies a SourceLocation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SourceLocation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SourceLocation
+ */
+ public static fromObject(object: { [k: string]: any }): google.devtools.clouderrorreporting.v1beta1.SourceLocation;
+
+ /**
+ * Creates a plain object from a SourceLocation message. Also converts values to other types if specified.
+ * @param message SourceLocation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.devtools.clouderrorreporting.v1beta1.SourceLocation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SourceLocation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SourceLocation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** ResolutionStatus enum. */
+ enum ResolutionStatus {
+ RESOLUTION_STATUS_UNSPECIFIED = 0,
+ OPEN = 1,
+ ACKNOWLEDGED = 2,
+ RESOLVED = 3,
+ MUTED = 4
+ }
+
+ /** Represents an ErrorGroupService */
+ class ErrorGroupService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new ErrorGroupService 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 ErrorGroupService 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): ErrorGroupService;
+
+ /**
+ * Calls GetGroup.
+ * @param request GetGroupRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ErrorGroup
+ */
+ public getGroup(request: google.devtools.clouderrorreporting.v1beta1.IGetGroupRequest, callback: google.devtools.clouderrorreporting.v1beta1.ErrorGroupService.GetGroupCallback): void;
+
+ /**
+ * Calls GetGroup.
+ * @param request GetGroupRequest message or plain object
+ * @returns Promise
+ */
+ public getGroup(request: google.devtools.clouderrorreporting.v1beta1.IGetGroupRequest): Promise;
+
+ /**
+ * Calls UpdateGroup.
+ * @param request UpdateGroupRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ErrorGroup
+ */
+ public updateGroup(request: google.devtools.clouderrorreporting.v1beta1.IUpdateGroupRequest, callback: google.devtools.clouderrorreporting.v1beta1.ErrorGroupService.UpdateGroupCallback): void;
+
+ /**
+ * Calls UpdateGroup.
+ * @param request UpdateGroupRequest message or plain object
+ * @returns Promise
+ */
+ public updateGroup(request: google.devtools.clouderrorreporting.v1beta1.IUpdateGroupRequest): Promise;
+ }
+
+ namespace ErrorGroupService {
+
+ /**
+ * Callback as used by {@link google.devtools.clouderrorreporting.v1beta1.ErrorGroupService|getGroup}.
+ * @param error Error, if any
+ * @param [response] ErrorGroup
+ */
+ type GetGroupCallback = (error: (Error|null), response?: google.devtools.clouderrorreporting.v1beta1.ErrorGroup) => void;
+
+ /**
+ * Callback as used by {@link google.devtools.clouderrorreporting.v1beta1.ErrorGroupService|updateGroup}.
+ * @param error Error, if any
+ * @param [response] ErrorGroup
+ */
+ type UpdateGroupCallback = (error: (Error|null), response?: google.devtools.clouderrorreporting.v1beta1.ErrorGroup) => void;
+ }
+
+ /** Properties of a GetGroupRequest. */
+ interface IGetGroupRequest {
+
+ /** GetGroupRequest groupName */
+ groupName?: (string|null);
+ }
+
+ /** Represents a GetGroupRequest. */
+ class GetGroupRequest implements IGetGroupRequest {
+
+ /**
+ * Constructs a new GetGroupRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.devtools.clouderrorreporting.v1beta1.IGetGroupRequest);
+
+ /** GetGroupRequest groupName. */
+ public groupName: string;
+
+ /**
+ * Creates a new GetGroupRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetGroupRequest instance
+ */
+ public static create(properties?: google.devtools.clouderrorreporting.v1beta1.IGetGroupRequest): google.devtools.clouderrorreporting.v1beta1.GetGroupRequest;
+
+ /**
+ * Encodes the specified GetGroupRequest message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.GetGroupRequest.verify|verify} messages.
+ * @param message GetGroupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.devtools.clouderrorreporting.v1beta1.IGetGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetGroupRequest message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.GetGroupRequest.verify|verify} messages.
+ * @param message GetGroupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.devtools.clouderrorreporting.v1beta1.IGetGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetGroupRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetGroupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.clouderrorreporting.v1beta1.GetGroupRequest;
+
+ /**
+ * Decodes a GetGroupRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetGroupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.clouderrorreporting.v1beta1.GetGroupRequest;
+
+ /**
+ * Verifies a GetGroupRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetGroupRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetGroupRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.devtools.clouderrorreporting.v1beta1.GetGroupRequest;
+
+ /**
+ * Creates a plain object from a GetGroupRequest message. Also converts values to other types if specified.
+ * @param message GetGroupRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.devtools.clouderrorreporting.v1beta1.GetGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetGroupRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetGroupRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateGroupRequest. */
+ interface IUpdateGroupRequest {
+
+ /** UpdateGroupRequest group */
+ group?: (google.devtools.clouderrorreporting.v1beta1.IErrorGroup|null);
+ }
+
+ /** Represents an UpdateGroupRequest. */
+ class UpdateGroupRequest implements IUpdateGroupRequest {
+
+ /**
+ * Constructs a new UpdateGroupRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.devtools.clouderrorreporting.v1beta1.IUpdateGroupRequest);
+
+ /** UpdateGroupRequest group. */
+ public group?: (google.devtools.clouderrorreporting.v1beta1.IErrorGroup|null);
+
+ /**
+ * Creates a new UpdateGroupRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateGroupRequest instance
+ */
+ public static create(properties?: google.devtools.clouderrorreporting.v1beta1.IUpdateGroupRequest): google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest;
+
+ /**
+ * Encodes the specified UpdateGroupRequest message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest.verify|verify} messages.
+ * @param message UpdateGroupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.devtools.clouderrorreporting.v1beta1.IUpdateGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateGroupRequest message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest.verify|verify} messages.
+ * @param message UpdateGroupRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.devtools.clouderrorreporting.v1beta1.IUpdateGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateGroupRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateGroupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest;
+
+ /**
+ * Decodes an UpdateGroupRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateGroupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest;
+
+ /**
+ * Verifies an UpdateGroupRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UpdateGroupRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateGroupRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest;
+
+ /**
+ * Creates a plain object from an UpdateGroupRequest message. Also converts values to other types if specified.
+ * @param message UpdateGroupRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateGroupRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateGroupRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Represents an ErrorStatsService */
+ class ErrorStatsService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new ErrorStatsService 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 ErrorStatsService 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): ErrorStatsService;
+
+ /**
+ * Calls ListGroupStats.
+ * @param request ListGroupStatsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListGroupStatsResponse
+ */
+ public listGroupStats(request: google.devtools.clouderrorreporting.v1beta1.IListGroupStatsRequest, callback: google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.ListGroupStatsCallback): void;
+
+ /**
+ * Calls ListGroupStats.
+ * @param request ListGroupStatsRequest message or plain object
+ * @returns Promise
+ */
+ public listGroupStats(request: google.devtools.clouderrorreporting.v1beta1.IListGroupStatsRequest): Promise;
+
+ /**
+ * Calls ListEvents.
+ * @param request ListEventsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListEventsResponse
+ */
+ public listEvents(request: google.devtools.clouderrorreporting.v1beta1.IListEventsRequest, callback: google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.ListEventsCallback): void;
+
+ /**
+ * Calls ListEvents.
+ * @param request ListEventsRequest message or plain object
+ * @returns Promise
+ */
+ public listEvents(request: google.devtools.clouderrorreporting.v1beta1.IListEventsRequest): Promise;
+
+ /**
+ * Calls DeleteEvents.
+ * @param request DeleteEventsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and DeleteEventsResponse
+ */
+ public deleteEvents(request: google.devtools.clouderrorreporting.v1beta1.IDeleteEventsRequest, callback: google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.DeleteEventsCallback): void;
+
+ /**
+ * Calls DeleteEvents.
+ * @param request DeleteEventsRequest message or plain object
+ * @returns Promise
+ */
+ public deleteEvents(request: google.devtools.clouderrorreporting.v1beta1.IDeleteEventsRequest): Promise;
+ }
+
+ namespace ErrorStatsService {
+
+ /**
+ * Callback as used by {@link google.devtools.clouderrorreporting.v1beta1.ErrorStatsService|listGroupStats}.
+ * @param error Error, if any
+ * @param [response] ListGroupStatsResponse
+ */
+ type ListGroupStatsCallback = (error: (Error|null), response?: google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.devtools.clouderrorreporting.v1beta1.ErrorStatsService|listEvents}.
+ * @param error Error, if any
+ * @param [response] ListEventsResponse
+ */
+ type ListEventsCallback = (error: (Error|null), response?: google.devtools.clouderrorreporting.v1beta1.ListEventsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.devtools.clouderrorreporting.v1beta1.ErrorStatsService|deleteEvents}.
+ * @param error Error, if any
+ * @param [response] DeleteEventsResponse
+ */
+ type DeleteEventsCallback = (error: (Error|null), response?: google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse) => void;
+ }
+
+ /** Properties of a ListGroupStatsRequest. */
+ interface IListGroupStatsRequest {
+
+ /** ListGroupStatsRequest projectName */
+ projectName?: (string|null);
+
+ /** ListGroupStatsRequest groupId */
+ groupId?: (string[]|null);
+
+ /** ListGroupStatsRequest serviceFilter */
+ serviceFilter?: (google.devtools.clouderrorreporting.v1beta1.IServiceContextFilter|null);
+
+ /** ListGroupStatsRequest timeRange */
+ timeRange?: (google.devtools.clouderrorreporting.v1beta1.IQueryTimeRange|null);
+
+ /** ListGroupStatsRequest timedCountDuration */
+ timedCountDuration?: (google.protobuf.IDuration|null);
+
+ /** ListGroupStatsRequest alignment */
+ alignment?: (google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment|keyof typeof google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment|null);
+
+ /** ListGroupStatsRequest alignmentTime */
+ alignmentTime?: (google.protobuf.ITimestamp|null);
+
+ /** ListGroupStatsRequest order */
+ order?: (google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder|keyof typeof google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder|null);
+
+ /** ListGroupStatsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListGroupStatsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListGroupStatsRequest. */
+ class ListGroupStatsRequest implements IListGroupStatsRequest {
+
+ /**
+ * Constructs a new ListGroupStatsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.devtools.clouderrorreporting.v1beta1.IListGroupStatsRequest);
+
+ /** ListGroupStatsRequest projectName. */
+ public projectName: string;
+
+ /** ListGroupStatsRequest groupId. */
+ public groupId: string[];
+
+ /** ListGroupStatsRequest serviceFilter. */
+ public serviceFilter?: (google.devtools.clouderrorreporting.v1beta1.IServiceContextFilter|null);
+
+ /** ListGroupStatsRequest timeRange. */
+ public timeRange?: (google.devtools.clouderrorreporting.v1beta1.IQueryTimeRange|null);
+
+ /** ListGroupStatsRequest timedCountDuration. */
+ public timedCountDuration?: (google.protobuf.IDuration|null);
+
+ /** ListGroupStatsRequest alignment. */
+ public alignment: (google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment|keyof typeof google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment);
+
+ /** ListGroupStatsRequest alignmentTime. */
+ public alignmentTime?: (google.protobuf.ITimestamp|null);
+
+ /** ListGroupStatsRequest order. */
+ public order: (google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder|keyof typeof google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder);
+
+ /** ListGroupStatsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListGroupStatsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListGroupStatsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListGroupStatsRequest instance
+ */
+ public static create(properties?: google.devtools.clouderrorreporting.v1beta1.IListGroupStatsRequest): google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest;
+
+ /**
+ * Encodes the specified ListGroupStatsRequest message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.verify|verify} messages.
+ * @param message ListGroupStatsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.devtools.clouderrorreporting.v1beta1.IListGroupStatsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListGroupStatsRequest message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.verify|verify} messages.
+ * @param message ListGroupStatsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.devtools.clouderrorreporting.v1beta1.IListGroupStatsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListGroupStatsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListGroupStatsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest;
+
+ /**
+ * Decodes a ListGroupStatsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListGroupStatsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest;
+
+ /**
+ * Verifies a ListGroupStatsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListGroupStatsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListGroupStatsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest;
+
+ /**
+ * Creates a plain object from a ListGroupStatsRequest message. Also converts values to other types if specified.
+ * @param message ListGroupStatsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListGroupStatsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListGroupStatsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListGroupStatsResponse. */
+ interface IListGroupStatsResponse {
+
+ /** ListGroupStatsResponse errorGroupStats */
+ errorGroupStats?: (google.devtools.clouderrorreporting.v1beta1.IErrorGroupStats[]|null);
+
+ /** ListGroupStatsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListGroupStatsResponse timeRangeBegin */
+ timeRangeBegin?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a ListGroupStatsResponse. */
+ class ListGroupStatsResponse implements IListGroupStatsResponse {
+
+ /**
+ * Constructs a new ListGroupStatsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.devtools.clouderrorreporting.v1beta1.IListGroupStatsResponse);
+
+ /** ListGroupStatsResponse errorGroupStats. */
+ public errorGroupStats: google.devtools.clouderrorreporting.v1beta1.IErrorGroupStats[];
+
+ /** ListGroupStatsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListGroupStatsResponse timeRangeBegin. */
+ public timeRangeBegin?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new ListGroupStatsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListGroupStatsResponse instance
+ */
+ public static create(properties?: google.devtools.clouderrorreporting.v1beta1.IListGroupStatsResponse): google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse;
+
+ /**
+ * Encodes the specified ListGroupStatsResponse message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.verify|verify} messages.
+ * @param message ListGroupStatsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.devtools.clouderrorreporting.v1beta1.IListGroupStatsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListGroupStatsResponse message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.verify|verify} messages.
+ * @param message ListGroupStatsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.devtools.clouderrorreporting.v1beta1.IListGroupStatsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListGroupStatsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListGroupStatsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse;
+
+ /**
+ * Decodes a ListGroupStatsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListGroupStatsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse;
+
+ /**
+ * Verifies a ListGroupStatsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListGroupStatsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListGroupStatsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse;
+
+ /**
+ * Creates a plain object from a ListGroupStatsResponse message. Also converts values to other types if specified.
+ * @param message ListGroupStatsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListGroupStatsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListGroupStatsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** TimedCountAlignment enum. */
+ enum TimedCountAlignment {
+ ERROR_COUNT_ALIGNMENT_UNSPECIFIED = 0,
+ ALIGNMENT_EQUAL_ROUNDED = 1,
+ ALIGNMENT_EQUAL_AT_END = 2
+ }
+
+ /** ErrorGroupOrder enum. */
+ enum ErrorGroupOrder {
+ GROUP_ORDER_UNSPECIFIED = 0,
+ COUNT_DESC = 1,
+ LAST_SEEN_DESC = 2,
+ CREATED_DESC = 3,
+ AFFECTED_USERS_DESC = 4
+ }
+
+ /** Properties of an ErrorGroupStats. */
+ interface IErrorGroupStats {
+
+ /** ErrorGroupStats group */
+ group?: (google.devtools.clouderrorreporting.v1beta1.IErrorGroup|null);
+
+ /** ErrorGroupStats count */
+ count?: (number|Long|string|null);
+
+ /** ErrorGroupStats affectedUsersCount */
+ affectedUsersCount?: (number|Long|string|null);
+
+ /** ErrorGroupStats timedCounts */
+ timedCounts?: (google.devtools.clouderrorreporting.v1beta1.ITimedCount[]|null);
+
+ /** ErrorGroupStats firstSeenTime */
+ firstSeenTime?: (google.protobuf.ITimestamp|null);
+
+ /** ErrorGroupStats lastSeenTime */
+ lastSeenTime?: (google.protobuf.ITimestamp|null);
+
+ /** ErrorGroupStats affectedServices */
+ affectedServices?: (google.devtools.clouderrorreporting.v1beta1.IServiceContext[]|null);
+
+ /** ErrorGroupStats numAffectedServices */
+ numAffectedServices?: (number|null);
+
+ /** ErrorGroupStats representative */
+ representative?: (google.devtools.clouderrorreporting.v1beta1.IErrorEvent|null);
+ }
+
+ /** Represents an ErrorGroupStats. */
+ class ErrorGroupStats implements IErrorGroupStats {
+
+ /**
+ * Constructs a new ErrorGroupStats.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.devtools.clouderrorreporting.v1beta1.IErrorGroupStats);
+
+ /** ErrorGroupStats group. */
+ public group?: (google.devtools.clouderrorreporting.v1beta1.IErrorGroup|null);
+
+ /** ErrorGroupStats count. */
+ public count: (number|Long|string);
+
+ /** ErrorGroupStats affectedUsersCount. */
+ public affectedUsersCount: (number|Long|string);
+
+ /** ErrorGroupStats timedCounts. */
+ public timedCounts: google.devtools.clouderrorreporting.v1beta1.ITimedCount[];
+
+ /** ErrorGroupStats firstSeenTime. */
+ public firstSeenTime?: (google.protobuf.ITimestamp|null);
+
+ /** ErrorGroupStats lastSeenTime. */
+ public lastSeenTime?: (google.protobuf.ITimestamp|null);
+
+ /** ErrorGroupStats affectedServices. */
+ public affectedServices: google.devtools.clouderrorreporting.v1beta1.IServiceContext[];
+
+ /** ErrorGroupStats numAffectedServices. */
+ public numAffectedServices: number;
+
+ /** ErrorGroupStats representative. */
+ public representative?: (google.devtools.clouderrorreporting.v1beta1.IErrorEvent|null);
+
+ /**
+ * Creates a new ErrorGroupStats instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ErrorGroupStats instance
+ */
+ public static create(properties?: google.devtools.clouderrorreporting.v1beta1.IErrorGroupStats): google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats;
+
+ /**
+ * Encodes the specified ErrorGroupStats message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.verify|verify} messages.
+ * @param message ErrorGroupStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.devtools.clouderrorreporting.v1beta1.IErrorGroupStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ErrorGroupStats message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.verify|verify} messages.
+ * @param message ErrorGroupStats message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.devtools.clouderrorreporting.v1beta1.IErrorGroupStats, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ErrorGroupStats message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ErrorGroupStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats;
+
+ /**
+ * Decodes an ErrorGroupStats message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ErrorGroupStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats;
+
+ /**
+ * Verifies an ErrorGroupStats message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ErrorGroupStats message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ErrorGroupStats
+ */
+ public static fromObject(object: { [k: string]: any }): google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats;
+
+ /**
+ * Creates a plain object from an ErrorGroupStats message. Also converts values to other types if specified.
+ * @param message ErrorGroupStats
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ErrorGroupStats to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ErrorGroupStats
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a TimedCount. */
+ interface ITimedCount {
+
+ /** TimedCount count */
+ count?: (number|Long|string|null);
+
+ /** TimedCount startTime */
+ startTime?: (google.protobuf.ITimestamp|null);
+
+ /** TimedCount endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a TimedCount. */
+ class TimedCount implements ITimedCount {
+
+ /**
+ * Constructs a new TimedCount.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.devtools.clouderrorreporting.v1beta1.ITimedCount);
+
+ /** TimedCount count. */
+ public count: (number|Long|string);
+
+ /** TimedCount startTime. */
+ public startTime?: (google.protobuf.ITimestamp|null);
+
+ /** TimedCount endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new TimedCount instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TimedCount instance
+ */
+ public static create(properties?: google.devtools.clouderrorreporting.v1beta1.ITimedCount): google.devtools.clouderrorreporting.v1beta1.TimedCount;
+
+ /**
+ * Encodes the specified TimedCount message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.TimedCount.verify|verify} messages.
+ * @param message TimedCount message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.devtools.clouderrorreporting.v1beta1.ITimedCount, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TimedCount message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.TimedCount.verify|verify} messages.
+ * @param message TimedCount message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.devtools.clouderrorreporting.v1beta1.ITimedCount, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TimedCount message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TimedCount
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.clouderrorreporting.v1beta1.TimedCount;
+
+ /**
+ * Decodes a TimedCount message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TimedCount
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.clouderrorreporting.v1beta1.TimedCount;
+
+ /**
+ * Verifies a TimedCount message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TimedCount message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TimedCount
+ */
+ public static fromObject(object: { [k: string]: any }): google.devtools.clouderrorreporting.v1beta1.TimedCount;
+
+ /**
+ * Creates a plain object from a TimedCount message. Also converts values to other types if specified.
+ * @param message TimedCount
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.devtools.clouderrorreporting.v1beta1.TimedCount, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TimedCount to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TimedCount
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListEventsRequest. */
+ interface IListEventsRequest {
+
+ /** ListEventsRequest projectName */
+ projectName?: (string|null);
+
+ /** ListEventsRequest groupId */
+ groupId?: (string|null);
+
+ /** ListEventsRequest serviceFilter */
+ serviceFilter?: (google.devtools.clouderrorreporting.v1beta1.IServiceContextFilter|null);
+
+ /** ListEventsRequest timeRange */
+ timeRange?: (google.devtools.clouderrorreporting.v1beta1.IQueryTimeRange|null);
+
+ /** ListEventsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListEventsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListEventsRequest. */
+ class ListEventsRequest implements IListEventsRequest {
+
+ /**
+ * Constructs a new ListEventsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.devtools.clouderrorreporting.v1beta1.IListEventsRequest);
+
+ /** ListEventsRequest projectName. */
+ public projectName: string;
+
+ /** ListEventsRequest groupId. */
+ public groupId: string;
+
+ /** ListEventsRequest serviceFilter. */
+ public serviceFilter?: (google.devtools.clouderrorreporting.v1beta1.IServiceContextFilter|null);
+
+ /** ListEventsRequest timeRange. */
+ public timeRange?: (google.devtools.clouderrorreporting.v1beta1.IQueryTimeRange|null);
+
+ /** ListEventsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListEventsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListEventsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListEventsRequest instance
+ */
+ public static create(properties?: google.devtools.clouderrorreporting.v1beta1.IListEventsRequest): google.devtools.clouderrorreporting.v1beta1.ListEventsRequest;
+
+ /**
+ * Encodes the specified ListEventsRequest message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ListEventsRequest.verify|verify} messages.
+ * @param message ListEventsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.devtools.clouderrorreporting.v1beta1.IListEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListEventsRequest message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ListEventsRequest.verify|verify} messages.
+ * @param message ListEventsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.devtools.clouderrorreporting.v1beta1.IListEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListEventsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListEventsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.clouderrorreporting.v1beta1.ListEventsRequest;
+
+ /**
+ * Decodes a ListEventsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListEventsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.clouderrorreporting.v1beta1.ListEventsRequest;
+
+ /**
+ * Verifies a ListEventsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListEventsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListEventsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.devtools.clouderrorreporting.v1beta1.ListEventsRequest;
+
+ /**
+ * Creates a plain object from a ListEventsRequest message. Also converts values to other types if specified.
+ * @param message ListEventsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.devtools.clouderrorreporting.v1beta1.ListEventsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListEventsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListEventsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListEventsResponse. */
+ interface IListEventsResponse {
+
+ /** ListEventsResponse errorEvents */
+ errorEvents?: (google.devtools.clouderrorreporting.v1beta1.IErrorEvent[]|null);
+
+ /** ListEventsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListEventsResponse timeRangeBegin */
+ timeRangeBegin?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a ListEventsResponse. */
+ class ListEventsResponse implements IListEventsResponse {
+
+ /**
+ * Constructs a new ListEventsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.devtools.clouderrorreporting.v1beta1.IListEventsResponse);
+
+ /** ListEventsResponse errorEvents. */
+ public errorEvents: google.devtools.clouderrorreporting.v1beta1.IErrorEvent[];
+
+ /** ListEventsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListEventsResponse timeRangeBegin. */
+ public timeRangeBegin?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new ListEventsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListEventsResponse instance
+ */
+ public static create(properties?: google.devtools.clouderrorreporting.v1beta1.IListEventsResponse): google.devtools.clouderrorreporting.v1beta1.ListEventsResponse;
+
+ /**
+ * Encodes the specified ListEventsResponse message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ListEventsResponse.verify|verify} messages.
+ * @param message ListEventsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.devtools.clouderrorreporting.v1beta1.IListEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListEventsResponse message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ListEventsResponse.verify|verify} messages.
+ * @param message ListEventsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.devtools.clouderrorreporting.v1beta1.IListEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListEventsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListEventsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.clouderrorreporting.v1beta1.ListEventsResponse;
+
+ /**
+ * Decodes a ListEventsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListEventsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.clouderrorreporting.v1beta1.ListEventsResponse;
+
+ /**
+ * Verifies a ListEventsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListEventsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListEventsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.devtools.clouderrorreporting.v1beta1.ListEventsResponse;
+
+ /**
+ * Creates a plain object from a ListEventsResponse message. Also converts values to other types if specified.
+ * @param message ListEventsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.devtools.clouderrorreporting.v1beta1.ListEventsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListEventsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListEventsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a QueryTimeRange. */
+ interface IQueryTimeRange {
+
+ /** QueryTimeRange period */
+ period?: (google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period|keyof typeof google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period|null);
+ }
+
+ /** Represents a QueryTimeRange. */
+ class QueryTimeRange implements IQueryTimeRange {
+
+ /**
+ * Constructs a new QueryTimeRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.devtools.clouderrorreporting.v1beta1.IQueryTimeRange);
+
+ /** QueryTimeRange period. */
+ public period: (google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period|keyof typeof google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period);
+
+ /**
+ * Creates a new QueryTimeRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns QueryTimeRange instance
+ */
+ public static create(properties?: google.devtools.clouderrorreporting.v1beta1.IQueryTimeRange): google.devtools.clouderrorreporting.v1beta1.QueryTimeRange;
+
+ /**
+ * Encodes the specified QueryTimeRange message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.verify|verify} messages.
+ * @param message QueryTimeRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.devtools.clouderrorreporting.v1beta1.IQueryTimeRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified QueryTimeRange message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.verify|verify} messages.
+ * @param message QueryTimeRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.devtools.clouderrorreporting.v1beta1.IQueryTimeRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a QueryTimeRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns QueryTimeRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.clouderrorreporting.v1beta1.QueryTimeRange;
+
+ /**
+ * Decodes a QueryTimeRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns QueryTimeRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.clouderrorreporting.v1beta1.QueryTimeRange;
+
+ /**
+ * Verifies a QueryTimeRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a QueryTimeRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns QueryTimeRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.devtools.clouderrorreporting.v1beta1.QueryTimeRange;
+
+ /**
+ * Creates a plain object from a QueryTimeRange message. Also converts values to other types if specified.
+ * @param message QueryTimeRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.devtools.clouderrorreporting.v1beta1.QueryTimeRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this QueryTimeRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for QueryTimeRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace QueryTimeRange {
+
+ /** Period enum. */
+ enum Period {
+ PERIOD_UNSPECIFIED = 0,
+ PERIOD_1_HOUR = 1,
+ PERIOD_6_HOURS = 2,
+ PERIOD_1_DAY = 3,
+ PERIOD_1_WEEK = 4,
+ PERIOD_30_DAYS = 5
+ }
+ }
+
+ /** Properties of a ServiceContextFilter. */
+ interface IServiceContextFilter {
+
+ /** ServiceContextFilter service */
+ service?: (string|null);
+
+ /** ServiceContextFilter version */
+ version?: (string|null);
+
+ /** ServiceContextFilter resourceType */
+ resourceType?: (string|null);
+ }
+
+ /** Represents a ServiceContextFilter. */
+ class ServiceContextFilter implements IServiceContextFilter {
+
+ /**
+ * Constructs a new ServiceContextFilter.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.devtools.clouderrorreporting.v1beta1.IServiceContextFilter);
+
+ /** ServiceContextFilter service. */
+ public service: string;
+
+ /** ServiceContextFilter version. */
+ public version: string;
+
+ /** ServiceContextFilter resourceType. */
+ public resourceType: string;
+
+ /**
+ * Creates a new ServiceContextFilter instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceContextFilter instance
+ */
+ public static create(properties?: google.devtools.clouderrorreporting.v1beta1.IServiceContextFilter): google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter;
+
+ /**
+ * Encodes the specified ServiceContextFilter message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter.verify|verify} messages.
+ * @param message ServiceContextFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.devtools.clouderrorreporting.v1beta1.IServiceContextFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceContextFilter message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter.verify|verify} messages.
+ * @param message ServiceContextFilter message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.devtools.clouderrorreporting.v1beta1.IServiceContextFilter, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceContextFilter message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceContextFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter;
+
+ /**
+ * Decodes a ServiceContextFilter message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceContextFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter;
+
+ /**
+ * Verifies a ServiceContextFilter message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceContextFilter message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceContextFilter
+ */
+ public static fromObject(object: { [k: string]: any }): google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter;
+
+ /**
+ * Creates a plain object from a ServiceContextFilter message. Also converts values to other types if specified.
+ * @param message ServiceContextFilter
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceContextFilter to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceContextFilter
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteEventsRequest. */
+ interface IDeleteEventsRequest {
+
+ /** DeleteEventsRequest projectName */
+ projectName?: (string|null);
+ }
+
+ /** Represents a DeleteEventsRequest. */
+ class DeleteEventsRequest implements IDeleteEventsRequest {
+
+ /**
+ * Constructs a new DeleteEventsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.devtools.clouderrorreporting.v1beta1.IDeleteEventsRequest);
+
+ /** DeleteEventsRequest projectName. */
+ public projectName: string;
+
+ /**
+ * Creates a new DeleteEventsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteEventsRequest instance
+ */
+ public static create(properties?: google.devtools.clouderrorreporting.v1beta1.IDeleteEventsRequest): google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest;
+
+ /**
+ * Encodes the specified DeleteEventsRequest message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest.verify|verify} messages.
+ * @param message DeleteEventsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.devtools.clouderrorreporting.v1beta1.IDeleteEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteEventsRequest message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest.verify|verify} messages.
+ * @param message DeleteEventsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.devtools.clouderrorreporting.v1beta1.IDeleteEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteEventsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteEventsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest;
+
+ /**
+ * Decodes a DeleteEventsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteEventsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest;
+
+ /**
+ * Verifies a DeleteEventsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteEventsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteEventsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest;
+
+ /**
+ * Creates a plain object from a DeleteEventsRequest message. Also converts values to other types if specified.
+ * @param message DeleteEventsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteEventsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteEventsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteEventsResponse. */
+ interface IDeleteEventsResponse {
+ }
+
+ /** Represents a DeleteEventsResponse. */
+ class DeleteEventsResponse implements IDeleteEventsResponse {
+
+ /**
+ * Constructs a new DeleteEventsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.devtools.clouderrorreporting.v1beta1.IDeleteEventsResponse);
+
+ /**
+ * Creates a new DeleteEventsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteEventsResponse instance
+ */
+ public static create(properties?: google.devtools.clouderrorreporting.v1beta1.IDeleteEventsResponse): google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse;
+
+ /**
+ * Encodes the specified DeleteEventsResponse message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse.verify|verify} messages.
+ * @param message DeleteEventsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.devtools.clouderrorreporting.v1beta1.IDeleteEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteEventsResponse message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse.verify|verify} messages.
+ * @param message DeleteEventsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.devtools.clouderrorreporting.v1beta1.IDeleteEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteEventsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteEventsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse;
+
+ /**
+ * Decodes a DeleteEventsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteEventsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse;
+
+ /**
+ * Verifies a DeleteEventsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteEventsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteEventsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse;
+
+ /**
+ * Creates a plain object from a DeleteEventsResponse message. Also converts values to other types if specified.
+ * @param message DeleteEventsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteEventsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteEventsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Represents a ReportErrorsService */
+ class ReportErrorsService extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new ReportErrorsService 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 ReportErrorsService 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): ReportErrorsService;
+
+ /**
+ * Calls ReportErrorEvent.
+ * @param request ReportErrorEventRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ReportErrorEventResponse
+ */
+ public reportErrorEvent(request: google.devtools.clouderrorreporting.v1beta1.IReportErrorEventRequest, callback: google.devtools.clouderrorreporting.v1beta1.ReportErrorsService.ReportErrorEventCallback): void;
+
+ /**
+ * Calls ReportErrorEvent.
+ * @param request ReportErrorEventRequest message or plain object
+ * @returns Promise
+ */
+ public reportErrorEvent(request: google.devtools.clouderrorreporting.v1beta1.IReportErrorEventRequest): Promise;
+ }
+
+ namespace ReportErrorsService {
+
+ /**
+ * Callback as used by {@link google.devtools.clouderrorreporting.v1beta1.ReportErrorsService|reportErrorEvent}.
+ * @param error Error, if any
+ * @param [response] ReportErrorEventResponse
+ */
+ type ReportErrorEventCallback = (error: (Error|null), response?: google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse) => void;
+ }
+
+ /** Properties of a ReportErrorEventRequest. */
+ interface IReportErrorEventRequest {
+
+ /** ReportErrorEventRequest projectName */
+ projectName?: (string|null);
+
+ /** ReportErrorEventRequest event */
+ event?: (google.devtools.clouderrorreporting.v1beta1.IReportedErrorEvent|null);
+ }
+
+ /** Represents a ReportErrorEventRequest. */
+ class ReportErrorEventRequest implements IReportErrorEventRequest {
+
+ /**
+ * Constructs a new ReportErrorEventRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.devtools.clouderrorreporting.v1beta1.IReportErrorEventRequest);
+
+ /** ReportErrorEventRequest projectName. */
+ public projectName: string;
+
+ /** ReportErrorEventRequest event. */
+ public event?: (google.devtools.clouderrorreporting.v1beta1.IReportedErrorEvent|null);
+
+ /**
+ * Creates a new ReportErrorEventRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReportErrorEventRequest instance
+ */
+ public static create(properties?: google.devtools.clouderrorreporting.v1beta1.IReportErrorEventRequest): google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest;
+
+ /**
+ * Encodes the specified ReportErrorEventRequest message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest.verify|verify} messages.
+ * @param message ReportErrorEventRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.devtools.clouderrorreporting.v1beta1.IReportErrorEventRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReportErrorEventRequest message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest.verify|verify} messages.
+ * @param message ReportErrorEventRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.devtools.clouderrorreporting.v1beta1.IReportErrorEventRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReportErrorEventRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReportErrorEventRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest;
+
+ /**
+ * Decodes a ReportErrorEventRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReportErrorEventRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest;
+
+ /**
+ * Verifies a ReportErrorEventRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReportErrorEventRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReportErrorEventRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest;
+
+ /**
+ * Creates a plain object from a ReportErrorEventRequest message. Also converts values to other types if specified.
+ * @param message ReportErrorEventRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReportErrorEventRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReportErrorEventRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ReportErrorEventResponse. */
+ interface IReportErrorEventResponse {
+ }
+
+ /** Represents a ReportErrorEventResponse. */
+ class ReportErrorEventResponse implements IReportErrorEventResponse {
+
+ /**
+ * Constructs a new ReportErrorEventResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.devtools.clouderrorreporting.v1beta1.IReportErrorEventResponse);
+
+ /**
+ * Creates a new ReportErrorEventResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReportErrorEventResponse instance
+ */
+ public static create(properties?: google.devtools.clouderrorreporting.v1beta1.IReportErrorEventResponse): google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse;
+
+ /**
+ * Encodes the specified ReportErrorEventResponse message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse.verify|verify} messages.
+ * @param message ReportErrorEventResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.devtools.clouderrorreporting.v1beta1.IReportErrorEventResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReportErrorEventResponse message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse.verify|verify} messages.
+ * @param message ReportErrorEventResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.devtools.clouderrorreporting.v1beta1.IReportErrorEventResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReportErrorEventResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReportErrorEventResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse;
+
+ /**
+ * Decodes a ReportErrorEventResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReportErrorEventResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse;
+
+ /**
+ * Verifies a ReportErrorEventResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReportErrorEventResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReportErrorEventResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse;
+
+ /**
+ * Creates a plain object from a ReportErrorEventResponse message. Also converts values to other types if specified.
+ * @param message ReportErrorEventResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReportErrorEventResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReportErrorEventResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ReportedErrorEvent. */
+ interface IReportedErrorEvent {
+
+ /** ReportedErrorEvent eventTime */
+ eventTime?: (google.protobuf.ITimestamp|null);
+
+ /** ReportedErrorEvent serviceContext */
+ serviceContext?: (google.devtools.clouderrorreporting.v1beta1.IServiceContext|null);
+
+ /** ReportedErrorEvent message */
+ message?: (string|null);
+
+ /** ReportedErrorEvent context */
+ context?: (google.devtools.clouderrorreporting.v1beta1.IErrorContext|null);
+ }
+
+ /** Represents a ReportedErrorEvent. */
+ class ReportedErrorEvent implements IReportedErrorEvent {
+
+ /**
+ * Constructs a new ReportedErrorEvent.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.devtools.clouderrorreporting.v1beta1.IReportedErrorEvent);
+
+ /** ReportedErrorEvent eventTime. */
+ public eventTime?: (google.protobuf.ITimestamp|null);
+
+ /** ReportedErrorEvent serviceContext. */
+ public serviceContext?: (google.devtools.clouderrorreporting.v1beta1.IServiceContext|null);
+
+ /** ReportedErrorEvent message. */
+ public message: string;
+
+ /** ReportedErrorEvent context. */
+ public context?: (google.devtools.clouderrorreporting.v1beta1.IErrorContext|null);
+
+ /**
+ * Creates a new ReportedErrorEvent instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReportedErrorEvent instance
+ */
+ public static create(properties?: google.devtools.clouderrorreporting.v1beta1.IReportedErrorEvent): google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent;
+
+ /**
+ * Encodes the specified ReportedErrorEvent message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent.verify|verify} messages.
+ * @param message ReportedErrorEvent message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.devtools.clouderrorreporting.v1beta1.IReportedErrorEvent, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReportedErrorEvent message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent.verify|verify} messages.
+ * @param message ReportedErrorEvent message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.devtools.clouderrorreporting.v1beta1.IReportedErrorEvent, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReportedErrorEvent message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReportedErrorEvent
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent;
+
+ /**
+ * Decodes a ReportedErrorEvent message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReportedErrorEvent
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent;
+
+ /**
+ * Verifies a ReportedErrorEvent message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReportedErrorEvent message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReportedErrorEvent
+ */
+ public static fromObject(object: { [k: string]: any }): google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent;
+
+ /**
+ * Creates a plain object from a ReportedErrorEvent message. Also converts values to other types if specified.
+ * @param message ReportedErrorEvent
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReportedErrorEvent to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReportedErrorEvent
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+ }
+
+ /** Namespace api. */
+ namespace api {
+
+ /** Properties of a ResourceDescriptor. */
+ interface IResourceDescriptor {
+
+ /** ResourceDescriptor type */
+ type?: (string|null);
+
+ /** ResourceDescriptor pattern */
+ pattern?: (string[]|null);
+
+ /** ResourceDescriptor nameField */
+ nameField?: (string|null);
+
+ /** ResourceDescriptor history */
+ history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null);
+
+ /** ResourceDescriptor plural */
+ plural?: (string|null);
+
+ /** ResourceDescriptor singular */
+ singular?: (string|null);
+
+ /** ResourceDescriptor style */
+ style?: (google.api.ResourceDescriptor.Style[]|null);
+ }
+
+ /** Represents a ResourceDescriptor. */
+ class ResourceDescriptor implements IResourceDescriptor {
+
+ /**
+ * Constructs a new ResourceDescriptor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceDescriptor);
+
+ /** ResourceDescriptor type. */
+ public type: string;
+
+ /** ResourceDescriptor pattern. */
+ public pattern: string[];
+
+ /** ResourceDescriptor nameField. */
+ public nameField: string;
+
+ /** ResourceDescriptor history. */
+ public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History);
+
+ /** ResourceDescriptor plural. */
+ public plural: string;
+
+ /** ResourceDescriptor singular. */
+ public singular: string;
+
+ /** ResourceDescriptor style. */
+ public style: google.api.ResourceDescriptor.Style[];
+
+ /**
+ * Creates a new ResourceDescriptor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceDescriptor instance
+ */
+ public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor;
+
+ /**
+ * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceDescriptor;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceDescriptor;
+
+ /**
+ * Verifies a ResourceDescriptor message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceDescriptor
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
+
+ /**
+ * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
+ * @param message ResourceDescriptor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceDescriptor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceDescriptor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ResourceDescriptor {
+
+ /** History enum. */
+ enum History {
+ HISTORY_UNSPECIFIED = 0,
+ ORIGINALLY_SINGLE_PATTERN = 1,
+ FUTURE_MULTI_PATTERN = 2
+ }
+
+ /** Style enum. */
+ enum Style {
+ STYLE_UNSPECIFIED = 0,
+ DECLARATIVE_FRIENDLY = 1
+ }
+ }
+
+ /** Properties of a ResourceReference. */
+ interface IResourceReference {
+
+ /** ResourceReference type */
+ type?: (string|null);
+
+ /** ResourceReference childType */
+ childType?: (string|null);
+ }
+
+ /** Represents a ResourceReference. */
+ class ResourceReference implements IResourceReference {
+
+ /**
+ * Constructs a new ResourceReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceReference);
+
+ /** ResourceReference type. */
+ public type: string;
+
+ /** ResourceReference childType. */
+ public childType: string;
+
+ /**
+ * Creates a new ResourceReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceReference instance
+ */
+ public static create(properties?: google.api.IResourceReference): google.api.ResourceReference;
+
+ /**
+ * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceReference;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceReference;
+
+ /**
+ * Verifies a ResourceReference message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
+
+ /**
+ * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
+ * @param message ResourceReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceReference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Http. */
+ interface IHttp {
+
+ /** Http rules */
+ rules?: (google.api.IHttpRule[]|null);
+
+ /** Http fullyDecodeReservedExpansion */
+ fullyDecodeReservedExpansion?: (boolean|null);
+ }
+
+ /** Represents a Http. */
+ class Http implements IHttp {
+
+ /**
+ * Constructs a new Http.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttp);
+
+ /** Http rules. */
+ public rules: google.api.IHttpRule[];
+
+ /** Http fullyDecodeReservedExpansion. */
+ public fullyDecodeReservedExpansion: boolean;
+
+ /**
+ * Creates a new Http instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Http instance
+ */
+ public static create(properties?: google.api.IHttp): google.api.Http;
+
+ /**
+ * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http;
+
+ /**
+ * Verifies a Http message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Http message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Http
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Http;
+
+ /**
+ * Creates a plain object from a Http message. Also converts values to other types if specified.
+ * @param message Http
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Http to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Http
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HttpRule. */
+ interface IHttpRule {
+
+ /** HttpRule selector */
+ selector?: (string|null);
+
+ /** HttpRule get */
+ get?: (string|null);
+
+ /** HttpRule put */
+ put?: (string|null);
+
+ /** HttpRule post */
+ post?: (string|null);
+
+ /** HttpRule delete */
+ "delete"?: (string|null);
+
+ /** HttpRule patch */
+ patch?: (string|null);
+
+ /** HttpRule custom */
+ custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body */
+ body?: (string|null);
+
+ /** HttpRule responseBody */
+ responseBody?: (string|null);
+
+ /** HttpRule additionalBindings */
+ additionalBindings?: (google.api.IHttpRule[]|null);
+ }
+
+ /** Represents a HttpRule. */
+ class HttpRule implements IHttpRule {
+
+ /**
+ * Constructs a new HttpRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttpRule);
+
+ /** HttpRule selector. */
+ public selector: string;
+
+ /** HttpRule get. */
+ public get?: (string|null);
+
+ /** HttpRule put. */
+ public put?: (string|null);
+
+ /** HttpRule post. */
+ public post?: (string|null);
+
+ /** HttpRule delete. */
+ public delete?: (string|null);
+
+ /** HttpRule patch. */
+ public patch?: (string|null);
+
+ /** HttpRule custom. */
+ public custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body. */
+ public body: string;
+
+ /** HttpRule responseBody. */
+ public responseBody: string;
+
+ /** HttpRule additionalBindings. */
+ public additionalBindings: google.api.IHttpRule[];
+
+ /** HttpRule pattern. */
+ public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
+
+ /**
+ * Creates a new HttpRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HttpRule instance
+ */
+ public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
+
+ /**
+ * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule;
+
+ /**
+ * Verifies a HttpRule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HttpRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
+
+ /**
+ * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
+ * @param message HttpRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HttpRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HttpRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CustomHttpPattern. */
+ interface ICustomHttpPattern {
+
+ /** CustomHttpPattern kind */
+ kind?: (string|null);
+
+ /** CustomHttpPattern path */
+ path?: (string|null);
+ }
+
+ /** Represents a CustomHttpPattern. */
+ class CustomHttpPattern implements ICustomHttpPattern {
+
+ /**
+ * Constructs a new CustomHttpPattern.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICustomHttpPattern);
+
+ /** CustomHttpPattern kind. */
+ public kind: string;
+
+ /** CustomHttpPattern path. */
+ public path: string;
+
+ /**
+ * Creates a new CustomHttpPattern instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CustomHttpPattern instance
+ */
+ public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
+
+ /**
+ * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern;
+
+ /**
+ * Verifies a CustomHttpPattern message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CustomHttpPattern
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
+
+ /**
+ * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
+ * @param message CustomHttpPattern
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CustomHttpPattern to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CustomHttpPattern
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CommonLanguageSettings. */
+ interface ICommonLanguageSettings {
+
+ /** CommonLanguageSettings referenceDocsUri */
+ referenceDocsUri?: (string|null);
+
+ /** CommonLanguageSettings destinations */
+ destinations?: (google.api.ClientLibraryDestination[]|null);
+
+ /** CommonLanguageSettings selectiveGapicGeneration */
+ selectiveGapicGeneration?: (google.api.ISelectiveGapicGeneration|null);
+ }
+
+ /** Represents a CommonLanguageSettings. */
+ class CommonLanguageSettings implements ICommonLanguageSettings {
+
+ /**
+ * Constructs a new CommonLanguageSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICommonLanguageSettings);
+
+ /** CommonLanguageSettings referenceDocsUri. */
+ public referenceDocsUri: string;
+
+ /** CommonLanguageSettings destinations. */
+ public destinations: google.api.ClientLibraryDestination[];
+
+ /** CommonLanguageSettings selectiveGapicGeneration. */
+ public selectiveGapicGeneration?: (google.api.ISelectiveGapicGeneration|null);
+
+ /**
+ * Creates a new CommonLanguageSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CommonLanguageSettings instance
+ */
+ public static create(properties?: google.api.ICommonLanguageSettings): google.api.CommonLanguageSettings;
+
+ /**
+ * Encodes the specified CommonLanguageSettings message. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
+ * @param message CommonLanguageSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICommonLanguageSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CommonLanguageSettings message, length delimited. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
+ * @param message CommonLanguageSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICommonLanguageSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CommonLanguageSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CommonLanguageSettings;
+
+ /**
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CommonLanguageSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CommonLanguageSettings;
+
+ /**
+ * Verifies a CommonLanguageSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CommonLanguageSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CommonLanguageSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CommonLanguageSettings;
+
+ /**
+ * Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified.
+ * @param message CommonLanguageSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CommonLanguageSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CommonLanguageSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CommonLanguageSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ClientLibrarySettings. */
+ interface IClientLibrarySettings {
+
+ /** ClientLibrarySettings version */
+ version?: (string|null);
+
+ /** ClientLibrarySettings launchStage */
+ launchStage?: (google.api.LaunchStage|keyof typeof google.api.LaunchStage|null);
+
+ /** ClientLibrarySettings restNumericEnums */
+ restNumericEnums?: (boolean|null);
+
+ /** ClientLibrarySettings javaSettings */
+ javaSettings?: (google.api.IJavaSettings|null);
+
+ /** ClientLibrarySettings cppSettings */
+ cppSettings?: (google.api.ICppSettings|null);
+
+ /** ClientLibrarySettings phpSettings */
+ phpSettings?: (google.api.IPhpSettings|null);
+
+ /** ClientLibrarySettings pythonSettings */
+ pythonSettings?: (google.api.IPythonSettings|null);
+
+ /** ClientLibrarySettings nodeSettings */
+ nodeSettings?: (google.api.INodeSettings|null);
+
+ /** ClientLibrarySettings dotnetSettings */
+ dotnetSettings?: (google.api.IDotnetSettings|null);
+
+ /** ClientLibrarySettings rubySettings */
+ rubySettings?: (google.api.IRubySettings|null);
+
+ /** ClientLibrarySettings goSettings */
+ goSettings?: (google.api.IGoSettings|null);
+ }
+
+ /** Represents a ClientLibrarySettings. */
+ class ClientLibrarySettings implements IClientLibrarySettings {
+
+ /**
+ * Constructs a new ClientLibrarySettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IClientLibrarySettings);
+
+ /** ClientLibrarySettings version. */
+ public version: string;
+
+ /** ClientLibrarySettings launchStage. */
+ public launchStage: (google.api.LaunchStage|keyof typeof google.api.LaunchStage);
+
+ /** ClientLibrarySettings restNumericEnums. */
+ public restNumericEnums: boolean;
+
+ /** ClientLibrarySettings javaSettings. */
+ public javaSettings?: (google.api.IJavaSettings|null);
+
+ /** ClientLibrarySettings cppSettings. */
+ public cppSettings?: (google.api.ICppSettings|null);
+
+ /** ClientLibrarySettings phpSettings. */
+ public phpSettings?: (google.api.IPhpSettings|null);
+
+ /** ClientLibrarySettings pythonSettings. */
+ public pythonSettings?: (google.api.IPythonSettings|null);
+
+ /** ClientLibrarySettings nodeSettings. */
+ public nodeSettings?: (google.api.INodeSettings|null);
+
+ /** ClientLibrarySettings dotnetSettings. */
+ public dotnetSettings?: (google.api.IDotnetSettings|null);
+
+ /** ClientLibrarySettings rubySettings. */
+ public rubySettings?: (google.api.IRubySettings|null);
+
+ /** ClientLibrarySettings goSettings. */
+ public goSettings?: (google.api.IGoSettings|null);
+
+ /**
+ * Creates a new ClientLibrarySettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ClientLibrarySettings instance
+ */
+ public static create(properties?: google.api.IClientLibrarySettings): google.api.ClientLibrarySettings;
+
+ /**
+ * Encodes the specified ClientLibrarySettings message. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
+ * @param message ClientLibrarySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IClientLibrarySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ClientLibrarySettings message, length delimited. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
+ * @param message ClientLibrarySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IClientLibrarySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ClientLibrarySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ClientLibrarySettings;
+
+ /**
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ClientLibrarySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ClientLibrarySettings;
+
+ /**
+ * Verifies a ClientLibrarySettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ClientLibrarySettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ClientLibrarySettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ClientLibrarySettings;
+
+ /**
+ * Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified.
+ * @param message ClientLibrarySettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ClientLibrarySettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ClientLibrarySettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ClientLibrarySettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Publishing. */
+ interface IPublishing {
+
+ /** Publishing methodSettings */
+ methodSettings?: (google.api.IMethodSettings[]|null);
+
+ /** Publishing newIssueUri */
+ newIssueUri?: (string|null);
+
+ /** Publishing documentationUri */
+ documentationUri?: (string|null);
+
+ /** Publishing apiShortName */
+ apiShortName?: (string|null);
+
+ /** Publishing githubLabel */
+ githubLabel?: (string|null);
+
+ /** Publishing codeownerGithubTeams */
+ codeownerGithubTeams?: (string[]|null);
+
+ /** Publishing docTagPrefix */
+ docTagPrefix?: (string|null);
+
+ /** Publishing organization */
+ organization?: (google.api.ClientLibraryOrganization|keyof typeof google.api.ClientLibraryOrganization|null);
+
+ /** Publishing librarySettings */
+ librarySettings?: (google.api.IClientLibrarySettings[]|null);
+
+ /** Publishing protoReferenceDocumentationUri */
+ protoReferenceDocumentationUri?: (string|null);
+
+ /** Publishing restReferenceDocumentationUri */
+ restReferenceDocumentationUri?: (string|null);
+ }
+
+ /** Represents a Publishing. */
+ class Publishing implements IPublishing {
+
+ /**
+ * Constructs a new Publishing.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPublishing);
+
+ /** Publishing methodSettings. */
+ public methodSettings: google.api.IMethodSettings[];
+
+ /** Publishing newIssueUri. */
+ public newIssueUri: string;
+
+ /** Publishing documentationUri. */
+ public documentationUri: string;
+
+ /** Publishing apiShortName. */
+ public apiShortName: string;
+
+ /** Publishing githubLabel. */
+ public githubLabel: string;
+
+ /** Publishing codeownerGithubTeams. */
+ public codeownerGithubTeams: string[];
+
+ /** Publishing docTagPrefix. */
+ public docTagPrefix: string;
+
+ /** Publishing organization. */
+ public organization: (google.api.ClientLibraryOrganization|keyof typeof google.api.ClientLibraryOrganization);
+
+ /** Publishing librarySettings. */
+ public librarySettings: google.api.IClientLibrarySettings[];
+
+ /** Publishing protoReferenceDocumentationUri. */
+ public protoReferenceDocumentationUri: string;
+
+ /** Publishing restReferenceDocumentationUri. */
+ public restReferenceDocumentationUri: string;
+
+ /**
+ * Creates a new Publishing instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Publishing instance
+ */
+ public static create(properties?: google.api.IPublishing): google.api.Publishing;
+
+ /**
+ * Encodes the specified Publishing message. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
+ * @param message Publishing message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPublishing, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Publishing message, length delimited. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
+ * @param message Publishing message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPublishing, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Publishing message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Publishing
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Publishing;
+
+ /**
+ * Decodes a Publishing message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Publishing
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Publishing;
+
+ /**
+ * Verifies a Publishing message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Publishing message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Publishing
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Publishing;
+
+ /**
+ * Creates a plain object from a Publishing message. Also converts values to other types if specified.
+ * @param message Publishing
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Publishing, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Publishing to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Publishing
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a JavaSettings. */
+ interface IJavaSettings {
+
+ /** JavaSettings libraryPackage */
+ libraryPackage?: (string|null);
+
+ /** JavaSettings serviceClassNames */
+ serviceClassNames?: ({ [k: string]: string }|null);
+
+ /** JavaSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a JavaSettings. */
+ class JavaSettings implements IJavaSettings {
+
+ /**
+ * Constructs a new JavaSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IJavaSettings);
+
+ /** JavaSettings libraryPackage. */
+ public libraryPackage: string;
+
+ /** JavaSettings serviceClassNames. */
+ public serviceClassNames: { [k: string]: string };
+
+ /** JavaSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new JavaSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns JavaSettings instance
+ */
+ public static create(properties?: google.api.IJavaSettings): google.api.JavaSettings;
+
+ /**
+ * Encodes the specified JavaSettings message. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
+ * @param message JavaSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IJavaSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified JavaSettings message, length delimited. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
+ * @param message JavaSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IJavaSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a JavaSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns JavaSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.JavaSettings;
+
+ /**
+ * Decodes a JavaSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns JavaSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.JavaSettings;
+
+ /**
+ * Verifies a JavaSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a JavaSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns JavaSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.JavaSettings;
+
+ /**
+ * Creates a plain object from a JavaSettings message. Also converts values to other types if specified.
+ * @param message JavaSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.JavaSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this JavaSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for JavaSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CppSettings. */
+ interface ICppSettings {
+
+ /** CppSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a CppSettings. */
+ class CppSettings implements ICppSettings {
+
+ /**
+ * Constructs a new CppSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICppSettings);
+
+ /** CppSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new CppSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CppSettings instance
+ */
+ public static create(properties?: google.api.ICppSettings): google.api.CppSettings;
+
+ /**
+ * Encodes the specified CppSettings message. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
+ * @param message CppSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICppSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CppSettings message, length delimited. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
+ * @param message CppSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICppSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CppSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CppSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CppSettings;
+
+ /**
+ * Decodes a CppSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CppSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CppSettings;
+
+ /**
+ * Verifies a CppSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CppSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CppSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CppSettings;
+
+ /**
+ * Creates a plain object from a CppSettings message. Also converts values to other types if specified.
+ * @param message CppSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CppSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CppSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CppSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PhpSettings. */
+ interface IPhpSettings {
+
+ /** PhpSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a PhpSettings. */
+ class PhpSettings implements IPhpSettings {
+
+ /**
+ * Constructs a new PhpSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPhpSettings);
+
+ /** PhpSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new PhpSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PhpSettings instance
+ */
+ public static create(properties?: google.api.IPhpSettings): google.api.PhpSettings;
+
+ /**
+ * Encodes the specified PhpSettings message. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
+ * @param message PhpSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPhpSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PhpSettings message, length delimited. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
+ * @param message PhpSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPhpSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PhpSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PhpSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.PhpSettings;
+
+ /**
+ * Decodes a PhpSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PhpSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.PhpSettings;
+
+ /**
+ * Verifies a PhpSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PhpSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PhpSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.PhpSettings;
+
+ /**
+ * Creates a plain object from a PhpSettings message. Also converts values to other types if specified.
+ * @param message PhpSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.PhpSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PhpSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PhpSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PythonSettings. */
+ interface IPythonSettings {
+
+ /** PythonSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+
+ /** PythonSettings experimentalFeatures */
+ experimentalFeatures?: (google.api.PythonSettings.IExperimentalFeatures|null);
+ }
+
+ /** Represents a PythonSettings. */
+ class PythonSettings implements IPythonSettings {
+
+ /**
+ * Constructs a new PythonSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPythonSettings);
+
+ /** PythonSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /** PythonSettings experimentalFeatures. */
+ public experimentalFeatures?: (google.api.PythonSettings.IExperimentalFeatures|null);
+
+ /**
+ * Creates a new PythonSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PythonSettings instance
+ */
+ public static create(properties?: google.api.IPythonSettings): google.api.PythonSettings;
+
+ /**
+ * Encodes the specified PythonSettings message. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
+ * @param message PythonSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPythonSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PythonSettings message, length delimited. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
+ * @param message PythonSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPythonSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PythonSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PythonSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.PythonSettings;
+
+ /**
+ * Decodes a PythonSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PythonSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.PythonSettings;
+
+ /**
+ * Verifies a PythonSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PythonSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PythonSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.PythonSettings;
+
+ /**
+ * Creates a plain object from a PythonSettings message. Also converts values to other types if specified.
+ * @param message PythonSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.PythonSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PythonSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PythonSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace PythonSettings {
+
+ /** Properties of an ExperimentalFeatures. */
+ interface IExperimentalFeatures {
+
+ /** ExperimentalFeatures restAsyncIoEnabled */
+ restAsyncIoEnabled?: (boolean|null);
+
+ /** ExperimentalFeatures protobufPythonicTypesEnabled */
+ protobufPythonicTypesEnabled?: (boolean|null);
+
+ /** ExperimentalFeatures unversionedPackageDisabled */
+ unversionedPackageDisabled?: (boolean|null);
+ }
+
+ /** Represents an ExperimentalFeatures. */
+ class ExperimentalFeatures implements IExperimentalFeatures {
+
+ /**
+ * Constructs a new ExperimentalFeatures.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.PythonSettings.IExperimentalFeatures);
+
+ /** ExperimentalFeatures restAsyncIoEnabled. */
+ public restAsyncIoEnabled: boolean;
+
+ /** ExperimentalFeatures protobufPythonicTypesEnabled. */
+ public protobufPythonicTypesEnabled: boolean;
+
+ /** ExperimentalFeatures unversionedPackageDisabled. */
+ public unversionedPackageDisabled: boolean;
+
+ /**
+ * Creates a new ExperimentalFeatures instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExperimentalFeatures instance
+ */
+ public static create(properties?: google.api.PythonSettings.IExperimentalFeatures): google.api.PythonSettings.ExperimentalFeatures;
+
+ /**
+ * Encodes the specified ExperimentalFeatures message. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
+ * @param message ExperimentalFeatures message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.PythonSettings.IExperimentalFeatures, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExperimentalFeatures message, length delimited. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
+ * @param message ExperimentalFeatures message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.PythonSettings.IExperimentalFeatures, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExperimentalFeatures message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExperimentalFeatures
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.PythonSettings.ExperimentalFeatures;
+
+ /**
+ * Decodes an ExperimentalFeatures message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExperimentalFeatures
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.PythonSettings.ExperimentalFeatures;
+
+ /**
+ * Verifies an ExperimentalFeatures message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExperimentalFeatures message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExperimentalFeatures
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.PythonSettings.ExperimentalFeatures;
+
+ /**
+ * Creates a plain object from an ExperimentalFeatures message. Also converts values to other types if specified.
+ * @param message ExperimentalFeatures
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.PythonSettings.ExperimentalFeatures, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExperimentalFeatures to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExperimentalFeatures
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a NodeSettings. */
+ interface INodeSettings {
+
+ /** NodeSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a NodeSettings. */
+ class NodeSettings implements INodeSettings {
+
+ /**
+ * Constructs a new NodeSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.INodeSettings);
+
+ /** NodeSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new NodeSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NodeSettings instance
+ */
+ public static create(properties?: google.api.INodeSettings): google.api.NodeSettings;
+
+ /**
+ * Encodes the specified NodeSettings message. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
+ * @param message NodeSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.INodeSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NodeSettings message, length delimited. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
+ * @param message NodeSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.INodeSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NodeSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NodeSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.NodeSettings;
+
+ /**
+ * Decodes a NodeSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NodeSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.NodeSettings;
+
+ /**
+ * Verifies a NodeSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NodeSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NodeSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.NodeSettings;
+
+ /**
+ * Creates a plain object from a NodeSettings message. Also converts values to other types if specified.
+ * @param message NodeSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.NodeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NodeSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NodeSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DotnetSettings. */
+ interface IDotnetSettings {
+
+ /** DotnetSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+
+ /** DotnetSettings renamedServices */
+ renamedServices?: ({ [k: string]: string }|null);
+
+ /** DotnetSettings renamedResources */
+ renamedResources?: ({ [k: string]: string }|null);
+
+ /** DotnetSettings ignoredResources */
+ ignoredResources?: (string[]|null);
+
+ /** DotnetSettings forcedNamespaceAliases */
+ forcedNamespaceAliases?: (string[]|null);
+
+ /** DotnetSettings handwrittenSignatures */
+ handwrittenSignatures?: (string[]|null);
+ }
+
+ /** Represents a DotnetSettings. */
+ class DotnetSettings implements IDotnetSettings {
+
+ /**
+ * Constructs a new DotnetSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IDotnetSettings);
+
+ /** DotnetSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /** DotnetSettings renamedServices. */
+ public renamedServices: { [k: string]: string };
+
+ /** DotnetSettings renamedResources. */
+ public renamedResources: { [k: string]: string };
+
+ /** DotnetSettings ignoredResources. */
+ public ignoredResources: string[];
+
+ /** DotnetSettings forcedNamespaceAliases. */
+ public forcedNamespaceAliases: string[];
+
+ /** DotnetSettings handwrittenSignatures. */
+ public handwrittenSignatures: string[];
+
+ /**
+ * Creates a new DotnetSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DotnetSettings instance
+ */
+ public static create(properties?: google.api.IDotnetSettings): google.api.DotnetSettings;
+
+ /**
+ * Encodes the specified DotnetSettings message. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
+ * @param message DotnetSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IDotnetSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DotnetSettings message, length delimited. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
+ * @param message DotnetSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IDotnetSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DotnetSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DotnetSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.DotnetSettings;
+
+ /**
+ * Decodes a DotnetSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DotnetSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.DotnetSettings;
+
+ /**
+ * Verifies a DotnetSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DotnetSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DotnetSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.DotnetSettings;
+
+ /**
+ * Creates a plain object from a DotnetSettings message. Also converts values to other types if specified.
+ * @param message DotnetSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.DotnetSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DotnetSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DotnetSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RubySettings. */
+ interface IRubySettings {
+
+ /** RubySettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a RubySettings. */
+ class RubySettings implements IRubySettings {
+
+ /**
+ * Constructs a new RubySettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IRubySettings);
+
+ /** RubySettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new RubySettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RubySettings instance
+ */
+ public static create(properties?: google.api.IRubySettings): google.api.RubySettings;
+
+ /**
+ * Encodes the specified RubySettings message. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
+ * @param message RubySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IRubySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RubySettings message, length delimited. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
+ * @param message RubySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IRubySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RubySettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RubySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.RubySettings;
+
+ /**
+ * Decodes a RubySettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RubySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.RubySettings;
+
+ /**
+ * Verifies a RubySettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RubySettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RubySettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.RubySettings;
+
+ /**
+ * Creates a plain object from a RubySettings message. Also converts values to other types if specified.
+ * @param message RubySettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.RubySettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RubySettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RubySettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GoSettings. */
+ interface IGoSettings {
+
+ /** GoSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+
+ /** GoSettings renamedServices */
+ renamedServices?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a GoSettings. */
+ class GoSettings implements IGoSettings {
+
+ /**
+ * Constructs a new GoSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IGoSettings);
+
+ /** GoSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /** GoSettings renamedServices. */
+ public renamedServices: { [k: string]: string };
+
+ /**
+ * Creates a new GoSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GoSettings instance
+ */
+ public static create(properties?: google.api.IGoSettings): google.api.GoSettings;
+
+ /**
+ * Encodes the specified GoSettings message. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
+ * @param message GoSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IGoSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GoSettings message, length delimited. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
+ * @param message GoSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IGoSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GoSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GoSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.GoSettings;
+
+ /**
+ * Decodes a GoSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GoSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.GoSettings;
+
+ /**
+ * Verifies a GoSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GoSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GoSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.GoSettings;
+
+ /**
+ * Creates a plain object from a GoSettings message. Also converts values to other types if specified.
+ * @param message GoSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.GoSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GoSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GoSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodSettings. */
+ interface IMethodSettings {
+
+ /** MethodSettings selector */
+ selector?: (string|null);
+
+ /** MethodSettings longRunning */
+ longRunning?: (google.api.MethodSettings.ILongRunning|null);
+
+ /** MethodSettings autoPopulatedFields */
+ autoPopulatedFields?: (string[]|null);
+ }
+
+ /** Represents a MethodSettings. */
+ class MethodSettings implements IMethodSettings {
+
+ /**
+ * Constructs a new MethodSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IMethodSettings);
+
+ /** MethodSettings selector. */
+ public selector: string;
+
+ /** MethodSettings longRunning. */
+ public longRunning?: (google.api.MethodSettings.ILongRunning|null);
+
+ /** MethodSettings autoPopulatedFields. */
+ public autoPopulatedFields: string[];
+
+ /**
+ * Creates a new MethodSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodSettings instance
+ */
+ public static create(properties?: google.api.IMethodSettings): google.api.MethodSettings;
+
+ /**
+ * Encodes the specified MethodSettings message. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
+ * @param message MethodSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IMethodSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodSettings message, length delimited. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
+ * @param message MethodSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IMethodSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.MethodSettings;
+
+ /**
+ * Decodes a MethodSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.MethodSettings;
+
+ /**
+ * Verifies a MethodSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.MethodSettings;
+
+ /**
+ * Creates a plain object from a MethodSettings message. Also converts values to other types if specified.
+ * @param message MethodSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.MethodSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MethodSettings {
+
+ /** Properties of a LongRunning. */
+ interface ILongRunning {
+
+ /** LongRunning initialPollDelay */
+ initialPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning pollDelayMultiplier */
+ pollDelayMultiplier?: (number|null);
+
+ /** LongRunning maxPollDelay */
+ maxPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning totalPollTimeout */
+ totalPollTimeout?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a LongRunning. */
+ class LongRunning implements ILongRunning {
+
+ /**
+ * Constructs a new LongRunning.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.MethodSettings.ILongRunning);
+
+ /** LongRunning initialPollDelay. */
+ public initialPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning pollDelayMultiplier. */
+ public pollDelayMultiplier: number;
+
+ /** LongRunning maxPollDelay. */
+ public maxPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning totalPollTimeout. */
+ public totalPollTimeout?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new LongRunning instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LongRunning instance
+ */
+ public static create(properties?: google.api.MethodSettings.ILongRunning): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Encodes the specified LongRunning message. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
+ * @param message LongRunning message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.MethodSettings.ILongRunning, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LongRunning message, length delimited. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
+ * @param message LongRunning message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.MethodSettings.ILongRunning, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LongRunning message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LongRunning
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Decodes a LongRunning message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LongRunning
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Verifies a LongRunning message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LongRunning message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LongRunning
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Creates a plain object from a LongRunning message. Also converts values to other types if specified.
+ * @param message LongRunning
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.MethodSettings.LongRunning, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LongRunning to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LongRunning
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** ClientLibraryOrganization enum. */
+ enum ClientLibraryOrganization {
+ CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0,
+ CLOUD = 1,
+ ADS = 2,
+ PHOTOS = 3,
+ STREET_VIEW = 4,
+ SHOPPING = 5,
+ GEO = 6,
+ GENERATIVE_AI = 7
+ }
+
+ /** ClientLibraryDestination enum. */
+ enum ClientLibraryDestination {
+ CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0,
+ GITHUB = 10,
+ PACKAGE_MANAGER = 20
+ }
+
+ /** Properties of a SelectiveGapicGeneration. */
+ interface ISelectiveGapicGeneration {
+
+ /** SelectiveGapicGeneration methods */
+ methods?: (string[]|null);
+
+ /** SelectiveGapicGeneration generateOmittedAsInternal */
+ generateOmittedAsInternal?: (boolean|null);
+ }
+
+ /** Represents a SelectiveGapicGeneration. */
+ class SelectiveGapicGeneration implements ISelectiveGapicGeneration {
+
+ /**
+ * Constructs a new SelectiveGapicGeneration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ISelectiveGapicGeneration);
+
+ /** SelectiveGapicGeneration methods. */
+ public methods: string[];
+
+ /** SelectiveGapicGeneration generateOmittedAsInternal. */
+ public generateOmittedAsInternal: boolean;
+
+ /**
+ * Creates a new SelectiveGapicGeneration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SelectiveGapicGeneration instance
+ */
+ public static create(properties?: google.api.ISelectiveGapicGeneration): google.api.SelectiveGapicGeneration;
+
+ /**
+ * Encodes the specified SelectiveGapicGeneration message. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
+ * @param message SelectiveGapicGeneration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ISelectiveGapicGeneration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SelectiveGapicGeneration message, length delimited. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
+ * @param message SelectiveGapicGeneration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ISelectiveGapicGeneration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SelectiveGapicGeneration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SelectiveGapicGeneration
+ * @throws {Error} If the payload is not 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.SelectiveGapicGeneration;
+
+ /**
+ * Decodes a SelectiveGapicGeneration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SelectiveGapicGeneration
+ * @throws {Error} If the payload 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.SelectiveGapicGeneration;
+
+ /**
+ * Verifies a SelectiveGapicGeneration message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SelectiveGapicGeneration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SelectiveGapicGeneration
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.SelectiveGapicGeneration;
+
+ /**
+ * Creates a plain object from a SelectiveGapicGeneration message. Also converts values to other types if specified.
+ * @param message SelectiveGapicGeneration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.SelectiveGapicGeneration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SelectiveGapicGeneration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SelectiveGapicGeneration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** LaunchStage enum. */
+ enum LaunchStage {
+ LAUNCH_STAGE_UNSPECIFIED = 0,
+ UNIMPLEMENTED = 6,
+ PRELAUNCH = 7,
+ EARLY_ACCESS = 1,
+ ALPHA = 2,
+ BETA = 3,
+ GA = 4,
+ DEPRECATED = 5
+ }
+
+ /** FieldBehavior enum. */
+ enum FieldBehavior {
+ FIELD_BEHAVIOR_UNSPECIFIED = 0,
+ OPTIONAL = 1,
+ REQUIRED = 2,
+ OUTPUT_ONLY = 3,
+ INPUT_ONLY = 4,
+ IMMUTABLE = 5,
+ UNORDERED_LIST = 6,
+ NON_EMPTY_DEFAULT = 7,
+ IDENTIFIER = 8
+ }
+ }
+
+ /** Namespace protobuf. */
+ namespace protobuf {
+
+ /** Properties of a FileDescriptorSet. */
+ interface IFileDescriptorSet {
+
+ /** FileDescriptorSet file */
+ file?: (google.protobuf.IFileDescriptorProto[]|null);
+ }
+
+ /** Represents a FileDescriptorSet. */
+ class FileDescriptorSet implements IFileDescriptorSet {
+
+ /**
+ * Constructs a new FileDescriptorSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorSet);
+
+ /** FileDescriptorSet file. */
+ public file: google.protobuf.IFileDescriptorProto[];
+
+ /**
+ * Creates a new FileDescriptorSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorSet instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Verifies a FileDescriptorSet message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
+ * @param message FileDescriptorSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Edition enum. */
+ enum Edition {
+ EDITION_UNKNOWN = 0,
+ EDITION_LEGACY = 900,
+ EDITION_PROTO2 = 998,
+ EDITION_PROTO3 = 999,
+ EDITION_2023 = 1000,
+ EDITION_2024 = 1001,
+ EDITION_1_TEST_ONLY = 1,
+ EDITION_2_TEST_ONLY = 2,
+ EDITION_99997_TEST_ONLY = 99997,
+ EDITION_99998_TEST_ONLY = 99998,
+ EDITION_99999_TEST_ONLY = 99999,
+ EDITION_MAX = 2147483647
+ }
+
+ /** Properties of a FileDescriptorProto. */
+ interface IFileDescriptorProto {
+
+ /** FileDescriptorProto name */
+ name?: (string|null);
+
+ /** FileDescriptorProto package */
+ "package"?: (string|null);
+
+ /** FileDescriptorProto dependency */
+ dependency?: (string[]|null);
+
+ /** FileDescriptorProto publicDependency */
+ publicDependency?: (number[]|null);
+
+ /** FileDescriptorProto weakDependency */
+ weakDependency?: (number[]|null);
+
+ /** FileDescriptorProto optionDependency */
+ optionDependency?: (string[]|null);
+
+ /** FileDescriptorProto messageType */
+ messageType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** FileDescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** FileDescriptorProto service */
+ service?: (google.protobuf.IServiceDescriptorProto[]|null);
+
+ /** FileDescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** FileDescriptorProto options */
+ options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo */
+ sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax */
+ syntax?: (string|null);
+
+ /** FileDescriptorProto edition */
+ edition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+ }
+
+ /** Represents a FileDescriptorProto. */
+ class FileDescriptorProto implements IFileDescriptorProto {
+
+ /**
+ * Constructs a new FileDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorProto);
+
+ /** FileDescriptorProto name. */
+ public name: string;
+
+ /** FileDescriptorProto package. */
+ public package: string;
+
+ /** FileDescriptorProto dependency. */
+ public dependency: string[];
+
+ /** FileDescriptorProto publicDependency. */
+ public publicDependency: number[];
+
+ /** FileDescriptorProto weakDependency. */
+ public weakDependency: number[];
+
+ /** FileDescriptorProto optionDependency. */
+ public optionDependency: string[];
+
+ /** FileDescriptorProto messageType. */
+ public messageType: google.protobuf.IDescriptorProto[];
+
+ /** FileDescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** FileDescriptorProto service. */
+ public service: google.protobuf.IServiceDescriptorProto[];
+
+ /** FileDescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** FileDescriptorProto options. */
+ public options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo. */
+ public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax. */
+ public syntax: string;
+
+ /** FileDescriptorProto edition. */
+ public edition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /**
+ * Creates a new FileDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Verifies a FileDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
+ * @param message FileDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DescriptorProto. */
+ interface IDescriptorProto {
+
+ /** DescriptorProto name */
+ name?: (string|null);
+
+ /** DescriptorProto field */
+ field?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto nestedType */
+ nestedType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** DescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** DescriptorProto extensionRange */
+ extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
+
+ /** DescriptorProto oneofDecl */
+ oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
+
+ /** DescriptorProto options */
+ options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
+
+ /** DescriptorProto reservedName */
+ reservedName?: (string[]|null);
+
+ /** DescriptorProto visibility */
+ visibility?: (google.protobuf.SymbolVisibility|keyof typeof google.protobuf.SymbolVisibility|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[];
+
+ /** DescriptorProto visibility. */
+ public visibility: (google.protobuf.SymbolVisibility|keyof typeof google.protobuf.SymbolVisibility);
+
+ /**
+ * Creates a new DescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
+
+ /**
+ * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto;
+
+ /**
+ * Verifies a DescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
+
+ /**
+ * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
+ * @param message DescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DescriptorProto {
+
+ /** Properties of an ExtensionRange. */
+ interface IExtensionRange {
+
+ /** ExtensionRange start */
+ start?: (number|null);
+
+ /** ExtensionRange end */
+ end?: (number|null);
+
+ /** ExtensionRange options */
+ options?: (google.protobuf.IExtensionRangeOptions|null);
+ }
+
+ /** Represents an ExtensionRange. */
+ class ExtensionRange implements IExtensionRange {
+
+ /**
+ * Constructs a new ExtensionRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
+
+ /** ExtensionRange start. */
+ public start: number;
+
+ /** ExtensionRange end. */
+ public end: number;
+
+ /** ExtensionRange options. */
+ public options?: (google.protobuf.IExtensionRangeOptions|null);
+
+ /**
+ * Creates a new ExtensionRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Verifies an ExtensionRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
+ * @param message ExtensionRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ReservedRange. */
+ interface IReservedRange {
+
+ /** ReservedRange start */
+ start?: (number|null);
+
+ /** ReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents a ReservedRange. */
+ class ReservedRange implements IReservedRange {
+
+ /**
+ * Constructs a new ReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
+
+ /** ReservedRange start. */
+ public start: number;
+
+ /** ReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new ReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReservedRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Verifies a ReservedRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
+ * @param message ReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an ExtensionRangeOptions. */
+ interface IExtensionRangeOptions {
+
+ /** ExtensionRangeOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** ExtensionRangeOptions declaration */
+ declaration?: (google.protobuf.ExtensionRangeOptions.IDeclaration[]|null);
+
+ /** ExtensionRangeOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** ExtensionRangeOptions verification */
+ verification?: (google.protobuf.ExtensionRangeOptions.VerificationState|keyof typeof google.protobuf.ExtensionRangeOptions.VerificationState|null);
+ }
+
+ /** Represents an ExtensionRangeOptions. */
+ class ExtensionRangeOptions implements IExtensionRangeOptions {
+
+ /**
+ * Constructs a new ExtensionRangeOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IExtensionRangeOptions);
+
+ /** ExtensionRangeOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /** ExtensionRangeOptions declaration. */
+ public declaration: google.protobuf.ExtensionRangeOptions.IDeclaration[];
+
+ /** ExtensionRangeOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** ExtensionRangeOptions verification. */
+ public verification: (google.protobuf.ExtensionRangeOptions.VerificationState|keyof typeof google.protobuf.ExtensionRangeOptions.VerificationState);
+
+ /**
+ * Creates a new ExtensionRangeOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRangeOptions instance
+ */
+ public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRangeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRangeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Verifies an ExtensionRangeOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRangeOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
+ * @param message ExtensionRangeOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRangeOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRangeOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ExtensionRangeOptions {
+
+ /** Properties of a Declaration. */
+ interface IDeclaration {
+
+ /** Declaration number */
+ number?: (number|null);
+
+ /** Declaration fullName */
+ fullName?: (string|null);
+
+ /** Declaration type */
+ type?: (string|null);
+
+ /** Declaration reserved */
+ reserved?: (boolean|null);
+
+ /** Declaration repeated */
+ repeated?: (boolean|null);
+ }
+
+ /** Represents a Declaration. */
+ class Declaration implements IDeclaration {
+
+ /**
+ * Constructs a new Declaration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ExtensionRangeOptions.IDeclaration);
+
+ /** Declaration number. */
+ public number: number;
+
+ /** Declaration fullName. */
+ public fullName: string;
+
+ /** Declaration type. */
+ public type: string;
+
+ /** Declaration reserved. */
+ public reserved: boolean;
+
+ /** Declaration repeated. */
+ public repeated: boolean;
+
+ /**
+ * Creates a new Declaration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Declaration instance
+ */
+ public static create(properties?: google.protobuf.ExtensionRangeOptions.IDeclaration): google.protobuf.ExtensionRangeOptions.Declaration;
+
+ /**
+ * Encodes the specified Declaration message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages.
+ * @param message Declaration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ExtensionRangeOptions.IDeclaration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Declaration message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages.
+ * @param message Declaration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ExtensionRangeOptions.IDeclaration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Declaration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Declaration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions.Declaration;
+
+ /**
+ * Decodes a Declaration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Declaration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions.Declaration;
+
+ /**
+ * Verifies a Declaration message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Declaration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Declaration
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions.Declaration;
+
+ /**
+ * Creates a plain object from a Declaration message. Also converts values to other types if specified.
+ * @param message Declaration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ExtensionRangeOptions.Declaration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Declaration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Declaration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** VerificationState enum. */
+ enum VerificationState {
+ DECLARATION = 0,
+ UNVERIFIED = 1
+ }
+ }
+
+ /** Properties of a FieldDescriptorProto. */
+ interface IFieldDescriptorProto {
+
+ /** FieldDescriptorProto name */
+ name?: (string|null);
+
+ /** FieldDescriptorProto number */
+ number?: (number|null);
+
+ /** FieldDescriptorProto label */
+ label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null);
+
+ /** FieldDescriptorProto type */
+ type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null);
+
+ /** FieldDescriptorProto typeName */
+ typeName?: (string|null);
+
+ /** FieldDescriptorProto extendee */
+ extendee?: (string|null);
+
+ /** FieldDescriptorProto defaultValue */
+ defaultValue?: (string|null);
+
+ /** FieldDescriptorProto oneofIndex */
+ oneofIndex?: (number|null);
+
+ /** FieldDescriptorProto jsonName */
+ jsonName?: (string|null);
+
+ /** FieldDescriptorProto options */
+ options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional */
+ proto3Optional?: (boolean|null);
+ }
+
+ /** Represents a FieldDescriptorProto. */
+ class FieldDescriptorProto implements IFieldDescriptorProto {
+
+ /**
+ * Constructs a new FieldDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldDescriptorProto);
+
+ /** FieldDescriptorProto name. */
+ public name: string;
+
+ /** FieldDescriptorProto number. */
+ public number: number;
+
+ /** FieldDescriptorProto label. */
+ public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label);
+
+ /** FieldDescriptorProto type. */
+ public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type);
+
+ /** FieldDescriptorProto typeName. */
+ public typeName: string;
+
+ /** FieldDescriptorProto extendee. */
+ public extendee: string;
+
+ /** FieldDescriptorProto defaultValue. */
+ public defaultValue: string;
+
+ /** FieldDescriptorProto oneofIndex. */
+ public oneofIndex: number;
+
+ /** FieldDescriptorProto jsonName. */
+ public jsonName: string;
+
+ /** FieldDescriptorProto options. */
+ public options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional. */
+ public proto3Optional: boolean;
+
+ /**
+ * Creates a new FieldDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Verifies a FieldDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
+ * @param message FieldDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldDescriptorProto {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_DOUBLE = 1,
+ TYPE_FLOAT = 2,
+ TYPE_INT64 = 3,
+ TYPE_UINT64 = 4,
+ TYPE_INT32 = 5,
+ TYPE_FIXED64 = 6,
+ TYPE_FIXED32 = 7,
+ TYPE_BOOL = 8,
+ TYPE_STRING = 9,
+ TYPE_GROUP = 10,
+ TYPE_MESSAGE = 11,
+ TYPE_BYTES = 12,
+ TYPE_UINT32 = 13,
+ TYPE_ENUM = 14,
+ TYPE_SFIXED32 = 15,
+ TYPE_SFIXED64 = 16,
+ TYPE_SINT32 = 17,
+ TYPE_SINT64 = 18
+ }
+
+ /** Label enum. */
+ enum Label {
+ LABEL_OPTIONAL = 1,
+ LABEL_REPEATED = 3,
+ LABEL_REQUIRED = 2
+ }
+ }
+
+ /** Properties of an OneofDescriptorProto. */
+ interface IOneofDescriptorProto {
+
+ /** OneofDescriptorProto name */
+ name?: (string|null);
+
+ /** OneofDescriptorProto options */
+ options?: (google.protobuf.IOneofOptions|null);
+ }
+
+ /** Represents an OneofDescriptorProto. */
+ class OneofDescriptorProto implements IOneofDescriptorProto {
+
+ /**
+ * Constructs a new OneofDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofDescriptorProto);
+
+ /** OneofDescriptorProto name. */
+ public name: string;
+
+ /** OneofDescriptorProto options. */
+ public options?: (google.protobuf.IOneofOptions|null);
+
+ /**
+ * Creates a new OneofDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Verifies an OneofDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
+ * @param message OneofDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumDescriptorProto. */
+ interface IEnumDescriptorProto {
+
+ /** EnumDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumDescriptorProto value */
+ value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
+
+ /** EnumDescriptorProto options */
+ options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
+
+ /** EnumDescriptorProto reservedName */
+ reservedName?: (string[]|null);
+
+ /** EnumDescriptorProto visibility */
+ visibility?: (google.protobuf.SymbolVisibility|keyof typeof google.protobuf.SymbolVisibility|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[];
+
+ /** EnumDescriptorProto visibility. */
+ public visibility: (google.protobuf.SymbolVisibility|keyof typeof google.protobuf.SymbolVisibility);
+
+ /**
+ * Creates a new EnumDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Verifies an EnumDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace EnumDescriptorProto {
+
+ /** Properties of an EnumReservedRange. */
+ interface IEnumReservedRange {
+
+ /** EnumReservedRange start */
+ start?: (number|null);
+
+ /** EnumReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents an EnumReservedRange. */
+ class EnumReservedRange implements IEnumReservedRange {
+
+ /**
+ * Constructs a new EnumReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
+
+ /** EnumReservedRange start. */
+ public start: number;
+
+ /** EnumReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new EnumReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumReservedRange instance
+ */
+ public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Verifies an EnumReservedRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
+ * @param message EnumReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an EnumValueDescriptorProto. */
+ interface IEnumValueDescriptorProto {
+
+ /** EnumValueDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumValueDescriptorProto number */
+ number?: (number|null);
+
+ /** EnumValueDescriptorProto options */
+ options?: (google.protobuf.IEnumValueOptions|null);
+ }
+
+ /** Represents an EnumValueDescriptorProto. */
+ class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
+
+ /**
+ * Constructs a new EnumValueDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
+
+ /** EnumValueDescriptorProto name. */
+ public name: string;
+
+ /** EnumValueDescriptorProto number. */
+ public number: number;
+
+ /** EnumValueDescriptorProto options. */
+ public options?: (google.protobuf.IEnumValueOptions|null);
+
+ /**
+ * Creates a new EnumValueDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Verifies an EnumValueDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumValueDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceDescriptorProto. */
+ interface IServiceDescriptorProto {
+
+ /** ServiceDescriptorProto name */
+ name?: (string|null);
+
+ /** ServiceDescriptorProto method */
+ method?: (google.protobuf.IMethodDescriptorProto[]|null);
+
+ /** ServiceDescriptorProto options */
+ options?: (google.protobuf.IServiceOptions|null);
+ }
+
+ /** Represents a ServiceDescriptorProto. */
+ class ServiceDescriptorProto implements IServiceDescriptorProto {
+
+ /**
+ * Constructs a new ServiceDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceDescriptorProto);
+
+ /** ServiceDescriptorProto name. */
+ public name: string;
+
+ /** ServiceDescriptorProto method. */
+ public method: google.protobuf.IMethodDescriptorProto[];
+
+ /** ServiceDescriptorProto options. */
+ public options?: (google.protobuf.IServiceOptions|null);
+
+ /**
+ * Creates a new ServiceDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Verifies a ServiceDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
+ * @param message ServiceDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodDescriptorProto. */
+ interface IMethodDescriptorProto {
+
+ /** MethodDescriptorProto name */
+ name?: (string|null);
+
+ /** MethodDescriptorProto inputType */
+ inputType?: (string|null);
+
+ /** MethodDescriptorProto outputType */
+ outputType?: (string|null);
+
+ /** MethodDescriptorProto options */
+ options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming */
+ clientStreaming?: (boolean|null);
+
+ /** MethodDescriptorProto serverStreaming */
+ serverStreaming?: (boolean|null);
+ }
+
+ /** Represents a MethodDescriptorProto. */
+ class MethodDescriptorProto implements IMethodDescriptorProto {
+
+ /**
+ * Constructs a new MethodDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodDescriptorProto);
+
+ /** MethodDescriptorProto name. */
+ public name: string;
+
+ /** MethodDescriptorProto inputType. */
+ public inputType: string;
+
+ /** MethodDescriptorProto outputType. */
+ public outputType: string;
+
+ /** MethodDescriptorProto options. */
+ public options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming. */
+ public clientStreaming: boolean;
+
+ /** MethodDescriptorProto serverStreaming. */
+ public serverStreaming: boolean;
+
+ /**
+ * Creates a new MethodDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Verifies a MethodDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
+ * @param message MethodDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FileOptions. */
+ interface IFileOptions {
+
+ /** FileOptions javaPackage */
+ javaPackage?: (string|null);
+
+ /** FileOptions javaOuterClassname */
+ javaOuterClassname?: (string|null);
+
+ /** FileOptions javaMultipleFiles */
+ javaMultipleFiles?: (boolean|null);
+
+ /** FileOptions javaGenerateEqualsAndHash */
+ javaGenerateEqualsAndHash?: (boolean|null);
+
+ /** FileOptions javaStringCheckUtf8 */
+ javaStringCheckUtf8?: (boolean|null);
+
+ /** FileOptions optimizeFor */
+ optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null);
+
+ /** FileOptions goPackage */
+ goPackage?: (string|null);
+
+ /** FileOptions ccGenericServices */
+ ccGenericServices?: (boolean|null);
+
+ /** FileOptions javaGenericServices */
+ javaGenericServices?: (boolean|null);
+
+ /** FileOptions pyGenericServices */
+ pyGenericServices?: (boolean|null);
+
+ /** FileOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FileOptions ccEnableArenas */
+ ccEnableArenas?: (boolean|null);
+
+ /** FileOptions objcClassPrefix */
+ objcClassPrefix?: (string|null);
+
+ /** FileOptions csharpNamespace */
+ csharpNamespace?: (string|null);
+
+ /** FileOptions swiftPrefix */
+ swiftPrefix?: (string|null);
+
+ /** FileOptions phpClassPrefix */
+ phpClassPrefix?: (string|null);
+
+ /** FileOptions phpNamespace */
+ phpNamespace?: (string|null);
+
+ /** FileOptions phpMetadataNamespace */
+ phpMetadataNamespace?: (string|null);
+
+ /** FileOptions rubyPackage */
+ rubyPackage?: (string|null);
+
+ /** FileOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** FileOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FileOptions .google.api.resourceDefinition */
+ ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null);
+ }
+
+ /** Represents a FileOptions. */
+ class FileOptions implements IFileOptions {
+
+ /**
+ * Constructs a new FileOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileOptions);
+
+ /** FileOptions javaPackage. */
+ public javaPackage: string;
+
+ /** FileOptions javaOuterClassname. */
+ public javaOuterClassname: string;
+
+ /** FileOptions javaMultipleFiles. */
+ public javaMultipleFiles: boolean;
+
+ /** FileOptions javaGenerateEqualsAndHash. */
+ public javaGenerateEqualsAndHash: boolean;
+
+ /** FileOptions javaStringCheckUtf8. */
+ public javaStringCheckUtf8: boolean;
+
+ /** FileOptions optimizeFor. */
+ public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
+
+ /** FileOptions goPackage. */
+ public goPackage: string;
+
+ /** FileOptions ccGenericServices. */
+ public ccGenericServices: boolean;
+
+ /** FileOptions javaGenericServices. */
+ public javaGenericServices: boolean;
+
+ /** FileOptions pyGenericServices. */
+ public pyGenericServices: boolean;
+
+ /** FileOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FileOptions ccEnableArenas. */
+ public ccEnableArenas: boolean;
+
+ /** FileOptions objcClassPrefix. */
+ public objcClassPrefix: string;
+
+ /** FileOptions csharpNamespace. */
+ public csharpNamespace: string;
+
+ /** FileOptions swiftPrefix. */
+ public swiftPrefix: string;
+
+ /** FileOptions phpClassPrefix. */
+ public phpClassPrefix: string;
+
+ /** FileOptions phpNamespace. */
+ public phpNamespace: string;
+
+ /** FileOptions phpMetadataNamespace. */
+ public phpMetadataNamespace: string;
+
+ /** FileOptions rubyPackage. */
+ public rubyPackage: string;
+
+ /** FileOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** FileOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FileOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileOptions instance
+ */
+ public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
+
+ /**
+ * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions;
+
+ /**
+ * Verifies a FileOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
+
+ /**
+ * Creates a plain object from a FileOptions message. Also converts values to other types if specified.
+ * @param message FileOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FileOptions {
+
+ /** OptimizeMode enum. */
+ enum OptimizeMode {
+ SPEED = 1,
+ CODE_SIZE = 2,
+ LITE_RUNTIME = 3
+ }
+ }
+
+ /** Properties of a MessageOptions. */
+ interface IMessageOptions {
+
+ /** MessageOptions messageSetWireFormat */
+ messageSetWireFormat?: (boolean|null);
+
+ /** MessageOptions noStandardDescriptorAccessor */
+ noStandardDescriptorAccessor?: (boolean|null);
+
+ /** MessageOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MessageOptions mapEntry */
+ mapEntry?: (boolean|null);
+
+ /** MessageOptions deprecatedLegacyJsonFieldConflicts */
+ deprecatedLegacyJsonFieldConflicts?: (boolean|null);
+
+ /** MessageOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** MessageOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MessageOptions .google.api.resource */
+ ".google.api.resource"?: (google.api.IResourceDescriptor|null);
+ }
+
+ /** Represents a MessageOptions. */
+ class MessageOptions implements IMessageOptions {
+
+ /**
+ * Constructs a new MessageOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMessageOptions);
+
+ /** MessageOptions messageSetWireFormat. */
+ public messageSetWireFormat: boolean;
+
+ /** MessageOptions noStandardDescriptorAccessor. */
+ public noStandardDescriptorAccessor: boolean;
+
+ /** MessageOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MessageOptions mapEntry. */
+ public mapEntry: boolean;
+
+ /** MessageOptions deprecatedLegacyJsonFieldConflicts. */
+ public deprecatedLegacyJsonFieldConflicts: boolean;
+
+ /** MessageOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** MessageOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MessageOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MessageOptions instance
+ */
+ public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
+
+ /**
+ * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MessageOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MessageOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions;
+
+ /**
+ * Verifies a MessageOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MessageOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
+
+ /**
+ * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
+ * @param message MessageOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MessageOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MessageOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldOptions. */
+ interface IFieldOptions {
+
+ /** FieldOptions ctype */
+ ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null);
+
+ /** FieldOptions packed */
+ packed?: (boolean|null);
+
+ /** FieldOptions jstype */
+ jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null);
+
+ /** FieldOptions lazy */
+ lazy?: (boolean|null);
+
+ /** FieldOptions unverifiedLazy */
+ unverifiedLazy?: (boolean|null);
+
+ /** FieldOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FieldOptions weak */
+ weak?: (boolean|null);
+
+ /** FieldOptions debugRedact */
+ debugRedact?: (boolean|null);
+
+ /** FieldOptions retention */
+ retention?: (google.protobuf.FieldOptions.OptionRetention|keyof typeof google.protobuf.FieldOptions.OptionRetention|null);
+
+ /** FieldOptions targets */
+ targets?: (google.protobuf.FieldOptions.OptionTargetType[]|null);
+
+ /** FieldOptions editionDefaults */
+ editionDefaults?: (google.protobuf.FieldOptions.IEditionDefault[]|null);
+
+ /** FieldOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** FieldOptions featureSupport */
+ featureSupport?: (google.protobuf.FieldOptions.IFeatureSupport|null);
+
+ /** FieldOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FieldOptions .google.api.resourceReference */
+ ".google.api.resourceReference"?: (google.api.IResourceReference|null);
+
+ /** FieldOptions .google.api.fieldBehavior */
+ ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
+ }
+
+ /** Represents a FieldOptions. */
+ class FieldOptions implements IFieldOptions {
+
+ /**
+ * Constructs a new FieldOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldOptions);
+
+ /** FieldOptions ctype. */
+ public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
+
+ /** FieldOptions packed. */
+ public packed: boolean;
+
+ /** FieldOptions jstype. */
+ public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
+
+ /** FieldOptions lazy. */
+ public lazy: boolean;
+
+ /** FieldOptions unverifiedLazy. */
+ public unverifiedLazy: boolean;
+
+ /** FieldOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FieldOptions weak. */
+ public weak: boolean;
+
+ /** FieldOptions debugRedact. */
+ public debugRedact: boolean;
+
+ /** FieldOptions retention. */
+ public retention: (google.protobuf.FieldOptions.OptionRetention|keyof typeof google.protobuf.FieldOptions.OptionRetention);
+
+ /** FieldOptions targets. */
+ public targets: google.protobuf.FieldOptions.OptionTargetType[];
+
+ /** FieldOptions editionDefaults. */
+ public editionDefaults: google.protobuf.FieldOptions.IEditionDefault[];
+
+ /** FieldOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** FieldOptions featureSupport. */
+ public featureSupport?: (google.protobuf.FieldOptions.IFeatureSupport|null);
+
+ /** FieldOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FieldOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldOptions instance
+ */
+ public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
+
+ /**
+ * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
+
+ /**
+ * Verifies a FieldOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
+
+ /**
+ * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
+ * @param message FieldOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldOptions {
+
+ /** CType enum. */
+ enum CType {
+ STRING = 0,
+ CORD = 1,
+ STRING_PIECE = 2
+ }
+
+ /** JSType enum. */
+ enum JSType {
+ JS_NORMAL = 0,
+ JS_STRING = 1,
+ JS_NUMBER = 2
+ }
+
+ /** OptionRetention enum. */
+ enum OptionRetention {
+ RETENTION_UNKNOWN = 0,
+ RETENTION_RUNTIME = 1,
+ RETENTION_SOURCE = 2
+ }
+
+ /** OptionTargetType enum. */
+ enum OptionTargetType {
+ TARGET_TYPE_UNKNOWN = 0,
+ TARGET_TYPE_FILE = 1,
+ TARGET_TYPE_EXTENSION_RANGE = 2,
+ TARGET_TYPE_MESSAGE = 3,
+ TARGET_TYPE_FIELD = 4,
+ TARGET_TYPE_ONEOF = 5,
+ TARGET_TYPE_ENUM = 6,
+ TARGET_TYPE_ENUM_ENTRY = 7,
+ TARGET_TYPE_SERVICE = 8,
+ TARGET_TYPE_METHOD = 9
+ }
+
+ /** Properties of an EditionDefault. */
+ interface IEditionDefault {
+
+ /** EditionDefault edition */
+ edition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+
+ /** EditionDefault value */
+ value?: (string|null);
+ }
+
+ /** Represents an EditionDefault. */
+ class EditionDefault implements IEditionDefault {
+
+ /**
+ * Constructs a new EditionDefault.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.FieldOptions.IEditionDefault);
+
+ /** EditionDefault edition. */
+ public edition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /** EditionDefault value. */
+ public value: string;
+
+ /**
+ * Creates a new EditionDefault instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EditionDefault instance
+ */
+ public static create(properties?: google.protobuf.FieldOptions.IEditionDefault): google.protobuf.FieldOptions.EditionDefault;
+
+ /**
+ * Encodes the specified EditionDefault message. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages.
+ * @param message EditionDefault message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.FieldOptions.IEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages.
+ * @param message EditionDefault message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.FieldOptions.IEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EditionDefault message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EditionDefault
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions.EditionDefault;
+
+ /**
+ * Decodes an EditionDefault message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EditionDefault
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions.EditionDefault;
+
+ /**
+ * Verifies an EditionDefault message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EditionDefault message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EditionDefault
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions.EditionDefault;
+
+ /**
+ * Creates a plain object from an EditionDefault message. Also converts values to other types if specified.
+ * @param message EditionDefault
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions.EditionDefault, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EditionDefault to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EditionDefault
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FeatureSupport. */
+ interface IFeatureSupport {
+
+ /** FeatureSupport editionIntroduced */
+ editionIntroduced?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+
+ /** FeatureSupport editionDeprecated */
+ editionDeprecated?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+
+ /** FeatureSupport deprecationWarning */
+ deprecationWarning?: (string|null);
+
+ /** FeatureSupport editionRemoved */
+ editionRemoved?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+ }
+
+ /** Represents a FeatureSupport. */
+ class FeatureSupport implements IFeatureSupport {
+
+ /**
+ * Constructs a new FeatureSupport.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.FieldOptions.IFeatureSupport);
+
+ /** FeatureSupport editionIntroduced. */
+ public editionIntroduced: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /** FeatureSupport editionDeprecated. */
+ public editionDeprecated: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /** FeatureSupport deprecationWarning. */
+ public deprecationWarning: string;
+
+ /** FeatureSupport editionRemoved. */
+ public editionRemoved: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /**
+ * Creates a new FeatureSupport instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FeatureSupport instance
+ */
+ public static create(properties?: google.protobuf.FieldOptions.IFeatureSupport): google.protobuf.FieldOptions.FeatureSupport;
+
+ /**
+ * Encodes the specified FeatureSupport message. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages.
+ * @param message FeatureSupport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.FieldOptions.IFeatureSupport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FeatureSupport message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages.
+ * @param message FeatureSupport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.FieldOptions.IFeatureSupport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FeatureSupport message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FeatureSupport
+ * @throws {Error} If the payload is not 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.FeatureSupport;
+
+ /**
+ * Decodes a FeatureSupport message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FeatureSupport
+ * @throws {Error} If the payload 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.FeatureSupport;
+
+ /**
+ * Verifies a FeatureSupport message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FeatureSupport message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FeatureSupport
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions.FeatureSupport;
+
+ /**
+ * Creates a plain object from a FeatureSupport message. Also converts values to other types if specified.
+ * @param message FeatureSupport
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions.FeatureSupport, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FeatureSupport to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FeatureSupport
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an OneofOptions. */
+ interface IOneofOptions {
+
+ /** OneofOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** OneofOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an OneofOptions. */
+ class OneofOptions implements IOneofOptions {
+
+ /**
+ * Constructs a new OneofOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofOptions);
+
+ /** OneofOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** OneofOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new OneofOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofOptions instance
+ */
+ public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
+
+ /**
+ * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions;
+
+ /**
+ * Verifies an OneofOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
+
+ /**
+ * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
+ * @param message OneofOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumOptions. */
+ interface IEnumOptions {
+
+ /** EnumOptions allowAlias */
+ allowAlias?: (boolean|null);
+
+ /** EnumOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumOptions deprecatedLegacyJsonFieldConflicts */
+ deprecatedLegacyJsonFieldConflicts?: (boolean|null);
+
+ /** EnumOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumOptions. */
+ class EnumOptions implements IEnumOptions {
+
+ /**
+ * Constructs a new EnumOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumOptions);
+
+ /** EnumOptions allowAlias. */
+ public allowAlias: boolean;
+
+ /** EnumOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumOptions deprecatedLegacyJsonFieldConflicts. */
+ public deprecatedLegacyJsonFieldConflicts: boolean;
+
+ /** EnumOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
+
+ /**
+ * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions;
+
+ /**
+ * Verifies an EnumOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
+
+ /**
+ * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
+ * @param message EnumOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumValueOptions. */
+ interface IEnumValueOptions {
+
+ /** EnumValueOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumValueOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumValueOptions debugRedact */
+ debugRedact?: (boolean|null);
+
+ /** EnumValueOptions featureSupport */
+ featureSupport?: (google.protobuf.FieldOptions.IFeatureSupport|null);
+
+ /** EnumValueOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumValueOptions. */
+ class EnumValueOptions implements IEnumValueOptions {
+
+ /**
+ * Constructs a new EnumValueOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueOptions);
+
+ /** EnumValueOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumValueOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumValueOptions debugRedact. */
+ public debugRedact: boolean;
+
+ /** EnumValueOptions featureSupport. */
+ public featureSupport?: (google.protobuf.FieldOptions.IFeatureSupport|null);
+
+ /** EnumValueOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumValueOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
+
+ /**
+ * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions;
+
+ /**
+ * Verifies an EnumValueOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
+
+ /**
+ * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
+ * @param message EnumValueOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceOptions. */
+ interface IServiceOptions {
+
+ /** ServiceOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** ServiceOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** ServiceOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** ServiceOptions .google.api.defaultHost */
+ ".google.api.defaultHost"?: (string|null);
+
+ /** ServiceOptions .google.api.oauthScopes */
+ ".google.api.oauthScopes"?: (string|null);
+
+ /** ServiceOptions .google.api.apiVersion */
+ ".google.api.apiVersion"?: (string|null);
+ }
+
+ /** Represents a ServiceOptions. */
+ class ServiceOptions implements IServiceOptions {
+
+ /**
+ * Constructs a new ServiceOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceOptions);
+
+ /** ServiceOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** ServiceOptions deprecated. */
+ public deprecated: boolean;
+
+ /** ServiceOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new ServiceOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceOptions instance
+ */
+ public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
+
+ /**
+ * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions;
+
+ /**
+ * Verifies a ServiceOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
+
+ /**
+ * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
+ * @param message ServiceOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodOptions. */
+ interface IMethodOptions {
+
+ /** MethodOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MethodOptions idempotencyLevel */
+ idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null);
+
+ /** MethodOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** MethodOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MethodOptions .google.api.http */
+ ".google.api.http"?: (google.api.IHttpRule|null);
+
+ /** MethodOptions .google.api.methodSignature */
+ ".google.api.methodSignature"?: (string[]|null);
+ }
+
+ /** Represents a MethodOptions. */
+ class MethodOptions implements IMethodOptions {
+
+ /**
+ * Constructs a new MethodOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodOptions);
+
+ /** MethodOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MethodOptions idempotencyLevel. */
+ public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
+
+ /** MethodOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** MethodOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MethodOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodOptions instance
+ */
+ public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
+
+ /**
+ * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions;
+
+ /**
+ * Verifies a MethodOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
+
+ /**
+ * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
+ * @param message MethodOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MethodOptions {
+
+ /** IdempotencyLevel enum. */
+ enum IdempotencyLevel {
+ IDEMPOTENCY_UNKNOWN = 0,
+ NO_SIDE_EFFECTS = 1,
+ IDEMPOTENT = 2
+ }
+ }
+
+ /** Properties of an UninterpretedOption. */
+ interface IUninterpretedOption {
+
+ /** UninterpretedOption name */
+ name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
+
+ /** UninterpretedOption identifierValue */
+ identifierValue?: (string|null);
+
+ /** UninterpretedOption positiveIntValue */
+ positiveIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption negativeIntValue */
+ negativeIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption doubleValue */
+ doubleValue?: (number|null);
+
+ /** UninterpretedOption stringValue */
+ stringValue?: (Uint8Array|Buffer|string|null);
+
+ /** UninterpretedOption aggregateValue */
+ aggregateValue?: (string|null);
+ }
+
+ /** Represents an UninterpretedOption. */
+ class UninterpretedOption implements IUninterpretedOption {
+
+ /**
+ * Constructs a new UninterpretedOption.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUninterpretedOption);
+
+ /** UninterpretedOption name. */
+ public name: google.protobuf.UninterpretedOption.INamePart[];
+
+ /** UninterpretedOption identifierValue. */
+ public identifierValue: string;
+
+ /** UninterpretedOption positiveIntValue. */
+ public positiveIntValue: (number|Long|string);
+
+ /** UninterpretedOption negativeIntValue. */
+ public negativeIntValue: (number|Long|string);
+
+ /** UninterpretedOption doubleValue. */
+ public doubleValue: number;
+
+ /** UninterpretedOption stringValue. */
+ public stringValue: (Uint8Array|Buffer|string);
+
+ /** UninterpretedOption aggregateValue. */
+ public aggregateValue: string;
+
+ /**
+ * Creates a new UninterpretedOption instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UninterpretedOption instance
+ */
+ public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
+
+ /**
+ * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption;
+
+ /**
+ * Verifies an UninterpretedOption message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UninterpretedOption
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
+
+ /**
+ * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
+ * @param message UninterpretedOption
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UninterpretedOption to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UninterpretedOption
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace UninterpretedOption {
+
+ /** Properties of a NamePart. */
+ interface INamePart {
+
+ /** NamePart namePart */
+ namePart: string;
+
+ /** NamePart isExtension */
+ isExtension: boolean;
+ }
+
+ /** Represents a NamePart. */
+ class NamePart implements INamePart {
+
+ /**
+ * Constructs a new NamePart.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
+
+ /** NamePart namePart. */
+ public namePart: string;
+
+ /** NamePart isExtension. */
+ public isExtension: boolean;
+
+ /**
+ * Creates a new NamePart instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NamePart instance
+ */
+ public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Verifies a NamePart message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NamePart message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NamePart
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Creates a plain object from a NamePart message. Also converts values to other types if specified.
+ * @param message NamePart
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NamePart to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NamePart
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a FeatureSet. */
+ interface IFeatureSet {
+
+ /** FeatureSet fieldPresence */
+ fieldPresence?: (google.protobuf.FeatureSet.FieldPresence|keyof typeof google.protobuf.FeatureSet.FieldPresence|null);
+
+ /** FeatureSet enumType */
+ enumType?: (google.protobuf.FeatureSet.EnumType|keyof typeof google.protobuf.FeatureSet.EnumType|null);
+
+ /** FeatureSet repeatedFieldEncoding */
+ repeatedFieldEncoding?: (google.protobuf.FeatureSet.RepeatedFieldEncoding|keyof typeof google.protobuf.FeatureSet.RepeatedFieldEncoding|null);
+
+ /** FeatureSet utf8Validation */
+ utf8Validation?: (google.protobuf.FeatureSet.Utf8Validation|keyof typeof google.protobuf.FeatureSet.Utf8Validation|null);
+
+ /** FeatureSet messageEncoding */
+ messageEncoding?: (google.protobuf.FeatureSet.MessageEncoding|keyof typeof google.protobuf.FeatureSet.MessageEncoding|null);
+
+ /** FeatureSet jsonFormat */
+ jsonFormat?: (google.protobuf.FeatureSet.JsonFormat|keyof typeof google.protobuf.FeatureSet.JsonFormat|null);
+
+ /** FeatureSet enforceNamingStyle */
+ enforceNamingStyle?: (google.protobuf.FeatureSet.EnforceNamingStyle|keyof typeof google.protobuf.FeatureSet.EnforceNamingStyle|null);
+
+ /** FeatureSet defaultSymbolVisibility */
+ defaultSymbolVisibility?: (google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility|keyof typeof google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility|null);
+ }
+
+ /** Represents a FeatureSet. */
+ class FeatureSet implements IFeatureSet {
+
+ /**
+ * Constructs a new FeatureSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFeatureSet);
+
+ /** FeatureSet fieldPresence. */
+ public fieldPresence: (google.protobuf.FeatureSet.FieldPresence|keyof typeof google.protobuf.FeatureSet.FieldPresence);
+
+ /** FeatureSet enumType. */
+ public enumType: (google.protobuf.FeatureSet.EnumType|keyof typeof google.protobuf.FeatureSet.EnumType);
+
+ /** FeatureSet repeatedFieldEncoding. */
+ public repeatedFieldEncoding: (google.protobuf.FeatureSet.RepeatedFieldEncoding|keyof typeof google.protobuf.FeatureSet.RepeatedFieldEncoding);
+
+ /** FeatureSet utf8Validation. */
+ public utf8Validation: (google.protobuf.FeatureSet.Utf8Validation|keyof typeof google.protobuf.FeatureSet.Utf8Validation);
+
+ /** FeatureSet messageEncoding. */
+ public messageEncoding: (google.protobuf.FeatureSet.MessageEncoding|keyof typeof google.protobuf.FeatureSet.MessageEncoding);
+
+ /** FeatureSet jsonFormat. */
+ public jsonFormat: (google.protobuf.FeatureSet.JsonFormat|keyof typeof google.protobuf.FeatureSet.JsonFormat);
+
+ /** FeatureSet enforceNamingStyle. */
+ public enforceNamingStyle: (google.protobuf.FeatureSet.EnforceNamingStyle|keyof typeof google.protobuf.FeatureSet.EnforceNamingStyle);
+
+ /** FeatureSet defaultSymbolVisibility. */
+ public defaultSymbolVisibility: (google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility|keyof typeof google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility);
+
+ /**
+ * Creates a new FeatureSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FeatureSet instance
+ */
+ public static create(properties?: google.protobuf.IFeatureSet): google.protobuf.FeatureSet;
+
+ /**
+ * Encodes the specified FeatureSet message. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages.
+ * @param message FeatureSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFeatureSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FeatureSet message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages.
+ * @param message FeatureSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFeatureSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FeatureSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FeatureSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FeatureSet;
+
+ /**
+ * Decodes a FeatureSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FeatureSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FeatureSet;
+
+ /**
+ * Verifies a FeatureSet message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FeatureSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FeatureSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSet;
+
+ /**
+ * Creates a plain object from a FeatureSet message. Also converts values to other types if specified.
+ * @param message FeatureSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FeatureSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FeatureSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FeatureSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FeatureSet {
+
+ /** FieldPresence enum. */
+ enum FieldPresence {
+ FIELD_PRESENCE_UNKNOWN = 0,
+ EXPLICIT = 1,
+ IMPLICIT = 2,
+ LEGACY_REQUIRED = 3
+ }
+
+ /** EnumType enum. */
+ enum EnumType {
+ ENUM_TYPE_UNKNOWN = 0,
+ OPEN = 1,
+ CLOSED = 2
+ }
+
+ /** RepeatedFieldEncoding enum. */
+ enum RepeatedFieldEncoding {
+ REPEATED_FIELD_ENCODING_UNKNOWN = 0,
+ PACKED = 1,
+ EXPANDED = 2
+ }
+
+ /** Utf8Validation enum. */
+ enum Utf8Validation {
+ UTF8_VALIDATION_UNKNOWN = 0,
+ VERIFY = 2,
+ NONE = 3
+ }
+
+ /** MessageEncoding enum. */
+ enum MessageEncoding {
+ MESSAGE_ENCODING_UNKNOWN = 0,
+ LENGTH_PREFIXED = 1,
+ DELIMITED = 2
+ }
+
+ /** JsonFormat enum. */
+ enum JsonFormat {
+ JSON_FORMAT_UNKNOWN = 0,
+ ALLOW = 1,
+ LEGACY_BEST_EFFORT = 2
+ }
+
+ /** EnforceNamingStyle enum. */
+ enum EnforceNamingStyle {
+ ENFORCE_NAMING_STYLE_UNKNOWN = 0,
+ STYLE2024 = 1,
+ STYLE_LEGACY = 2
+ }
+
+ /** Properties of a VisibilityFeature. */
+ interface IVisibilityFeature {
+ }
+
+ /** Represents a VisibilityFeature. */
+ class VisibilityFeature implements IVisibilityFeature {
+
+ /**
+ * Constructs a new VisibilityFeature.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.FeatureSet.IVisibilityFeature);
+
+ /**
+ * Creates a new VisibilityFeature instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VisibilityFeature instance
+ */
+ public static create(properties?: google.protobuf.FeatureSet.IVisibilityFeature): google.protobuf.FeatureSet.VisibilityFeature;
+
+ /**
+ * Encodes the specified VisibilityFeature message. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages.
+ * @param message VisibilityFeature message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.FeatureSet.IVisibilityFeature, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VisibilityFeature message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages.
+ * @param message VisibilityFeature message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.FeatureSet.IVisibilityFeature, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VisibilityFeature message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VisibilityFeature
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FeatureSet.VisibilityFeature;
+
+ /**
+ * Decodes a VisibilityFeature message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VisibilityFeature
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FeatureSet.VisibilityFeature;
+
+ /**
+ * Verifies a VisibilityFeature message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VisibilityFeature message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VisibilityFeature
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSet.VisibilityFeature;
+
+ /**
+ * Creates a plain object from a VisibilityFeature message. Also converts values to other types if specified.
+ * @param message VisibilityFeature
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FeatureSet.VisibilityFeature, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VisibilityFeature to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VisibilityFeature
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace VisibilityFeature {
+
+ /** DefaultSymbolVisibility enum. */
+ enum DefaultSymbolVisibility {
+ DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0,
+ EXPORT_ALL = 1,
+ EXPORT_TOP_LEVEL = 2,
+ LOCAL_ALL = 3,
+ STRICT = 4
+ }
+ }
+ }
+
+ /** Properties of a FeatureSetDefaults. */
+ interface IFeatureSetDefaults {
+
+ /** FeatureSetDefaults defaults */
+ defaults?: (google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault[]|null);
+
+ /** FeatureSetDefaults minimumEdition */
+ minimumEdition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+
+ /** FeatureSetDefaults maximumEdition */
+ maximumEdition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+ }
+
+ /** Represents a FeatureSetDefaults. */
+ class FeatureSetDefaults implements IFeatureSetDefaults {
+
+ /**
+ * Constructs a new FeatureSetDefaults.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFeatureSetDefaults);
+
+ /** FeatureSetDefaults defaults. */
+ public defaults: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault[];
+
+ /** FeatureSetDefaults minimumEdition. */
+ public minimumEdition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /** FeatureSetDefaults maximumEdition. */
+ public maximumEdition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /**
+ * Creates a new FeatureSetDefaults instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FeatureSetDefaults instance
+ */
+ public static create(properties?: google.protobuf.IFeatureSetDefaults): google.protobuf.FeatureSetDefaults;
+
+ /**
+ * Encodes the specified FeatureSetDefaults message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages.
+ * @param message FeatureSetDefaults message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFeatureSetDefaults, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FeatureSetDefaults message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages.
+ * @param message FeatureSetDefaults message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFeatureSetDefaults, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FeatureSetDefaults message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FeatureSetDefaults
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FeatureSetDefaults;
+
+ /**
+ * Decodes a FeatureSetDefaults message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FeatureSetDefaults
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FeatureSetDefaults;
+
+ /**
+ * Verifies a FeatureSetDefaults message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FeatureSetDefaults message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FeatureSetDefaults
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSetDefaults;
+
+ /**
+ * Creates a plain object from a FeatureSetDefaults message. Also converts values to other types if specified.
+ * @param message FeatureSetDefaults
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FeatureSetDefaults, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FeatureSetDefaults to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FeatureSetDefaults
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FeatureSetDefaults {
+
+ /** Properties of a FeatureSetEditionDefault. */
+ interface IFeatureSetEditionDefault {
+
+ /** FeatureSetEditionDefault edition */
+ edition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+
+ /** FeatureSetEditionDefault overridableFeatures */
+ overridableFeatures?: (google.protobuf.IFeatureSet|null);
+
+ /** FeatureSetEditionDefault fixedFeatures */
+ fixedFeatures?: (google.protobuf.IFeatureSet|null);
+ }
+
+ /** Represents a FeatureSetEditionDefault. */
+ class FeatureSetEditionDefault implements IFeatureSetEditionDefault {
+
+ /**
+ * Constructs a new FeatureSetEditionDefault.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault);
+
+ /** FeatureSetEditionDefault edition. */
+ public edition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /** FeatureSetEditionDefault overridableFeatures. */
+ public overridableFeatures?: (google.protobuf.IFeatureSet|null);
+
+ /** FeatureSetEditionDefault fixedFeatures. */
+ public fixedFeatures?: (google.protobuf.IFeatureSet|null);
+
+ /**
+ * Creates a new FeatureSetEditionDefault instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FeatureSetEditionDefault instance
+ */
+ public static create(properties?: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
+
+ /**
+ * Encodes the specified FeatureSetEditionDefault message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages.
+ * @param message FeatureSetEditionDefault message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FeatureSetEditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages.
+ * @param message FeatureSetEditionDefault message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FeatureSetEditionDefault message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FeatureSetEditionDefault
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
+
+ /**
+ * Decodes a FeatureSetEditionDefault message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FeatureSetEditionDefault
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
+
+ /**
+ * Verifies a FeatureSetEditionDefault message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FeatureSetEditionDefault message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FeatureSetEditionDefault
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
+
+ /**
+ * Creates a plain object from a FeatureSetEditionDefault message. Also converts values to other types if specified.
+ * @param message FeatureSetEditionDefault
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FeatureSetEditionDefault to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FeatureSetEditionDefault
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a SourceCodeInfo. */
+ interface ISourceCodeInfo {
+
+ /** SourceCodeInfo location */
+ location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
+ }
+
+ /** Represents a SourceCodeInfo. */
+ class SourceCodeInfo implements ISourceCodeInfo {
+
+ /**
+ * Constructs a new SourceCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ISourceCodeInfo);
+
+ /** SourceCodeInfo location. */
+ public location: google.protobuf.SourceCodeInfo.ILocation[];
+
+ /**
+ * Creates a new SourceCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SourceCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Verifies a SourceCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SourceCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
+ * @param message SourceCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SourceCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SourceCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SourceCodeInfo {
+
+ /** Properties of a Location. */
+ interface ILocation {
+
+ /** Location path */
+ path?: (number[]|null);
+
+ /** Location span */
+ span?: (number[]|null);
+
+ /** Location leadingComments */
+ leadingComments?: (string|null);
+
+ /** Location trailingComments */
+ trailingComments?: (string|null);
+
+ /** Location leadingDetachedComments */
+ leadingDetachedComments?: (string[]|null);
+ }
+
+ /** Represents a Location. */
+ class Location implements ILocation {
+
+ /**
+ * Constructs a new Location.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
+
+ /** Location path. */
+ public path: number[];
+
+ /** Location span. */
+ public span: number[];
+
+ /** Location leadingComments. */
+ public leadingComments: string;
+
+ /** Location trailingComments. */
+ public trailingComments: string;
+
+ /** Location leadingDetachedComments. */
+ public leadingDetachedComments: string[];
+
+ /**
+ * Creates a new Location instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Location instance
+ */
+ public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Verifies a Location message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Location message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Location
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Creates a plain object from a Location message. Also converts values to other types if specified.
+ * @param message Location
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Location to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Location
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a GeneratedCodeInfo. */
+ interface IGeneratedCodeInfo {
+
+ /** GeneratedCodeInfo annotation */
+ annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
+ }
+
+ /** Represents a GeneratedCodeInfo. */
+ class GeneratedCodeInfo implements IGeneratedCodeInfo {
+
+ /**
+ * Constructs a new GeneratedCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IGeneratedCodeInfo);
+
+ /** GeneratedCodeInfo annotation. */
+ public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
+
+ /**
+ * Creates a new GeneratedCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GeneratedCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Verifies a GeneratedCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GeneratedCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
+ * @param message GeneratedCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GeneratedCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GeneratedCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace GeneratedCodeInfo {
+
+ /** Properties of an Annotation. */
+ interface IAnnotation {
+
+ /** Annotation path */
+ path?: (number[]|null);
+
+ /** Annotation sourceFile */
+ sourceFile?: (string|null);
+
+ /** Annotation begin */
+ begin?: (number|null);
+
+ /** Annotation end */
+ end?: (number|null);
+
+ /** Annotation semantic */
+ semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null);
+ }
+
+ /** Represents an Annotation. */
+ class Annotation implements IAnnotation {
+
+ /**
+ * Constructs a new Annotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
+
+ /** Annotation path. */
+ public path: number[];
+
+ /** Annotation sourceFile. */
+ public sourceFile: string;
+
+ /** Annotation begin. */
+ public begin: number;
+
+ /** Annotation end. */
+ public end: number;
+
+ /** Annotation semantic. */
+ public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic);
+
+ /**
+ * Creates a new Annotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Annotation instance
+ */
+ public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Verifies an Annotation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Annotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Creates a plain object from an Annotation message. Also converts values to other types if specified.
+ * @param message Annotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Annotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Annotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Annotation {
+
+ /** Semantic enum. */
+ enum Semantic {
+ NONE = 0,
+ SET = 1,
+ ALIAS = 2
+ }
+ }
+ }
+
+ /** SymbolVisibility enum. */
+ enum SymbolVisibility {
+ VISIBILITY_UNSET = 0,
+ VISIBILITY_LOCAL = 1,
+ VISIBILITY_EXPORT = 2
+ }
+
+ /** Properties of a Timestamp. */
+ interface ITimestamp {
+
+ /** Timestamp seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Timestamp nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Timestamp. */
+ class Timestamp implements ITimestamp {
+
+ /**
+ * Constructs a new Timestamp.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ITimestamp);
+
+ /** Timestamp seconds. */
+ public seconds: (number|Long|string);
+
+ /** Timestamp nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Timestamp instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Timestamp instance
+ */
+ public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
+
+ /**
+ * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Timestamp
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Timestamp
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
+
+ /**
+ * Verifies a Timestamp message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Timestamp
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
+
+ /**
+ * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
+ * @param message Timestamp
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Timestamp to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Timestamp
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Duration. */
+ interface IDuration {
+
+ /** Duration seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Duration nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Duration. */
+ class Duration implements IDuration {
+
+ /**
+ * Constructs a new Duration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDuration);
+
+ /** Duration seconds. */
+ public seconds: (number|Long|string);
+
+ /** Duration nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Duration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Duration instance
+ */
+ public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration;
+
+ /**
+ * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Duration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Duration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration;
+
+ /**
+ * Decodes a Duration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Duration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration;
+
+ /**
+ * Verifies a Duration message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Duration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Duration
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Duration;
+
+ /**
+ * Creates a plain object from a Duration message. Also converts values to other types if specified.
+ * @param message Duration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Duration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Duration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+}
diff --git a/packages/google-cloud-error-reporting-api/protos/protos.js b/packages/google-cloud-error-reporting-api/protos/protos.js
new file mode 100644
index 000000000000..f12d4ea05bdc
--- /dev/null
+++ b/packages/google-cloud-error-reporting-api/protos/protos.js
@@ -0,0 +1,28175 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
+(function(global, factory) { /* global define, require, module */
+
+ /* AMD */ if (typeof define === 'function' && define.amd)
+ define(["protobufjs/minimal"], factory);
+
+ /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports)
+ module.exports = factory(require("google-gax/build/src/protobuf").protobufMinimal);
+
+})(this, function($protobuf) {
+ "use strict";
+
+ // Common aliases
+ var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;
+
+ // Exported root namespace
+ var $root = $protobuf.roots["_google_cloud_error_reporting_api_protos"] || ($protobuf.roots["_google_cloud_error_reporting_api_protos"] = {});
+
+ $root.google = (function() {
+
+ /**
+ * Namespace google.
+ * @exports google
+ * @namespace
+ */
+ var google = {};
+
+ google.devtools = (function() {
+
+ /**
+ * Namespace devtools.
+ * @memberof google
+ * @namespace
+ */
+ var devtools = {};
+
+ devtools.clouderrorreporting = (function() {
+
+ /**
+ * Namespace clouderrorreporting.
+ * @memberof google.devtools
+ * @namespace
+ */
+ var clouderrorreporting = {};
+
+ clouderrorreporting.v1beta1 = (function() {
+
+ /**
+ * Namespace v1beta1.
+ * @memberof google.devtools.clouderrorreporting
+ * @namespace
+ */
+ var v1beta1 = {};
+
+ v1beta1.ErrorGroup = (function() {
+
+ /**
+ * Properties of an ErrorGroup.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @interface IErrorGroup
+ * @property {string|null} [name] ErrorGroup name
+ * @property {string|null} [groupId] ErrorGroup groupId
+ * @property {Array.|null} [trackingIssues] ErrorGroup trackingIssues
+ * @property {google.devtools.clouderrorreporting.v1beta1.ResolutionStatus|null} [resolutionStatus] ErrorGroup resolutionStatus
+ */
+
+ /**
+ * Constructs a new ErrorGroup.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @classdesc Represents an ErrorGroup.
+ * @implements IErrorGroup
+ * @constructor
+ * @param {google.devtools.clouderrorreporting.v1beta1.IErrorGroup=} [properties] Properties to set
+ */
+ function ErrorGroup(properties) {
+ this.trackingIssues = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ErrorGroup name.
+ * @member {string} name
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroup
+ * @instance
+ */
+ ErrorGroup.prototype.name = "";
+
+ /**
+ * ErrorGroup groupId.
+ * @member {string} groupId
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroup
+ * @instance
+ */
+ ErrorGroup.prototype.groupId = "";
+
+ /**
+ * ErrorGroup trackingIssues.
+ * @member {Array.} trackingIssues
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroup
+ * @instance
+ */
+ ErrorGroup.prototype.trackingIssues = $util.emptyArray;
+
+ /**
+ * ErrorGroup resolutionStatus.
+ * @member {google.devtools.clouderrorreporting.v1beta1.ResolutionStatus} resolutionStatus
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroup
+ * @instance
+ */
+ ErrorGroup.prototype.resolutionStatus = 0;
+
+ /**
+ * Creates a new ErrorGroup instance using the specified properties.
+ * @function create
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroup
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IErrorGroup=} [properties] Properties to set
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ErrorGroup} ErrorGroup instance
+ */
+ ErrorGroup.create = function create(properties) {
+ return new ErrorGroup(properties);
+ };
+
+ /**
+ * Encodes the specified ErrorGroup message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ErrorGroup.verify|verify} messages.
+ * @function encode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroup
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IErrorGroup} message ErrorGroup message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ErrorGroup.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.groupId != null && Object.hasOwnProperty.call(message, "groupId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.groupId);
+ if (message.trackingIssues != null && message.trackingIssues.length)
+ for (var i = 0; i < message.trackingIssues.length; ++i)
+ $root.google.devtools.clouderrorreporting.v1beta1.TrackingIssue.encode(message.trackingIssues[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim();
+ if (message.resolutionStatus != null && Object.hasOwnProperty.call(message, "resolutionStatus"))
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.resolutionStatus);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ErrorGroup message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ErrorGroup.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroup
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IErrorGroup} message ErrorGroup message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ErrorGroup.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes an ErrorGroup message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroup
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ErrorGroup} ErrorGroup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ErrorGroup.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.clouderrorreporting.v1beta1.ErrorGroup();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.groupId = reader.string();
+ break;
+ }
+ case 3: {
+ if (!(message.trackingIssues && message.trackingIssues.length))
+ message.trackingIssues = [];
+ message.trackingIssues.push($root.google.devtools.clouderrorreporting.v1beta1.TrackingIssue.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 5: {
+ message.resolutionStatus = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an ErrorGroup message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroup
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ErrorGroup} ErrorGroup
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ErrorGroup.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an ErrorGroup message.
+ * @function verify
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroup
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ErrorGroup.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.groupId != null && Object.hasOwnProperty.call(message, "groupId"))
+ if (!$util.isString(message.groupId))
+ return "groupId: string expected";
+ if (message.trackingIssues != null && Object.hasOwnProperty.call(message, "trackingIssues")) {
+ if (!Array.isArray(message.trackingIssues))
+ return "trackingIssues: array expected";
+ for (var i = 0; i < message.trackingIssues.length; ++i) {
+ var error = $root.google.devtools.clouderrorreporting.v1beta1.TrackingIssue.verify(message.trackingIssues[i], long + 1);
+ if (error)
+ return "trackingIssues." + error;
+ }
+ }
+ if (message.resolutionStatus != null && Object.hasOwnProperty.call(message, "resolutionStatus"))
+ switch (message.resolutionStatus) {
+ default:
+ return "resolutionStatus: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an ErrorGroup message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroup
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ErrorGroup} ErrorGroup
+ */
+ ErrorGroup.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.devtools.clouderrorreporting.v1beta1.ErrorGroup)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ErrorGroup: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.devtools.clouderrorreporting.v1beta1.ErrorGroup();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.groupId != null)
+ message.groupId = String(object.groupId);
+ if (object.trackingIssues) {
+ if (!Array.isArray(object.trackingIssues))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ErrorGroup.trackingIssues: array expected");
+ message.trackingIssues = [];
+ for (var i = 0; i < object.trackingIssues.length; ++i) {
+ if (!$util.isObject(object.trackingIssues[i]))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ErrorGroup.trackingIssues: object expected");
+ message.trackingIssues[i] = $root.google.devtools.clouderrorreporting.v1beta1.TrackingIssue.fromObject(object.trackingIssues[i], long + 1);
+ }
+ }
+ switch (object.resolutionStatus) {
+ default:
+ if (typeof object.resolutionStatus === "number") {
+ message.resolutionStatus = object.resolutionStatus;
+ break;
+ }
+ break;
+ case "RESOLUTION_STATUS_UNSPECIFIED":
+ case 0:
+ message.resolutionStatus = 0;
+ break;
+ case "OPEN":
+ case 1:
+ message.resolutionStatus = 1;
+ break;
+ case "ACKNOWLEDGED":
+ case 2:
+ message.resolutionStatus = 2;
+ break;
+ case "RESOLVED":
+ case 3:
+ message.resolutionStatus = 3;
+ break;
+ case "MUTED":
+ case 4:
+ message.resolutionStatus = 4;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an ErrorGroup message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroup
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.ErrorGroup} message ErrorGroup
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ErrorGroup.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.trackingIssues = [];
+ if (options.defaults) {
+ object.name = "";
+ object.groupId = "";
+ object.resolutionStatus = options.enums === String ? "RESOLUTION_STATUS_UNSPECIFIED" : 0;
+ }
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ object.name = message.name;
+ if (message.groupId != null && Object.hasOwnProperty.call(message, "groupId"))
+ object.groupId = message.groupId;
+ if (message.trackingIssues && message.trackingIssues.length) {
+ object.trackingIssues = [];
+ for (var j = 0; j < message.trackingIssues.length; ++j)
+ object.trackingIssues[j] = $root.google.devtools.clouderrorreporting.v1beta1.TrackingIssue.toObject(message.trackingIssues[j], options, q + 1);
+ }
+ if (message.resolutionStatus != null && Object.hasOwnProperty.call(message, "resolutionStatus"))
+ object.resolutionStatus = options.enums === String ? $root.google.devtools.clouderrorreporting.v1beta1.ResolutionStatus[message.resolutionStatus] === undefined ? message.resolutionStatus : $root.google.devtools.clouderrorreporting.v1beta1.ResolutionStatus[message.resolutionStatus] : message.resolutionStatus;
+ return object;
+ };
+
+ /**
+ * Converts this ErrorGroup to JSON.
+ * @function toJSON
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroup
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ErrorGroup.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ErrorGroup
+ * @function getTypeUrl
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroup
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ErrorGroup.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.devtools.clouderrorreporting.v1beta1.ErrorGroup";
+ };
+
+ return ErrorGroup;
+ })();
+
+ v1beta1.TrackingIssue = (function() {
+
+ /**
+ * Properties of a TrackingIssue.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @interface ITrackingIssue
+ * @property {string|null} [url] TrackingIssue url
+ */
+
+ /**
+ * Constructs a new TrackingIssue.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @classdesc Represents a TrackingIssue.
+ * @implements ITrackingIssue
+ * @constructor
+ * @param {google.devtools.clouderrorreporting.v1beta1.ITrackingIssue=} [properties] Properties to set
+ */
+ function TrackingIssue(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * TrackingIssue url.
+ * @member {string} url
+ * @memberof google.devtools.clouderrorreporting.v1beta1.TrackingIssue
+ * @instance
+ */
+ TrackingIssue.prototype.url = "";
+
+ /**
+ * Creates a new TrackingIssue instance using the specified properties.
+ * @function create
+ * @memberof google.devtools.clouderrorreporting.v1beta1.TrackingIssue
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.ITrackingIssue=} [properties] Properties to set
+ * @returns {google.devtools.clouderrorreporting.v1beta1.TrackingIssue} TrackingIssue instance
+ */
+ TrackingIssue.create = function create(properties) {
+ return new TrackingIssue(properties);
+ };
+
+ /**
+ * Encodes the specified TrackingIssue message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.TrackingIssue.verify|verify} messages.
+ * @function encode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.TrackingIssue
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.ITrackingIssue} message TrackingIssue message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TrackingIssue.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.url != null && Object.hasOwnProperty.call(message, "url"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.url);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TrackingIssue message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.TrackingIssue.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.TrackingIssue
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.ITrackingIssue} message TrackingIssue message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TrackingIssue.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a TrackingIssue message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.TrackingIssue
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.devtools.clouderrorreporting.v1beta1.TrackingIssue} TrackingIssue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TrackingIssue.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.clouderrorreporting.v1beta1.TrackingIssue();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.url = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TrackingIssue message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.TrackingIssue
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.devtools.clouderrorreporting.v1beta1.TrackingIssue} TrackingIssue
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TrackingIssue.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TrackingIssue message.
+ * @function verify
+ * @memberof google.devtools.clouderrorreporting.v1beta1.TrackingIssue
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TrackingIssue.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.url != null && Object.hasOwnProperty.call(message, "url"))
+ if (!$util.isString(message.url))
+ return "url: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a TrackingIssue message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.TrackingIssue
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.devtools.clouderrorreporting.v1beta1.TrackingIssue} TrackingIssue
+ */
+ TrackingIssue.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.devtools.clouderrorreporting.v1beta1.TrackingIssue)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.TrackingIssue: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.devtools.clouderrorreporting.v1beta1.TrackingIssue();
+ if (object.url != null)
+ message.url = String(object.url);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a TrackingIssue message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.TrackingIssue
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.TrackingIssue} message TrackingIssue
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TrackingIssue.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults)
+ object.url = "";
+ if (message.url != null && Object.hasOwnProperty.call(message, "url"))
+ object.url = message.url;
+ return object;
+ };
+
+ /**
+ * Converts this TrackingIssue to JSON.
+ * @function toJSON
+ * @memberof google.devtools.clouderrorreporting.v1beta1.TrackingIssue
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TrackingIssue.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TrackingIssue
+ * @function getTypeUrl
+ * @memberof google.devtools.clouderrorreporting.v1beta1.TrackingIssue
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TrackingIssue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.devtools.clouderrorreporting.v1beta1.TrackingIssue";
+ };
+
+ return TrackingIssue;
+ })();
+
+ v1beta1.ErrorEvent = (function() {
+
+ /**
+ * Properties of an ErrorEvent.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @interface IErrorEvent
+ * @property {google.protobuf.ITimestamp|null} [eventTime] ErrorEvent eventTime
+ * @property {google.devtools.clouderrorreporting.v1beta1.IServiceContext|null} [serviceContext] ErrorEvent serviceContext
+ * @property {string|null} [message] ErrorEvent message
+ * @property {google.devtools.clouderrorreporting.v1beta1.IErrorContext|null} [context] ErrorEvent context
+ */
+
+ /**
+ * Constructs a new ErrorEvent.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @classdesc Represents an ErrorEvent.
+ * @implements IErrorEvent
+ * @constructor
+ * @param {google.devtools.clouderrorreporting.v1beta1.IErrorEvent=} [properties] Properties to set
+ */
+ function ErrorEvent(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ErrorEvent eventTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} eventTime
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorEvent
+ * @instance
+ */
+ ErrorEvent.prototype.eventTime = null;
+
+ /**
+ * ErrorEvent serviceContext.
+ * @member {google.devtools.clouderrorreporting.v1beta1.IServiceContext|null|undefined} serviceContext
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorEvent
+ * @instance
+ */
+ ErrorEvent.prototype.serviceContext = null;
+
+ /**
+ * ErrorEvent message.
+ * @member {string} message
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorEvent
+ * @instance
+ */
+ ErrorEvent.prototype.message = "";
+
+ /**
+ * ErrorEvent context.
+ * @member {google.devtools.clouderrorreporting.v1beta1.IErrorContext|null|undefined} context
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorEvent
+ * @instance
+ */
+ ErrorEvent.prototype.context = null;
+
+ /**
+ * Creates a new ErrorEvent instance using the specified properties.
+ * @function create
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorEvent
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IErrorEvent=} [properties] Properties to set
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ErrorEvent} ErrorEvent instance
+ */
+ ErrorEvent.create = function create(properties) {
+ return new ErrorEvent(properties);
+ };
+
+ /**
+ * Encodes the specified ErrorEvent message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ErrorEvent.verify|verify} messages.
+ * @function encode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorEvent
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IErrorEvent} message ErrorEvent message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ErrorEvent.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.eventTime != null && Object.hasOwnProperty.call(message, "eventTime"))
+ $root.google.protobuf.Timestamp.encode(message.eventTime, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ if (message.serviceContext != null && Object.hasOwnProperty.call(message, "serviceContext"))
+ $root.google.devtools.clouderrorreporting.v1beta1.ServiceContext.encode(message.serviceContext, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim();
+ if (message.message != null && Object.hasOwnProperty.call(message, "message"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.message);
+ if (message.context != null && Object.hasOwnProperty.call(message, "context"))
+ $root.google.devtools.clouderrorreporting.v1beta1.ErrorContext.encode(message.context, writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ErrorEvent message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ErrorEvent.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorEvent
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IErrorEvent} message ErrorEvent message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ErrorEvent.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes an ErrorEvent message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorEvent
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ErrorEvent} ErrorEvent
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ErrorEvent.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.clouderrorreporting.v1beta1.ErrorEvent();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.eventTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 2: {
+ message.serviceContext = $root.google.devtools.clouderrorreporting.v1beta1.ServiceContext.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 3: {
+ message.message = reader.string();
+ break;
+ }
+ case 5: {
+ message.context = $root.google.devtools.clouderrorreporting.v1beta1.ErrorContext.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an ErrorEvent message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorEvent
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ErrorEvent} ErrorEvent
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ErrorEvent.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an ErrorEvent message.
+ * @function verify
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorEvent
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ErrorEvent.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.eventTime != null && Object.hasOwnProperty.call(message, "eventTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.eventTime, long + 1);
+ if (error)
+ return "eventTime." + error;
+ }
+ if (message.serviceContext != null && Object.hasOwnProperty.call(message, "serviceContext")) {
+ var error = $root.google.devtools.clouderrorreporting.v1beta1.ServiceContext.verify(message.serviceContext, long + 1);
+ if (error)
+ return "serviceContext." + error;
+ }
+ if (message.message != null && Object.hasOwnProperty.call(message, "message"))
+ if (!$util.isString(message.message))
+ return "message: string expected";
+ if (message.context != null && Object.hasOwnProperty.call(message, "context")) {
+ var error = $root.google.devtools.clouderrorreporting.v1beta1.ErrorContext.verify(message.context, long + 1);
+ if (error)
+ return "context." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an ErrorEvent message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorEvent
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ErrorEvent} ErrorEvent
+ */
+ ErrorEvent.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.devtools.clouderrorreporting.v1beta1.ErrorEvent)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ErrorEvent: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.devtools.clouderrorreporting.v1beta1.ErrorEvent();
+ if (object.eventTime != null) {
+ if (!$util.isObject(object.eventTime))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ErrorEvent.eventTime: object expected");
+ message.eventTime = $root.google.protobuf.Timestamp.fromObject(object.eventTime, long + 1);
+ }
+ if (object.serviceContext != null) {
+ if (!$util.isObject(object.serviceContext))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ErrorEvent.serviceContext: object expected");
+ message.serviceContext = $root.google.devtools.clouderrorreporting.v1beta1.ServiceContext.fromObject(object.serviceContext, long + 1);
+ }
+ if (object.message != null)
+ message.message = String(object.message);
+ if (object.context != null) {
+ if (!$util.isObject(object.context))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ErrorEvent.context: object expected");
+ message.context = $root.google.devtools.clouderrorreporting.v1beta1.ErrorContext.fromObject(object.context, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an ErrorEvent message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorEvent
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.ErrorEvent} message ErrorEvent
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ErrorEvent.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.eventTime = null;
+ object.serviceContext = null;
+ object.message = "";
+ object.context = null;
+ }
+ if (message.eventTime != null && Object.hasOwnProperty.call(message, "eventTime"))
+ object.eventTime = $root.google.protobuf.Timestamp.toObject(message.eventTime, options, q + 1);
+ if (message.serviceContext != null && Object.hasOwnProperty.call(message, "serviceContext"))
+ object.serviceContext = $root.google.devtools.clouderrorreporting.v1beta1.ServiceContext.toObject(message.serviceContext, options, q + 1);
+ if (message.message != null && Object.hasOwnProperty.call(message, "message"))
+ object.message = message.message;
+ if (message.context != null && Object.hasOwnProperty.call(message, "context"))
+ object.context = $root.google.devtools.clouderrorreporting.v1beta1.ErrorContext.toObject(message.context, options, q + 1);
+ return object;
+ };
+
+ /**
+ * Converts this ErrorEvent to JSON.
+ * @function toJSON
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorEvent
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ErrorEvent.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ErrorEvent
+ * @function getTypeUrl
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorEvent
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ErrorEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.devtools.clouderrorreporting.v1beta1.ErrorEvent";
+ };
+
+ return ErrorEvent;
+ })();
+
+ v1beta1.ServiceContext = (function() {
+
+ /**
+ * Properties of a ServiceContext.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @interface IServiceContext
+ * @property {string|null} [service] ServiceContext service
+ * @property {string|null} [version] ServiceContext version
+ * @property {string|null} [resourceType] ServiceContext resourceType
+ */
+
+ /**
+ * Constructs a new ServiceContext.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @classdesc Represents a ServiceContext.
+ * @implements IServiceContext
+ * @constructor
+ * @param {google.devtools.clouderrorreporting.v1beta1.IServiceContext=} [properties] Properties to set
+ */
+ function ServiceContext(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ServiceContext service.
+ * @member {string} service
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ServiceContext
+ * @instance
+ */
+ ServiceContext.prototype.service = "";
+
+ /**
+ * ServiceContext version.
+ * @member {string} version
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ServiceContext
+ * @instance
+ */
+ ServiceContext.prototype.version = "";
+
+ /**
+ * ServiceContext resourceType.
+ * @member {string} resourceType
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ServiceContext
+ * @instance
+ */
+ ServiceContext.prototype.resourceType = "";
+
+ /**
+ * Creates a new ServiceContext instance using the specified properties.
+ * @function create
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ServiceContext
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IServiceContext=} [properties] Properties to set
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ServiceContext} ServiceContext instance
+ */
+ ServiceContext.create = function create(properties) {
+ return new ServiceContext(properties);
+ };
+
+ /**
+ * Encodes the specified ServiceContext message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ServiceContext.verify|verify} messages.
+ * @function encode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ServiceContext
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IServiceContext} message ServiceContext message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ServiceContext.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.service != null && Object.hasOwnProperty.call(message, "service"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.service);
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.version);
+ if (message.resourceType != null && Object.hasOwnProperty.call(message, "resourceType"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.resourceType);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ServiceContext message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ServiceContext.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ServiceContext
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IServiceContext} message ServiceContext message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ServiceContext.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a ServiceContext message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ServiceContext
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ServiceContext} ServiceContext
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ServiceContext.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.clouderrorreporting.v1beta1.ServiceContext();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 2: {
+ message.service = reader.string();
+ break;
+ }
+ case 3: {
+ message.version = reader.string();
+ break;
+ }
+ case 4: {
+ message.resourceType = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ServiceContext message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ServiceContext
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ServiceContext} ServiceContext
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ServiceContext.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ServiceContext message.
+ * @function verify
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ServiceContext
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ServiceContext.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.service != null && Object.hasOwnProperty.call(message, "service"))
+ if (!$util.isString(message.service))
+ return "service: string expected";
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
+ if (!$util.isString(message.version))
+ return "version: string expected";
+ if (message.resourceType != null && Object.hasOwnProperty.call(message, "resourceType"))
+ if (!$util.isString(message.resourceType))
+ return "resourceType: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ServiceContext message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ServiceContext
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ServiceContext} ServiceContext
+ */
+ ServiceContext.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.devtools.clouderrorreporting.v1beta1.ServiceContext)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ServiceContext: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.devtools.clouderrorreporting.v1beta1.ServiceContext();
+ if (object.service != null)
+ message.service = String(object.service);
+ if (object.version != null)
+ message.version = String(object.version);
+ if (object.resourceType != null)
+ message.resourceType = String(object.resourceType);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ServiceContext message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ServiceContext
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.ServiceContext} message ServiceContext
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ServiceContext.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.service = "";
+ object.version = "";
+ object.resourceType = "";
+ }
+ if (message.service != null && Object.hasOwnProperty.call(message, "service"))
+ object.service = message.service;
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
+ object.version = message.version;
+ if (message.resourceType != null && Object.hasOwnProperty.call(message, "resourceType"))
+ object.resourceType = message.resourceType;
+ return object;
+ };
+
+ /**
+ * Converts this ServiceContext to JSON.
+ * @function toJSON
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ServiceContext
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ServiceContext.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ServiceContext
+ * @function getTypeUrl
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ServiceContext
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ServiceContext.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.devtools.clouderrorreporting.v1beta1.ServiceContext";
+ };
+
+ return ServiceContext;
+ })();
+
+ v1beta1.ErrorContext = (function() {
+
+ /**
+ * Properties of an ErrorContext.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @interface IErrorContext
+ * @property {google.devtools.clouderrorreporting.v1beta1.IHttpRequestContext|null} [httpRequest] ErrorContext httpRequest
+ * @property {string|null} [user] ErrorContext user
+ * @property {google.devtools.clouderrorreporting.v1beta1.ISourceLocation|null} [reportLocation] ErrorContext reportLocation
+ */
+
+ /**
+ * Constructs a new ErrorContext.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @classdesc Represents an ErrorContext.
+ * @implements IErrorContext
+ * @constructor
+ * @param {google.devtools.clouderrorreporting.v1beta1.IErrorContext=} [properties] Properties to set
+ */
+ function ErrorContext(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ErrorContext httpRequest.
+ * @member {google.devtools.clouderrorreporting.v1beta1.IHttpRequestContext|null|undefined} httpRequest
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorContext
+ * @instance
+ */
+ ErrorContext.prototype.httpRequest = null;
+
+ /**
+ * ErrorContext user.
+ * @member {string} user
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorContext
+ * @instance
+ */
+ ErrorContext.prototype.user = "";
+
+ /**
+ * ErrorContext reportLocation.
+ * @member {google.devtools.clouderrorreporting.v1beta1.ISourceLocation|null|undefined} reportLocation
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorContext
+ * @instance
+ */
+ ErrorContext.prototype.reportLocation = null;
+
+ /**
+ * Creates a new ErrorContext instance using the specified properties.
+ * @function create
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorContext
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IErrorContext=} [properties] Properties to set
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ErrorContext} ErrorContext instance
+ */
+ ErrorContext.create = function create(properties) {
+ return new ErrorContext(properties);
+ };
+
+ /**
+ * Encodes the specified ErrorContext message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ErrorContext.verify|verify} messages.
+ * @function encode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorContext
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IErrorContext} message ErrorContext message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ErrorContext.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.httpRequest != null && Object.hasOwnProperty.call(message, "httpRequest"))
+ $root.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext.encode(message.httpRequest, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ if (message.user != null && Object.hasOwnProperty.call(message, "user"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.user);
+ if (message.reportLocation != null && Object.hasOwnProperty.call(message, "reportLocation"))
+ $root.google.devtools.clouderrorreporting.v1beta1.SourceLocation.encode(message.reportLocation, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ErrorContext message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ErrorContext.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorContext
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IErrorContext} message ErrorContext message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ErrorContext.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes an ErrorContext message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorContext
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ErrorContext} ErrorContext
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ErrorContext.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.clouderrorreporting.v1beta1.ErrorContext();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.httpRequest = $root.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 2: {
+ message.user = reader.string();
+ break;
+ }
+ case 3: {
+ message.reportLocation = $root.google.devtools.clouderrorreporting.v1beta1.SourceLocation.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an ErrorContext message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorContext
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ErrorContext} ErrorContext
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ErrorContext.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an ErrorContext message.
+ * @function verify
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorContext
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ErrorContext.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.httpRequest != null && Object.hasOwnProperty.call(message, "httpRequest")) {
+ var error = $root.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext.verify(message.httpRequest, long + 1);
+ if (error)
+ return "httpRequest." + error;
+ }
+ if (message.user != null && Object.hasOwnProperty.call(message, "user"))
+ if (!$util.isString(message.user))
+ return "user: string expected";
+ if (message.reportLocation != null && Object.hasOwnProperty.call(message, "reportLocation")) {
+ var error = $root.google.devtools.clouderrorreporting.v1beta1.SourceLocation.verify(message.reportLocation, long + 1);
+ if (error)
+ return "reportLocation." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an ErrorContext message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorContext
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ErrorContext} ErrorContext
+ */
+ ErrorContext.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.devtools.clouderrorreporting.v1beta1.ErrorContext)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ErrorContext: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.devtools.clouderrorreporting.v1beta1.ErrorContext();
+ if (object.httpRequest != null) {
+ if (!$util.isObject(object.httpRequest))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ErrorContext.httpRequest: object expected");
+ message.httpRequest = $root.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext.fromObject(object.httpRequest, long + 1);
+ }
+ if (object.user != null)
+ message.user = String(object.user);
+ if (object.reportLocation != null) {
+ if (!$util.isObject(object.reportLocation))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ErrorContext.reportLocation: object expected");
+ message.reportLocation = $root.google.devtools.clouderrorreporting.v1beta1.SourceLocation.fromObject(object.reportLocation, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an ErrorContext message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorContext
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.ErrorContext} message ErrorContext
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ErrorContext.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.httpRequest = null;
+ object.user = "";
+ object.reportLocation = null;
+ }
+ if (message.httpRequest != null && Object.hasOwnProperty.call(message, "httpRequest"))
+ object.httpRequest = $root.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext.toObject(message.httpRequest, options, q + 1);
+ if (message.user != null && Object.hasOwnProperty.call(message, "user"))
+ object.user = message.user;
+ if (message.reportLocation != null && Object.hasOwnProperty.call(message, "reportLocation"))
+ object.reportLocation = $root.google.devtools.clouderrorreporting.v1beta1.SourceLocation.toObject(message.reportLocation, options, q + 1);
+ return object;
+ };
+
+ /**
+ * Converts this ErrorContext to JSON.
+ * @function toJSON
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorContext
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ErrorContext.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ErrorContext
+ * @function getTypeUrl
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorContext
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ErrorContext.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.devtools.clouderrorreporting.v1beta1.ErrorContext";
+ };
+
+ return ErrorContext;
+ })();
+
+ v1beta1.HttpRequestContext = (function() {
+
+ /**
+ * Properties of a HttpRequestContext.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @interface IHttpRequestContext
+ * @property {string|null} [method] HttpRequestContext method
+ * @property {string|null} [url] HttpRequestContext url
+ * @property {string|null} [userAgent] HttpRequestContext userAgent
+ * @property {string|null} [referrer] HttpRequestContext referrer
+ * @property {number|null} [responseStatusCode] HttpRequestContext responseStatusCode
+ * @property {string|null} [remoteIp] HttpRequestContext remoteIp
+ */
+
+ /**
+ * Constructs a new HttpRequestContext.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @classdesc Represents a HttpRequestContext.
+ * @implements IHttpRequestContext
+ * @constructor
+ * @param {google.devtools.clouderrorreporting.v1beta1.IHttpRequestContext=} [properties] Properties to set
+ */
+ function HttpRequestContext(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * HttpRequestContext method.
+ * @member {string} method
+ * @memberof google.devtools.clouderrorreporting.v1beta1.HttpRequestContext
+ * @instance
+ */
+ HttpRequestContext.prototype.method = "";
+
+ /**
+ * HttpRequestContext url.
+ * @member {string} url
+ * @memberof google.devtools.clouderrorreporting.v1beta1.HttpRequestContext
+ * @instance
+ */
+ HttpRequestContext.prototype.url = "";
+
+ /**
+ * HttpRequestContext userAgent.
+ * @member {string} userAgent
+ * @memberof google.devtools.clouderrorreporting.v1beta1.HttpRequestContext
+ * @instance
+ */
+ HttpRequestContext.prototype.userAgent = "";
+
+ /**
+ * HttpRequestContext referrer.
+ * @member {string} referrer
+ * @memberof google.devtools.clouderrorreporting.v1beta1.HttpRequestContext
+ * @instance
+ */
+ HttpRequestContext.prototype.referrer = "";
+
+ /**
+ * HttpRequestContext responseStatusCode.
+ * @member {number} responseStatusCode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.HttpRequestContext
+ * @instance
+ */
+ HttpRequestContext.prototype.responseStatusCode = 0;
+
+ /**
+ * HttpRequestContext remoteIp.
+ * @member {string} remoteIp
+ * @memberof google.devtools.clouderrorreporting.v1beta1.HttpRequestContext
+ * @instance
+ */
+ HttpRequestContext.prototype.remoteIp = "";
+
+ /**
+ * Creates a new HttpRequestContext instance using the specified properties.
+ * @function create
+ * @memberof google.devtools.clouderrorreporting.v1beta1.HttpRequestContext
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IHttpRequestContext=} [properties] Properties to set
+ * @returns {google.devtools.clouderrorreporting.v1beta1.HttpRequestContext} HttpRequestContext instance
+ */
+ HttpRequestContext.create = function create(properties) {
+ return new HttpRequestContext(properties);
+ };
+
+ /**
+ * Encodes the specified HttpRequestContext message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.HttpRequestContext.verify|verify} messages.
+ * @function encode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.HttpRequestContext
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IHttpRequestContext} message HttpRequestContext message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ HttpRequestContext.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.method != null && Object.hasOwnProperty.call(message, "method"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.method);
+ if (message.url != null && Object.hasOwnProperty.call(message, "url"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.url);
+ if (message.userAgent != null && Object.hasOwnProperty.call(message, "userAgent"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.userAgent);
+ if (message.referrer != null && Object.hasOwnProperty.call(message, "referrer"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.referrer);
+ if (message.responseStatusCode != null && Object.hasOwnProperty.call(message, "responseStatusCode"))
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.responseStatusCode);
+ if (message.remoteIp != null && Object.hasOwnProperty.call(message, "remoteIp"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.remoteIp);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified HttpRequestContext message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.HttpRequestContext.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.HttpRequestContext
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IHttpRequestContext} message HttpRequestContext message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ HttpRequestContext.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a HttpRequestContext message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.HttpRequestContext
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.devtools.clouderrorreporting.v1beta1.HttpRequestContext} HttpRequestContext
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ HttpRequestContext.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.method = reader.string();
+ break;
+ }
+ case 2: {
+ message.url = reader.string();
+ break;
+ }
+ case 3: {
+ message.userAgent = reader.string();
+ break;
+ }
+ case 4: {
+ message.referrer = reader.string();
+ break;
+ }
+ case 5: {
+ message.responseStatusCode = reader.int32();
+ break;
+ }
+ case 6: {
+ message.remoteIp = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a HttpRequestContext message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.HttpRequestContext
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.devtools.clouderrorreporting.v1beta1.HttpRequestContext} HttpRequestContext
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ HttpRequestContext.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a HttpRequestContext message.
+ * @function verify
+ * @memberof google.devtools.clouderrorreporting.v1beta1.HttpRequestContext
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ HttpRequestContext.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.method != null && Object.hasOwnProperty.call(message, "method"))
+ if (!$util.isString(message.method))
+ return "method: string expected";
+ if (message.url != null && Object.hasOwnProperty.call(message, "url"))
+ if (!$util.isString(message.url))
+ return "url: string expected";
+ if (message.userAgent != null && Object.hasOwnProperty.call(message, "userAgent"))
+ if (!$util.isString(message.userAgent))
+ return "userAgent: string expected";
+ if (message.referrer != null && Object.hasOwnProperty.call(message, "referrer"))
+ if (!$util.isString(message.referrer))
+ return "referrer: string expected";
+ if (message.responseStatusCode != null && Object.hasOwnProperty.call(message, "responseStatusCode"))
+ if (!$util.isInteger(message.responseStatusCode))
+ return "responseStatusCode: integer expected";
+ if (message.remoteIp != null && Object.hasOwnProperty.call(message, "remoteIp"))
+ if (!$util.isString(message.remoteIp))
+ return "remoteIp: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a HttpRequestContext message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.HttpRequestContext
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.devtools.clouderrorreporting.v1beta1.HttpRequestContext} HttpRequestContext
+ */
+ HttpRequestContext.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.HttpRequestContext: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext();
+ if (object.method != null)
+ message.method = String(object.method);
+ if (object.url != null)
+ message.url = String(object.url);
+ if (object.userAgent != null)
+ message.userAgent = String(object.userAgent);
+ if (object.referrer != null)
+ message.referrer = String(object.referrer);
+ if (object.responseStatusCode != null)
+ message.responseStatusCode = object.responseStatusCode | 0;
+ if (object.remoteIp != null)
+ message.remoteIp = String(object.remoteIp);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a HttpRequestContext message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.HttpRequestContext
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.HttpRequestContext} message HttpRequestContext
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ HttpRequestContext.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.method = "";
+ object.url = "";
+ object.userAgent = "";
+ object.referrer = "";
+ object.responseStatusCode = 0;
+ object.remoteIp = "";
+ }
+ if (message.method != null && Object.hasOwnProperty.call(message, "method"))
+ object.method = message.method;
+ if (message.url != null && Object.hasOwnProperty.call(message, "url"))
+ object.url = message.url;
+ if (message.userAgent != null && Object.hasOwnProperty.call(message, "userAgent"))
+ object.userAgent = message.userAgent;
+ if (message.referrer != null && Object.hasOwnProperty.call(message, "referrer"))
+ object.referrer = message.referrer;
+ if (message.responseStatusCode != null && Object.hasOwnProperty.call(message, "responseStatusCode"))
+ object.responseStatusCode = message.responseStatusCode;
+ if (message.remoteIp != null && Object.hasOwnProperty.call(message, "remoteIp"))
+ object.remoteIp = message.remoteIp;
+ return object;
+ };
+
+ /**
+ * Converts this HttpRequestContext to JSON.
+ * @function toJSON
+ * @memberof google.devtools.clouderrorreporting.v1beta1.HttpRequestContext
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ HttpRequestContext.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for HttpRequestContext
+ * @function getTypeUrl
+ * @memberof google.devtools.clouderrorreporting.v1beta1.HttpRequestContext
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ HttpRequestContext.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.devtools.clouderrorreporting.v1beta1.HttpRequestContext";
+ };
+
+ return HttpRequestContext;
+ })();
+
+ v1beta1.SourceLocation = (function() {
+
+ /**
+ * Properties of a SourceLocation.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @interface ISourceLocation
+ * @property {string|null} [filePath] SourceLocation filePath
+ * @property {number|null} [lineNumber] SourceLocation lineNumber
+ * @property {string|null} [functionName] SourceLocation functionName
+ */
+
+ /**
+ * Constructs a new SourceLocation.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @classdesc Represents a SourceLocation.
+ * @implements ISourceLocation
+ * @constructor
+ * @param {google.devtools.clouderrorreporting.v1beta1.ISourceLocation=} [properties] Properties to set
+ */
+ function SourceLocation(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * SourceLocation filePath.
+ * @member {string} filePath
+ * @memberof google.devtools.clouderrorreporting.v1beta1.SourceLocation
+ * @instance
+ */
+ SourceLocation.prototype.filePath = "";
+
+ /**
+ * SourceLocation lineNumber.
+ * @member {number} lineNumber
+ * @memberof google.devtools.clouderrorreporting.v1beta1.SourceLocation
+ * @instance
+ */
+ SourceLocation.prototype.lineNumber = 0;
+
+ /**
+ * SourceLocation functionName.
+ * @member {string} functionName
+ * @memberof google.devtools.clouderrorreporting.v1beta1.SourceLocation
+ * @instance
+ */
+ SourceLocation.prototype.functionName = "";
+
+ /**
+ * Creates a new SourceLocation instance using the specified properties.
+ * @function create
+ * @memberof google.devtools.clouderrorreporting.v1beta1.SourceLocation
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.ISourceLocation=} [properties] Properties to set
+ * @returns {google.devtools.clouderrorreporting.v1beta1.SourceLocation} SourceLocation instance
+ */
+ SourceLocation.create = function create(properties) {
+ return new SourceLocation(properties);
+ };
+
+ /**
+ * Encodes the specified SourceLocation message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.SourceLocation.verify|verify} messages.
+ * @function encode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.SourceLocation
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.ISourceLocation} message SourceLocation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SourceLocation.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.filePath != null && Object.hasOwnProperty.call(message, "filePath"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.filePath);
+ if (message.lineNumber != null && Object.hasOwnProperty.call(message, "lineNumber"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.lineNumber);
+ if (message.functionName != null && Object.hasOwnProperty.call(message, "functionName"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.functionName);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SourceLocation message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.SourceLocation.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.SourceLocation
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.ISourceLocation} message SourceLocation message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SourceLocation.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a SourceLocation message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.SourceLocation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.devtools.clouderrorreporting.v1beta1.SourceLocation} SourceLocation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SourceLocation.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.clouderrorreporting.v1beta1.SourceLocation();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.filePath = reader.string();
+ break;
+ }
+ case 2: {
+ message.lineNumber = reader.int32();
+ break;
+ }
+ case 4: {
+ message.functionName = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SourceLocation message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.SourceLocation
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.devtools.clouderrorreporting.v1beta1.SourceLocation} SourceLocation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SourceLocation.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SourceLocation message.
+ * @function verify
+ * @memberof google.devtools.clouderrorreporting.v1beta1.SourceLocation
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SourceLocation.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.filePath != null && Object.hasOwnProperty.call(message, "filePath"))
+ if (!$util.isString(message.filePath))
+ return "filePath: string expected";
+ if (message.lineNumber != null && Object.hasOwnProperty.call(message, "lineNumber"))
+ if (!$util.isInteger(message.lineNumber))
+ return "lineNumber: integer expected";
+ if (message.functionName != null && Object.hasOwnProperty.call(message, "functionName"))
+ if (!$util.isString(message.functionName))
+ return "functionName: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a SourceLocation message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.SourceLocation
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.devtools.clouderrorreporting.v1beta1.SourceLocation} SourceLocation
+ */
+ SourceLocation.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.devtools.clouderrorreporting.v1beta1.SourceLocation)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.SourceLocation: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.devtools.clouderrorreporting.v1beta1.SourceLocation();
+ if (object.filePath != null)
+ message.filePath = String(object.filePath);
+ if (object.lineNumber != null)
+ message.lineNumber = object.lineNumber | 0;
+ if (object.functionName != null)
+ message.functionName = String(object.functionName);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SourceLocation message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.SourceLocation
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.SourceLocation} message SourceLocation
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SourceLocation.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.filePath = "";
+ object.lineNumber = 0;
+ object.functionName = "";
+ }
+ if (message.filePath != null && Object.hasOwnProperty.call(message, "filePath"))
+ object.filePath = message.filePath;
+ if (message.lineNumber != null && Object.hasOwnProperty.call(message, "lineNumber"))
+ object.lineNumber = message.lineNumber;
+ if (message.functionName != null && Object.hasOwnProperty.call(message, "functionName"))
+ object.functionName = message.functionName;
+ return object;
+ };
+
+ /**
+ * Converts this SourceLocation to JSON.
+ * @function toJSON
+ * @memberof google.devtools.clouderrorreporting.v1beta1.SourceLocation
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SourceLocation.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SourceLocation
+ * @function getTypeUrl
+ * @memberof google.devtools.clouderrorreporting.v1beta1.SourceLocation
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SourceLocation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.devtools.clouderrorreporting.v1beta1.SourceLocation";
+ };
+
+ return SourceLocation;
+ })();
+
+ /**
+ * ResolutionStatus enum.
+ * @name google.devtools.clouderrorreporting.v1beta1.ResolutionStatus
+ * @enum {number}
+ * @property {number} RESOLUTION_STATUS_UNSPECIFIED=0 RESOLUTION_STATUS_UNSPECIFIED value
+ * @property {number} OPEN=1 OPEN value
+ * @property {number} ACKNOWLEDGED=2 ACKNOWLEDGED value
+ * @property {number} RESOLVED=3 RESOLVED value
+ * @property {number} MUTED=4 MUTED value
+ */
+ v1beta1.ResolutionStatus = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "RESOLUTION_STATUS_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "OPEN"] = 1;
+ values[valuesById[2] = "ACKNOWLEDGED"] = 2;
+ values[valuesById[3] = "RESOLVED"] = 3;
+ values[valuesById[4] = "MUTED"] = 4;
+ return values;
+ })();
+
+ v1beta1.ErrorGroupService = (function() {
+
+ /**
+ * Constructs a new ErrorGroupService service.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @classdesc Represents an ErrorGroupService
+ * @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 ErrorGroupService(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (ErrorGroupService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ErrorGroupService;
+
+ /**
+ * Creates new ErrorGroupService service using the specified rpc implementation.
+ * @function create
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroupService
+ * @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 {ErrorGroupService} RPC service. Useful where requests and/or responses are streamed.
+ */
+ ErrorGroupService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.devtools.clouderrorreporting.v1beta1.ErrorGroupService|getGroup}.
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroupService
+ * @typedef GetGroupCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.devtools.clouderrorreporting.v1beta1.ErrorGroup} [response] ErrorGroup
+ */
+
+ /**
+ * Calls GetGroup.
+ * @function getGroup
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroupService
+ * @instance
+ * @param {google.devtools.clouderrorreporting.v1beta1.IGetGroupRequest} request GetGroupRequest message or plain object
+ * @param {google.devtools.clouderrorreporting.v1beta1.ErrorGroupService.GetGroupCallback} callback Node-style callback called with the error, if any, and ErrorGroup
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ErrorGroupService.prototype.getGroup = function getGroup(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, getGroup, $root.google.devtools.clouderrorreporting.v1beta1.GetGroupRequest, $root.google.devtools.clouderrorreporting.v1beta1.ErrorGroup, request, callback);
+ }, "name", { value: "GetGroup" });
+
+ /**
+ * Calls GetGroup.
+ * @function getGroup
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroupService
+ * @instance
+ * @param {google.devtools.clouderrorreporting.v1beta1.IGetGroupRequest} request GetGroupRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.devtools.clouderrorreporting.v1beta1.ErrorGroupService|updateGroup}.
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroupService
+ * @typedef UpdateGroupCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.devtools.clouderrorreporting.v1beta1.ErrorGroup} [response] ErrorGroup
+ */
+
+ /**
+ * Calls UpdateGroup.
+ * @function updateGroup
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroupService
+ * @instance
+ * @param {google.devtools.clouderrorreporting.v1beta1.IUpdateGroupRequest} request UpdateGroupRequest message or plain object
+ * @param {google.devtools.clouderrorreporting.v1beta1.ErrorGroupService.UpdateGroupCallback} callback Node-style callback called with the error, if any, and ErrorGroup
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ErrorGroupService.prototype.updateGroup = function updateGroup(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, updateGroup, $root.google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest, $root.google.devtools.clouderrorreporting.v1beta1.ErrorGroup, request, callback);
+ }, "name", { value: "UpdateGroup" });
+
+ /**
+ * Calls UpdateGroup.
+ * @function updateGroup
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroupService
+ * @instance
+ * @param {google.devtools.clouderrorreporting.v1beta1.IUpdateGroupRequest} request UpdateGroupRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return ErrorGroupService;
+ })();
+
+ v1beta1.GetGroupRequest = (function() {
+
+ /**
+ * Properties of a GetGroupRequest.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @interface IGetGroupRequest
+ * @property {string|null} [groupName] GetGroupRequest groupName
+ */
+
+ /**
+ * Constructs a new GetGroupRequest.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @classdesc Represents a GetGroupRequest.
+ * @implements IGetGroupRequest
+ * @constructor
+ * @param {google.devtools.clouderrorreporting.v1beta1.IGetGroupRequest=} [properties] Properties to set
+ */
+ function GetGroupRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * GetGroupRequest groupName.
+ * @member {string} groupName
+ * @memberof google.devtools.clouderrorreporting.v1beta1.GetGroupRequest
+ * @instance
+ */
+ GetGroupRequest.prototype.groupName = "";
+
+ /**
+ * Creates a new GetGroupRequest instance using the specified properties.
+ * @function create
+ * @memberof google.devtools.clouderrorreporting.v1beta1.GetGroupRequest
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IGetGroupRequest=} [properties] Properties to set
+ * @returns {google.devtools.clouderrorreporting.v1beta1.GetGroupRequest} GetGroupRequest instance
+ */
+ GetGroupRequest.create = function create(properties) {
+ return new GetGroupRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetGroupRequest message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.GetGroupRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.GetGroupRequest
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IGetGroupRequest} message GetGroupRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetGroupRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.groupName != null && Object.hasOwnProperty.call(message, "groupName"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.groupName);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetGroupRequest message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.GetGroupRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.GetGroupRequest
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IGetGroupRequest} message GetGroupRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetGroupRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetGroupRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.GetGroupRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.devtools.clouderrorreporting.v1beta1.GetGroupRequest} GetGroupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetGroupRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.clouderrorreporting.v1beta1.GetGroupRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.groupName = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetGroupRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.GetGroupRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.devtools.clouderrorreporting.v1beta1.GetGroupRequest} GetGroupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetGroupRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetGroupRequest message.
+ * @function verify
+ * @memberof google.devtools.clouderrorreporting.v1beta1.GetGroupRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetGroupRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.groupName != null && Object.hasOwnProperty.call(message, "groupName"))
+ if (!$util.isString(message.groupName))
+ return "groupName: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GetGroupRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.GetGroupRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.devtools.clouderrorreporting.v1beta1.GetGroupRequest} GetGroupRequest
+ */
+ GetGroupRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.devtools.clouderrorreporting.v1beta1.GetGroupRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.GetGroupRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.devtools.clouderrorreporting.v1beta1.GetGroupRequest();
+ if (object.groupName != null)
+ message.groupName = String(object.groupName);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetGroupRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.GetGroupRequest
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.GetGroupRequest} message GetGroupRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetGroupRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults)
+ object.groupName = "";
+ if (message.groupName != null && Object.hasOwnProperty.call(message, "groupName"))
+ object.groupName = message.groupName;
+ return object;
+ };
+
+ /**
+ * Converts this GetGroupRequest to JSON.
+ * @function toJSON
+ * @memberof google.devtools.clouderrorreporting.v1beta1.GetGroupRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetGroupRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetGroupRequest
+ * @function getTypeUrl
+ * @memberof google.devtools.clouderrorreporting.v1beta1.GetGroupRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.devtools.clouderrorreporting.v1beta1.GetGroupRequest";
+ };
+
+ return GetGroupRequest;
+ })();
+
+ v1beta1.UpdateGroupRequest = (function() {
+
+ /**
+ * Properties of an UpdateGroupRequest.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @interface IUpdateGroupRequest
+ * @property {google.devtools.clouderrorreporting.v1beta1.IErrorGroup|null} [group] UpdateGroupRequest group
+ */
+
+ /**
+ * Constructs a new UpdateGroupRequest.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @classdesc Represents an UpdateGroupRequest.
+ * @implements IUpdateGroupRequest
+ * @constructor
+ * @param {google.devtools.clouderrorreporting.v1beta1.IUpdateGroupRequest=} [properties] Properties to set
+ */
+ function UpdateGroupRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * UpdateGroupRequest group.
+ * @member {google.devtools.clouderrorreporting.v1beta1.IErrorGroup|null|undefined} group
+ * @memberof google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest
+ * @instance
+ */
+ UpdateGroupRequest.prototype.group = null;
+
+ /**
+ * Creates a new UpdateGroupRequest instance using the specified properties.
+ * @function create
+ * @memberof google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IUpdateGroupRequest=} [properties] Properties to set
+ * @returns {google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest} UpdateGroupRequest instance
+ */
+ UpdateGroupRequest.create = function create(properties) {
+ return new UpdateGroupRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateGroupRequest message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IUpdateGroupRequest} message UpdateGroupRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateGroupRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.group != null && Object.hasOwnProperty.call(message, "group"))
+ $root.google.devtools.clouderrorreporting.v1beta1.ErrorGroup.encode(message.group, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateGroupRequest message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IUpdateGroupRequest} message UpdateGroupRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateGroupRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateGroupRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest} UpdateGroupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateGroupRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.group = $root.google.devtools.clouderrorreporting.v1beta1.ErrorGroup.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateGroupRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest} UpdateGroupRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateGroupRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateGroupRequest message.
+ * @function verify
+ * @memberof google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateGroupRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.group != null && Object.hasOwnProperty.call(message, "group")) {
+ var error = $root.google.devtools.clouderrorreporting.v1beta1.ErrorGroup.verify(message.group, long + 1);
+ if (error)
+ return "group." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an UpdateGroupRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest} UpdateGroupRequest
+ */
+ UpdateGroupRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest();
+ if (object.group != null) {
+ if (!$util.isObject(object.group))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest.group: object expected");
+ message.group = $root.google.devtools.clouderrorreporting.v1beta1.ErrorGroup.fromObject(object.group, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateGroupRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest} message UpdateGroupRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateGroupRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults)
+ object.group = null;
+ if (message.group != null && Object.hasOwnProperty.call(message, "group"))
+ object.group = $root.google.devtools.clouderrorreporting.v1beta1.ErrorGroup.toObject(message.group, options, q + 1);
+ return object;
+ };
+
+ /**
+ * Converts this UpdateGroupRequest to JSON.
+ * @function toJSON
+ * @memberof google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateGroupRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateGroupRequest
+ * @function getTypeUrl
+ * @memberof google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateGroupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest";
+ };
+
+ return UpdateGroupRequest;
+ })();
+
+ v1beta1.ErrorStatsService = (function() {
+
+ /**
+ * Constructs a new ErrorStatsService service.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @classdesc Represents an ErrorStatsService
+ * @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 ErrorStatsService(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (ErrorStatsService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ErrorStatsService;
+
+ /**
+ * Creates new ErrorStatsService service using the specified rpc implementation.
+ * @function create
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorStatsService
+ * @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 {ErrorStatsService} RPC service. Useful where requests and/or responses are streamed.
+ */
+ ErrorStatsService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.devtools.clouderrorreporting.v1beta1.ErrorStatsService|listGroupStats}.
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorStatsService
+ * @typedef ListGroupStatsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse} [response] ListGroupStatsResponse
+ */
+
+ /**
+ * Calls ListGroupStats.
+ * @function listGroupStats
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorStatsService
+ * @instance
+ * @param {google.devtools.clouderrorreporting.v1beta1.IListGroupStatsRequest} request ListGroupStatsRequest message or plain object
+ * @param {google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.ListGroupStatsCallback} callback Node-style callback called with the error, if any, and ListGroupStatsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ErrorStatsService.prototype.listGroupStats = function listGroupStats(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, listGroupStats, $root.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest, $root.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse, request, callback);
+ }, "name", { value: "ListGroupStats" });
+
+ /**
+ * Calls ListGroupStats.
+ * @function listGroupStats
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorStatsService
+ * @instance
+ * @param {google.devtools.clouderrorreporting.v1beta1.IListGroupStatsRequest} request ListGroupStatsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.devtools.clouderrorreporting.v1beta1.ErrorStatsService|listEvents}.
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorStatsService
+ * @typedef ListEventsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.devtools.clouderrorreporting.v1beta1.ListEventsResponse} [response] ListEventsResponse
+ */
+
+ /**
+ * Calls ListEvents.
+ * @function listEvents
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorStatsService
+ * @instance
+ * @param {google.devtools.clouderrorreporting.v1beta1.IListEventsRequest} request ListEventsRequest message or plain object
+ * @param {google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.ListEventsCallback} callback Node-style callback called with the error, if any, and ListEventsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ErrorStatsService.prototype.listEvents = function listEvents(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, listEvents, $root.google.devtools.clouderrorreporting.v1beta1.ListEventsRequest, $root.google.devtools.clouderrorreporting.v1beta1.ListEventsResponse, request, callback);
+ }, "name", { value: "ListEvents" });
+
+ /**
+ * Calls ListEvents.
+ * @function listEvents
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorStatsService
+ * @instance
+ * @param {google.devtools.clouderrorreporting.v1beta1.IListEventsRequest} request ListEventsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.devtools.clouderrorreporting.v1beta1.ErrorStatsService|deleteEvents}.
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorStatsService
+ * @typedef DeleteEventsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse} [response] DeleteEventsResponse
+ */
+
+ /**
+ * Calls DeleteEvents.
+ * @function deleteEvents
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorStatsService
+ * @instance
+ * @param {google.devtools.clouderrorreporting.v1beta1.IDeleteEventsRequest} request DeleteEventsRequest message or plain object
+ * @param {google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.DeleteEventsCallback} callback Node-style callback called with the error, if any, and DeleteEventsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ErrorStatsService.prototype.deleteEvents = function deleteEvents(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, deleteEvents, $root.google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest, $root.google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse, request, callback);
+ }, "name", { value: "DeleteEvents" });
+
+ /**
+ * Calls DeleteEvents.
+ * @function deleteEvents
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorStatsService
+ * @instance
+ * @param {google.devtools.clouderrorreporting.v1beta1.IDeleteEventsRequest} request DeleteEventsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return ErrorStatsService;
+ })();
+
+ v1beta1.ListGroupStatsRequest = (function() {
+
+ /**
+ * Properties of a ListGroupStatsRequest.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @interface IListGroupStatsRequest
+ * @property {string|null} [projectName] ListGroupStatsRequest projectName
+ * @property {Array.|null} [groupId] ListGroupStatsRequest groupId
+ * @property {google.devtools.clouderrorreporting.v1beta1.IServiceContextFilter|null} [serviceFilter] ListGroupStatsRequest serviceFilter
+ * @property {google.devtools.clouderrorreporting.v1beta1.IQueryTimeRange|null} [timeRange] ListGroupStatsRequest timeRange
+ * @property {google.protobuf.IDuration|null} [timedCountDuration] ListGroupStatsRequest timedCountDuration
+ * @property {google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment|null} [alignment] ListGroupStatsRequest alignment
+ * @property {google.protobuf.ITimestamp|null} [alignmentTime] ListGroupStatsRequest alignmentTime
+ * @property {google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder|null} [order] ListGroupStatsRequest order
+ * @property {number|null} [pageSize] ListGroupStatsRequest pageSize
+ * @property {string|null} [pageToken] ListGroupStatsRequest pageToken
+ */
+
+ /**
+ * Constructs a new ListGroupStatsRequest.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @classdesc Represents a ListGroupStatsRequest.
+ * @implements IListGroupStatsRequest
+ * @constructor
+ * @param {google.devtools.clouderrorreporting.v1beta1.IListGroupStatsRequest=} [properties] Properties to set
+ */
+ function ListGroupStatsRequest(properties) {
+ this.groupId = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ListGroupStatsRequest projectName.
+ * @member {string} projectName
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest
+ * @instance
+ */
+ ListGroupStatsRequest.prototype.projectName = "";
+
+ /**
+ * ListGroupStatsRequest groupId.
+ * @member {Array.} groupId
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest
+ * @instance
+ */
+ ListGroupStatsRequest.prototype.groupId = $util.emptyArray;
+
+ /**
+ * ListGroupStatsRequest serviceFilter.
+ * @member {google.devtools.clouderrorreporting.v1beta1.IServiceContextFilter|null|undefined} serviceFilter
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest
+ * @instance
+ */
+ ListGroupStatsRequest.prototype.serviceFilter = null;
+
+ /**
+ * ListGroupStatsRequest timeRange.
+ * @member {google.devtools.clouderrorreporting.v1beta1.IQueryTimeRange|null|undefined} timeRange
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest
+ * @instance
+ */
+ ListGroupStatsRequest.prototype.timeRange = null;
+
+ /**
+ * ListGroupStatsRequest timedCountDuration.
+ * @member {google.protobuf.IDuration|null|undefined} timedCountDuration
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest
+ * @instance
+ */
+ ListGroupStatsRequest.prototype.timedCountDuration = null;
+
+ /**
+ * ListGroupStatsRequest alignment.
+ * @member {google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment} alignment
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest
+ * @instance
+ */
+ ListGroupStatsRequest.prototype.alignment = 0;
+
+ /**
+ * ListGroupStatsRequest alignmentTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} alignmentTime
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest
+ * @instance
+ */
+ ListGroupStatsRequest.prototype.alignmentTime = null;
+
+ /**
+ * ListGroupStatsRequest order.
+ * @member {google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder} order
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest
+ * @instance
+ */
+ ListGroupStatsRequest.prototype.order = 0;
+
+ /**
+ * ListGroupStatsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest
+ * @instance
+ */
+ ListGroupStatsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListGroupStatsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest
+ * @instance
+ */
+ ListGroupStatsRequest.prototype.pageToken = "";
+
+ /**
+ * Creates a new ListGroupStatsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IListGroupStatsRequest=} [properties] Properties to set
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest} ListGroupStatsRequest instance
+ */
+ ListGroupStatsRequest.create = function create(properties) {
+ return new ListGroupStatsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListGroupStatsRequest message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IListGroupStatsRequest} message ListGroupStatsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListGroupStatsRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.projectName != null && Object.hasOwnProperty.call(message, "projectName"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectName);
+ if (message.groupId != null && message.groupId.length)
+ for (var i = 0; i < message.groupId.length; ++i)
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.groupId[i]);
+ if (message.serviceFilter != null && Object.hasOwnProperty.call(message, "serviceFilter"))
+ $root.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter.encode(message.serviceFilter, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim();
+ if (message.timeRange != null && Object.hasOwnProperty.call(message, "timeRange"))
+ $root.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.encode(message.timeRange, writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim();
+ if (message.timedCountDuration != null && Object.hasOwnProperty.call(message, "timedCountDuration"))
+ $root.google.protobuf.Duration.encode(message.timedCountDuration, writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim();
+ if (message.alignment != null && Object.hasOwnProperty.call(message, "alignment"))
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.alignment);
+ if (message.alignmentTime != null && Object.hasOwnProperty.call(message, "alignmentTime"))
+ $root.google.protobuf.Timestamp.encode(message.alignmentTime, writer.uint32(/* id 8, wireType 2 =*/66).fork(), q + 1).ldelim();
+ if (message.order != null && Object.hasOwnProperty.call(message, "order"))
+ writer.uint32(/* id 9, wireType 0 =*/72).int32(message.order);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 11, wireType 0 =*/88).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.pageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListGroupStatsRequest message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IListGroupStatsRequest} message ListGroupStatsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListGroupStatsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListGroupStatsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest} ListGroupStatsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListGroupStatsRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.projectName = reader.string();
+ break;
+ }
+ case 2: {
+ if (!(message.groupId && message.groupId.length))
+ message.groupId = [];
+ message.groupId.push(reader.string());
+ break;
+ }
+ case 3: {
+ message.serviceFilter = $root.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 5: {
+ message.timeRange = $root.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 6: {
+ message.timedCountDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 7: {
+ message.alignment = reader.int32();
+ break;
+ }
+ case 8: {
+ message.alignmentTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 9: {
+ message.order = reader.int32();
+ break;
+ }
+ case 11: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 12: {
+ message.pageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListGroupStatsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest} ListGroupStatsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListGroupStatsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListGroupStatsRequest message.
+ * @function verify
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListGroupStatsRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.projectName != null && Object.hasOwnProperty.call(message, "projectName"))
+ if (!$util.isString(message.projectName))
+ return "projectName: string expected";
+ if (message.groupId != null && Object.hasOwnProperty.call(message, "groupId")) {
+ if (!Array.isArray(message.groupId))
+ return "groupId: array expected";
+ for (var i = 0; i < message.groupId.length; ++i)
+ if (!$util.isString(message.groupId[i]))
+ return "groupId: string[] expected";
+ }
+ if (message.serviceFilter != null && Object.hasOwnProperty.call(message, "serviceFilter")) {
+ var error = $root.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter.verify(message.serviceFilter, long + 1);
+ if (error)
+ return "serviceFilter." + error;
+ }
+ if (message.timeRange != null && Object.hasOwnProperty.call(message, "timeRange")) {
+ var error = $root.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.verify(message.timeRange, long + 1);
+ if (error)
+ return "timeRange." + error;
+ }
+ if (message.timedCountDuration != null && Object.hasOwnProperty.call(message, "timedCountDuration")) {
+ var error = $root.google.protobuf.Duration.verify(message.timedCountDuration, long + 1);
+ if (error)
+ return "timedCountDuration." + error;
+ }
+ if (message.alignment != null && Object.hasOwnProperty.call(message, "alignment"))
+ switch (message.alignment) {
+ default:
+ return "alignment: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.alignmentTime != null && Object.hasOwnProperty.call(message, "alignmentTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.alignmentTime, long + 1);
+ if (error)
+ return "alignmentTime." + error;
+ }
+ if (message.order != null && Object.hasOwnProperty.call(message, "order"))
+ switch (message.order) {
+ default:
+ return "order: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ break;
+ }
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListGroupStatsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest} ListGroupStatsRequest
+ */
+ ListGroupStatsRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest();
+ if (object.projectName != null)
+ message.projectName = String(object.projectName);
+ if (object.groupId) {
+ if (!Array.isArray(object.groupId))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.groupId: array expected");
+ message.groupId = [];
+ for (var i = 0; i < object.groupId.length; ++i)
+ message.groupId[i] = String(object.groupId[i]);
+ }
+ if (object.serviceFilter != null) {
+ if (!$util.isObject(object.serviceFilter))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.serviceFilter: object expected");
+ message.serviceFilter = $root.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter.fromObject(object.serviceFilter, long + 1);
+ }
+ if (object.timeRange != null) {
+ if (!$util.isObject(object.timeRange))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.timeRange: object expected");
+ message.timeRange = $root.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.fromObject(object.timeRange, long + 1);
+ }
+ if (object.timedCountDuration != null) {
+ if (!$util.isObject(object.timedCountDuration))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.timedCountDuration: object expected");
+ message.timedCountDuration = $root.google.protobuf.Duration.fromObject(object.timedCountDuration, long + 1);
+ }
+ switch (object.alignment) {
+ default:
+ if (typeof object.alignment === "number") {
+ message.alignment = object.alignment;
+ break;
+ }
+ break;
+ case "ERROR_COUNT_ALIGNMENT_UNSPECIFIED":
+ case 0:
+ message.alignment = 0;
+ break;
+ case "ALIGNMENT_EQUAL_ROUNDED":
+ case 1:
+ message.alignment = 1;
+ break;
+ case "ALIGNMENT_EQUAL_AT_END":
+ case 2:
+ message.alignment = 2;
+ break;
+ }
+ if (object.alignmentTime != null) {
+ if (!$util.isObject(object.alignmentTime))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.alignmentTime: object expected");
+ message.alignmentTime = $root.google.protobuf.Timestamp.fromObject(object.alignmentTime, long + 1);
+ }
+ switch (object.order) {
+ default:
+ if (typeof object.order === "number") {
+ message.order = object.order;
+ break;
+ }
+ break;
+ case "GROUP_ORDER_UNSPECIFIED":
+ case 0:
+ message.order = 0;
+ break;
+ case "COUNT_DESC":
+ case 1:
+ message.order = 1;
+ break;
+ case "LAST_SEEN_DESC":
+ case 2:
+ message.order = 2;
+ break;
+ case "CREATED_DESC":
+ case 3:
+ message.order = 3;
+ break;
+ case "AFFECTED_USERS_DESC":
+ case 4:
+ message.order = 4;
+ break;
+ }
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListGroupStatsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest} message ListGroupStatsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListGroupStatsRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.groupId = [];
+ if (options.defaults) {
+ object.projectName = "";
+ object.serviceFilter = null;
+ object.timeRange = null;
+ object.timedCountDuration = null;
+ object.alignment = options.enums === String ? "ERROR_COUNT_ALIGNMENT_UNSPECIFIED" : 0;
+ object.alignmentTime = null;
+ object.order = options.enums === String ? "GROUP_ORDER_UNSPECIFIED" : 0;
+ object.pageSize = 0;
+ object.pageToken = "";
+ }
+ if (message.projectName != null && Object.hasOwnProperty.call(message, "projectName"))
+ object.projectName = message.projectName;
+ if (message.groupId && message.groupId.length) {
+ object.groupId = [];
+ for (var j = 0; j < message.groupId.length; ++j)
+ object.groupId[j] = message.groupId[j];
+ }
+ if (message.serviceFilter != null && Object.hasOwnProperty.call(message, "serviceFilter"))
+ object.serviceFilter = $root.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter.toObject(message.serviceFilter, options, q + 1);
+ if (message.timeRange != null && Object.hasOwnProperty.call(message, "timeRange"))
+ object.timeRange = $root.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.toObject(message.timeRange, options, q + 1);
+ if (message.timedCountDuration != null && Object.hasOwnProperty.call(message, "timedCountDuration"))
+ object.timedCountDuration = $root.google.protobuf.Duration.toObject(message.timedCountDuration, options, q + 1);
+ if (message.alignment != null && Object.hasOwnProperty.call(message, "alignment"))
+ object.alignment = options.enums === String ? $root.google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment[message.alignment] === undefined ? message.alignment : $root.google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment[message.alignment] : message.alignment;
+ if (message.alignmentTime != null && Object.hasOwnProperty.call(message, "alignmentTime"))
+ object.alignmentTime = $root.google.protobuf.Timestamp.toObject(message.alignmentTime, options, q + 1);
+ if (message.order != null && Object.hasOwnProperty.call(message, "order"))
+ object.order = options.enums === String ? $root.google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder[message.order] === undefined ? message.order : $root.google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder[message.order] : message.order;
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ object.pageToken = message.pageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListGroupStatsRequest to JSON.
+ * @function toJSON
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListGroupStatsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListGroupStatsRequest
+ * @function getTypeUrl
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListGroupStatsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest";
+ };
+
+ return ListGroupStatsRequest;
+ })();
+
+ v1beta1.ListGroupStatsResponse = (function() {
+
+ /**
+ * Properties of a ListGroupStatsResponse.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @interface IListGroupStatsResponse
+ * @property {Array.|null} [errorGroupStats] ListGroupStatsResponse errorGroupStats
+ * @property {string|null} [nextPageToken] ListGroupStatsResponse nextPageToken
+ * @property {google.protobuf.ITimestamp|null} [timeRangeBegin] ListGroupStatsResponse timeRangeBegin
+ */
+
+ /**
+ * Constructs a new ListGroupStatsResponse.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @classdesc Represents a ListGroupStatsResponse.
+ * @implements IListGroupStatsResponse
+ * @constructor
+ * @param {google.devtools.clouderrorreporting.v1beta1.IListGroupStatsResponse=} [properties] Properties to set
+ */
+ function ListGroupStatsResponse(properties) {
+ this.errorGroupStats = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ListGroupStatsResponse errorGroupStats.
+ * @member {Array.} errorGroupStats
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse
+ * @instance
+ */
+ ListGroupStatsResponse.prototype.errorGroupStats = $util.emptyArray;
+
+ /**
+ * ListGroupStatsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse
+ * @instance
+ */
+ ListGroupStatsResponse.prototype.nextPageToken = "";
+
+ /**
+ * ListGroupStatsResponse timeRangeBegin.
+ * @member {google.protobuf.ITimestamp|null|undefined} timeRangeBegin
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse
+ * @instance
+ */
+ ListGroupStatsResponse.prototype.timeRangeBegin = null;
+
+ /**
+ * Creates a new ListGroupStatsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IListGroupStatsResponse=} [properties] Properties to set
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse} ListGroupStatsResponse instance
+ */
+ ListGroupStatsResponse.create = function create(properties) {
+ return new ListGroupStatsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListGroupStatsResponse message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IListGroupStatsResponse} message ListGroupStatsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListGroupStatsResponse.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.errorGroupStats != null && message.errorGroupStats.length)
+ for (var i = 0; i < message.errorGroupStats.length; ++i)
+ $root.google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.encode(message.errorGroupStats[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ if (message.timeRangeBegin != null && Object.hasOwnProperty.call(message, "timeRangeBegin"))
+ $root.google.protobuf.Timestamp.encode(message.timeRangeBegin, writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListGroupStatsResponse message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IListGroupStatsResponse} message ListGroupStatsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListGroupStatsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListGroupStatsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse} ListGroupStatsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListGroupStatsResponse.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.errorGroupStats && message.errorGroupStats.length))
+ message.errorGroupStats = [];
+ message.errorGroupStats.push($root.google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ case 4: {
+ message.timeRangeBegin = $root.google.protobuf.Timestamp.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListGroupStatsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse} ListGroupStatsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListGroupStatsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListGroupStatsResponse message.
+ * @function verify
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListGroupStatsResponse.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.errorGroupStats != null && Object.hasOwnProperty.call(message, "errorGroupStats")) {
+ if (!Array.isArray(message.errorGroupStats))
+ return "errorGroupStats: array expected";
+ for (var i = 0; i < message.errorGroupStats.length; ++i) {
+ var error = $root.google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.verify(message.errorGroupStats[i], long + 1);
+ if (error)
+ return "errorGroupStats." + error;
+ }
+ }
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ if (message.timeRangeBegin != null && Object.hasOwnProperty.call(message, "timeRangeBegin")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.timeRangeBegin, long + 1);
+ if (error)
+ return "timeRangeBegin." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ListGroupStatsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse} ListGroupStatsResponse
+ */
+ ListGroupStatsResponse.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse();
+ if (object.errorGroupStats) {
+ if (!Array.isArray(object.errorGroupStats))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.errorGroupStats: array expected");
+ message.errorGroupStats = [];
+ for (var i = 0; i < object.errorGroupStats.length; ++i) {
+ if (!$util.isObject(object.errorGroupStats[i]))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.errorGroupStats: object expected");
+ message.errorGroupStats[i] = $root.google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.fromObject(object.errorGroupStats[i], long + 1);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.timeRangeBegin != null) {
+ if (!$util.isObject(object.timeRangeBegin))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.timeRangeBegin: object expected");
+ message.timeRangeBegin = $root.google.protobuf.Timestamp.fromObject(object.timeRangeBegin, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListGroupStatsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse} message ListGroupStatsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListGroupStatsResponse.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.errorGroupStats = [];
+ if (options.defaults) {
+ object.nextPageToken = "";
+ object.timeRangeBegin = null;
+ }
+ if (message.errorGroupStats && message.errorGroupStats.length) {
+ object.errorGroupStats = [];
+ for (var j = 0; j < message.errorGroupStats.length; ++j)
+ object.errorGroupStats[j] = $root.google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.toObject(message.errorGroupStats[j], options, q + 1);
+ }
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ if (message.timeRangeBegin != null && Object.hasOwnProperty.call(message, "timeRangeBegin"))
+ object.timeRangeBegin = $root.google.protobuf.Timestamp.toObject(message.timeRangeBegin, options, q + 1);
+ return object;
+ };
+
+ /**
+ * Converts this ListGroupStatsResponse to JSON.
+ * @function toJSON
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListGroupStatsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListGroupStatsResponse
+ * @function getTypeUrl
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListGroupStatsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse";
+ };
+
+ return ListGroupStatsResponse;
+ })();
+
+ /**
+ * TimedCountAlignment enum.
+ * @name google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment
+ * @enum {number}
+ * @property {number} ERROR_COUNT_ALIGNMENT_UNSPECIFIED=0 ERROR_COUNT_ALIGNMENT_UNSPECIFIED value
+ * @property {number} ALIGNMENT_EQUAL_ROUNDED=1 ALIGNMENT_EQUAL_ROUNDED value
+ * @property {number} ALIGNMENT_EQUAL_AT_END=2 ALIGNMENT_EQUAL_AT_END value
+ */
+ v1beta1.TimedCountAlignment = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "ERROR_COUNT_ALIGNMENT_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "ALIGNMENT_EQUAL_ROUNDED"] = 1;
+ values[valuesById[2] = "ALIGNMENT_EQUAL_AT_END"] = 2;
+ return values;
+ })();
+
+ /**
+ * ErrorGroupOrder enum.
+ * @name google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder
+ * @enum {number}
+ * @property {number} GROUP_ORDER_UNSPECIFIED=0 GROUP_ORDER_UNSPECIFIED value
+ * @property {number} COUNT_DESC=1 COUNT_DESC value
+ * @property {number} LAST_SEEN_DESC=2 LAST_SEEN_DESC value
+ * @property {number} CREATED_DESC=3 CREATED_DESC value
+ * @property {number} AFFECTED_USERS_DESC=4 AFFECTED_USERS_DESC value
+ */
+ v1beta1.ErrorGroupOrder = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "GROUP_ORDER_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "COUNT_DESC"] = 1;
+ values[valuesById[2] = "LAST_SEEN_DESC"] = 2;
+ values[valuesById[3] = "CREATED_DESC"] = 3;
+ values[valuesById[4] = "AFFECTED_USERS_DESC"] = 4;
+ return values;
+ })();
+
+ v1beta1.ErrorGroupStats = (function() {
+
+ /**
+ * Properties of an ErrorGroupStats.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @interface IErrorGroupStats
+ * @property {google.devtools.clouderrorreporting.v1beta1.IErrorGroup|null} [group] ErrorGroupStats group
+ * @property {number|Long|null} [count] ErrorGroupStats count
+ * @property {number|Long|null} [affectedUsersCount] ErrorGroupStats affectedUsersCount
+ * @property {Array.|null} [timedCounts] ErrorGroupStats timedCounts
+ * @property {google.protobuf.ITimestamp|null} [firstSeenTime] ErrorGroupStats firstSeenTime
+ * @property {google.protobuf.ITimestamp|null} [lastSeenTime] ErrorGroupStats lastSeenTime
+ * @property {Array.|null} [affectedServices] ErrorGroupStats affectedServices
+ * @property {number|null} [numAffectedServices] ErrorGroupStats numAffectedServices
+ * @property {google.devtools.clouderrorreporting.v1beta1.IErrorEvent|null} [representative] ErrorGroupStats representative
+ */
+
+ /**
+ * Constructs a new ErrorGroupStats.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @classdesc Represents an ErrorGroupStats.
+ * @implements IErrorGroupStats
+ * @constructor
+ * @param {google.devtools.clouderrorreporting.v1beta1.IErrorGroupStats=} [properties] Properties to set
+ */
+ function ErrorGroupStats(properties) {
+ this.timedCounts = [];
+ this.affectedServices = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ErrorGroupStats group.
+ * @member {google.devtools.clouderrorreporting.v1beta1.IErrorGroup|null|undefined} group
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats
+ * @instance
+ */
+ ErrorGroupStats.prototype.group = null;
+
+ /**
+ * ErrorGroupStats count.
+ * @member {number|Long} count
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats
+ * @instance
+ */
+ ErrorGroupStats.prototype.count = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * ErrorGroupStats affectedUsersCount.
+ * @member {number|Long} affectedUsersCount
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats
+ * @instance
+ */
+ ErrorGroupStats.prototype.affectedUsersCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * ErrorGroupStats timedCounts.
+ * @member {Array.} timedCounts
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats
+ * @instance
+ */
+ ErrorGroupStats.prototype.timedCounts = $util.emptyArray;
+
+ /**
+ * ErrorGroupStats firstSeenTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} firstSeenTime
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats
+ * @instance
+ */
+ ErrorGroupStats.prototype.firstSeenTime = null;
+
+ /**
+ * ErrorGroupStats lastSeenTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} lastSeenTime
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats
+ * @instance
+ */
+ ErrorGroupStats.prototype.lastSeenTime = null;
+
+ /**
+ * ErrorGroupStats affectedServices.
+ * @member {Array.} affectedServices
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats
+ * @instance
+ */
+ ErrorGroupStats.prototype.affectedServices = $util.emptyArray;
+
+ /**
+ * ErrorGroupStats numAffectedServices.
+ * @member {number} numAffectedServices
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats
+ * @instance
+ */
+ ErrorGroupStats.prototype.numAffectedServices = 0;
+
+ /**
+ * ErrorGroupStats representative.
+ * @member {google.devtools.clouderrorreporting.v1beta1.IErrorEvent|null|undefined} representative
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats
+ * @instance
+ */
+ ErrorGroupStats.prototype.representative = null;
+
+ /**
+ * Creates a new ErrorGroupStats instance using the specified properties.
+ * @function create
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IErrorGroupStats=} [properties] Properties to set
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats} ErrorGroupStats instance
+ */
+ ErrorGroupStats.create = function create(properties) {
+ return new ErrorGroupStats(properties);
+ };
+
+ /**
+ * Encodes the specified ErrorGroupStats message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.verify|verify} messages.
+ * @function encode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IErrorGroupStats} message ErrorGroupStats message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ErrorGroupStats.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.group != null && Object.hasOwnProperty.call(message, "group"))
+ $root.google.devtools.clouderrorreporting.v1beta1.ErrorGroup.encode(message.group, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ if (message.count != null && Object.hasOwnProperty.call(message, "count"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int64(message.count);
+ if (message.affectedUsersCount != null && Object.hasOwnProperty.call(message, "affectedUsersCount"))
+ writer.uint32(/* id 3, wireType 0 =*/24).int64(message.affectedUsersCount);
+ if (message.timedCounts != null && message.timedCounts.length)
+ for (var i = 0; i < message.timedCounts.length; ++i)
+ $root.google.devtools.clouderrorreporting.v1beta1.TimedCount.encode(message.timedCounts[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim();
+ if (message.firstSeenTime != null && Object.hasOwnProperty.call(message, "firstSeenTime"))
+ $root.google.protobuf.Timestamp.encode(message.firstSeenTime, writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim();
+ if (message.lastSeenTime != null && Object.hasOwnProperty.call(message, "lastSeenTime"))
+ $root.google.protobuf.Timestamp.encode(message.lastSeenTime, writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim();
+ if (message.affectedServices != null && message.affectedServices.length)
+ for (var i = 0; i < message.affectedServices.length; ++i)
+ $root.google.devtools.clouderrorreporting.v1beta1.ServiceContext.encode(message.affectedServices[i], writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim();
+ if (message.numAffectedServices != null && Object.hasOwnProperty.call(message, "numAffectedServices"))
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.numAffectedServices);
+ if (message.representative != null && Object.hasOwnProperty.call(message, "representative"))
+ $root.google.devtools.clouderrorreporting.v1beta1.ErrorEvent.encode(message.representative, writer.uint32(/* id 9, wireType 2 =*/74).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ErrorGroupStats message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IErrorGroupStats} message ErrorGroupStats message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ErrorGroupStats.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes an ErrorGroupStats message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats} ErrorGroupStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ErrorGroupStats.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.group = $root.google.devtools.clouderrorreporting.v1beta1.ErrorGroup.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 2: {
+ message.count = reader.int64();
+ break;
+ }
+ case 3: {
+ message.affectedUsersCount = reader.int64();
+ break;
+ }
+ case 4: {
+ if (!(message.timedCounts && message.timedCounts.length))
+ message.timedCounts = [];
+ message.timedCounts.push($root.google.devtools.clouderrorreporting.v1beta1.TimedCount.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 5: {
+ message.firstSeenTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 6: {
+ message.lastSeenTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 7: {
+ if (!(message.affectedServices && message.affectedServices.length))
+ message.affectedServices = [];
+ message.affectedServices.push($root.google.devtools.clouderrorreporting.v1beta1.ServiceContext.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 8: {
+ message.numAffectedServices = reader.int32();
+ break;
+ }
+ case 9: {
+ message.representative = $root.google.devtools.clouderrorreporting.v1beta1.ErrorEvent.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an ErrorGroupStats message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats} ErrorGroupStats
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ErrorGroupStats.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an ErrorGroupStats message.
+ * @function verify
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ErrorGroupStats.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.group != null && Object.hasOwnProperty.call(message, "group")) {
+ var error = $root.google.devtools.clouderrorreporting.v1beta1.ErrorGroup.verify(message.group, long + 1);
+ if (error)
+ return "group." + error;
+ }
+ if (message.count != null && Object.hasOwnProperty.call(message, "count"))
+ if (!$util.isInteger(message.count) && !(message.count && $util.isInteger(message.count.low) && $util.isInteger(message.count.high)))
+ return "count: integer|Long expected";
+ if (message.affectedUsersCount != null && Object.hasOwnProperty.call(message, "affectedUsersCount"))
+ if (!$util.isInteger(message.affectedUsersCount) && !(message.affectedUsersCount && $util.isInteger(message.affectedUsersCount.low) && $util.isInteger(message.affectedUsersCount.high)))
+ return "affectedUsersCount: integer|Long expected";
+ if (message.timedCounts != null && Object.hasOwnProperty.call(message, "timedCounts")) {
+ if (!Array.isArray(message.timedCounts))
+ return "timedCounts: array expected";
+ for (var i = 0; i < message.timedCounts.length; ++i) {
+ var error = $root.google.devtools.clouderrorreporting.v1beta1.TimedCount.verify(message.timedCounts[i], long + 1);
+ if (error)
+ return "timedCounts." + error;
+ }
+ }
+ if (message.firstSeenTime != null && Object.hasOwnProperty.call(message, "firstSeenTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.firstSeenTime, long + 1);
+ if (error)
+ return "firstSeenTime." + error;
+ }
+ if (message.lastSeenTime != null && Object.hasOwnProperty.call(message, "lastSeenTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.lastSeenTime, long + 1);
+ if (error)
+ return "lastSeenTime." + error;
+ }
+ if (message.affectedServices != null && Object.hasOwnProperty.call(message, "affectedServices")) {
+ if (!Array.isArray(message.affectedServices))
+ return "affectedServices: array expected";
+ for (var i = 0; i < message.affectedServices.length; ++i) {
+ var error = $root.google.devtools.clouderrorreporting.v1beta1.ServiceContext.verify(message.affectedServices[i], long + 1);
+ if (error)
+ return "affectedServices." + error;
+ }
+ }
+ if (message.numAffectedServices != null && Object.hasOwnProperty.call(message, "numAffectedServices"))
+ if (!$util.isInteger(message.numAffectedServices))
+ return "numAffectedServices: integer expected";
+ if (message.representative != null && Object.hasOwnProperty.call(message, "representative")) {
+ var error = $root.google.devtools.clouderrorreporting.v1beta1.ErrorEvent.verify(message.representative, long + 1);
+ if (error)
+ return "representative." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an ErrorGroupStats message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats} ErrorGroupStats
+ */
+ ErrorGroupStats.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats();
+ if (object.group != null) {
+ if (!$util.isObject(object.group))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.group: object expected");
+ message.group = $root.google.devtools.clouderrorreporting.v1beta1.ErrorGroup.fromObject(object.group, long + 1);
+ }
+ if (object.count != null)
+ if ($util.Long)
+ message.count = $util.Long.fromValue(object.count, false);
+ else if (typeof object.count === "string")
+ message.count = parseInt(object.count, 10);
+ else if (typeof object.count === "number")
+ message.count = object.count;
+ else if (typeof object.count === "object")
+ message.count = new $util.LongBits(object.count.low >>> 0, object.count.high >>> 0).toNumber();
+ if (object.affectedUsersCount != null)
+ if ($util.Long)
+ message.affectedUsersCount = $util.Long.fromValue(object.affectedUsersCount, false);
+ else if (typeof object.affectedUsersCount === "string")
+ message.affectedUsersCount = parseInt(object.affectedUsersCount, 10);
+ else if (typeof object.affectedUsersCount === "number")
+ message.affectedUsersCount = object.affectedUsersCount;
+ else if (typeof object.affectedUsersCount === "object")
+ message.affectedUsersCount = new $util.LongBits(object.affectedUsersCount.low >>> 0, object.affectedUsersCount.high >>> 0).toNumber();
+ if (object.timedCounts) {
+ if (!Array.isArray(object.timedCounts))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.timedCounts: array expected");
+ message.timedCounts = [];
+ for (var i = 0; i < object.timedCounts.length; ++i) {
+ if (!$util.isObject(object.timedCounts[i]))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.timedCounts: object expected");
+ message.timedCounts[i] = $root.google.devtools.clouderrorreporting.v1beta1.TimedCount.fromObject(object.timedCounts[i], long + 1);
+ }
+ }
+ if (object.firstSeenTime != null) {
+ if (!$util.isObject(object.firstSeenTime))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.firstSeenTime: object expected");
+ message.firstSeenTime = $root.google.protobuf.Timestamp.fromObject(object.firstSeenTime, long + 1);
+ }
+ if (object.lastSeenTime != null) {
+ if (!$util.isObject(object.lastSeenTime))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.lastSeenTime: object expected");
+ message.lastSeenTime = $root.google.protobuf.Timestamp.fromObject(object.lastSeenTime, long + 1);
+ }
+ if (object.affectedServices) {
+ if (!Array.isArray(object.affectedServices))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.affectedServices: array expected");
+ message.affectedServices = [];
+ for (var i = 0; i < object.affectedServices.length; ++i) {
+ if (!$util.isObject(object.affectedServices[i]))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.affectedServices: object expected");
+ message.affectedServices[i] = $root.google.devtools.clouderrorreporting.v1beta1.ServiceContext.fromObject(object.affectedServices[i], long + 1);
+ }
+ }
+ if (object.numAffectedServices != null)
+ message.numAffectedServices = object.numAffectedServices | 0;
+ if (object.representative != null) {
+ if (!$util.isObject(object.representative))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats.representative: object expected");
+ message.representative = $root.google.devtools.clouderrorreporting.v1beta1.ErrorEvent.fromObject(object.representative, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an ErrorGroupStats message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats} message ErrorGroupStats
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ErrorGroupStats.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.timedCounts = [];
+ object.affectedServices = [];
+ }
+ if (options.defaults) {
+ object.group = null;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.count = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
+ } else
+ object.count = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.affectedUsersCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
+ } else
+ object.affectedUsersCount = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
+ object.firstSeenTime = null;
+ object.lastSeenTime = null;
+ object.numAffectedServices = 0;
+ object.representative = null;
+ }
+ if (message.group != null && Object.hasOwnProperty.call(message, "group"))
+ object.group = $root.google.devtools.clouderrorreporting.v1beta1.ErrorGroup.toObject(message.group, options, q + 1);
+ if (message.count != null && Object.hasOwnProperty.call(message, "count"))
+ if (typeof BigInt !== "undefined" && options.longs === BigInt)
+ object.count = typeof message.count === "number" ? BigInt(message.count) : $util.Long.fromBits(message.count.low >>> 0, message.count.high >>> 0, false).toBigInt();
+ else if (typeof message.count === "number")
+ object.count = options.longs === String ? String(message.count) : message.count;
+ else
+ object.count = options.longs === String ? $util.Long.prototype.toString.call(message.count) : options.longs === Number ? new $util.LongBits(message.count.low >>> 0, message.count.high >>> 0).toNumber() : message.count;
+ if (message.affectedUsersCount != null && Object.hasOwnProperty.call(message, "affectedUsersCount"))
+ if (typeof BigInt !== "undefined" && options.longs === BigInt)
+ object.affectedUsersCount = typeof message.affectedUsersCount === "number" ? BigInt(message.affectedUsersCount) : $util.Long.fromBits(message.affectedUsersCount.low >>> 0, message.affectedUsersCount.high >>> 0, false).toBigInt();
+ else if (typeof message.affectedUsersCount === "number")
+ object.affectedUsersCount = options.longs === String ? String(message.affectedUsersCount) : message.affectedUsersCount;
+ else
+ object.affectedUsersCount = options.longs === String ? $util.Long.prototype.toString.call(message.affectedUsersCount) : options.longs === Number ? new $util.LongBits(message.affectedUsersCount.low >>> 0, message.affectedUsersCount.high >>> 0).toNumber() : message.affectedUsersCount;
+ if (message.timedCounts && message.timedCounts.length) {
+ object.timedCounts = [];
+ for (var j = 0; j < message.timedCounts.length; ++j)
+ object.timedCounts[j] = $root.google.devtools.clouderrorreporting.v1beta1.TimedCount.toObject(message.timedCounts[j], options, q + 1);
+ }
+ if (message.firstSeenTime != null && Object.hasOwnProperty.call(message, "firstSeenTime"))
+ object.firstSeenTime = $root.google.protobuf.Timestamp.toObject(message.firstSeenTime, options, q + 1);
+ if (message.lastSeenTime != null && Object.hasOwnProperty.call(message, "lastSeenTime"))
+ object.lastSeenTime = $root.google.protobuf.Timestamp.toObject(message.lastSeenTime, options, q + 1);
+ if (message.affectedServices && message.affectedServices.length) {
+ object.affectedServices = [];
+ for (var j = 0; j < message.affectedServices.length; ++j)
+ object.affectedServices[j] = $root.google.devtools.clouderrorreporting.v1beta1.ServiceContext.toObject(message.affectedServices[j], options, q + 1);
+ }
+ if (message.numAffectedServices != null && Object.hasOwnProperty.call(message, "numAffectedServices"))
+ object.numAffectedServices = message.numAffectedServices;
+ if (message.representative != null && Object.hasOwnProperty.call(message, "representative"))
+ object.representative = $root.google.devtools.clouderrorreporting.v1beta1.ErrorEvent.toObject(message.representative, options, q + 1);
+ return object;
+ };
+
+ /**
+ * Converts this ErrorGroupStats to JSON.
+ * @function toJSON
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ErrorGroupStats.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ErrorGroupStats
+ * @function getTypeUrl
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ErrorGroupStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats";
+ };
+
+ return ErrorGroupStats;
+ })();
+
+ v1beta1.TimedCount = (function() {
+
+ /**
+ * Properties of a TimedCount.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @interface ITimedCount
+ * @property {number|Long|null} [count] TimedCount count
+ * @property {google.protobuf.ITimestamp|null} [startTime] TimedCount startTime
+ * @property {google.protobuf.ITimestamp|null} [endTime] TimedCount endTime
+ */
+
+ /**
+ * Constructs a new TimedCount.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @classdesc Represents a TimedCount.
+ * @implements ITimedCount
+ * @constructor
+ * @param {google.devtools.clouderrorreporting.v1beta1.ITimedCount=} [properties] Properties to set
+ */
+ function TimedCount(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * TimedCount count.
+ * @member {number|Long} count
+ * @memberof google.devtools.clouderrorreporting.v1beta1.TimedCount
+ * @instance
+ */
+ TimedCount.prototype.count = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
+
+ /**
+ * TimedCount startTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} startTime
+ * @memberof google.devtools.clouderrorreporting.v1beta1.TimedCount
+ * @instance
+ */
+ TimedCount.prototype.startTime = null;
+
+ /**
+ * TimedCount endTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} endTime
+ * @memberof google.devtools.clouderrorreporting.v1beta1.TimedCount
+ * @instance
+ */
+ TimedCount.prototype.endTime = null;
+
+ /**
+ * Creates a new TimedCount instance using the specified properties.
+ * @function create
+ * @memberof google.devtools.clouderrorreporting.v1beta1.TimedCount
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.ITimedCount=} [properties] Properties to set
+ * @returns {google.devtools.clouderrorreporting.v1beta1.TimedCount} TimedCount instance
+ */
+ TimedCount.create = function create(properties) {
+ return new TimedCount(properties);
+ };
+
+ /**
+ * Encodes the specified TimedCount message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.TimedCount.verify|verify} messages.
+ * @function encode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.TimedCount
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.ITimedCount} message TimedCount message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TimedCount.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.count != null && Object.hasOwnProperty.call(message, "count"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int64(message.count);
+ if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime"))
+ $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim();
+ if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime"))
+ $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified TimedCount message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.TimedCount.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.TimedCount
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.ITimedCount} message TimedCount message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ TimedCount.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a TimedCount message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.TimedCount
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.devtools.clouderrorreporting.v1beta1.TimedCount} TimedCount
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TimedCount.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.clouderrorreporting.v1beta1.TimedCount();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.count = reader.int64();
+ break;
+ }
+ case 2: {
+ message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 3: {
+ message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a TimedCount message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.TimedCount
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.devtools.clouderrorreporting.v1beta1.TimedCount} TimedCount
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ TimedCount.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a TimedCount message.
+ * @function verify
+ * @memberof google.devtools.clouderrorreporting.v1beta1.TimedCount
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ TimedCount.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.count != null && Object.hasOwnProperty.call(message, "count"))
+ if (!$util.isInteger(message.count) && !(message.count && $util.isInteger(message.count.low) && $util.isInteger(message.count.high)))
+ return "count: integer|Long expected";
+ if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.startTime, long + 1);
+ if (error)
+ return "startTime." + error;
+ }
+ if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.endTime, long + 1);
+ if (error)
+ return "endTime." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a TimedCount message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.TimedCount
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.devtools.clouderrorreporting.v1beta1.TimedCount} TimedCount
+ */
+ TimedCount.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.devtools.clouderrorreporting.v1beta1.TimedCount)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.TimedCount: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.devtools.clouderrorreporting.v1beta1.TimedCount();
+ if (object.count != null)
+ if ($util.Long)
+ message.count = $util.Long.fromValue(object.count, false);
+ else if (typeof object.count === "string")
+ message.count = parseInt(object.count, 10);
+ else if (typeof object.count === "number")
+ message.count = object.count;
+ else if (typeof object.count === "object")
+ message.count = new $util.LongBits(object.count.low >>> 0, object.count.high >>> 0).toNumber();
+ if (object.startTime != null) {
+ if (!$util.isObject(object.startTime))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.TimedCount.startTime: object expected");
+ message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime, long + 1);
+ }
+ if (object.endTime != null) {
+ if (!$util.isObject(object.endTime))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.TimedCount.endTime: object expected");
+ message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a TimedCount message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.TimedCount
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.TimedCount} message TimedCount
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ TimedCount.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ if ($util.Long) {
+ var long = new $util.Long(0, 0, false);
+ object.count = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
+ } else
+ object.count = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
+ object.startTime = null;
+ object.endTime = null;
+ }
+ if (message.count != null && Object.hasOwnProperty.call(message, "count"))
+ if (typeof BigInt !== "undefined" && options.longs === BigInt)
+ object.count = typeof message.count === "number" ? BigInt(message.count) : $util.Long.fromBits(message.count.low >>> 0, message.count.high >>> 0, false).toBigInt();
+ else if (typeof message.count === "number")
+ object.count = options.longs === String ? String(message.count) : message.count;
+ else
+ object.count = options.longs === String ? $util.Long.prototype.toString.call(message.count) : options.longs === Number ? new $util.LongBits(message.count.low >>> 0, message.count.high >>> 0).toNumber() : message.count;
+ if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime"))
+ object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options, q + 1);
+ if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime"))
+ object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options, q + 1);
+ return object;
+ };
+
+ /**
+ * Converts this TimedCount to JSON.
+ * @function toJSON
+ * @memberof google.devtools.clouderrorreporting.v1beta1.TimedCount
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ TimedCount.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for TimedCount
+ * @function getTypeUrl
+ * @memberof google.devtools.clouderrorreporting.v1beta1.TimedCount
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ TimedCount.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.devtools.clouderrorreporting.v1beta1.TimedCount";
+ };
+
+ return TimedCount;
+ })();
+
+ v1beta1.ListEventsRequest = (function() {
+
+ /**
+ * Properties of a ListEventsRequest.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @interface IListEventsRequest
+ * @property {string|null} [projectName] ListEventsRequest projectName
+ * @property {string|null} [groupId] ListEventsRequest groupId
+ * @property {google.devtools.clouderrorreporting.v1beta1.IServiceContextFilter|null} [serviceFilter] ListEventsRequest serviceFilter
+ * @property {google.devtools.clouderrorreporting.v1beta1.IQueryTimeRange|null} [timeRange] ListEventsRequest timeRange
+ * @property {number|null} [pageSize] ListEventsRequest pageSize
+ * @property {string|null} [pageToken] ListEventsRequest pageToken
+ */
+
+ /**
+ * Constructs a new ListEventsRequest.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @classdesc Represents a ListEventsRequest.
+ * @implements IListEventsRequest
+ * @constructor
+ * @param {google.devtools.clouderrorreporting.v1beta1.IListEventsRequest=} [properties] Properties to set
+ */
+ function ListEventsRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ListEventsRequest projectName.
+ * @member {string} projectName
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListEventsRequest
+ * @instance
+ */
+ ListEventsRequest.prototype.projectName = "";
+
+ /**
+ * ListEventsRequest groupId.
+ * @member {string} groupId
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListEventsRequest
+ * @instance
+ */
+ ListEventsRequest.prototype.groupId = "";
+
+ /**
+ * ListEventsRequest serviceFilter.
+ * @member {google.devtools.clouderrorreporting.v1beta1.IServiceContextFilter|null|undefined} serviceFilter
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListEventsRequest
+ * @instance
+ */
+ ListEventsRequest.prototype.serviceFilter = null;
+
+ /**
+ * ListEventsRequest timeRange.
+ * @member {google.devtools.clouderrorreporting.v1beta1.IQueryTimeRange|null|undefined} timeRange
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListEventsRequest
+ * @instance
+ */
+ ListEventsRequest.prototype.timeRange = null;
+
+ /**
+ * ListEventsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListEventsRequest
+ * @instance
+ */
+ ListEventsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListEventsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListEventsRequest
+ * @instance
+ */
+ ListEventsRequest.prototype.pageToken = "";
+
+ /**
+ * Creates a new ListEventsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListEventsRequest
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IListEventsRequest=} [properties] Properties to set
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ListEventsRequest} ListEventsRequest instance
+ */
+ ListEventsRequest.create = function create(properties) {
+ return new ListEventsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListEventsRequest message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ListEventsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListEventsRequest
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IListEventsRequest} message ListEventsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListEventsRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.projectName != null && Object.hasOwnProperty.call(message, "projectName"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectName);
+ if (message.groupId != null && Object.hasOwnProperty.call(message, "groupId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.groupId);
+ if (message.serviceFilter != null && Object.hasOwnProperty.call(message, "serviceFilter"))
+ $root.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter.encode(message.serviceFilter, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim();
+ if (message.timeRange != null && Object.hasOwnProperty.call(message, "timeRange"))
+ $root.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.encode(message.timeRange, writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim();
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.pageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListEventsRequest message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ListEventsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListEventsRequest
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IListEventsRequest} message ListEventsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListEventsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListEventsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListEventsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ListEventsRequest} ListEventsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListEventsRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.clouderrorreporting.v1beta1.ListEventsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.projectName = reader.string();
+ break;
+ }
+ case 2: {
+ message.groupId = reader.string();
+ break;
+ }
+ case 3: {
+ message.serviceFilter = $root.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 4: {
+ message.timeRange = $root.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 6: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 7: {
+ message.pageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListEventsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListEventsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ListEventsRequest} ListEventsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListEventsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListEventsRequest message.
+ * @function verify
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListEventsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListEventsRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.projectName != null && Object.hasOwnProperty.call(message, "projectName"))
+ if (!$util.isString(message.projectName))
+ return "projectName: string expected";
+ if (message.groupId != null && Object.hasOwnProperty.call(message, "groupId"))
+ if (!$util.isString(message.groupId))
+ return "groupId: string expected";
+ if (message.serviceFilter != null && Object.hasOwnProperty.call(message, "serviceFilter")) {
+ var error = $root.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter.verify(message.serviceFilter, long + 1);
+ if (error)
+ return "serviceFilter." + error;
+ }
+ if (message.timeRange != null && Object.hasOwnProperty.call(message, "timeRange")) {
+ var error = $root.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.verify(message.timeRange, long + 1);
+ if (error)
+ return "timeRange." + error;
+ }
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListEventsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListEventsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ListEventsRequest} ListEventsRequest
+ */
+ ListEventsRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.devtools.clouderrorreporting.v1beta1.ListEventsRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ListEventsRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.devtools.clouderrorreporting.v1beta1.ListEventsRequest();
+ if (object.projectName != null)
+ message.projectName = String(object.projectName);
+ if (object.groupId != null)
+ message.groupId = String(object.groupId);
+ if (object.serviceFilter != null) {
+ if (!$util.isObject(object.serviceFilter))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ListEventsRequest.serviceFilter: object expected");
+ message.serviceFilter = $root.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter.fromObject(object.serviceFilter, long + 1);
+ }
+ if (object.timeRange != null) {
+ if (!$util.isObject(object.timeRange))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ListEventsRequest.timeRange: object expected");
+ message.timeRange = $root.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.fromObject(object.timeRange, long + 1);
+ }
+ 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 ListEventsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListEventsRequest
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.ListEventsRequest} message ListEventsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListEventsRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.projectName = "";
+ object.groupId = "";
+ object.serviceFilter = null;
+ object.timeRange = null;
+ object.pageSize = 0;
+ object.pageToken = "";
+ }
+ if (message.projectName != null && Object.hasOwnProperty.call(message, "projectName"))
+ object.projectName = message.projectName;
+ if (message.groupId != null && Object.hasOwnProperty.call(message, "groupId"))
+ object.groupId = message.groupId;
+ if (message.serviceFilter != null && Object.hasOwnProperty.call(message, "serviceFilter"))
+ object.serviceFilter = $root.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter.toObject(message.serviceFilter, options, q + 1);
+ if (message.timeRange != null && Object.hasOwnProperty.call(message, "timeRange"))
+ object.timeRange = $root.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.toObject(message.timeRange, options, q + 1);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ object.pageToken = message.pageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListEventsRequest to JSON.
+ * @function toJSON
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListEventsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListEventsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListEventsRequest
+ * @function getTypeUrl
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListEventsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListEventsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.devtools.clouderrorreporting.v1beta1.ListEventsRequest";
+ };
+
+ return ListEventsRequest;
+ })();
+
+ v1beta1.ListEventsResponse = (function() {
+
+ /**
+ * Properties of a ListEventsResponse.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @interface IListEventsResponse
+ * @property {Array.|null} [errorEvents] ListEventsResponse errorEvents
+ * @property {string|null} [nextPageToken] ListEventsResponse nextPageToken
+ * @property {google.protobuf.ITimestamp|null} [timeRangeBegin] ListEventsResponse timeRangeBegin
+ */
+
+ /**
+ * Constructs a new ListEventsResponse.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @classdesc Represents a ListEventsResponse.
+ * @implements IListEventsResponse
+ * @constructor
+ * @param {google.devtools.clouderrorreporting.v1beta1.IListEventsResponse=} [properties] Properties to set
+ */
+ function ListEventsResponse(properties) {
+ this.errorEvents = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ListEventsResponse errorEvents.
+ * @member {Array.} errorEvents
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListEventsResponse
+ * @instance
+ */
+ ListEventsResponse.prototype.errorEvents = $util.emptyArray;
+
+ /**
+ * ListEventsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListEventsResponse
+ * @instance
+ */
+ ListEventsResponse.prototype.nextPageToken = "";
+
+ /**
+ * ListEventsResponse timeRangeBegin.
+ * @member {google.protobuf.ITimestamp|null|undefined} timeRangeBegin
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListEventsResponse
+ * @instance
+ */
+ ListEventsResponse.prototype.timeRangeBegin = null;
+
+ /**
+ * Creates a new ListEventsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListEventsResponse
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IListEventsResponse=} [properties] Properties to set
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ListEventsResponse} ListEventsResponse instance
+ */
+ ListEventsResponse.create = function create(properties) {
+ return new ListEventsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListEventsResponse message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ListEventsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListEventsResponse
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IListEventsResponse} message ListEventsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListEventsResponse.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.errorEvents != null && message.errorEvents.length)
+ for (var i = 0; i < message.errorEvents.length; ++i)
+ $root.google.devtools.clouderrorreporting.v1beta1.ErrorEvent.encode(message.errorEvents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ if (message.timeRangeBegin != null && Object.hasOwnProperty.call(message, "timeRangeBegin"))
+ $root.google.protobuf.Timestamp.encode(message.timeRangeBegin, writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListEventsResponse message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ListEventsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListEventsResponse
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IListEventsResponse} message ListEventsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListEventsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListEventsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListEventsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ListEventsResponse} ListEventsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListEventsResponse.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.clouderrorreporting.v1beta1.ListEventsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.errorEvents && message.errorEvents.length))
+ message.errorEvents = [];
+ message.errorEvents.push($root.google.devtools.clouderrorreporting.v1beta1.ErrorEvent.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ case 4: {
+ message.timeRangeBegin = $root.google.protobuf.Timestamp.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListEventsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListEventsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ListEventsResponse} ListEventsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListEventsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListEventsResponse message.
+ * @function verify
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListEventsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListEventsResponse.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.errorEvents != null && Object.hasOwnProperty.call(message, "errorEvents")) {
+ if (!Array.isArray(message.errorEvents))
+ return "errorEvents: array expected";
+ for (var i = 0; i < message.errorEvents.length; ++i) {
+ var error = $root.google.devtools.clouderrorreporting.v1beta1.ErrorEvent.verify(message.errorEvents[i], long + 1);
+ if (error)
+ return "errorEvents." + error;
+ }
+ }
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ if (message.timeRangeBegin != null && Object.hasOwnProperty.call(message, "timeRangeBegin")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.timeRangeBegin, long + 1);
+ if (error)
+ return "timeRangeBegin." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ListEventsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListEventsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ListEventsResponse} ListEventsResponse
+ */
+ ListEventsResponse.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.devtools.clouderrorreporting.v1beta1.ListEventsResponse)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ListEventsResponse: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.devtools.clouderrorreporting.v1beta1.ListEventsResponse();
+ if (object.errorEvents) {
+ if (!Array.isArray(object.errorEvents))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ListEventsResponse.errorEvents: array expected");
+ message.errorEvents = [];
+ for (var i = 0; i < object.errorEvents.length; ++i) {
+ if (!$util.isObject(object.errorEvents[i]))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ListEventsResponse.errorEvents: object expected");
+ message.errorEvents[i] = $root.google.devtools.clouderrorreporting.v1beta1.ErrorEvent.fromObject(object.errorEvents[i], long + 1);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.timeRangeBegin != null) {
+ if (!$util.isObject(object.timeRangeBegin))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ListEventsResponse.timeRangeBegin: object expected");
+ message.timeRangeBegin = $root.google.protobuf.Timestamp.fromObject(object.timeRangeBegin, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListEventsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListEventsResponse
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.ListEventsResponse} message ListEventsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListEventsResponse.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.errorEvents = [];
+ if (options.defaults) {
+ object.nextPageToken = "";
+ object.timeRangeBegin = null;
+ }
+ if (message.errorEvents && message.errorEvents.length) {
+ object.errorEvents = [];
+ for (var j = 0; j < message.errorEvents.length; ++j)
+ object.errorEvents[j] = $root.google.devtools.clouderrorreporting.v1beta1.ErrorEvent.toObject(message.errorEvents[j], options, q + 1);
+ }
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ if (message.timeRangeBegin != null && Object.hasOwnProperty.call(message, "timeRangeBegin"))
+ object.timeRangeBegin = $root.google.protobuf.Timestamp.toObject(message.timeRangeBegin, options, q + 1);
+ return object;
+ };
+
+ /**
+ * Converts this ListEventsResponse to JSON.
+ * @function toJSON
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListEventsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListEventsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListEventsResponse
+ * @function getTypeUrl
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ListEventsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListEventsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.devtools.clouderrorreporting.v1beta1.ListEventsResponse";
+ };
+
+ return ListEventsResponse;
+ })();
+
+ v1beta1.QueryTimeRange = (function() {
+
+ /**
+ * Properties of a QueryTimeRange.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @interface IQueryTimeRange
+ * @property {google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period|null} [period] QueryTimeRange period
+ */
+
+ /**
+ * Constructs a new QueryTimeRange.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @classdesc Represents a QueryTimeRange.
+ * @implements IQueryTimeRange
+ * @constructor
+ * @param {google.devtools.clouderrorreporting.v1beta1.IQueryTimeRange=} [properties] Properties to set
+ */
+ function QueryTimeRange(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * QueryTimeRange period.
+ * @member {google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period} period
+ * @memberof google.devtools.clouderrorreporting.v1beta1.QueryTimeRange
+ * @instance
+ */
+ QueryTimeRange.prototype.period = 0;
+
+ /**
+ * Creates a new QueryTimeRange instance using the specified properties.
+ * @function create
+ * @memberof google.devtools.clouderrorreporting.v1beta1.QueryTimeRange
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IQueryTimeRange=} [properties] Properties to set
+ * @returns {google.devtools.clouderrorreporting.v1beta1.QueryTimeRange} QueryTimeRange instance
+ */
+ QueryTimeRange.create = function create(properties) {
+ return new QueryTimeRange(properties);
+ };
+
+ /**
+ * Encodes the specified QueryTimeRange message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.verify|verify} messages.
+ * @function encode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.QueryTimeRange
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IQueryTimeRange} message QueryTimeRange message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ QueryTimeRange.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.period != null && Object.hasOwnProperty.call(message, "period"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.period);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified QueryTimeRange message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.QueryTimeRange
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IQueryTimeRange} message QueryTimeRange message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ QueryTimeRange.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a QueryTimeRange message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.QueryTimeRange
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.devtools.clouderrorreporting.v1beta1.QueryTimeRange} QueryTimeRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ QueryTimeRange.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.period = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a QueryTimeRange message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.QueryTimeRange
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.devtools.clouderrorreporting.v1beta1.QueryTimeRange} QueryTimeRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ QueryTimeRange.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a QueryTimeRange message.
+ * @function verify
+ * @memberof google.devtools.clouderrorreporting.v1beta1.QueryTimeRange
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ QueryTimeRange.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.period != null && Object.hasOwnProperty.call(message, "period"))
+ switch (message.period) {
+ default:
+ return "period: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a QueryTimeRange message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.QueryTimeRange
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.devtools.clouderrorreporting.v1beta1.QueryTimeRange} QueryTimeRange
+ */
+ QueryTimeRange.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.QueryTimeRange: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange();
+ switch (object.period) {
+ default:
+ if (typeof object.period === "number") {
+ message.period = object.period;
+ break;
+ }
+ break;
+ case "PERIOD_UNSPECIFIED":
+ case 0:
+ message.period = 0;
+ break;
+ case "PERIOD_1_HOUR":
+ case 1:
+ message.period = 1;
+ break;
+ case "PERIOD_6_HOURS":
+ case 2:
+ message.period = 2;
+ break;
+ case "PERIOD_1_DAY":
+ case 3:
+ message.period = 3;
+ break;
+ case "PERIOD_1_WEEK":
+ case 4:
+ message.period = 4;
+ break;
+ case "PERIOD_30_DAYS":
+ case 5:
+ message.period = 5;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a QueryTimeRange message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.QueryTimeRange
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.QueryTimeRange} message QueryTimeRange
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ QueryTimeRange.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults)
+ object.period = options.enums === String ? "PERIOD_UNSPECIFIED" : 0;
+ if (message.period != null && Object.hasOwnProperty.call(message, "period"))
+ object.period = options.enums === String ? $root.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period[message.period] === undefined ? message.period : $root.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period[message.period] : message.period;
+ return object;
+ };
+
+ /**
+ * Converts this QueryTimeRange to JSON.
+ * @function toJSON
+ * @memberof google.devtools.clouderrorreporting.v1beta1.QueryTimeRange
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ QueryTimeRange.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for QueryTimeRange
+ * @function getTypeUrl
+ * @memberof google.devtools.clouderrorreporting.v1beta1.QueryTimeRange
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ QueryTimeRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.devtools.clouderrorreporting.v1beta1.QueryTimeRange";
+ };
+
+ /**
+ * Period enum.
+ * @name google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period
+ * @enum {number}
+ * @property {number} PERIOD_UNSPECIFIED=0 PERIOD_UNSPECIFIED value
+ * @property {number} PERIOD_1_HOUR=1 PERIOD_1_HOUR value
+ * @property {number} PERIOD_6_HOURS=2 PERIOD_6_HOURS value
+ * @property {number} PERIOD_1_DAY=3 PERIOD_1_DAY value
+ * @property {number} PERIOD_1_WEEK=4 PERIOD_1_WEEK value
+ * @property {number} PERIOD_30_DAYS=5 PERIOD_30_DAYS value
+ */
+ QueryTimeRange.Period = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "PERIOD_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "PERIOD_1_HOUR"] = 1;
+ values[valuesById[2] = "PERIOD_6_HOURS"] = 2;
+ values[valuesById[3] = "PERIOD_1_DAY"] = 3;
+ values[valuesById[4] = "PERIOD_1_WEEK"] = 4;
+ values[valuesById[5] = "PERIOD_30_DAYS"] = 5;
+ return values;
+ })();
+
+ return QueryTimeRange;
+ })();
+
+ v1beta1.ServiceContextFilter = (function() {
+
+ /**
+ * Properties of a ServiceContextFilter.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @interface IServiceContextFilter
+ * @property {string|null} [service] ServiceContextFilter service
+ * @property {string|null} [version] ServiceContextFilter version
+ * @property {string|null} [resourceType] ServiceContextFilter resourceType
+ */
+
+ /**
+ * Constructs a new ServiceContextFilter.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @classdesc Represents a ServiceContextFilter.
+ * @implements IServiceContextFilter
+ * @constructor
+ * @param {google.devtools.clouderrorreporting.v1beta1.IServiceContextFilter=} [properties] Properties to set
+ */
+ function ServiceContextFilter(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ServiceContextFilter service.
+ * @member {string} service
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter
+ * @instance
+ */
+ ServiceContextFilter.prototype.service = "";
+
+ /**
+ * ServiceContextFilter version.
+ * @member {string} version
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter
+ * @instance
+ */
+ ServiceContextFilter.prototype.version = "";
+
+ /**
+ * ServiceContextFilter resourceType.
+ * @member {string} resourceType
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter
+ * @instance
+ */
+ ServiceContextFilter.prototype.resourceType = "";
+
+ /**
+ * Creates a new ServiceContextFilter instance using the specified properties.
+ * @function create
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IServiceContextFilter=} [properties] Properties to set
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter} ServiceContextFilter instance
+ */
+ ServiceContextFilter.create = function create(properties) {
+ return new ServiceContextFilter(properties);
+ };
+
+ /**
+ * Encodes the specified ServiceContextFilter message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter.verify|verify} messages.
+ * @function encode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IServiceContextFilter} message ServiceContextFilter message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ServiceContextFilter.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.service != null && Object.hasOwnProperty.call(message, "service"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.service);
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.version);
+ if (message.resourceType != null && Object.hasOwnProperty.call(message, "resourceType"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.resourceType);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ServiceContextFilter message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IServiceContextFilter} message ServiceContextFilter message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ServiceContextFilter.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a ServiceContextFilter message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter} ServiceContextFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ServiceContextFilter.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 2: {
+ message.service = reader.string();
+ break;
+ }
+ case 3: {
+ message.version = reader.string();
+ break;
+ }
+ case 4: {
+ message.resourceType = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ServiceContextFilter message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter} ServiceContextFilter
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ServiceContextFilter.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ServiceContextFilter message.
+ * @function verify
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ServiceContextFilter.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.service != null && Object.hasOwnProperty.call(message, "service"))
+ if (!$util.isString(message.service))
+ return "service: string expected";
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
+ if (!$util.isString(message.version))
+ return "version: string expected";
+ if (message.resourceType != null && Object.hasOwnProperty.call(message, "resourceType"))
+ if (!$util.isString(message.resourceType))
+ return "resourceType: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ServiceContextFilter message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter} ServiceContextFilter
+ */
+ ServiceContextFilter.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter();
+ if (object.service != null)
+ message.service = String(object.service);
+ if (object.version != null)
+ message.version = String(object.version);
+ if (object.resourceType != null)
+ message.resourceType = String(object.resourceType);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ServiceContextFilter message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter} message ServiceContextFilter
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ServiceContextFilter.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.service = "";
+ object.version = "";
+ object.resourceType = "";
+ }
+ if (message.service != null && Object.hasOwnProperty.call(message, "service"))
+ object.service = message.service;
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
+ object.version = message.version;
+ if (message.resourceType != null && Object.hasOwnProperty.call(message, "resourceType"))
+ object.resourceType = message.resourceType;
+ return object;
+ };
+
+ /**
+ * Converts this ServiceContextFilter to JSON.
+ * @function toJSON
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ServiceContextFilter.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ServiceContextFilter
+ * @function getTypeUrl
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ServiceContextFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter";
+ };
+
+ return ServiceContextFilter;
+ })();
+
+ v1beta1.DeleteEventsRequest = (function() {
+
+ /**
+ * Properties of a DeleteEventsRequest.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @interface IDeleteEventsRequest
+ * @property {string|null} [projectName] DeleteEventsRequest projectName
+ */
+
+ /**
+ * Constructs a new DeleteEventsRequest.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @classdesc Represents a DeleteEventsRequest.
+ * @implements IDeleteEventsRequest
+ * @constructor
+ * @param {google.devtools.clouderrorreporting.v1beta1.IDeleteEventsRequest=} [properties] Properties to set
+ */
+ function DeleteEventsRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * DeleteEventsRequest projectName.
+ * @member {string} projectName
+ * @memberof google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest
+ * @instance
+ */
+ DeleteEventsRequest.prototype.projectName = "";
+
+ /**
+ * Creates a new DeleteEventsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IDeleteEventsRequest=} [properties] Properties to set
+ * @returns {google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest} DeleteEventsRequest instance
+ */
+ DeleteEventsRequest.create = function create(properties) {
+ return new DeleteEventsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteEventsRequest message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IDeleteEventsRequest} message DeleteEventsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteEventsRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.projectName != null && Object.hasOwnProperty.call(message, "projectName"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectName);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DeleteEventsRequest message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IDeleteEventsRequest} message DeleteEventsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteEventsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteEventsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest} DeleteEventsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteEventsRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.projectName = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DeleteEventsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest} DeleteEventsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteEventsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteEventsRequest message.
+ * @function verify
+ * @memberof google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteEventsRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.projectName != null && Object.hasOwnProperty.call(message, "projectName"))
+ if (!$util.isString(message.projectName))
+ return "projectName: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a DeleteEventsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest} DeleteEventsRequest
+ */
+ DeleteEventsRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest();
+ if (object.projectName != null)
+ message.projectName = String(object.projectName);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteEventsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest} message DeleteEventsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteEventsRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults)
+ object.projectName = "";
+ if (message.projectName != null && Object.hasOwnProperty.call(message, "projectName"))
+ object.projectName = message.projectName;
+ return object;
+ };
+
+ /**
+ * Converts this DeleteEventsRequest to JSON.
+ * @function toJSON
+ * @memberof google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteEventsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteEventsRequest
+ * @function getTypeUrl
+ * @memberof google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteEventsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest";
+ };
+
+ return DeleteEventsRequest;
+ })();
+
+ v1beta1.DeleteEventsResponse = (function() {
+
+ /**
+ * Properties of a DeleteEventsResponse.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @interface IDeleteEventsResponse
+ */
+
+ /**
+ * Constructs a new DeleteEventsResponse.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @classdesc Represents a DeleteEventsResponse.
+ * @implements IDeleteEventsResponse
+ * @constructor
+ * @param {google.devtools.clouderrorreporting.v1beta1.IDeleteEventsResponse=} [properties] Properties to set
+ */
+ function DeleteEventsResponse(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Creates a new DeleteEventsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IDeleteEventsResponse=} [properties] Properties to set
+ * @returns {google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse} DeleteEventsResponse instance
+ */
+ DeleteEventsResponse.create = function create(properties) {
+ return new DeleteEventsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteEventsResponse message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IDeleteEventsResponse} message DeleteEventsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteEventsResponse.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DeleteEventsResponse message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IDeleteEventsResponse} message DeleteEventsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteEventsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteEventsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse} DeleteEventsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteEventsResponse.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DeleteEventsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse} DeleteEventsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteEventsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteEventsResponse message.
+ * @function verify
+ * @memberof google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteEventsResponse.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ return null;
+ };
+
+ /**
+ * Creates a DeleteEventsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse} DeleteEventsResponse
+ */
+ DeleteEventsResponse.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse)
+ return object;
+ return new $root.google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse();
+ };
+
+ /**
+ * Creates a plain object from a DeleteEventsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse} message DeleteEventsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteEventsResponse.toObject = function toObject() {
+ return {};
+ };
+
+ /**
+ * Converts this DeleteEventsResponse to JSON.
+ * @function toJSON
+ * @memberof google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteEventsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteEventsResponse
+ * @function getTypeUrl
+ * @memberof google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteEventsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse";
+ };
+
+ return DeleteEventsResponse;
+ })();
+
+ v1beta1.ReportErrorsService = (function() {
+
+ /**
+ * Constructs a new ReportErrorsService service.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @classdesc Represents a ReportErrorsService
+ * @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 ReportErrorsService(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (ReportErrorsService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ReportErrorsService;
+
+ /**
+ * Creates new ReportErrorsService service using the specified rpc implementation.
+ * @function create
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportErrorsService
+ * @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 {ReportErrorsService} RPC service. Useful where requests and/or responses are streamed.
+ */
+ ReportErrorsService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.devtools.clouderrorreporting.v1beta1.ReportErrorsService|reportErrorEvent}.
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportErrorsService
+ * @typedef ReportErrorEventCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse} [response] ReportErrorEventResponse
+ */
+
+ /**
+ * Calls ReportErrorEvent.
+ * @function reportErrorEvent
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportErrorsService
+ * @instance
+ * @param {google.devtools.clouderrorreporting.v1beta1.IReportErrorEventRequest} request ReportErrorEventRequest message or plain object
+ * @param {google.devtools.clouderrorreporting.v1beta1.ReportErrorsService.ReportErrorEventCallback} callback Node-style callback called with the error, if any, and ReportErrorEventResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ReportErrorsService.prototype.reportErrorEvent = function reportErrorEvent(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, reportErrorEvent, $root.google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest, $root.google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse, request, callback);
+ }, "name", { value: "ReportErrorEvent" });
+
+ /**
+ * Calls ReportErrorEvent.
+ * @function reportErrorEvent
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportErrorsService
+ * @instance
+ * @param {google.devtools.clouderrorreporting.v1beta1.IReportErrorEventRequest} request ReportErrorEventRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return ReportErrorsService;
+ })();
+
+ v1beta1.ReportErrorEventRequest = (function() {
+
+ /**
+ * Properties of a ReportErrorEventRequest.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @interface IReportErrorEventRequest
+ * @property {string|null} [projectName] ReportErrorEventRequest projectName
+ * @property {google.devtools.clouderrorreporting.v1beta1.IReportedErrorEvent|null} [event] ReportErrorEventRequest event
+ */
+
+ /**
+ * Constructs a new ReportErrorEventRequest.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @classdesc Represents a ReportErrorEventRequest.
+ * @implements IReportErrorEventRequest
+ * @constructor
+ * @param {google.devtools.clouderrorreporting.v1beta1.IReportErrorEventRequest=} [properties] Properties to set
+ */
+ function ReportErrorEventRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ReportErrorEventRequest projectName.
+ * @member {string} projectName
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest
+ * @instance
+ */
+ ReportErrorEventRequest.prototype.projectName = "";
+
+ /**
+ * ReportErrorEventRequest event.
+ * @member {google.devtools.clouderrorreporting.v1beta1.IReportedErrorEvent|null|undefined} event
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest
+ * @instance
+ */
+ ReportErrorEventRequest.prototype.event = null;
+
+ /**
+ * Creates a new ReportErrorEventRequest instance using the specified properties.
+ * @function create
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IReportErrorEventRequest=} [properties] Properties to set
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest} ReportErrorEventRequest instance
+ */
+ ReportErrorEventRequest.create = function create(properties) {
+ return new ReportErrorEventRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ReportErrorEventRequest message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IReportErrorEventRequest} message ReportErrorEventRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ReportErrorEventRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.projectName != null && Object.hasOwnProperty.call(message, "projectName"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectName);
+ if (message.event != null && Object.hasOwnProperty.call(message, "event"))
+ $root.google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent.encode(message.event, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ReportErrorEventRequest message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IReportErrorEventRequest} message ReportErrorEventRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ReportErrorEventRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a ReportErrorEventRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest} ReportErrorEventRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ReportErrorEventRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.projectName = reader.string();
+ break;
+ }
+ case 2: {
+ message.event = $root.google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ReportErrorEventRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest} ReportErrorEventRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ReportErrorEventRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ReportErrorEventRequest message.
+ * @function verify
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ReportErrorEventRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.projectName != null && Object.hasOwnProperty.call(message, "projectName"))
+ if (!$util.isString(message.projectName))
+ return "projectName: string expected";
+ if (message.event != null && Object.hasOwnProperty.call(message, "event")) {
+ var error = $root.google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent.verify(message.event, long + 1);
+ if (error)
+ return "event." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ReportErrorEventRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest} ReportErrorEventRequest
+ */
+ ReportErrorEventRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest();
+ if (object.projectName != null)
+ message.projectName = String(object.projectName);
+ if (object.event != null) {
+ if (!$util.isObject(object.event))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest.event: object expected");
+ message.event = $root.google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent.fromObject(object.event, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ReportErrorEventRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest} message ReportErrorEventRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ReportErrorEventRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.projectName = "";
+ object.event = null;
+ }
+ if (message.projectName != null && Object.hasOwnProperty.call(message, "projectName"))
+ object.projectName = message.projectName;
+ if (message.event != null && Object.hasOwnProperty.call(message, "event"))
+ object.event = $root.google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent.toObject(message.event, options, q + 1);
+ return object;
+ };
+
+ /**
+ * Converts this ReportErrorEventRequest to JSON.
+ * @function toJSON
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ReportErrorEventRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ReportErrorEventRequest
+ * @function getTypeUrl
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ReportErrorEventRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest";
+ };
+
+ return ReportErrorEventRequest;
+ })();
+
+ v1beta1.ReportErrorEventResponse = (function() {
+
+ /**
+ * Properties of a ReportErrorEventResponse.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @interface IReportErrorEventResponse
+ */
+
+ /**
+ * Constructs a new ReportErrorEventResponse.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @classdesc Represents a ReportErrorEventResponse.
+ * @implements IReportErrorEventResponse
+ * @constructor
+ * @param {google.devtools.clouderrorreporting.v1beta1.IReportErrorEventResponse=} [properties] Properties to set
+ */
+ function ReportErrorEventResponse(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Creates a new ReportErrorEventResponse instance using the specified properties.
+ * @function create
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IReportErrorEventResponse=} [properties] Properties to set
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse} ReportErrorEventResponse instance
+ */
+ ReportErrorEventResponse.create = function create(properties) {
+ return new ReportErrorEventResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ReportErrorEventResponse message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IReportErrorEventResponse} message ReportErrorEventResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ReportErrorEventResponse.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ReportErrorEventResponse message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IReportErrorEventResponse} message ReportErrorEventResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ReportErrorEventResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a ReportErrorEventResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse} ReportErrorEventResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ReportErrorEventResponse.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ReportErrorEventResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse} ReportErrorEventResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ReportErrorEventResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ReportErrorEventResponse message.
+ * @function verify
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ReportErrorEventResponse.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ return null;
+ };
+
+ /**
+ * Creates a ReportErrorEventResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse} ReportErrorEventResponse
+ */
+ ReportErrorEventResponse.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse)
+ return object;
+ return new $root.google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse();
+ };
+
+ /**
+ * Creates a plain object from a ReportErrorEventResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse} message ReportErrorEventResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ReportErrorEventResponse.toObject = function toObject() {
+ return {};
+ };
+
+ /**
+ * Converts this ReportErrorEventResponse to JSON.
+ * @function toJSON
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ReportErrorEventResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ReportErrorEventResponse
+ * @function getTypeUrl
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ReportErrorEventResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse";
+ };
+
+ return ReportErrorEventResponse;
+ })();
+
+ v1beta1.ReportedErrorEvent = (function() {
+
+ /**
+ * Properties of a ReportedErrorEvent.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @interface IReportedErrorEvent
+ * @property {google.protobuf.ITimestamp|null} [eventTime] ReportedErrorEvent eventTime
+ * @property {google.devtools.clouderrorreporting.v1beta1.IServiceContext|null} [serviceContext] ReportedErrorEvent serviceContext
+ * @property {string|null} [message] ReportedErrorEvent message
+ * @property {google.devtools.clouderrorreporting.v1beta1.IErrorContext|null} [context] ReportedErrorEvent context
+ */
+
+ /**
+ * Constructs a new ReportedErrorEvent.
+ * @memberof google.devtools.clouderrorreporting.v1beta1
+ * @classdesc Represents a ReportedErrorEvent.
+ * @implements IReportedErrorEvent
+ * @constructor
+ * @param {google.devtools.clouderrorreporting.v1beta1.IReportedErrorEvent=} [properties] Properties to set
+ */
+ function ReportedErrorEvent(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ReportedErrorEvent eventTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} eventTime
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent
+ * @instance
+ */
+ ReportedErrorEvent.prototype.eventTime = null;
+
+ /**
+ * ReportedErrorEvent serviceContext.
+ * @member {google.devtools.clouderrorreporting.v1beta1.IServiceContext|null|undefined} serviceContext
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent
+ * @instance
+ */
+ ReportedErrorEvent.prototype.serviceContext = null;
+
+ /**
+ * ReportedErrorEvent message.
+ * @member {string} message
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent
+ * @instance
+ */
+ ReportedErrorEvent.prototype.message = "";
+
+ /**
+ * ReportedErrorEvent context.
+ * @member {google.devtools.clouderrorreporting.v1beta1.IErrorContext|null|undefined} context
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent
+ * @instance
+ */
+ ReportedErrorEvent.prototype.context = null;
+
+ /**
+ * Creates a new ReportedErrorEvent instance using the specified properties.
+ * @function create
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IReportedErrorEvent=} [properties] Properties to set
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent} ReportedErrorEvent instance
+ */
+ ReportedErrorEvent.create = function create(properties) {
+ return new ReportedErrorEvent(properties);
+ };
+
+ /**
+ * Encodes the specified ReportedErrorEvent message. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent.verify|verify} messages.
+ * @function encode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IReportedErrorEvent} message ReportedErrorEvent message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ReportedErrorEvent.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.eventTime != null && Object.hasOwnProperty.call(message, "eventTime"))
+ $root.google.protobuf.Timestamp.encode(message.eventTime, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ if (message.serviceContext != null && Object.hasOwnProperty.call(message, "serviceContext"))
+ $root.google.devtools.clouderrorreporting.v1beta1.ServiceContext.encode(message.serviceContext, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim();
+ if (message.message != null && Object.hasOwnProperty.call(message, "message"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.message);
+ if (message.context != null && Object.hasOwnProperty.call(message, "context"))
+ $root.google.devtools.clouderrorreporting.v1beta1.ErrorContext.encode(message.context, writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ReportedErrorEvent message, length delimited. Does not implicitly {@link google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.IReportedErrorEvent} message ReportedErrorEvent message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ReportedErrorEvent.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a ReportedErrorEvent message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent} ReportedErrorEvent
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ReportedErrorEvent.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.eventTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 2: {
+ message.serviceContext = $root.google.devtools.clouderrorreporting.v1beta1.ServiceContext.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 3: {
+ message.message = reader.string();
+ break;
+ }
+ case 4: {
+ message.context = $root.google.devtools.clouderrorreporting.v1beta1.ErrorContext.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ReportedErrorEvent message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent} ReportedErrorEvent
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ReportedErrorEvent.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ReportedErrorEvent message.
+ * @function verify
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ReportedErrorEvent.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.eventTime != null && Object.hasOwnProperty.call(message, "eventTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.eventTime, long + 1);
+ if (error)
+ return "eventTime." + error;
+ }
+ if (message.serviceContext != null && Object.hasOwnProperty.call(message, "serviceContext")) {
+ var error = $root.google.devtools.clouderrorreporting.v1beta1.ServiceContext.verify(message.serviceContext, long + 1);
+ if (error)
+ return "serviceContext." + error;
+ }
+ if (message.message != null && Object.hasOwnProperty.call(message, "message"))
+ if (!$util.isString(message.message))
+ return "message: string expected";
+ if (message.context != null && Object.hasOwnProperty.call(message, "context")) {
+ var error = $root.google.devtools.clouderrorreporting.v1beta1.ErrorContext.verify(message.context, long + 1);
+ if (error)
+ return "context." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ReportedErrorEvent message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent} ReportedErrorEvent
+ */
+ ReportedErrorEvent.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent();
+ if (object.eventTime != null) {
+ if (!$util.isObject(object.eventTime))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent.eventTime: object expected");
+ message.eventTime = $root.google.protobuf.Timestamp.fromObject(object.eventTime, long + 1);
+ }
+ if (object.serviceContext != null) {
+ if (!$util.isObject(object.serviceContext))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent.serviceContext: object expected");
+ message.serviceContext = $root.google.devtools.clouderrorreporting.v1beta1.ServiceContext.fromObject(object.serviceContext, long + 1);
+ }
+ if (object.message != null)
+ message.message = String(object.message);
+ if (object.context != null) {
+ if (!$util.isObject(object.context))
+ throw TypeError(".google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent.context: object expected");
+ message.context = $root.google.devtools.clouderrorreporting.v1beta1.ErrorContext.fromObject(object.context, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ReportedErrorEvent message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent
+ * @static
+ * @param {google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent} message ReportedErrorEvent
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ReportedErrorEvent.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.eventTime = null;
+ object.serviceContext = null;
+ object.message = "";
+ object.context = null;
+ }
+ if (message.eventTime != null && Object.hasOwnProperty.call(message, "eventTime"))
+ object.eventTime = $root.google.protobuf.Timestamp.toObject(message.eventTime, options, q + 1);
+ if (message.serviceContext != null && Object.hasOwnProperty.call(message, "serviceContext"))
+ object.serviceContext = $root.google.devtools.clouderrorreporting.v1beta1.ServiceContext.toObject(message.serviceContext, options, q + 1);
+ if (message.message != null && Object.hasOwnProperty.call(message, "message"))
+ object.message = message.message;
+ if (message.context != null && Object.hasOwnProperty.call(message, "context"))
+ object.context = $root.google.devtools.clouderrorreporting.v1beta1.ErrorContext.toObject(message.context, options, q + 1);
+ return object;
+ };
+
+ /**
+ * Converts this ReportedErrorEvent to JSON.
+ * @function toJSON
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ReportedErrorEvent.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ReportedErrorEvent
+ * @function getTypeUrl
+ * @memberof google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ReportedErrorEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent";
+ };
+
+ return ReportedErrorEvent;
+ })();
+
+ return v1beta1;
+ })();
+
+ return clouderrorreporting;
+ })();
+
+ return devtools;
+ })();
+
+ google.api = (function() {
+
+ /**
+ * Namespace api.
+ * @memberof google
+ * @namespace
+ */
+ var api = {};
+
+ 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
+ * @property {Array.|null} [style] ResourceDescriptor style
+ */
+
+ /**
+ * 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 = [];
+ this.style = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ 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 = "";
+
+ /**
+ * 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
+ * @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, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ 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);
+ 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;
+ };
+
+ /**
+ * 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 && writer.len ? writer.fork() : 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, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceDescriptor();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ 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)
+ message.style.push(reader.int32());
+ } else
+ message.style.push(reader.int32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ 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, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ if (!$util.isString(message.type))
+ return "type: string expected";
+ if (message.pattern != null && Object.hasOwnProperty.call(message, "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 && Object.hasOwnProperty.call(message, "nameField"))
+ if (!$util.isString(message.nameField))
+ return "nameField: string expected";
+ if (message.history != null && Object.hasOwnProperty.call(message, "history"))
+ switch (message.history) {
+ default:
+ return "history: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.plural != null && Object.hasOwnProperty.call(message, "plural"))
+ if (!$util.isString(message.plural))
+ return "plural: string expected";
+ if (message.singular != null && Object.hasOwnProperty.call(message, "singular"))
+ if (!$util.isString(message.singular))
+ return "singular: string expected";
+ if (message.style != null && Object.hasOwnProperty.call(message, "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;
+ };
+
+ /**
+ * 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, long) {
+ if (object instanceof $root.google.api.ResourceDescriptor)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.api.ResourceDescriptor: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ 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) {
+ default:
+ if (typeof object.history === "number") {
+ message.history = object.history;
+ break;
+ }
+ break;
+ 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);
+ 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:
+ if (typeof object.style[i] === "number") {
+ message.style[i] = object.style[i];
+ break;
+ }
+ case "STYLE_UNSPECIFIED":
+ case 0:
+ message.style[i] = 0;
+ break;
+ case "DECLARATIVE_FRIENDLY":
+ case 1:
+ message.style[i] = 1;
+ break;
+ }
+ }
+ 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, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.pattern = [];
+ object.style = [];
+ }
+ if (options.defaults) {
+ object.type = "";
+ object.nameField = "";
+ object.history = options.enums === String ? "HISTORY_UNSPECIFIED" : 0;
+ object.plural = "";
+ object.singular = "";
+ }
+ if (message.type != null && Object.hasOwnProperty.call(message, "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 && Object.hasOwnProperty.call(message, "nameField"))
+ object.nameField = message.nameField;
+ if (message.history != null && Object.hasOwnProperty.call(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 && Object.hasOwnProperty.call(message, "plural"))
+ object.plural = message.plural;
+ if (message.singular != null && Object.hasOwnProperty.call(message, "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]] === undefined ? message.style[j] : $root.google.api.ResourceDescriptor.Style[message.style[j]] : message.style[j];
+ }
+ 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);
+ };
+
+ /**
+ * 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
+ * @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;
+ })();
+
+ /**
+ * 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;
+ })();
+
+ 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 && keys[i] !== "__proto__")
+ 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, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ 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 && writer.len ? writer.fork() : 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, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceReference();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.type = reader.string();
+ break;
+ }
+ case 2: {
+ message.childType = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ 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, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ if (!$util.isString(message.type))
+ return "type: string expected";
+ if (message.childType != null && Object.hasOwnProperty.call(message, "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, long) {
+ if (object instanceof $root.google.api.ResourceReference)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.api.ResourceReference: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ 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, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.type = "";
+ object.childType = "";
+ }
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ object.type = message.type;
+ if (message.childType != null && Object.hasOwnProperty.call(message, "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);
+ };
+
+ /**
+ * 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;
+ })();
+
+ 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 && keys[i] !== "__proto__")
+ 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, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ 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(), q + 1).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 && writer.len ? writer.fork() : 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, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Http();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.rules && message.rules.length))
+ message.rules = [];
+ message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 2: {
+ message.fullyDecodeReservedExpansion = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ 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, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.rules != null && Object.hasOwnProperty.call(message, "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], long + 1);
+ if (error)
+ return "rules." + error;
+ }
+ }
+ if (message.fullyDecodeReservedExpansion != null && Object.hasOwnProperty.call(message, "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, long) {
+ if (object instanceof $root.google.api.Http)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.api.Http: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ 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 (!$util.isObject(object.rules[i]))
+ throw TypeError(".google.api.Http.rules: object expected");
+ message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i], long + 1);
+ }
+ }
+ 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, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ 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, q + 1);
+ }
+ if (message.fullyDecodeReservedExpansion != null && Object.hasOwnProperty.call(message, "fullyDecodeReservedExpansion"))
+ object.fullyDecodeReservedExpansion = message.fullyDecodeReservedExpansion;
+ return object;
+ };
+
+ /**
+ * Converts this Http to JSON.
+ * @function toJSON
+ * @memberof google.api.Http
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Http.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Http
+ * @function getTypeUrl
+ * @memberof google.api.Http
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Http.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.Http";
+ };
+
+ return Http;
+ })();
+
+ api.HttpRule = (function() {
+
+ /**
+ * Properties of a HttpRule.
+ * @memberof google.api
+ * @interface IHttpRule
+ * @property {string|null} [selector] HttpRule selector
+ * @property {string|null} [get] HttpRule get
+ * @property {string|null} [put] HttpRule put
+ * @property {string|null} [post] HttpRule post
+ * @property {string|null} ["delete"] HttpRule delete
+ * @property {string|null} [patch] HttpRule patch
+ * @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom
+ * @property {string|null} [body] HttpRule body
+ * @property {string|null} [responseBody] HttpRule responseBody
+ * @property {Array.|null} [additionalBindings] HttpRule additionalBindings
+ */
+
+ /**
+ * Constructs a new HttpRule.
+ * @memberof google.api
+ * @classdesc Represents a HttpRule.
+ * @implements IHttpRule
+ * @constructor
+ * @param {google.api.IHttpRule=} [properties] Properties to set
+ */
+ function HttpRule(properties) {
+ this.additionalBindings = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * HttpRule selector.
+ * @member {string} selector
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.selector = "";
+
+ /**
+ * HttpRule get.
+ * @member {string|null|undefined} get
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.get = null;
+
+ /**
+ * HttpRule put.
+ * @member {string|null|undefined} put
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.put = null;
+
+ /**
+ * HttpRule post.
+ * @member {string|null|undefined} post
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.post = null;
+
+ /**
+ * HttpRule delete.
+ * @member {string|null|undefined} delete
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype["delete"] = null;
+
+ /**
+ * HttpRule patch.
+ * @member {string|null|undefined} patch
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.patch = null;
+
+ /**
+ * HttpRule custom.
+ * @member {google.api.ICustomHttpPattern|null|undefined} custom
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.custom = null;
+
+ /**
+ * HttpRule body.
+ * @member {string} body
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.body = "";
+
+ /**
+ * HttpRule responseBody.
+ * @member {string} responseBody
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.responseBody = "";
+
+ /**
+ * HttpRule additionalBindings.
+ * @member {Array.} additionalBindings
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ HttpRule.prototype.additionalBindings = $util.emptyArray;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * HttpRule pattern.
+ * @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern
+ * @memberof google.api.HttpRule
+ * @instance
+ */
+ Object.defineProperty(HttpRule.prototype, "pattern", {
+ get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new HttpRule instance using the specified properties.
+ * @function create
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {google.api.IHttpRule=} [properties] Properties to set
+ * @returns {google.api.HttpRule} HttpRule instance
+ */
+ HttpRule.create = function create(properties) {
+ return new HttpRule(properties);
+ };
+
+ /**
+ * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {google.api.IHttpRule} message HttpRule message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ HttpRule.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ 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(), q + 1).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(), q + 1).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 && writer.len ? writer.fork() : 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, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.HttpRule();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ 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(), undefined, long + 1);
+ 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(), undefined, long + 1));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ 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, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ var properties = {};
+ if (message.selector != null && Object.hasOwnProperty.call(message, "selector"))
+ if (!$util.isString(message.selector))
+ return "selector: string expected";
+ if (message.get != null && Object.hasOwnProperty.call(message, "get")) {
+ properties.pattern = 1;
+ if (!$util.isString(message.get))
+ return "get: string expected";
+ }
+ if (message.put != null && Object.hasOwnProperty.call(message, "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 && Object.hasOwnProperty.call(message, "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 && Object.hasOwnProperty.call(message, "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 && Object.hasOwnProperty.call(message, "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 && Object.hasOwnProperty.call(message, "custom")) {
+ if (properties.pattern === 1)
+ return "pattern: multiple values";
+ properties.pattern = 1;
+ {
+ var error = $root.google.api.CustomHttpPattern.verify(message.custom, long + 1);
+ if (error)
+ return "custom." + error;
+ }
+ }
+ if (message.body != null && Object.hasOwnProperty.call(message, "body"))
+ if (!$util.isString(message.body))
+ return "body: string expected";
+ if (message.responseBody != null && Object.hasOwnProperty.call(message, "responseBody"))
+ if (!$util.isString(message.responseBody))
+ return "responseBody: string expected";
+ if (message.additionalBindings != null && Object.hasOwnProperty.call(message, "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], long + 1);
+ 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, long) {
+ if (object instanceof $root.google.api.HttpRule)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.api.HttpRule: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ 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 (!$util.isObject(object.custom))
+ throw TypeError(".google.api.HttpRule.custom: object expected");
+ message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom, long + 1);
+ }
+ 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 (!$util.isObject(object.additionalBindings[i]))
+ throw TypeError(".google.api.HttpRule.additionalBindings: object expected");
+ message.additionalBindings[i] = $root.google.api.HttpRule.fromObject(object.additionalBindings[i], long + 1);
+ }
+ }
+ 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, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.additionalBindings = [];
+ if (options.defaults) {
+ object.selector = "";
+ object.body = "";
+ object.responseBody = "";
+ }
+ if (message.selector != null && Object.hasOwnProperty.call(message, "selector"))
+ object.selector = message.selector;
+ if (message.get != null && Object.hasOwnProperty.call(message, "get")) {
+ object.get = message.get;
+ if (options.oneofs)
+ object.pattern = "get";
+ }
+ if (message.put != null && Object.hasOwnProperty.call(message, "put")) {
+ object.put = message.put;
+ if (options.oneofs)
+ object.pattern = "put";
+ }
+ if (message.post != null && Object.hasOwnProperty.call(message, "post")) {
+ object.post = message.post;
+ if (options.oneofs)
+ object.pattern = "post";
+ }
+ if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete")) {
+ object["delete"] = message["delete"];
+ if (options.oneofs)
+ object.pattern = "delete";
+ }
+ if (message.patch != null && Object.hasOwnProperty.call(message, "patch")) {
+ object.patch = message.patch;
+ if (options.oneofs)
+ object.pattern = "patch";
+ }
+ if (message.body != null && Object.hasOwnProperty.call(message, "body"))
+ object.body = message.body;
+ if (message.custom != null && Object.hasOwnProperty.call(message, "custom")) {
+ object.custom = $root.google.api.CustomHttpPattern.toObject(message.custom, options, q + 1);
+ 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, q + 1);
+ }
+ if (message.responseBody != null && Object.hasOwnProperty.call(message, "responseBody"))
+ object.responseBody = message.responseBody;
+ return object;
+ };
+
+ /**
+ * Converts this HttpRule to JSON.
+ * @function toJSON
+ * @memberof google.api.HttpRule
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ HttpRule.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for HttpRule
+ * @function getTypeUrl
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ HttpRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.HttpRule";
+ };
+
+ return HttpRule;
+ })();
+
+ api.CustomHttpPattern = (function() {
+
+ /**
+ * Properties of a CustomHttpPattern.
+ * @memberof google.api
+ * @interface ICustomHttpPattern
+ * @property {string|null} [kind] CustomHttpPattern kind
+ * @property {string|null} [path] CustomHttpPattern path
+ */
+
+ /**
+ * Constructs a new CustomHttpPattern.
+ * @memberof google.api
+ * @classdesc Represents a CustomHttpPattern.
+ * @implements ICustomHttpPattern
+ * @constructor
+ * @param {google.api.ICustomHttpPattern=} [properties] Properties to set
+ */
+ function CustomHttpPattern(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ 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, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ 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 && writer.len ? writer.fork() : 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, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CustomHttpPattern();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.kind = reader.string();
+ break;
+ }
+ case 2: {
+ message.path = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ 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, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.kind != null && Object.hasOwnProperty.call(message, "kind"))
+ if (!$util.isString(message.kind))
+ return "kind: string expected";
+ if (message.path != null && Object.hasOwnProperty.call(message, "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, long) {
+ if (object instanceof $root.google.api.CustomHttpPattern)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.api.CustomHttpPattern: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ 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, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.kind = "";
+ object.path = "";
+ }
+ if (message.kind != null && Object.hasOwnProperty.call(message, "kind"))
+ object.kind = message.kind;
+ if (message.path != null && Object.hasOwnProperty.call(message, "path"))
+ object.path = message.path;
+ return object;
+ };
+
+ /**
+ * Converts this CustomHttpPattern to JSON.
+ * @function toJSON
+ * @memberof google.api.CustomHttpPattern
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CustomHttpPattern.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CustomHttpPattern
+ * @function getTypeUrl
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CustomHttpPattern.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.CustomHttpPattern";
+ };
+
+ return CustomHttpPattern;
+ })();
+
+ api.CommonLanguageSettings = (function() {
+
+ /**
+ * Properties of a CommonLanguageSettings.
+ * @memberof google.api
+ * @interface ICommonLanguageSettings
+ * @property {string|null} [referenceDocsUri] CommonLanguageSettings referenceDocsUri
+ * @property {Array.|null} [destinations] CommonLanguageSettings destinations
+ * @property {google.api.ISelectiveGapicGeneration|null} [selectiveGapicGeneration] CommonLanguageSettings selectiveGapicGeneration
+ */
+
+ /**
+ * Constructs a new CommonLanguageSettings.
+ * @memberof google.api
+ * @classdesc Represents a CommonLanguageSettings.
+ * @implements ICommonLanguageSettings
+ * @constructor
+ * @param {google.api.ICommonLanguageSettings=} [properties] Properties to set
+ */
+ function CommonLanguageSettings(properties) {
+ this.destinations = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * CommonLanguageSettings referenceDocsUri.
+ * @member {string} referenceDocsUri
+ * @memberof google.api.CommonLanguageSettings
+ * @instance
+ */
+ CommonLanguageSettings.prototype.referenceDocsUri = "";
+
+ /**
+ * CommonLanguageSettings destinations.
+ * @member {Array.} destinations
+ * @memberof google.api.CommonLanguageSettings
+ * @instance
+ */
+ CommonLanguageSettings.prototype.destinations = $util.emptyArray;
+
+ /**
+ * CommonLanguageSettings selectiveGapicGeneration.
+ * @member {google.api.ISelectiveGapicGeneration|null|undefined} selectiveGapicGeneration
+ * @memberof google.api.CommonLanguageSettings
+ * @instance
+ */
+ CommonLanguageSettings.prototype.selectiveGapicGeneration = null;
+
+ /**
+ * Creates a new CommonLanguageSettings instance using the specified properties.
+ * @function create
+ * @memberof google.api.CommonLanguageSettings
+ * @static
+ * @param {google.api.ICommonLanguageSettings=} [properties] Properties to set
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings instance
+ */
+ CommonLanguageSettings.create = function create(properties) {
+ return new CommonLanguageSettings(properties);
+ };
+
+ /**
+ * Encodes the specified CommonLanguageSettings message. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.CommonLanguageSettings
+ * @static
+ * @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CommonLanguageSettings.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.referenceDocsUri != null && Object.hasOwnProperty.call(message, "referenceDocsUri"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.referenceDocsUri);
+ if (message.destinations != null && message.destinations.length) {
+ writer.uint32(/* id 2, wireType 2 =*/18).fork();
+ for (var i = 0; i < message.destinations.length; ++i)
+ writer.int32(message.destinations[i]);
+ writer.ldelim();
+ }
+ if (message.selectiveGapicGeneration != null && Object.hasOwnProperty.call(message, "selectiveGapicGeneration"))
+ $root.google.api.SelectiveGapicGeneration.encode(message.selectiveGapicGeneration, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CommonLanguageSettings message, length delimited. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.CommonLanguageSettings
+ * @static
+ * @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CommonLanguageSettings.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.CommonLanguageSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CommonLanguageSettings.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CommonLanguageSettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.referenceDocsUri = reader.string();
+ break;
+ }
+ case 2: {
+ if (!(message.destinations && message.destinations.length))
+ message.destinations = [];
+ if ((tag & 7) === 2) {
+ var end2 = reader.uint32() + reader.pos;
+ while (reader.pos < end2)
+ message.destinations.push(reader.int32());
+ } else
+ message.destinations.push(reader.int32());
+ break;
+ }
+ case 3: {
+ message.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.CommonLanguageSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CommonLanguageSettings.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CommonLanguageSettings message.
+ * @function verify
+ * @memberof google.api.CommonLanguageSettings
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CommonLanguageSettings.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.referenceDocsUri != null && Object.hasOwnProperty.call(message, "referenceDocsUri"))
+ if (!$util.isString(message.referenceDocsUri))
+ return "referenceDocsUri: string expected";
+ if (message.destinations != null && Object.hasOwnProperty.call(message, "destinations")) {
+ if (!Array.isArray(message.destinations))
+ return "destinations: array expected";
+ for (var i = 0; i < message.destinations.length; ++i)
+ switch (message.destinations[i]) {
+ default:
+ return "destinations: enum value[] expected";
+ case 0:
+ case 10:
+ case 20:
+ break;
+ }
+ }
+ if (message.selectiveGapicGeneration != null && Object.hasOwnProperty.call(message, "selectiveGapicGeneration")) {
+ var error = $root.google.api.SelectiveGapicGeneration.verify(message.selectiveGapicGeneration, long + 1);
+ if (error)
+ return "selectiveGapicGeneration." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CommonLanguageSettings message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.CommonLanguageSettings
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
+ */
+ CommonLanguageSettings.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.api.CommonLanguageSettings)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.api.CommonLanguageSettings: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.api.CommonLanguageSettings();
+ if (object.referenceDocsUri != null)
+ message.referenceDocsUri = String(object.referenceDocsUri);
+ if (object.destinations) {
+ if (!Array.isArray(object.destinations))
+ throw TypeError(".google.api.CommonLanguageSettings.destinations: array expected");
+ message.destinations = [];
+ for (var i = 0; i < object.destinations.length; ++i)
+ switch (object.destinations[i]) {
+ default:
+ if (typeof object.destinations[i] === "number") {
+ message.destinations[i] = object.destinations[i];
+ break;
+ }
+ case "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED":
+ case 0:
+ message.destinations[i] = 0;
+ break;
+ case "GITHUB":
+ case 10:
+ message.destinations[i] = 10;
+ break;
+ case "PACKAGE_MANAGER":
+ case 20:
+ message.destinations[i] = 20;
+ break;
+ }
+ }
+ if (object.selectiveGapicGeneration != null) {
+ if (!$util.isObject(object.selectiveGapicGeneration))
+ throw TypeError(".google.api.CommonLanguageSettings.selectiveGapicGeneration: object expected");
+ message.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.fromObject(object.selectiveGapicGeneration, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.CommonLanguageSettings
+ * @static
+ * @param {google.api.CommonLanguageSettings} message CommonLanguageSettings
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CommonLanguageSettings.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.destinations = [];
+ if (options.defaults) {
+ object.referenceDocsUri = "";
+ object.selectiveGapicGeneration = null;
+ }
+ if (message.referenceDocsUri != null && Object.hasOwnProperty.call(message, "referenceDocsUri"))
+ object.referenceDocsUri = message.referenceDocsUri;
+ if (message.destinations && message.destinations.length) {
+ object.destinations = [];
+ for (var j = 0; j < message.destinations.length; ++j)
+ object.destinations[j] = options.enums === String ? $root.google.api.ClientLibraryDestination[message.destinations[j]] === undefined ? message.destinations[j] : $root.google.api.ClientLibraryDestination[message.destinations[j]] : message.destinations[j];
+ }
+ if (message.selectiveGapicGeneration != null && Object.hasOwnProperty.call(message, "selectiveGapicGeneration"))
+ object.selectiveGapicGeneration = $root.google.api.SelectiveGapicGeneration.toObject(message.selectiveGapicGeneration, options, q + 1);
+ return object;
+ };
+
+ /**
+ * Converts this CommonLanguageSettings to JSON.
+ * @function toJSON
+ * @memberof google.api.CommonLanguageSettings
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CommonLanguageSettings.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CommonLanguageSettings
+ * @function getTypeUrl
+ * @memberof google.api.CommonLanguageSettings
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CommonLanguageSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.CommonLanguageSettings";
+ };
+
+ return CommonLanguageSettings;
+ })();
+
+ api.ClientLibrarySettings = (function() {
+
+ /**
+ * Properties of a ClientLibrarySettings.
+ * @memberof google.api
+ * @interface IClientLibrarySettings
+ * @property {string|null} [version] ClientLibrarySettings version
+ * @property {google.api.LaunchStage|null} [launchStage] ClientLibrarySettings launchStage
+ * @property {boolean|null} [restNumericEnums] ClientLibrarySettings restNumericEnums
+ * @property {google.api.IJavaSettings|null} [javaSettings] ClientLibrarySettings javaSettings
+ * @property {google.api.ICppSettings|null} [cppSettings] ClientLibrarySettings cppSettings
+ * @property {google.api.IPhpSettings|null} [phpSettings] ClientLibrarySettings phpSettings
+ * @property {google.api.IPythonSettings|null} [pythonSettings] ClientLibrarySettings pythonSettings
+ * @property {google.api.INodeSettings|null} [nodeSettings] ClientLibrarySettings nodeSettings
+ * @property {google.api.IDotnetSettings|null} [dotnetSettings] ClientLibrarySettings dotnetSettings
+ * @property {google.api.IRubySettings|null} [rubySettings] ClientLibrarySettings rubySettings
+ * @property {google.api.IGoSettings|null} [goSettings] ClientLibrarySettings goSettings
+ */
+
+ /**
+ * Constructs a new ClientLibrarySettings.
+ * @memberof google.api
+ * @classdesc Represents a ClientLibrarySettings.
+ * @implements IClientLibrarySettings
+ * @constructor
+ * @param {google.api.IClientLibrarySettings=} [properties] Properties to set
+ */
+ function ClientLibrarySettings(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ClientLibrarySettings version.
+ * @member {string} version
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.version = "";
+
+ /**
+ * ClientLibrarySettings launchStage.
+ * @member {google.api.LaunchStage} launchStage
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.launchStage = 0;
+
+ /**
+ * ClientLibrarySettings restNumericEnums.
+ * @member {boolean} restNumericEnums
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.restNumericEnums = false;
+
+ /**
+ * ClientLibrarySettings javaSettings.
+ * @member {google.api.IJavaSettings|null|undefined} javaSettings
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.javaSettings = null;
+
+ /**
+ * ClientLibrarySettings cppSettings.
+ * @member {google.api.ICppSettings|null|undefined} cppSettings
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.cppSettings = null;
+
+ /**
+ * ClientLibrarySettings phpSettings.
+ * @member {google.api.IPhpSettings|null|undefined} phpSettings
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.phpSettings = null;
+
+ /**
+ * ClientLibrarySettings pythonSettings.
+ * @member {google.api.IPythonSettings|null|undefined} pythonSettings
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.pythonSettings = null;
+
+ /**
+ * ClientLibrarySettings nodeSettings.
+ * @member {google.api.INodeSettings|null|undefined} nodeSettings
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.nodeSettings = null;
+
+ /**
+ * ClientLibrarySettings dotnetSettings.
+ * @member {google.api.IDotnetSettings|null|undefined} dotnetSettings
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.dotnetSettings = null;
+
+ /**
+ * ClientLibrarySettings rubySettings.
+ * @member {google.api.IRubySettings|null|undefined} rubySettings
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.rubySettings = null;
+
+ /**
+ * ClientLibrarySettings goSettings.
+ * @member {google.api.IGoSettings|null|undefined} goSettings
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ */
+ ClientLibrarySettings.prototype.goSettings = null;
+
+ /**
+ * Creates a new ClientLibrarySettings instance using the specified properties.
+ * @function create
+ * @memberof google.api.ClientLibrarySettings
+ * @static
+ * @param {google.api.IClientLibrarySettings=} [properties] Properties to set
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings instance
+ */
+ ClientLibrarySettings.create = function create(properties) {
+ return new ClientLibrarySettings(properties);
+ };
+
+ /**
+ * Encodes the specified ClientLibrarySettings message. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.ClientLibrarySettings
+ * @static
+ * @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ClientLibrarySettings.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.version);
+ if (message.launchStage != null && Object.hasOwnProperty.call(message, "launchStage"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.launchStage);
+ if (message.restNumericEnums != null && Object.hasOwnProperty.call(message, "restNumericEnums"))
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.restNumericEnums);
+ if (message.javaSettings != null && Object.hasOwnProperty.call(message, "javaSettings"))
+ $root.google.api.JavaSettings.encode(message.javaSettings, writer.uint32(/* id 21, wireType 2 =*/170).fork(), q + 1).ldelim();
+ if (message.cppSettings != null && Object.hasOwnProperty.call(message, "cppSettings"))
+ $root.google.api.CppSettings.encode(message.cppSettings, writer.uint32(/* id 22, wireType 2 =*/178).fork(), q + 1).ldelim();
+ if (message.phpSettings != null && Object.hasOwnProperty.call(message, "phpSettings"))
+ $root.google.api.PhpSettings.encode(message.phpSettings, writer.uint32(/* id 23, wireType 2 =*/186).fork(), q + 1).ldelim();
+ if (message.pythonSettings != null && Object.hasOwnProperty.call(message, "pythonSettings"))
+ $root.google.api.PythonSettings.encode(message.pythonSettings, writer.uint32(/* id 24, wireType 2 =*/194).fork(), q + 1).ldelim();
+ if (message.nodeSettings != null && Object.hasOwnProperty.call(message, "nodeSettings"))
+ $root.google.api.NodeSettings.encode(message.nodeSettings, writer.uint32(/* id 25, wireType 2 =*/202).fork(), q + 1).ldelim();
+ if (message.dotnetSettings != null && Object.hasOwnProperty.call(message, "dotnetSettings"))
+ $root.google.api.DotnetSettings.encode(message.dotnetSettings, writer.uint32(/* id 26, wireType 2 =*/210).fork(), q + 1).ldelim();
+ if (message.rubySettings != null && Object.hasOwnProperty.call(message, "rubySettings"))
+ $root.google.api.RubySettings.encode(message.rubySettings, writer.uint32(/* id 27, wireType 2 =*/218).fork(), q + 1).ldelim();
+ if (message.goSettings != null && Object.hasOwnProperty.call(message, "goSettings"))
+ $root.google.api.GoSettings.encode(message.goSettings, writer.uint32(/* id 28, wireType 2 =*/226).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ClientLibrarySettings message, length delimited. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.ClientLibrarySettings
+ * @static
+ * @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ClientLibrarySettings.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.ClientLibrarySettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ClientLibrarySettings.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ClientLibrarySettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.version = reader.string();
+ break;
+ }
+ case 2: {
+ message.launchStage = reader.int32();
+ break;
+ }
+ case 3: {
+ message.restNumericEnums = reader.bool();
+ break;
+ }
+ case 21: {
+ message.javaSettings = $root.google.api.JavaSettings.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 22: {
+ message.cppSettings = $root.google.api.CppSettings.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 23: {
+ message.phpSettings = $root.google.api.PhpSettings.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 24: {
+ message.pythonSettings = $root.google.api.PythonSettings.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 25: {
+ message.nodeSettings = $root.google.api.NodeSettings.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 26: {
+ message.dotnetSettings = $root.google.api.DotnetSettings.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 27: {
+ message.rubySettings = $root.google.api.RubySettings.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 28: {
+ message.goSettings = $root.google.api.GoSettings.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.ClientLibrarySettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ClientLibrarySettings.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ClientLibrarySettings message.
+ * @function verify
+ * @memberof google.api.ClientLibrarySettings
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ClientLibrarySettings.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
+ if (!$util.isString(message.version))
+ return "version: string expected";
+ if (message.launchStage != null && Object.hasOwnProperty.call(message, "launchStage"))
+ switch (message.launchStage) {
+ default:
+ return "launchStage: enum value expected";
+ case 0:
+ case 6:
+ case 7:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ break;
+ }
+ if (message.restNumericEnums != null && Object.hasOwnProperty.call(message, "restNumericEnums"))
+ if (typeof message.restNumericEnums !== "boolean")
+ return "restNumericEnums: boolean expected";
+ if (message.javaSettings != null && Object.hasOwnProperty.call(message, "javaSettings")) {
+ var error = $root.google.api.JavaSettings.verify(message.javaSettings, long + 1);
+ if (error)
+ return "javaSettings." + error;
+ }
+ if (message.cppSettings != null && Object.hasOwnProperty.call(message, "cppSettings")) {
+ var error = $root.google.api.CppSettings.verify(message.cppSettings, long + 1);
+ if (error)
+ return "cppSettings." + error;
+ }
+ if (message.phpSettings != null && Object.hasOwnProperty.call(message, "phpSettings")) {
+ var error = $root.google.api.PhpSettings.verify(message.phpSettings, long + 1);
+ if (error)
+ return "phpSettings." + error;
+ }
+ if (message.pythonSettings != null && Object.hasOwnProperty.call(message, "pythonSettings")) {
+ var error = $root.google.api.PythonSettings.verify(message.pythonSettings, long + 1);
+ if (error)
+ return "pythonSettings." + error;
+ }
+ if (message.nodeSettings != null && Object.hasOwnProperty.call(message, "nodeSettings")) {
+ var error = $root.google.api.NodeSettings.verify(message.nodeSettings, long + 1);
+ if (error)
+ return "nodeSettings." + error;
+ }
+ if (message.dotnetSettings != null && Object.hasOwnProperty.call(message, "dotnetSettings")) {
+ var error = $root.google.api.DotnetSettings.verify(message.dotnetSettings, long + 1);
+ if (error)
+ return "dotnetSettings." + error;
+ }
+ if (message.rubySettings != null && Object.hasOwnProperty.call(message, "rubySettings")) {
+ var error = $root.google.api.RubySettings.verify(message.rubySettings, long + 1);
+ if (error)
+ return "rubySettings." + error;
+ }
+ if (message.goSettings != null && Object.hasOwnProperty.call(message, "goSettings")) {
+ var error = $root.google.api.GoSettings.verify(message.goSettings, long + 1);
+ if (error)
+ return "goSettings." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ClientLibrarySettings message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.ClientLibrarySettings
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
+ */
+ ClientLibrarySettings.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.api.ClientLibrarySettings)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.api.ClientLibrarySettings: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.api.ClientLibrarySettings();
+ if (object.version != null)
+ message.version = String(object.version);
+ switch (object.launchStage) {
+ default:
+ if (typeof object.launchStage === "number") {
+ message.launchStage = object.launchStage;
+ break;
+ }
+ break;
+ case "LAUNCH_STAGE_UNSPECIFIED":
+ case 0:
+ message.launchStage = 0;
+ break;
+ case "UNIMPLEMENTED":
+ case 6:
+ message.launchStage = 6;
+ break;
+ case "PRELAUNCH":
+ case 7:
+ message.launchStage = 7;
+ break;
+ case "EARLY_ACCESS":
+ case 1:
+ message.launchStage = 1;
+ break;
+ case "ALPHA":
+ case 2:
+ message.launchStage = 2;
+ break;
+ case "BETA":
+ case 3:
+ message.launchStage = 3;
+ break;
+ case "GA":
+ case 4:
+ message.launchStage = 4;
+ break;
+ case "DEPRECATED":
+ case 5:
+ message.launchStage = 5;
+ break;
+ }
+ if (object.restNumericEnums != null)
+ message.restNumericEnums = Boolean(object.restNumericEnums);
+ if (object.javaSettings != null) {
+ if (!$util.isObject(object.javaSettings))
+ throw TypeError(".google.api.ClientLibrarySettings.javaSettings: object expected");
+ message.javaSettings = $root.google.api.JavaSettings.fromObject(object.javaSettings, long + 1);
+ }
+ if (object.cppSettings != null) {
+ if (!$util.isObject(object.cppSettings))
+ throw TypeError(".google.api.ClientLibrarySettings.cppSettings: object expected");
+ message.cppSettings = $root.google.api.CppSettings.fromObject(object.cppSettings, long + 1);
+ }
+ if (object.phpSettings != null) {
+ if (!$util.isObject(object.phpSettings))
+ throw TypeError(".google.api.ClientLibrarySettings.phpSettings: object expected");
+ message.phpSettings = $root.google.api.PhpSettings.fromObject(object.phpSettings, long + 1);
+ }
+ if (object.pythonSettings != null) {
+ if (!$util.isObject(object.pythonSettings))
+ throw TypeError(".google.api.ClientLibrarySettings.pythonSettings: object expected");
+ message.pythonSettings = $root.google.api.PythonSettings.fromObject(object.pythonSettings, long + 1);
+ }
+ if (object.nodeSettings != null) {
+ if (!$util.isObject(object.nodeSettings))
+ throw TypeError(".google.api.ClientLibrarySettings.nodeSettings: object expected");
+ message.nodeSettings = $root.google.api.NodeSettings.fromObject(object.nodeSettings, long + 1);
+ }
+ if (object.dotnetSettings != null) {
+ if (!$util.isObject(object.dotnetSettings))
+ throw TypeError(".google.api.ClientLibrarySettings.dotnetSettings: object expected");
+ message.dotnetSettings = $root.google.api.DotnetSettings.fromObject(object.dotnetSettings, long + 1);
+ }
+ if (object.rubySettings != null) {
+ if (!$util.isObject(object.rubySettings))
+ throw TypeError(".google.api.ClientLibrarySettings.rubySettings: object expected");
+ message.rubySettings = $root.google.api.RubySettings.fromObject(object.rubySettings, long + 1);
+ }
+ if (object.goSettings != null) {
+ if (!$util.isObject(object.goSettings))
+ throw TypeError(".google.api.ClientLibrarySettings.goSettings: object expected");
+ message.goSettings = $root.google.api.GoSettings.fromObject(object.goSettings, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.ClientLibrarySettings
+ * @static
+ * @param {google.api.ClientLibrarySettings} message ClientLibrarySettings
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ClientLibrarySettings.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.version = "";
+ object.launchStage = options.enums === String ? "LAUNCH_STAGE_UNSPECIFIED" : 0;
+ object.restNumericEnums = false;
+ object.javaSettings = null;
+ object.cppSettings = null;
+ object.phpSettings = null;
+ object.pythonSettings = null;
+ object.nodeSettings = null;
+ object.dotnetSettings = null;
+ object.rubySettings = null;
+ object.goSettings = null;
+ }
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
+ object.version = message.version;
+ if (message.launchStage != null && Object.hasOwnProperty.call(message, "launchStage"))
+ object.launchStage = options.enums === String ? $root.google.api.LaunchStage[message.launchStage] === undefined ? message.launchStage : $root.google.api.LaunchStage[message.launchStage] : message.launchStage;
+ if (message.restNumericEnums != null && Object.hasOwnProperty.call(message, "restNumericEnums"))
+ object.restNumericEnums = message.restNumericEnums;
+ if (message.javaSettings != null && Object.hasOwnProperty.call(message, "javaSettings"))
+ object.javaSettings = $root.google.api.JavaSettings.toObject(message.javaSettings, options, q + 1);
+ if (message.cppSettings != null && Object.hasOwnProperty.call(message, "cppSettings"))
+ object.cppSettings = $root.google.api.CppSettings.toObject(message.cppSettings, options, q + 1);
+ if (message.phpSettings != null && Object.hasOwnProperty.call(message, "phpSettings"))
+ object.phpSettings = $root.google.api.PhpSettings.toObject(message.phpSettings, options, q + 1);
+ if (message.pythonSettings != null && Object.hasOwnProperty.call(message, "pythonSettings"))
+ object.pythonSettings = $root.google.api.PythonSettings.toObject(message.pythonSettings, options, q + 1);
+ if (message.nodeSettings != null && Object.hasOwnProperty.call(message, "nodeSettings"))
+ object.nodeSettings = $root.google.api.NodeSettings.toObject(message.nodeSettings, options, q + 1);
+ if (message.dotnetSettings != null && Object.hasOwnProperty.call(message, "dotnetSettings"))
+ object.dotnetSettings = $root.google.api.DotnetSettings.toObject(message.dotnetSettings, options, q + 1);
+ if (message.rubySettings != null && Object.hasOwnProperty.call(message, "rubySettings"))
+ object.rubySettings = $root.google.api.RubySettings.toObject(message.rubySettings, options, q + 1);
+ if (message.goSettings != null && Object.hasOwnProperty.call(message, "goSettings"))
+ object.goSettings = $root.google.api.GoSettings.toObject(message.goSettings, options, q + 1);
+ return object;
+ };
+
+ /**
+ * Converts this ClientLibrarySettings to JSON.
+ * @function toJSON
+ * @memberof google.api.ClientLibrarySettings
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ClientLibrarySettings.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ClientLibrarySettings
+ * @function getTypeUrl
+ * @memberof google.api.ClientLibrarySettings
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ClientLibrarySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.ClientLibrarySettings";
+ };
+
+ return ClientLibrarySettings;
+ })();
+
+ api.Publishing = (function() {
+
+ /**
+ * Properties of a Publishing.
+ * @memberof google.api
+ * @interface IPublishing
+ * @property {Array.|null} [methodSettings] Publishing methodSettings
+ * @property {string|null} [newIssueUri] Publishing newIssueUri
+ * @property {string|null} [documentationUri] Publishing documentationUri
+ * @property {string|null} [apiShortName] Publishing apiShortName
+ * @property {string|null} [githubLabel] Publishing githubLabel
+ * @property {Array.|null} [codeownerGithubTeams] Publishing codeownerGithubTeams
+ * @property {string|null} [docTagPrefix] Publishing docTagPrefix
+ * @property {google.api.ClientLibraryOrganization|null} [organization] Publishing organization
+ * @property {Array.|null} [librarySettings] Publishing librarySettings
+ * @property {string|null} [protoReferenceDocumentationUri] Publishing protoReferenceDocumentationUri
+ * @property {string|null} [restReferenceDocumentationUri] Publishing restReferenceDocumentationUri
+ */
+
+ /**
+ * Constructs a new Publishing.
+ * @memberof google.api
+ * @classdesc Represents a Publishing.
+ * @implements IPublishing
+ * @constructor
+ * @param {google.api.IPublishing=} [properties] Properties to set
+ */
+ function Publishing(properties) {
+ this.methodSettings = [];
+ this.codeownerGithubTeams = [];
+ this.librarySettings = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Publishing methodSettings.
+ * @member {Array.} methodSettings
+ * @memberof google.api.Publishing
+ * @instance
+ */
+ Publishing.prototype.methodSettings = $util.emptyArray;
+
+ /**
+ * Publishing newIssueUri.
+ * @member {string} newIssueUri
+ * @memberof google.api.Publishing
+ * @instance
+ */
+ Publishing.prototype.newIssueUri = "";
+
+ /**
+ * Publishing documentationUri.
+ * @member {string} documentationUri
+ * @memberof google.api.Publishing
+ * @instance
+ */
+ Publishing.prototype.documentationUri = "";
+
+ /**
+ * Publishing apiShortName.
+ * @member {string} apiShortName
+ * @memberof google.api.Publishing
+ * @instance
+ */
+ Publishing.prototype.apiShortName = "";
+
+ /**
+ * Publishing githubLabel.
+ * @member {string} githubLabel
+ * @memberof google.api.Publishing
+ * @instance
+ */
+ Publishing.prototype.githubLabel = "";
+
+ /**
+ * Publishing codeownerGithubTeams.
+ * @member {Array.} codeownerGithubTeams
+ * @memberof google.api.Publishing
+ * @instance
+ */
+ Publishing.prototype.codeownerGithubTeams = $util.emptyArray;
+
+ /**
+ * Publishing docTagPrefix.
+ * @member {string} docTagPrefix
+ * @memberof google.api.Publishing
+ * @instance
+ */
+ Publishing.prototype.docTagPrefix = "";
+
+ /**
+ * Publishing organization.
+ * @member {google.api.ClientLibraryOrganization} organization
+ * @memberof google.api.Publishing
+ * @instance
+ */
+ Publishing.prototype.organization = 0;
+
+ /**
+ * Publishing librarySettings.
+ * @member {Array.} librarySettings
+ * @memberof google.api.Publishing
+ * @instance
+ */
+ Publishing.prototype.librarySettings = $util.emptyArray;
+
+ /**
+ * Publishing protoReferenceDocumentationUri.
+ * @member {string} protoReferenceDocumentationUri
+ * @memberof google.api.Publishing
+ * @instance
+ */
+ Publishing.prototype.protoReferenceDocumentationUri = "";
+
+ /**
+ * Publishing restReferenceDocumentationUri.
+ * @member {string} restReferenceDocumentationUri
+ * @memberof google.api.Publishing
+ * @instance
+ */
+ Publishing.prototype.restReferenceDocumentationUri = "";
+
+ /**
+ * Creates a new Publishing instance using the specified properties.
+ * @function create
+ * @memberof google.api.Publishing
+ * @static
+ * @param {google.api.IPublishing=} [properties] Properties to set
+ * @returns {google.api.Publishing} Publishing instance
+ */
+ Publishing.create = function create(properties) {
+ return new Publishing(properties);
+ };
+
+ /**
+ * Encodes the specified Publishing message. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.Publishing
+ * @static
+ * @param {google.api.IPublishing} message Publishing message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Publishing.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.methodSettings != null && message.methodSettings.length)
+ for (var i = 0; i < message.methodSettings.length; ++i)
+ $root.google.api.MethodSettings.encode(message.methodSettings[i], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim();
+ if (message.newIssueUri != null && Object.hasOwnProperty.call(message, "newIssueUri"))
+ writer.uint32(/* id 101, wireType 2 =*/810).string(message.newIssueUri);
+ if (message.documentationUri != null && Object.hasOwnProperty.call(message, "documentationUri"))
+ writer.uint32(/* id 102, wireType 2 =*/818).string(message.documentationUri);
+ if (message.apiShortName != null && Object.hasOwnProperty.call(message, "apiShortName"))
+ writer.uint32(/* id 103, wireType 2 =*/826).string(message.apiShortName);
+ if (message.githubLabel != null && Object.hasOwnProperty.call(message, "githubLabel"))
+ writer.uint32(/* id 104, wireType 2 =*/834).string(message.githubLabel);
+ if (message.codeownerGithubTeams != null && message.codeownerGithubTeams.length)
+ for (var i = 0; i < message.codeownerGithubTeams.length; ++i)
+ writer.uint32(/* id 105, wireType 2 =*/842).string(message.codeownerGithubTeams[i]);
+ if (message.docTagPrefix != null && Object.hasOwnProperty.call(message, "docTagPrefix"))
+ writer.uint32(/* id 106, wireType 2 =*/850).string(message.docTagPrefix);
+ if (message.organization != null && Object.hasOwnProperty.call(message, "organization"))
+ writer.uint32(/* id 107, wireType 0 =*/856).int32(message.organization);
+ if (message.librarySettings != null && message.librarySettings.length)
+ for (var i = 0; i < message.librarySettings.length; ++i)
+ $root.google.api.ClientLibrarySettings.encode(message.librarySettings[i], writer.uint32(/* id 109, wireType 2 =*/874).fork(), q + 1).ldelim();
+ if (message.protoReferenceDocumentationUri != null && Object.hasOwnProperty.call(message, "protoReferenceDocumentationUri"))
+ writer.uint32(/* id 110, wireType 2 =*/882).string(message.protoReferenceDocumentationUri);
+ if (message.restReferenceDocumentationUri != null && Object.hasOwnProperty.call(message, "restReferenceDocumentationUri"))
+ writer.uint32(/* id 111, wireType 2 =*/890).string(message.restReferenceDocumentationUri);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Publishing message, length delimited. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.Publishing
+ * @static
+ * @param {google.api.IPublishing} message Publishing message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Publishing.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a Publishing message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.Publishing
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.Publishing} Publishing
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Publishing.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Publishing();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 2: {
+ if (!(message.methodSettings && message.methodSettings.length))
+ message.methodSettings = [];
+ message.methodSettings.push($root.google.api.MethodSettings.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 101: {
+ message.newIssueUri = reader.string();
+ break;
+ }
+ case 102: {
+ message.documentationUri = reader.string();
+ break;
+ }
+ case 103: {
+ message.apiShortName = reader.string();
+ break;
+ }
+ case 104: {
+ message.githubLabel = reader.string();
+ break;
+ }
+ case 105: {
+ if (!(message.codeownerGithubTeams && message.codeownerGithubTeams.length))
+ message.codeownerGithubTeams = [];
+ message.codeownerGithubTeams.push(reader.string());
+ break;
+ }
+ case 106: {
+ message.docTagPrefix = reader.string();
+ break;
+ }
+ case 107: {
+ message.organization = reader.int32();
+ break;
+ }
+ case 109: {
+ if (!(message.librarySettings && message.librarySettings.length))
+ message.librarySettings = [];
+ message.librarySettings.push($root.google.api.ClientLibrarySettings.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 110: {
+ message.protoReferenceDocumentationUri = reader.string();
+ break;
+ }
+ case 111: {
+ message.restReferenceDocumentationUri = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Publishing message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.Publishing
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.Publishing} Publishing
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Publishing.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Publishing message.
+ * @function verify
+ * @memberof google.api.Publishing
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Publishing.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.methodSettings != null && Object.hasOwnProperty.call(message, "methodSettings")) {
+ if (!Array.isArray(message.methodSettings))
+ return "methodSettings: array expected";
+ for (var i = 0; i < message.methodSettings.length; ++i) {
+ var error = $root.google.api.MethodSettings.verify(message.methodSettings[i], long + 1);
+ if (error)
+ return "methodSettings." + error;
+ }
+ }
+ if (message.newIssueUri != null && Object.hasOwnProperty.call(message, "newIssueUri"))
+ if (!$util.isString(message.newIssueUri))
+ return "newIssueUri: string expected";
+ if (message.documentationUri != null && Object.hasOwnProperty.call(message, "documentationUri"))
+ if (!$util.isString(message.documentationUri))
+ return "documentationUri: string expected";
+ if (message.apiShortName != null && Object.hasOwnProperty.call(message, "apiShortName"))
+ if (!$util.isString(message.apiShortName))
+ return "apiShortName: string expected";
+ if (message.githubLabel != null && Object.hasOwnProperty.call(message, "githubLabel"))
+ if (!$util.isString(message.githubLabel))
+ return "githubLabel: string expected";
+ if (message.codeownerGithubTeams != null && Object.hasOwnProperty.call(message, "codeownerGithubTeams")) {
+ if (!Array.isArray(message.codeownerGithubTeams))
+ return "codeownerGithubTeams: array expected";
+ for (var i = 0; i < message.codeownerGithubTeams.length; ++i)
+ if (!$util.isString(message.codeownerGithubTeams[i]))
+ return "codeownerGithubTeams: string[] expected";
+ }
+ if (message.docTagPrefix != null && Object.hasOwnProperty.call(message, "docTagPrefix"))
+ if (!$util.isString(message.docTagPrefix))
+ return "docTagPrefix: string expected";
+ if (message.organization != null && Object.hasOwnProperty.call(message, "organization"))
+ switch (message.organization) {
+ default:
+ return "organization: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ case 7:
+ break;
+ }
+ if (message.librarySettings != null && Object.hasOwnProperty.call(message, "librarySettings")) {
+ if (!Array.isArray(message.librarySettings))
+ return "librarySettings: array expected";
+ for (var i = 0; i < message.librarySettings.length; ++i) {
+ var error = $root.google.api.ClientLibrarySettings.verify(message.librarySettings[i], long + 1);
+ if (error)
+ return "librarySettings." + error;
+ }
+ }
+ if (message.protoReferenceDocumentationUri != null && Object.hasOwnProperty.call(message, "protoReferenceDocumentationUri"))
+ if (!$util.isString(message.protoReferenceDocumentationUri))
+ return "protoReferenceDocumentationUri: string expected";
+ if (message.restReferenceDocumentationUri != null && Object.hasOwnProperty.call(message, "restReferenceDocumentationUri"))
+ if (!$util.isString(message.restReferenceDocumentationUri))
+ return "restReferenceDocumentationUri: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a Publishing message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.Publishing
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.Publishing} Publishing
+ */
+ Publishing.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.api.Publishing)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.api.Publishing: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.api.Publishing();
+ if (object.methodSettings) {
+ if (!Array.isArray(object.methodSettings))
+ throw TypeError(".google.api.Publishing.methodSettings: array expected");
+ message.methodSettings = [];
+ for (var i = 0; i < object.methodSettings.length; ++i) {
+ if (!$util.isObject(object.methodSettings[i]))
+ throw TypeError(".google.api.Publishing.methodSettings: object expected");
+ message.methodSettings[i] = $root.google.api.MethodSettings.fromObject(object.methodSettings[i], long + 1);
+ }
+ }
+ if (object.newIssueUri != null)
+ message.newIssueUri = String(object.newIssueUri);
+ if (object.documentationUri != null)
+ message.documentationUri = String(object.documentationUri);
+ if (object.apiShortName != null)
+ message.apiShortName = String(object.apiShortName);
+ if (object.githubLabel != null)
+ message.githubLabel = String(object.githubLabel);
+ if (object.codeownerGithubTeams) {
+ if (!Array.isArray(object.codeownerGithubTeams))
+ throw TypeError(".google.api.Publishing.codeownerGithubTeams: array expected");
+ message.codeownerGithubTeams = [];
+ for (var i = 0; i < object.codeownerGithubTeams.length; ++i)
+ message.codeownerGithubTeams[i] = String(object.codeownerGithubTeams[i]);
+ }
+ if (object.docTagPrefix != null)
+ message.docTagPrefix = String(object.docTagPrefix);
+ switch (object.organization) {
+ default:
+ if (typeof object.organization === "number") {
+ message.organization = object.organization;
+ break;
+ }
+ break;
+ case "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED":
+ case 0:
+ message.organization = 0;
+ break;
+ case "CLOUD":
+ case 1:
+ message.organization = 1;
+ break;
+ case "ADS":
+ case 2:
+ message.organization = 2;
+ break;
+ case "PHOTOS":
+ case 3:
+ message.organization = 3;
+ break;
+ case "STREET_VIEW":
+ case 4:
+ message.organization = 4;
+ break;
+ case "SHOPPING":
+ case 5:
+ message.organization = 5;
+ break;
+ case "GEO":
+ case 6:
+ message.organization = 6;
+ break;
+ case "GENERATIVE_AI":
+ case 7:
+ message.organization = 7;
+ break;
+ }
+ if (object.librarySettings) {
+ if (!Array.isArray(object.librarySettings))
+ throw TypeError(".google.api.Publishing.librarySettings: array expected");
+ message.librarySettings = [];
+ for (var i = 0; i < object.librarySettings.length; ++i) {
+ if (!$util.isObject(object.librarySettings[i]))
+ throw TypeError(".google.api.Publishing.librarySettings: object expected");
+ message.librarySettings[i] = $root.google.api.ClientLibrarySettings.fromObject(object.librarySettings[i], long + 1);
+ }
+ }
+ if (object.protoReferenceDocumentationUri != null)
+ message.protoReferenceDocumentationUri = String(object.protoReferenceDocumentationUri);
+ if (object.restReferenceDocumentationUri != null)
+ message.restReferenceDocumentationUri = String(object.restReferenceDocumentationUri);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Publishing message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.Publishing
+ * @static
+ * @param {google.api.Publishing} message Publishing
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Publishing.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.methodSettings = [];
+ object.codeownerGithubTeams = [];
+ object.librarySettings = [];
+ }
+ if (options.defaults) {
+ object.newIssueUri = "";
+ object.documentationUri = "";
+ object.apiShortName = "";
+ object.githubLabel = "";
+ object.docTagPrefix = "";
+ object.organization = options.enums === String ? "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED" : 0;
+ object.protoReferenceDocumentationUri = "";
+ object.restReferenceDocumentationUri = "";
+ }
+ if (message.methodSettings && message.methodSettings.length) {
+ object.methodSettings = [];
+ for (var j = 0; j < message.methodSettings.length; ++j)
+ object.methodSettings[j] = $root.google.api.MethodSettings.toObject(message.methodSettings[j], options, q + 1);
+ }
+ if (message.newIssueUri != null && Object.hasOwnProperty.call(message, "newIssueUri"))
+ object.newIssueUri = message.newIssueUri;
+ if (message.documentationUri != null && Object.hasOwnProperty.call(message, "documentationUri"))
+ object.documentationUri = message.documentationUri;
+ if (message.apiShortName != null && Object.hasOwnProperty.call(message, "apiShortName"))
+ object.apiShortName = message.apiShortName;
+ if (message.githubLabel != null && Object.hasOwnProperty.call(message, "githubLabel"))
+ object.githubLabel = message.githubLabel;
+ if (message.codeownerGithubTeams && message.codeownerGithubTeams.length) {
+ object.codeownerGithubTeams = [];
+ for (var j = 0; j < message.codeownerGithubTeams.length; ++j)
+ object.codeownerGithubTeams[j] = message.codeownerGithubTeams[j];
+ }
+ if (message.docTagPrefix != null && Object.hasOwnProperty.call(message, "docTagPrefix"))
+ object.docTagPrefix = message.docTagPrefix;
+ if (message.organization != null && Object.hasOwnProperty.call(message, "organization"))
+ object.organization = options.enums === String ? $root.google.api.ClientLibraryOrganization[message.organization] === undefined ? message.organization : $root.google.api.ClientLibraryOrganization[message.organization] : message.organization;
+ if (message.librarySettings && message.librarySettings.length) {
+ object.librarySettings = [];
+ for (var j = 0; j < message.librarySettings.length; ++j)
+ object.librarySettings[j] = $root.google.api.ClientLibrarySettings.toObject(message.librarySettings[j], options, q + 1);
+ }
+ if (message.protoReferenceDocumentationUri != null && Object.hasOwnProperty.call(message, "protoReferenceDocumentationUri"))
+ object.protoReferenceDocumentationUri = message.protoReferenceDocumentationUri;
+ if (message.restReferenceDocumentationUri != null && Object.hasOwnProperty.call(message, "restReferenceDocumentationUri"))
+ object.restReferenceDocumentationUri = message.restReferenceDocumentationUri;
+ return object;
+ };
+
+ /**
+ * Converts this Publishing to JSON.
+ * @function toJSON
+ * @memberof google.api.Publishing
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Publishing.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Publishing
+ * @function getTypeUrl
+ * @memberof google.api.Publishing
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Publishing.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.Publishing";
+ };
+
+ return Publishing;
+ })();
+
+ api.JavaSettings = (function() {
+
+ /**
+ * Properties of a JavaSettings.
+ * @memberof google.api
+ * @interface IJavaSettings
+ * @property {string|null} [libraryPackage] JavaSettings libraryPackage
+ * @property {Object.|null} [serviceClassNames] JavaSettings serviceClassNames
+ * @property {google.api.ICommonLanguageSettings|null} [common] JavaSettings common
+ */
+
+ /**
+ * Constructs a new JavaSettings.
+ * @memberof google.api
+ * @classdesc Represents a JavaSettings.
+ * @implements IJavaSettings
+ * @constructor
+ * @param {google.api.IJavaSettings=} [properties] Properties to set
+ */
+ function JavaSettings(properties) {
+ this.serviceClassNames = {};
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * JavaSettings libraryPackage.
+ * @member {string} libraryPackage
+ * @memberof google.api.JavaSettings
+ * @instance
+ */
+ JavaSettings.prototype.libraryPackage = "";
+
+ /**
+ * JavaSettings serviceClassNames.
+ * @member {Object.} serviceClassNames
+ * @memberof google.api.JavaSettings
+ * @instance
+ */
+ JavaSettings.prototype.serviceClassNames = $util.emptyObject;
+
+ /**
+ * JavaSettings common.
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
+ * @memberof google.api.JavaSettings
+ * @instance
+ */
+ JavaSettings.prototype.common = null;
+
+ /**
+ * Creates a new JavaSettings instance using the specified properties.
+ * @function create
+ * @memberof google.api.JavaSettings
+ * @static
+ * @param {google.api.IJavaSettings=} [properties] Properties to set
+ * @returns {google.api.JavaSettings} JavaSettings instance
+ */
+ JavaSettings.create = function create(properties) {
+ return new JavaSettings(properties);
+ };
+
+ /**
+ * Encodes the specified JavaSettings message. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.JavaSettings
+ * @static
+ * @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ JavaSettings.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.libraryPackage != null && Object.hasOwnProperty.call(message, "libraryPackage"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.libraryPackage);
+ if (message.serviceClassNames != null && Object.hasOwnProperty.call(message, "serviceClassNames"))
+ for (var keys = Object.keys(message.serviceClassNames), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.serviceClassNames[keys[i]]).ldelim();
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified JavaSettings message, length delimited. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.JavaSettings
+ * @static
+ * @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ JavaSettings.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a JavaSettings message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.JavaSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.JavaSettings} JavaSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ JavaSettings.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.JavaSettings(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.libraryPackage = reader.string();
+ break;
+ }
+ case 2: {
+ if (message.serviceClassNames === $util.emptyObject)
+ message.serviceClassNames = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = "";
+ value = "";
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.string();
+ break;
+ case 2:
+ value = reader.string();
+ break;
+ default:
+ reader.skipType(tag2 & 7, long);
+ break;
+ }
+ }
+ if (key === "__proto__")
+ $util.makeProp(message.serviceClassNames, key);
+ message.serviceClassNames[key] = value;
+ break;
+ }
+ case 3: {
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a JavaSettings message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.JavaSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.JavaSettings} JavaSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ JavaSettings.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a JavaSettings message.
+ * @function verify
+ * @memberof google.api.JavaSettings
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ JavaSettings.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.libraryPackage != null && Object.hasOwnProperty.call(message, "libraryPackage"))
+ if (!$util.isString(message.libraryPackage))
+ return "libraryPackage: string expected";
+ if (message.serviceClassNames != null && Object.hasOwnProperty.call(message, "serviceClassNames")) {
+ if (!$util.isObject(message.serviceClassNames))
+ return "serviceClassNames: object expected";
+ var key = Object.keys(message.serviceClassNames);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.serviceClassNames[key[i]]))
+ return "serviceClassNames: string{k:string} expected";
+ }
+ if (message.common != null && Object.hasOwnProperty.call(message, "common")) {
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common, long + 1);
+ if (error)
+ return "common." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a JavaSettings message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.JavaSettings
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.JavaSettings} JavaSettings
+ */
+ JavaSettings.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.api.JavaSettings)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.api.JavaSettings: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.api.JavaSettings();
+ if (object.libraryPackage != null)
+ message.libraryPackage = String(object.libraryPackage);
+ if (object.serviceClassNames) {
+ if (!$util.isObject(object.serviceClassNames))
+ throw TypeError(".google.api.JavaSettings.serviceClassNames: object expected");
+ message.serviceClassNames = {};
+ for (var keys = Object.keys(object.serviceClassNames), i = 0; i < keys.length; ++i) {
+ if (keys[i] === "__proto__")
+ $util.makeProp(message.serviceClassNames, keys[i]);
+ message.serviceClassNames[keys[i]] = String(object.serviceClassNames[keys[i]]);
+ }
+ }
+ if (object.common != null) {
+ if (!$util.isObject(object.common))
+ throw TypeError(".google.api.JavaSettings.common: object expected");
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a JavaSettings message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.JavaSettings
+ * @static
+ * @param {google.api.JavaSettings} message JavaSettings
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ JavaSettings.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.objects || options.defaults)
+ object.serviceClassNames = {};
+ if (options.defaults) {
+ object.libraryPackage = "";
+ object.common = null;
+ }
+ if (message.libraryPackage != null && Object.hasOwnProperty.call(message, "libraryPackage"))
+ object.libraryPackage = message.libraryPackage;
+ var keys2;
+ if (message.serviceClassNames && (keys2 = Object.keys(message.serviceClassNames)).length) {
+ object.serviceClassNames = {};
+ for (var j = 0; j < keys2.length; ++j) {
+ if (keys2[j] === "__proto__")
+ $util.makeProp(object.serviceClassNames, keys2[j]);
+ object.serviceClassNames[keys2[j]] = message.serviceClassNames[keys2[j]];
+ }
+ }
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options, q + 1);
+ return object;
+ };
+
+ /**
+ * Converts this JavaSettings to JSON.
+ * @function toJSON
+ * @memberof google.api.JavaSettings
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ JavaSettings.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for JavaSettings
+ * @function getTypeUrl
+ * @memberof google.api.JavaSettings
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ JavaSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.JavaSettings";
+ };
+
+ return JavaSettings;
+ })();
+
+ api.CppSettings = (function() {
+
+ /**
+ * Properties of a CppSettings.
+ * @memberof google.api
+ * @interface ICppSettings
+ * @property {google.api.ICommonLanguageSettings|null} [common] CppSettings common
+ */
+
+ /**
+ * Constructs a new CppSettings.
+ * @memberof google.api
+ * @classdesc Represents a CppSettings.
+ * @implements ICppSettings
+ * @constructor
+ * @param {google.api.ICppSettings=} [properties] Properties to set
+ */
+ function CppSettings(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * CppSettings common.
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
+ * @memberof google.api.CppSettings
+ * @instance
+ */
+ CppSettings.prototype.common = null;
+
+ /**
+ * Creates a new CppSettings instance using the specified properties.
+ * @function create
+ * @memberof google.api.CppSettings
+ * @static
+ * @param {google.api.ICppSettings=} [properties] Properties to set
+ * @returns {google.api.CppSettings} CppSettings instance
+ */
+ CppSettings.create = function create(properties) {
+ return new CppSettings(properties);
+ };
+
+ /**
+ * Encodes the specified CppSettings message. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.CppSettings
+ * @static
+ * @param {google.api.ICppSettings} message CppSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CppSettings.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CppSettings message, length delimited. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.CppSettings
+ * @static
+ * @param {google.api.ICppSettings} message CppSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CppSettings.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a CppSettings message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.CppSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.CppSettings} CppSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CppSettings.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CppSettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CppSettings message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.CppSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.CppSettings} CppSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CppSettings.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CppSettings message.
+ * @function verify
+ * @memberof google.api.CppSettings
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CppSettings.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.common != null && Object.hasOwnProperty.call(message, "common")) {
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common, long + 1);
+ if (error)
+ return "common." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a CppSettings message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.CppSettings
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.CppSettings} CppSettings
+ */
+ CppSettings.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.api.CppSettings)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.api.CppSettings: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.api.CppSettings();
+ if (object.common != null) {
+ if (!$util.isObject(object.common))
+ throw TypeError(".google.api.CppSettings.common: object expected");
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CppSettings message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.CppSettings
+ * @static
+ * @param {google.api.CppSettings} message CppSettings
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CppSettings.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults)
+ object.common = null;
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options, q + 1);
+ return object;
+ };
+
+ /**
+ * Converts this CppSettings to JSON.
+ * @function toJSON
+ * @memberof google.api.CppSettings
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CppSettings.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CppSettings
+ * @function getTypeUrl
+ * @memberof google.api.CppSettings
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CppSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.CppSettings";
+ };
+
+ return CppSettings;
+ })();
+
+ api.PhpSettings = (function() {
+
+ /**
+ * Properties of a PhpSettings.
+ * @memberof google.api
+ * @interface IPhpSettings
+ * @property {google.api.ICommonLanguageSettings|null} [common] PhpSettings common
+ */
+
+ /**
+ * Constructs a new PhpSettings.
+ * @memberof google.api
+ * @classdesc Represents a PhpSettings.
+ * @implements IPhpSettings
+ * @constructor
+ * @param {google.api.IPhpSettings=} [properties] Properties to set
+ */
+ function PhpSettings(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * PhpSettings common.
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
+ * @memberof google.api.PhpSettings
+ * @instance
+ */
+ PhpSettings.prototype.common = null;
+
+ /**
+ * Creates a new PhpSettings instance using the specified properties.
+ * @function create
+ * @memberof google.api.PhpSettings
+ * @static
+ * @param {google.api.IPhpSettings=} [properties] Properties to set
+ * @returns {google.api.PhpSettings} PhpSettings instance
+ */
+ PhpSettings.create = function create(properties) {
+ return new PhpSettings(properties);
+ };
+
+ /**
+ * Encodes the specified PhpSettings message. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.PhpSettings
+ * @static
+ * @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PhpSettings.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified PhpSettings message, length delimited. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.PhpSettings
+ * @static
+ * @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PhpSettings.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a PhpSettings message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.PhpSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.PhpSettings} PhpSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PhpSettings.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PhpSettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a PhpSettings message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.PhpSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.PhpSettings} PhpSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PhpSettings.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a PhpSettings message.
+ * @function verify
+ * @memberof google.api.PhpSettings
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ PhpSettings.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.common != null && Object.hasOwnProperty.call(message, "common")) {
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common, long + 1);
+ if (error)
+ return "common." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a PhpSettings message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.PhpSettings
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.PhpSettings} PhpSettings
+ */
+ PhpSettings.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.api.PhpSettings)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.api.PhpSettings: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.api.PhpSettings();
+ if (object.common != null) {
+ if (!$util.isObject(object.common))
+ throw TypeError(".google.api.PhpSettings.common: object expected");
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a PhpSettings message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.PhpSettings
+ * @static
+ * @param {google.api.PhpSettings} message PhpSettings
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ PhpSettings.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults)
+ object.common = null;
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options, q + 1);
+ return object;
+ };
+
+ /**
+ * Converts this PhpSettings to JSON.
+ * @function toJSON
+ * @memberof google.api.PhpSettings
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ PhpSettings.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for PhpSettings
+ * @function getTypeUrl
+ * @memberof google.api.PhpSettings
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ PhpSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.PhpSettings";
+ };
+
+ return PhpSettings;
+ })();
+
+ api.PythonSettings = (function() {
+
+ /**
+ * Properties of a PythonSettings.
+ * @memberof google.api
+ * @interface IPythonSettings
+ * @property {google.api.ICommonLanguageSettings|null} [common] PythonSettings common
+ * @property {google.api.PythonSettings.IExperimentalFeatures|null} [experimentalFeatures] PythonSettings experimentalFeatures
+ */
+
+ /**
+ * Constructs a new PythonSettings.
+ * @memberof google.api
+ * @classdesc Represents a PythonSettings.
+ * @implements IPythonSettings
+ * @constructor
+ * @param {google.api.IPythonSettings=} [properties] Properties to set
+ */
+ function PythonSettings(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * PythonSettings common.
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
+ * @memberof google.api.PythonSettings
+ * @instance
+ */
+ PythonSettings.prototype.common = null;
+
+ /**
+ * PythonSettings experimentalFeatures.
+ * @member {google.api.PythonSettings.IExperimentalFeatures|null|undefined} experimentalFeatures
+ * @memberof google.api.PythonSettings
+ * @instance
+ */
+ PythonSettings.prototype.experimentalFeatures = null;
+
+ /**
+ * Creates a new PythonSettings instance using the specified properties.
+ * @function create
+ * @memberof google.api.PythonSettings
+ * @static
+ * @param {google.api.IPythonSettings=} [properties] Properties to set
+ * @returns {google.api.PythonSettings} PythonSettings instance
+ */
+ PythonSettings.create = function create(properties) {
+ return new PythonSettings(properties);
+ };
+
+ /**
+ * Encodes the specified PythonSettings message. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.PythonSettings
+ * @static
+ * @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PythonSettings.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ if (message.experimentalFeatures != null && Object.hasOwnProperty.call(message, "experimentalFeatures"))
+ $root.google.api.PythonSettings.ExperimentalFeatures.encode(message.experimentalFeatures, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified PythonSettings message, length delimited. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.PythonSettings
+ * @static
+ * @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ PythonSettings.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a PythonSettings message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.PythonSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.PythonSettings} PythonSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PythonSettings.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PythonSettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 2: {
+ message.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a PythonSettings message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.PythonSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.PythonSettings} PythonSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ PythonSettings.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a PythonSettings message.
+ * @function verify
+ * @memberof google.api.PythonSettings
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ PythonSettings.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.common != null && Object.hasOwnProperty.call(message, "common")) {
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common, long + 1);
+ if (error)
+ return "common." + error;
+ }
+ if (message.experimentalFeatures != null && Object.hasOwnProperty.call(message, "experimentalFeatures")) {
+ var error = $root.google.api.PythonSettings.ExperimentalFeatures.verify(message.experimentalFeatures, long + 1);
+ if (error)
+ return "experimentalFeatures." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a PythonSettings message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.PythonSettings
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.PythonSettings} PythonSettings
+ */
+ PythonSettings.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.api.PythonSettings)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.api.PythonSettings: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.api.PythonSettings();
+ if (object.common != null) {
+ if (!$util.isObject(object.common))
+ throw TypeError(".google.api.PythonSettings.common: object expected");
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common, long + 1);
+ }
+ if (object.experimentalFeatures != null) {
+ if (!$util.isObject(object.experimentalFeatures))
+ throw TypeError(".google.api.PythonSettings.experimentalFeatures: object expected");
+ message.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.fromObject(object.experimentalFeatures, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a PythonSettings message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.PythonSettings
+ * @static
+ * @param {google.api.PythonSettings} message PythonSettings
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ PythonSettings.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.common = null;
+ object.experimentalFeatures = null;
+ }
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options, q + 1);
+ if (message.experimentalFeatures != null && Object.hasOwnProperty.call(message, "experimentalFeatures"))
+ object.experimentalFeatures = $root.google.api.PythonSettings.ExperimentalFeatures.toObject(message.experimentalFeatures, options, q + 1);
+ return object;
+ };
+
+ /**
+ * Converts this PythonSettings to JSON.
+ * @function toJSON
+ * @memberof google.api.PythonSettings
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ PythonSettings.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for PythonSettings
+ * @function getTypeUrl
+ * @memberof google.api.PythonSettings
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ PythonSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.PythonSettings";
+ };
+
+ PythonSettings.ExperimentalFeatures = (function() {
+
+ /**
+ * Properties of an ExperimentalFeatures.
+ * @memberof google.api.PythonSettings
+ * @interface IExperimentalFeatures
+ * @property {boolean|null} [restAsyncIoEnabled] ExperimentalFeatures restAsyncIoEnabled
+ * @property {boolean|null} [protobufPythonicTypesEnabled] ExperimentalFeatures protobufPythonicTypesEnabled
+ * @property {boolean|null} [unversionedPackageDisabled] ExperimentalFeatures unversionedPackageDisabled
+ */
+
+ /**
+ * Constructs a new ExperimentalFeatures.
+ * @memberof google.api.PythonSettings
+ * @classdesc Represents an ExperimentalFeatures.
+ * @implements IExperimentalFeatures
+ * @constructor
+ * @param {google.api.PythonSettings.IExperimentalFeatures=} [properties] Properties to set
+ */
+ function ExperimentalFeatures(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ExperimentalFeatures restAsyncIoEnabled.
+ * @member {boolean} restAsyncIoEnabled
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
+ * @instance
+ */
+ ExperimentalFeatures.prototype.restAsyncIoEnabled = false;
+
+ /**
+ * ExperimentalFeatures protobufPythonicTypesEnabled.
+ * @member {boolean} protobufPythonicTypesEnabled
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
+ * @instance
+ */
+ ExperimentalFeatures.prototype.protobufPythonicTypesEnabled = false;
+
+ /**
+ * ExperimentalFeatures unversionedPackageDisabled.
+ * @member {boolean} unversionedPackageDisabled
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
+ * @instance
+ */
+ ExperimentalFeatures.prototype.unversionedPackageDisabled = false;
+
+ /**
+ * Creates a new ExperimentalFeatures instance using the specified properties.
+ * @function create
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
+ * @static
+ * @param {google.api.PythonSettings.IExperimentalFeatures=} [properties] Properties to set
+ * @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures instance
+ */
+ ExperimentalFeatures.create = function create(properties) {
+ return new ExperimentalFeatures(properties);
+ };
+
+ /**
+ * Encodes the specified ExperimentalFeatures message. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
+ * @static
+ * @param {google.api.PythonSettings.IExperimentalFeatures} message ExperimentalFeatures message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ExperimentalFeatures.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.restAsyncIoEnabled != null && Object.hasOwnProperty.call(message, "restAsyncIoEnabled"))
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.restAsyncIoEnabled);
+ if (message.protobufPythonicTypesEnabled != null && Object.hasOwnProperty.call(message, "protobufPythonicTypesEnabled"))
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.protobufPythonicTypesEnabled);
+ if (message.unversionedPackageDisabled != null && Object.hasOwnProperty.call(message, "unversionedPackageDisabled"))
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.unversionedPackageDisabled);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ExperimentalFeatures message, length delimited. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
+ * @static
+ * @param {google.api.PythonSettings.IExperimentalFeatures} message ExperimentalFeatures message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ExperimentalFeatures.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes an ExperimentalFeatures message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ExperimentalFeatures.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PythonSettings.ExperimentalFeatures();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.restAsyncIoEnabled = reader.bool();
+ break;
+ }
+ case 2: {
+ message.protobufPythonicTypesEnabled = reader.bool();
+ break;
+ }
+ case 3: {
+ message.unversionedPackageDisabled = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an ExperimentalFeatures message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ExperimentalFeatures.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an ExperimentalFeatures message.
+ * @function verify
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ExperimentalFeatures.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.restAsyncIoEnabled != null && Object.hasOwnProperty.call(message, "restAsyncIoEnabled"))
+ if (typeof message.restAsyncIoEnabled !== "boolean")
+ return "restAsyncIoEnabled: boolean expected";
+ if (message.protobufPythonicTypesEnabled != null && Object.hasOwnProperty.call(message, "protobufPythonicTypesEnabled"))
+ if (typeof message.protobufPythonicTypesEnabled !== "boolean")
+ return "protobufPythonicTypesEnabled: boolean expected";
+ if (message.unversionedPackageDisabled != null && Object.hasOwnProperty.call(message, "unversionedPackageDisabled"))
+ if (typeof message.unversionedPackageDisabled !== "boolean")
+ return "unversionedPackageDisabled: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates an ExperimentalFeatures message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.PythonSettings.ExperimentalFeatures} ExperimentalFeatures
+ */
+ ExperimentalFeatures.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.api.PythonSettings.ExperimentalFeatures)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.api.PythonSettings.ExperimentalFeatures: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.api.PythonSettings.ExperimentalFeatures();
+ if (object.restAsyncIoEnabled != null)
+ message.restAsyncIoEnabled = Boolean(object.restAsyncIoEnabled);
+ if (object.protobufPythonicTypesEnabled != null)
+ message.protobufPythonicTypesEnabled = Boolean(object.protobufPythonicTypesEnabled);
+ if (object.unversionedPackageDisabled != null)
+ message.unversionedPackageDisabled = Boolean(object.unversionedPackageDisabled);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an ExperimentalFeatures message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
+ * @static
+ * @param {google.api.PythonSettings.ExperimentalFeatures} message ExperimentalFeatures
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ExperimentalFeatures.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.restAsyncIoEnabled = false;
+ object.protobufPythonicTypesEnabled = false;
+ object.unversionedPackageDisabled = false;
+ }
+ if (message.restAsyncIoEnabled != null && Object.hasOwnProperty.call(message, "restAsyncIoEnabled"))
+ object.restAsyncIoEnabled = message.restAsyncIoEnabled;
+ if (message.protobufPythonicTypesEnabled != null && Object.hasOwnProperty.call(message, "protobufPythonicTypesEnabled"))
+ object.protobufPythonicTypesEnabled = message.protobufPythonicTypesEnabled;
+ if (message.unversionedPackageDisabled != null && Object.hasOwnProperty.call(message, "unversionedPackageDisabled"))
+ object.unversionedPackageDisabled = message.unversionedPackageDisabled;
+ return object;
+ };
+
+ /**
+ * Converts this ExperimentalFeatures to JSON.
+ * @function toJSON
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ExperimentalFeatures.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ExperimentalFeatures
+ * @function getTypeUrl
+ * @memberof google.api.PythonSettings.ExperimentalFeatures
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ExperimentalFeatures.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.PythonSettings.ExperimentalFeatures";
+ };
+
+ return ExperimentalFeatures;
+ })();
+
+ return PythonSettings;
+ })();
+
+ api.NodeSettings = (function() {
+
+ /**
+ * Properties of a NodeSettings.
+ * @memberof google.api
+ * @interface INodeSettings
+ * @property {google.api.ICommonLanguageSettings|null} [common] NodeSettings common
+ */
+
+ /**
+ * Constructs a new NodeSettings.
+ * @memberof google.api
+ * @classdesc Represents a NodeSettings.
+ * @implements INodeSettings
+ * @constructor
+ * @param {google.api.INodeSettings=} [properties] Properties to set
+ */
+ function NodeSettings(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * NodeSettings common.
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
+ * @memberof google.api.NodeSettings
+ * @instance
+ */
+ NodeSettings.prototype.common = null;
+
+ /**
+ * Creates a new NodeSettings instance using the specified properties.
+ * @function create
+ * @memberof google.api.NodeSettings
+ * @static
+ * @param {google.api.INodeSettings=} [properties] Properties to set
+ * @returns {google.api.NodeSettings} NodeSettings instance
+ */
+ NodeSettings.create = function create(properties) {
+ return new NodeSettings(properties);
+ };
+
+ /**
+ * Encodes the specified NodeSettings message. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.NodeSettings
+ * @static
+ * @param {google.api.INodeSettings} message NodeSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NodeSettings.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified NodeSettings message, length delimited. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.NodeSettings
+ * @static
+ * @param {google.api.INodeSettings} message NodeSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ NodeSettings.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a NodeSettings message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.NodeSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.NodeSettings} NodeSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NodeSettings.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.NodeSettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a NodeSettings message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.NodeSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.NodeSettings} NodeSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ NodeSettings.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a NodeSettings message.
+ * @function verify
+ * @memberof google.api.NodeSettings
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ NodeSettings.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.common != null && Object.hasOwnProperty.call(message, "common")) {
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common, long + 1);
+ if (error)
+ return "common." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a NodeSettings message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.NodeSettings
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.NodeSettings} NodeSettings
+ */
+ NodeSettings.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.api.NodeSettings)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.api.NodeSettings: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.api.NodeSettings();
+ if (object.common != null) {
+ if (!$util.isObject(object.common))
+ throw TypeError(".google.api.NodeSettings.common: object expected");
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a NodeSettings message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.NodeSettings
+ * @static
+ * @param {google.api.NodeSettings} message NodeSettings
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ NodeSettings.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults)
+ object.common = null;
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options, q + 1);
+ return object;
+ };
+
+ /**
+ * Converts this NodeSettings to JSON.
+ * @function toJSON
+ * @memberof google.api.NodeSettings
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ NodeSettings.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for NodeSettings
+ * @function getTypeUrl
+ * @memberof google.api.NodeSettings
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ NodeSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.NodeSettings";
+ };
+
+ return NodeSettings;
+ })();
+
+ api.DotnetSettings = (function() {
+
+ /**
+ * Properties of a DotnetSettings.
+ * @memberof google.api
+ * @interface IDotnetSettings
+ * @property {google.api.ICommonLanguageSettings|null} [common] DotnetSettings common
+ * @property {Object.|null} [renamedServices] DotnetSettings renamedServices
+ * @property {Object.|null} [renamedResources] DotnetSettings renamedResources
+ * @property {Array.|null} [ignoredResources] DotnetSettings ignoredResources
+ * @property {Array.|null} [forcedNamespaceAliases] DotnetSettings forcedNamespaceAliases
+ * @property {Array.|null} [handwrittenSignatures] DotnetSettings handwrittenSignatures
+ */
+
+ /**
+ * Constructs a new DotnetSettings.
+ * @memberof google.api
+ * @classdesc Represents a DotnetSettings.
+ * @implements IDotnetSettings
+ * @constructor
+ * @param {google.api.IDotnetSettings=} [properties] Properties to set
+ */
+ function DotnetSettings(properties) {
+ this.renamedServices = {};
+ this.renamedResources = {};
+ this.ignoredResources = [];
+ this.forcedNamespaceAliases = [];
+ this.handwrittenSignatures = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * DotnetSettings common.
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
+ * @memberof google.api.DotnetSettings
+ * @instance
+ */
+ DotnetSettings.prototype.common = null;
+
+ /**
+ * DotnetSettings renamedServices.
+ * @member {Object.} renamedServices
+ * @memberof google.api.DotnetSettings
+ * @instance
+ */
+ DotnetSettings.prototype.renamedServices = $util.emptyObject;
+
+ /**
+ * DotnetSettings renamedResources.
+ * @member {Object.} renamedResources
+ * @memberof google.api.DotnetSettings
+ * @instance
+ */
+ DotnetSettings.prototype.renamedResources = $util.emptyObject;
+
+ /**
+ * DotnetSettings ignoredResources.
+ * @member {Array.} ignoredResources
+ * @memberof google.api.DotnetSettings
+ * @instance
+ */
+ DotnetSettings.prototype.ignoredResources = $util.emptyArray;
+
+ /**
+ * DotnetSettings forcedNamespaceAliases.
+ * @member {Array.} forcedNamespaceAliases
+ * @memberof google.api.DotnetSettings
+ * @instance
+ */
+ DotnetSettings.prototype.forcedNamespaceAliases = $util.emptyArray;
+
+ /**
+ * DotnetSettings handwrittenSignatures.
+ * @member {Array.} handwrittenSignatures
+ * @memberof google.api.DotnetSettings
+ * @instance
+ */
+ DotnetSettings.prototype.handwrittenSignatures = $util.emptyArray;
+
+ /**
+ * Creates a new DotnetSettings instance using the specified properties.
+ * @function create
+ * @memberof google.api.DotnetSettings
+ * @static
+ * @param {google.api.IDotnetSettings=} [properties] Properties to set
+ * @returns {google.api.DotnetSettings} DotnetSettings instance
+ */
+ DotnetSettings.create = function create(properties) {
+ return new DotnetSettings(properties);
+ };
+
+ /**
+ * Encodes the specified DotnetSettings message. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.DotnetSettings
+ * @static
+ * @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DotnetSettings.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ if (message.renamedServices != null && Object.hasOwnProperty.call(message, "renamedServices"))
+ for (var keys = Object.keys(message.renamedServices), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.renamedServices[keys[i]]).ldelim();
+ if (message.renamedResources != null && Object.hasOwnProperty.call(message, "renamedResources"))
+ for (var keys = Object.keys(message.renamedResources), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.renamedResources[keys[i]]).ldelim();
+ if (message.ignoredResources != null && message.ignoredResources.length)
+ for (var i = 0; i < message.ignoredResources.length; ++i)
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.ignoredResources[i]);
+ if (message.forcedNamespaceAliases != null && message.forcedNamespaceAliases.length)
+ for (var i = 0; i < message.forcedNamespaceAliases.length; ++i)
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.forcedNamespaceAliases[i]);
+ if (message.handwrittenSignatures != null && message.handwrittenSignatures.length)
+ for (var i = 0; i < message.handwrittenSignatures.length; ++i)
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.handwrittenSignatures[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DotnetSettings message, length delimited. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.DotnetSettings
+ * @static
+ * @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DotnetSettings.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a DotnetSettings message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.DotnetSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.DotnetSettings} DotnetSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DotnetSettings.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.DotnetSettings(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 2: {
+ if (message.renamedServices === $util.emptyObject)
+ message.renamedServices = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = "";
+ value = "";
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.string();
+ break;
+ case 2:
+ value = reader.string();
+ break;
+ default:
+ reader.skipType(tag2 & 7, long);
+ break;
+ }
+ }
+ if (key === "__proto__")
+ $util.makeProp(message.renamedServices, key);
+ message.renamedServices[key] = value;
+ break;
+ }
+ case 3: {
+ if (message.renamedResources === $util.emptyObject)
+ message.renamedResources = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = "";
+ value = "";
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.string();
+ break;
+ case 2:
+ value = reader.string();
+ break;
+ default:
+ reader.skipType(tag2 & 7, long);
+ break;
+ }
+ }
+ if (key === "__proto__")
+ $util.makeProp(message.renamedResources, key);
+ message.renamedResources[key] = value;
+ break;
+ }
+ case 4: {
+ if (!(message.ignoredResources && message.ignoredResources.length))
+ message.ignoredResources = [];
+ message.ignoredResources.push(reader.string());
+ break;
+ }
+ case 5: {
+ if (!(message.forcedNamespaceAliases && message.forcedNamespaceAliases.length))
+ message.forcedNamespaceAliases = [];
+ message.forcedNamespaceAliases.push(reader.string());
+ break;
+ }
+ case 6: {
+ if (!(message.handwrittenSignatures && message.handwrittenSignatures.length))
+ message.handwrittenSignatures = [];
+ message.handwrittenSignatures.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DotnetSettings message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.DotnetSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.DotnetSettings} DotnetSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DotnetSettings.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DotnetSettings message.
+ * @function verify
+ * @memberof google.api.DotnetSettings
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DotnetSettings.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.common != null && Object.hasOwnProperty.call(message, "common")) {
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common, long + 1);
+ if (error)
+ return "common." + error;
+ }
+ if (message.renamedServices != null && Object.hasOwnProperty.call(message, "renamedServices")) {
+ if (!$util.isObject(message.renamedServices))
+ return "renamedServices: object expected";
+ var key = Object.keys(message.renamedServices);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.renamedServices[key[i]]))
+ return "renamedServices: string{k:string} expected";
+ }
+ if (message.renamedResources != null && Object.hasOwnProperty.call(message, "renamedResources")) {
+ if (!$util.isObject(message.renamedResources))
+ return "renamedResources: object expected";
+ var key = Object.keys(message.renamedResources);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.renamedResources[key[i]]))
+ return "renamedResources: string{k:string} expected";
+ }
+ if (message.ignoredResources != null && Object.hasOwnProperty.call(message, "ignoredResources")) {
+ if (!Array.isArray(message.ignoredResources))
+ return "ignoredResources: array expected";
+ for (var i = 0; i < message.ignoredResources.length; ++i)
+ if (!$util.isString(message.ignoredResources[i]))
+ return "ignoredResources: string[] expected";
+ }
+ if (message.forcedNamespaceAliases != null && Object.hasOwnProperty.call(message, "forcedNamespaceAliases")) {
+ if (!Array.isArray(message.forcedNamespaceAliases))
+ return "forcedNamespaceAliases: array expected";
+ for (var i = 0; i < message.forcedNamespaceAliases.length; ++i)
+ if (!$util.isString(message.forcedNamespaceAliases[i]))
+ return "forcedNamespaceAliases: string[] expected";
+ }
+ if (message.handwrittenSignatures != null && Object.hasOwnProperty.call(message, "handwrittenSignatures")) {
+ if (!Array.isArray(message.handwrittenSignatures))
+ return "handwrittenSignatures: array expected";
+ for (var i = 0; i < message.handwrittenSignatures.length; ++i)
+ if (!$util.isString(message.handwrittenSignatures[i]))
+ return "handwrittenSignatures: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a DotnetSettings message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.DotnetSettings
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.DotnetSettings} DotnetSettings
+ */
+ DotnetSettings.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.api.DotnetSettings)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.api.DotnetSettings: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.api.DotnetSettings();
+ if (object.common != null) {
+ if (!$util.isObject(object.common))
+ throw TypeError(".google.api.DotnetSettings.common: object expected");
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common, long + 1);
+ }
+ if (object.renamedServices) {
+ if (!$util.isObject(object.renamedServices))
+ throw TypeError(".google.api.DotnetSettings.renamedServices: object expected");
+ message.renamedServices = {};
+ for (var keys = Object.keys(object.renamedServices), i = 0; i < keys.length; ++i) {
+ if (keys[i] === "__proto__")
+ $util.makeProp(message.renamedServices, keys[i]);
+ message.renamedServices[keys[i]] = String(object.renamedServices[keys[i]]);
+ }
+ }
+ if (object.renamedResources) {
+ if (!$util.isObject(object.renamedResources))
+ throw TypeError(".google.api.DotnetSettings.renamedResources: object expected");
+ message.renamedResources = {};
+ for (var keys = Object.keys(object.renamedResources), i = 0; i < keys.length; ++i) {
+ if (keys[i] === "__proto__")
+ $util.makeProp(message.renamedResources, keys[i]);
+ message.renamedResources[keys[i]] = String(object.renamedResources[keys[i]]);
+ }
+ }
+ if (object.ignoredResources) {
+ if (!Array.isArray(object.ignoredResources))
+ throw TypeError(".google.api.DotnetSettings.ignoredResources: array expected");
+ message.ignoredResources = [];
+ for (var i = 0; i < object.ignoredResources.length; ++i)
+ message.ignoredResources[i] = String(object.ignoredResources[i]);
+ }
+ if (object.forcedNamespaceAliases) {
+ if (!Array.isArray(object.forcedNamespaceAliases))
+ throw TypeError(".google.api.DotnetSettings.forcedNamespaceAliases: array expected");
+ message.forcedNamespaceAliases = [];
+ for (var i = 0; i < object.forcedNamespaceAliases.length; ++i)
+ message.forcedNamespaceAliases[i] = String(object.forcedNamespaceAliases[i]);
+ }
+ if (object.handwrittenSignatures) {
+ if (!Array.isArray(object.handwrittenSignatures))
+ throw TypeError(".google.api.DotnetSettings.handwrittenSignatures: array expected");
+ message.handwrittenSignatures = [];
+ for (var i = 0; i < object.handwrittenSignatures.length; ++i)
+ message.handwrittenSignatures[i] = String(object.handwrittenSignatures[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DotnetSettings message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.DotnetSettings
+ * @static
+ * @param {google.api.DotnetSettings} message DotnetSettings
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DotnetSettings.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.ignoredResources = [];
+ object.forcedNamespaceAliases = [];
+ object.handwrittenSignatures = [];
+ }
+ if (options.objects || options.defaults) {
+ object.renamedServices = {};
+ object.renamedResources = {};
+ }
+ if (options.defaults)
+ object.common = null;
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options, q + 1);
+ var keys2;
+ if (message.renamedServices && (keys2 = Object.keys(message.renamedServices)).length) {
+ object.renamedServices = {};
+ for (var j = 0; j < keys2.length; ++j) {
+ if (keys2[j] === "__proto__")
+ $util.makeProp(object.renamedServices, keys2[j]);
+ object.renamedServices[keys2[j]] = message.renamedServices[keys2[j]];
+ }
+ }
+ if (message.renamedResources && (keys2 = Object.keys(message.renamedResources)).length) {
+ object.renamedResources = {};
+ for (var j = 0; j < keys2.length; ++j) {
+ if (keys2[j] === "__proto__")
+ $util.makeProp(object.renamedResources, keys2[j]);
+ object.renamedResources[keys2[j]] = message.renamedResources[keys2[j]];
+ }
+ }
+ if (message.ignoredResources && message.ignoredResources.length) {
+ object.ignoredResources = [];
+ for (var j = 0; j < message.ignoredResources.length; ++j)
+ object.ignoredResources[j] = message.ignoredResources[j];
+ }
+ if (message.forcedNamespaceAliases && message.forcedNamespaceAliases.length) {
+ object.forcedNamespaceAliases = [];
+ for (var j = 0; j < message.forcedNamespaceAliases.length; ++j)
+ object.forcedNamespaceAliases[j] = message.forcedNamespaceAliases[j];
+ }
+ if (message.handwrittenSignatures && message.handwrittenSignatures.length) {
+ object.handwrittenSignatures = [];
+ for (var j = 0; j < message.handwrittenSignatures.length; ++j)
+ object.handwrittenSignatures[j] = message.handwrittenSignatures[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this DotnetSettings to JSON.
+ * @function toJSON
+ * @memberof google.api.DotnetSettings
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DotnetSettings.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DotnetSettings
+ * @function getTypeUrl
+ * @memberof google.api.DotnetSettings
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DotnetSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.DotnetSettings";
+ };
+
+ return DotnetSettings;
+ })();
+
+ api.RubySettings = (function() {
+
+ /**
+ * Properties of a RubySettings.
+ * @memberof google.api
+ * @interface IRubySettings
+ * @property {google.api.ICommonLanguageSettings|null} [common] RubySettings common
+ */
+
+ /**
+ * Constructs a new RubySettings.
+ * @memberof google.api
+ * @classdesc Represents a RubySettings.
+ * @implements IRubySettings
+ * @constructor
+ * @param {google.api.IRubySettings=} [properties] Properties to set
+ */
+ function RubySettings(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * RubySettings common.
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
+ * @memberof google.api.RubySettings
+ * @instance
+ */
+ RubySettings.prototype.common = null;
+
+ /**
+ * Creates a new RubySettings instance using the specified properties.
+ * @function create
+ * @memberof google.api.RubySettings
+ * @static
+ * @param {google.api.IRubySettings=} [properties] Properties to set
+ * @returns {google.api.RubySettings} RubySettings instance
+ */
+ RubySettings.create = function create(properties) {
+ return new RubySettings(properties);
+ };
+
+ /**
+ * Encodes the specified RubySettings message. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.RubySettings
+ * @static
+ * @param {google.api.IRubySettings} message RubySettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RubySettings.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified RubySettings message, length delimited. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.RubySettings
+ * @static
+ * @param {google.api.IRubySettings} message RubySettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ RubySettings.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a RubySettings message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.RubySettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.RubySettings} RubySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RubySettings.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.RubySettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a RubySettings message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.RubySettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.RubySettings} RubySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ RubySettings.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a RubySettings message.
+ * @function verify
+ * @memberof google.api.RubySettings
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ RubySettings.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.common != null && Object.hasOwnProperty.call(message, "common")) {
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common, long + 1);
+ if (error)
+ return "common." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a RubySettings message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.RubySettings
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.RubySettings} RubySettings
+ */
+ RubySettings.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.api.RubySettings)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.api.RubySettings: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.api.RubySettings();
+ if (object.common != null) {
+ if (!$util.isObject(object.common))
+ throw TypeError(".google.api.RubySettings.common: object expected");
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a RubySettings message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.RubySettings
+ * @static
+ * @param {google.api.RubySettings} message RubySettings
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ RubySettings.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults)
+ object.common = null;
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options, q + 1);
+ return object;
+ };
+
+ /**
+ * Converts this RubySettings to JSON.
+ * @function toJSON
+ * @memberof google.api.RubySettings
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ RubySettings.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for RubySettings
+ * @function getTypeUrl
+ * @memberof google.api.RubySettings
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ RubySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.RubySettings";
+ };
+
+ return RubySettings;
+ })();
+
+ api.GoSettings = (function() {
+
+ /**
+ * Properties of a GoSettings.
+ * @memberof google.api
+ * @interface IGoSettings
+ * @property {google.api.ICommonLanguageSettings|null} [common] GoSettings common
+ * @property {Object.|null} [renamedServices] GoSettings renamedServices
+ */
+
+ /**
+ * Constructs a new GoSettings.
+ * @memberof google.api
+ * @classdesc Represents a GoSettings.
+ * @implements IGoSettings
+ * @constructor
+ * @param {google.api.IGoSettings=} [properties] Properties to set
+ */
+ function GoSettings(properties) {
+ this.renamedServices = {};
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * GoSettings common.
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
+ * @memberof google.api.GoSettings
+ * @instance
+ */
+ GoSettings.prototype.common = null;
+
+ /**
+ * GoSettings renamedServices.
+ * @member {Object.} renamedServices
+ * @memberof google.api.GoSettings
+ * @instance
+ */
+ GoSettings.prototype.renamedServices = $util.emptyObject;
+
+ /**
+ * Creates a new GoSettings instance using the specified properties.
+ * @function create
+ * @memberof google.api.GoSettings
+ * @static
+ * @param {google.api.IGoSettings=} [properties] Properties to set
+ * @returns {google.api.GoSettings} GoSettings instance
+ */
+ GoSettings.create = function create(properties) {
+ return new GoSettings(properties);
+ };
+
+ /**
+ * Encodes the specified GoSettings message. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.GoSettings
+ * @static
+ * @param {google.api.IGoSettings} message GoSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GoSettings.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ if (message.renamedServices != null && Object.hasOwnProperty.call(message, "renamedServices"))
+ for (var keys = Object.keys(message.renamedServices), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.renamedServices[keys[i]]).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GoSettings message, length delimited. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.GoSettings
+ * @static
+ * @param {google.api.IGoSettings} message GoSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GoSettings.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a GoSettings message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.GoSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.GoSettings} GoSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GoSettings.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 2: {
+ if (message.renamedServices === $util.emptyObject)
+ message.renamedServices = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = "";
+ value = "";
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.string();
+ break;
+ case 2:
+ value = reader.string();
+ break;
+ default:
+ reader.skipType(tag2 & 7, long);
+ break;
+ }
+ }
+ if (key === "__proto__")
+ $util.makeProp(message.renamedServices, key);
+ message.renamedServices[key] = value;
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GoSettings message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.GoSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.GoSettings} GoSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GoSettings.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GoSettings message.
+ * @function verify
+ * @memberof google.api.GoSettings
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GoSettings.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.common != null && Object.hasOwnProperty.call(message, "common")) {
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common, long + 1);
+ if (error)
+ return "common." + error;
+ }
+ if (message.renamedServices != null && Object.hasOwnProperty.call(message, "renamedServices")) {
+ if (!$util.isObject(message.renamedServices))
+ return "renamedServices: object expected";
+ var key = Object.keys(message.renamedServices);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.renamedServices[key[i]]))
+ return "renamedServices: string{k:string} expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a GoSettings message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.GoSettings
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.GoSettings} GoSettings
+ */
+ GoSettings.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.api.GoSettings)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.api.GoSettings: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.api.GoSettings();
+ if (object.common != null) {
+ if (!$util.isObject(object.common))
+ throw TypeError(".google.api.GoSettings.common: object expected");
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common, long + 1);
+ }
+ if (object.renamedServices) {
+ if (!$util.isObject(object.renamedServices))
+ throw TypeError(".google.api.GoSettings.renamedServices: object expected");
+ message.renamedServices = {};
+ for (var keys = Object.keys(object.renamedServices), i = 0; i < keys.length; ++i) {
+ if (keys[i] === "__proto__")
+ $util.makeProp(message.renamedServices, keys[i]);
+ message.renamedServices[keys[i]] = String(object.renamedServices[keys[i]]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GoSettings message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.GoSettings
+ * @static
+ * @param {google.api.GoSettings} message GoSettings
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GoSettings.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.objects || options.defaults)
+ object.renamedServices = {};
+ if (options.defaults)
+ object.common = null;
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options, q + 1);
+ var keys2;
+ if (message.renamedServices && (keys2 = Object.keys(message.renamedServices)).length) {
+ object.renamedServices = {};
+ for (var j = 0; j < keys2.length; ++j) {
+ if (keys2[j] === "__proto__")
+ $util.makeProp(object.renamedServices, keys2[j]);
+ object.renamedServices[keys2[j]] = message.renamedServices[keys2[j]];
+ }
+ }
+ return object;
+ };
+
+ /**
+ * Converts this GoSettings to JSON.
+ * @function toJSON
+ * @memberof google.api.GoSettings
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GoSettings.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GoSettings
+ * @function getTypeUrl
+ * @memberof google.api.GoSettings
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GoSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.GoSettings";
+ };
+
+ return GoSettings;
+ })();
+
+ api.MethodSettings = (function() {
+
+ /**
+ * Properties of a MethodSettings.
+ * @memberof google.api
+ * @interface IMethodSettings
+ * @property {string|null} [selector] MethodSettings selector
+ * @property {google.api.MethodSettings.ILongRunning|null} [longRunning] MethodSettings longRunning
+ * @property {Array.|null} [autoPopulatedFields] MethodSettings autoPopulatedFields
+ */
+
+ /**
+ * Constructs a new MethodSettings.
+ * @memberof google.api
+ * @classdesc Represents a MethodSettings.
+ * @implements IMethodSettings
+ * @constructor
+ * @param {google.api.IMethodSettings=} [properties] Properties to set
+ */
+ function MethodSettings(properties) {
+ this.autoPopulatedFields = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * MethodSettings selector.
+ * @member {string} selector
+ * @memberof google.api.MethodSettings
+ * @instance
+ */
+ MethodSettings.prototype.selector = "";
+
+ /**
+ * MethodSettings longRunning.
+ * @member {google.api.MethodSettings.ILongRunning|null|undefined} longRunning
+ * @memberof google.api.MethodSettings
+ * @instance
+ */
+ MethodSettings.prototype.longRunning = null;
+
+ /**
+ * MethodSettings autoPopulatedFields.
+ * @member {Array.} autoPopulatedFields
+ * @memberof google.api.MethodSettings
+ * @instance
+ */
+ MethodSettings.prototype.autoPopulatedFields = $util.emptyArray;
+
+ /**
+ * Creates a new MethodSettings instance using the specified properties.
+ * @function create
+ * @memberof google.api.MethodSettings
+ * @static
+ * @param {google.api.IMethodSettings=} [properties] Properties to set
+ * @returns {google.api.MethodSettings} MethodSettings instance
+ */
+ MethodSettings.create = function create(properties) {
+ return new MethodSettings(properties);
+ };
+
+ /**
+ * Encodes the specified MethodSettings message. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.MethodSettings
+ * @static
+ * @param {google.api.IMethodSettings} message MethodSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ MethodSettings.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.selector != null && Object.hasOwnProperty.call(message, "selector"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector);
+ if (message.longRunning != null && Object.hasOwnProperty.call(message, "longRunning"))
+ $root.google.api.MethodSettings.LongRunning.encode(message.longRunning, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim();
+ if (message.autoPopulatedFields != null && message.autoPopulatedFields.length)
+ for (var i = 0; i < message.autoPopulatedFields.length; ++i)
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.autoPopulatedFields[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified MethodSettings message, length delimited. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.MethodSettings
+ * @static
+ * @param {google.api.IMethodSettings} message MethodSettings message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ MethodSettings.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a MethodSettings message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.MethodSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.MethodSettings} MethodSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ MethodSettings.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.selector = reader.string();
+ break;
+ }
+ case 2: {
+ message.longRunning = $root.google.api.MethodSettings.LongRunning.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 3: {
+ if (!(message.autoPopulatedFields && message.autoPopulatedFields.length))
+ message.autoPopulatedFields = [];
+ message.autoPopulatedFields.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a MethodSettings message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.MethodSettings
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.MethodSettings} MethodSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ MethodSettings.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a MethodSettings message.
+ * @function verify
+ * @memberof google.api.MethodSettings
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ MethodSettings.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.selector != null && Object.hasOwnProperty.call(message, "selector"))
+ if (!$util.isString(message.selector))
+ return "selector: string expected";
+ if (message.longRunning != null && Object.hasOwnProperty.call(message, "longRunning")) {
+ var error = $root.google.api.MethodSettings.LongRunning.verify(message.longRunning, long + 1);
+ if (error)
+ return "longRunning." + error;
+ }
+ if (message.autoPopulatedFields != null && Object.hasOwnProperty.call(message, "autoPopulatedFields")) {
+ if (!Array.isArray(message.autoPopulatedFields))
+ return "autoPopulatedFields: array expected";
+ for (var i = 0; i < message.autoPopulatedFields.length; ++i)
+ if (!$util.isString(message.autoPopulatedFields[i]))
+ return "autoPopulatedFields: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a MethodSettings message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.MethodSettings
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.MethodSettings} MethodSettings
+ */
+ MethodSettings.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.api.MethodSettings)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.api.MethodSettings: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.api.MethodSettings();
+ if (object.selector != null)
+ message.selector = String(object.selector);
+ if (object.longRunning != null) {
+ if (!$util.isObject(object.longRunning))
+ throw TypeError(".google.api.MethodSettings.longRunning: object expected");
+ message.longRunning = $root.google.api.MethodSettings.LongRunning.fromObject(object.longRunning, long + 1);
+ }
+ if (object.autoPopulatedFields) {
+ if (!Array.isArray(object.autoPopulatedFields))
+ throw TypeError(".google.api.MethodSettings.autoPopulatedFields: array expected");
+ message.autoPopulatedFields = [];
+ for (var i = 0; i < object.autoPopulatedFields.length; ++i)
+ message.autoPopulatedFields[i] = String(object.autoPopulatedFields[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a MethodSettings message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.MethodSettings
+ * @static
+ * @param {google.api.MethodSettings} message MethodSettings
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ MethodSettings.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.autoPopulatedFields = [];
+ if (options.defaults) {
+ object.selector = "";
+ object.longRunning = null;
+ }
+ if (message.selector != null && Object.hasOwnProperty.call(message, "selector"))
+ object.selector = message.selector;
+ if (message.longRunning != null && Object.hasOwnProperty.call(message, "longRunning"))
+ object.longRunning = $root.google.api.MethodSettings.LongRunning.toObject(message.longRunning, options, q + 1);
+ if (message.autoPopulatedFields && message.autoPopulatedFields.length) {
+ object.autoPopulatedFields = [];
+ for (var j = 0; j < message.autoPopulatedFields.length; ++j)
+ object.autoPopulatedFields[j] = message.autoPopulatedFields[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this MethodSettings to JSON.
+ * @function toJSON
+ * @memberof google.api.MethodSettings
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ MethodSettings.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for MethodSettings
+ * @function getTypeUrl
+ * @memberof google.api.MethodSettings
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ MethodSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.MethodSettings";
+ };
+
+ MethodSettings.LongRunning = (function() {
+
+ /**
+ * Properties of a LongRunning.
+ * @memberof google.api.MethodSettings
+ * @interface ILongRunning
+ * @property {google.protobuf.IDuration|null} [initialPollDelay] LongRunning initialPollDelay
+ * @property {number|null} [pollDelayMultiplier] LongRunning pollDelayMultiplier
+ * @property {google.protobuf.IDuration|null} [maxPollDelay] LongRunning maxPollDelay
+ * @property {google.protobuf.IDuration|null} [totalPollTimeout] LongRunning totalPollTimeout
+ */
+
+ /**
+ * Constructs a new LongRunning.
+ * @memberof google.api.MethodSettings
+ * @classdesc Represents a LongRunning.
+ * @implements ILongRunning
+ * @constructor
+ * @param {google.api.MethodSettings.ILongRunning=} [properties] Properties to set
+ */
+ function LongRunning(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * LongRunning initialPollDelay.
+ * @member {google.protobuf.IDuration|null|undefined} initialPollDelay
+ * @memberof google.api.MethodSettings.LongRunning
+ * @instance
+ */
+ LongRunning.prototype.initialPollDelay = null;
+
+ /**
+ * LongRunning pollDelayMultiplier.
+ * @member {number} pollDelayMultiplier
+ * @memberof google.api.MethodSettings.LongRunning
+ * @instance
+ */
+ LongRunning.prototype.pollDelayMultiplier = 0;
+
+ /**
+ * LongRunning maxPollDelay.
+ * @member {google.protobuf.IDuration|null|undefined} maxPollDelay
+ * @memberof google.api.MethodSettings.LongRunning
+ * @instance
+ */
+ LongRunning.prototype.maxPollDelay = null;
+
+ /**
+ * LongRunning totalPollTimeout.
+ * @member {google.protobuf.IDuration|null|undefined} totalPollTimeout
+ * @memberof google.api.MethodSettings.LongRunning
+ * @instance
+ */
+ LongRunning.prototype.totalPollTimeout = null;
+
+ /**
+ * Creates a new LongRunning instance using the specified properties.
+ * @function create
+ * @memberof google.api.MethodSettings.LongRunning
+ * @static
+ * @param {google.api.MethodSettings.ILongRunning=} [properties] Properties to set
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning instance
+ */
+ LongRunning.create = function create(properties) {
+ return new LongRunning(properties);
+ };
+
+ /**
+ * Encodes the specified LongRunning message. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.MethodSettings.LongRunning
+ * @static
+ * @param {google.api.MethodSettings.ILongRunning} message LongRunning message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ LongRunning.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.initialPollDelay != null && Object.hasOwnProperty.call(message, "initialPollDelay"))
+ $root.google.protobuf.Duration.encode(message.initialPollDelay, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ if (message.pollDelayMultiplier != null && Object.hasOwnProperty.call(message, "pollDelayMultiplier"))
+ writer.uint32(/* id 2, wireType 5 =*/21).float(message.pollDelayMultiplier);
+ if (message.maxPollDelay != null && Object.hasOwnProperty.call(message, "maxPollDelay"))
+ $root.google.protobuf.Duration.encode(message.maxPollDelay, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim();
+ if (message.totalPollTimeout != null && Object.hasOwnProperty.call(message, "totalPollTimeout"))
+ $root.google.protobuf.Duration.encode(message.totalPollTimeout, writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified LongRunning message, length delimited. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.MethodSettings.LongRunning
+ * @static
+ * @param {google.api.MethodSettings.ILongRunning} message LongRunning message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ LongRunning.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a LongRunning message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.MethodSettings.LongRunning
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ LongRunning.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings.LongRunning();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.initialPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 2: {
+ message.pollDelayMultiplier = reader.float();
+ break;
+ }
+ case 3: {
+ message.maxPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 4: {
+ message.totalPollTimeout = $root.google.protobuf.Duration.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a LongRunning message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.MethodSettings.LongRunning
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ LongRunning.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a LongRunning message.
+ * @function verify
+ * @memberof google.api.MethodSettings.LongRunning
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ LongRunning.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.initialPollDelay != null && Object.hasOwnProperty.call(message, "initialPollDelay")) {
+ var error = $root.google.protobuf.Duration.verify(message.initialPollDelay, long + 1);
+ if (error)
+ return "initialPollDelay." + error;
+ }
+ if (message.pollDelayMultiplier != null && Object.hasOwnProperty.call(message, "pollDelayMultiplier"))
+ if (typeof message.pollDelayMultiplier !== "number")
+ return "pollDelayMultiplier: number expected";
+ if (message.maxPollDelay != null && Object.hasOwnProperty.call(message, "maxPollDelay")) {
+ var error = $root.google.protobuf.Duration.verify(message.maxPollDelay, long + 1);
+ if (error)
+ return "maxPollDelay." + error;
+ }
+ if (message.totalPollTimeout != null && Object.hasOwnProperty.call(message, "totalPollTimeout")) {
+ var error = $root.google.protobuf.Duration.verify(message.totalPollTimeout, long + 1);
+ if (error)
+ return "totalPollTimeout." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a LongRunning message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.MethodSettings.LongRunning
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning
+ */
+ LongRunning.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.api.MethodSettings.LongRunning)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.api.MethodSettings.LongRunning: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.api.MethodSettings.LongRunning();
+ if (object.initialPollDelay != null) {
+ if (!$util.isObject(object.initialPollDelay))
+ throw TypeError(".google.api.MethodSettings.LongRunning.initialPollDelay: object expected");
+ message.initialPollDelay = $root.google.protobuf.Duration.fromObject(object.initialPollDelay, long + 1);
+ }
+ if (object.pollDelayMultiplier != null)
+ message.pollDelayMultiplier = Number(object.pollDelayMultiplier);
+ if (object.maxPollDelay != null) {
+ if (!$util.isObject(object.maxPollDelay))
+ throw TypeError(".google.api.MethodSettings.LongRunning.maxPollDelay: object expected");
+ message.maxPollDelay = $root.google.protobuf.Duration.fromObject(object.maxPollDelay, long + 1);
+ }
+ if (object.totalPollTimeout != null) {
+ if (!$util.isObject(object.totalPollTimeout))
+ throw TypeError(".google.api.MethodSettings.LongRunning.totalPollTimeout: object expected");
+ message.totalPollTimeout = $root.google.protobuf.Duration.fromObject(object.totalPollTimeout, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a LongRunning message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.MethodSettings.LongRunning
+ * @static
+ * @param {google.api.MethodSettings.LongRunning} message LongRunning
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ LongRunning.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.initialPollDelay = null;
+ object.pollDelayMultiplier = 0;
+ object.maxPollDelay = null;
+ object.totalPollTimeout = null;
+ }
+ if (message.initialPollDelay != null && Object.hasOwnProperty.call(message, "initialPollDelay"))
+ object.initialPollDelay = $root.google.protobuf.Duration.toObject(message.initialPollDelay, options, q + 1);
+ if (message.pollDelayMultiplier != null && Object.hasOwnProperty.call(message, "pollDelayMultiplier"))
+ object.pollDelayMultiplier = options.json && !isFinite(message.pollDelayMultiplier) ? String(message.pollDelayMultiplier) : message.pollDelayMultiplier;
+ if (message.maxPollDelay != null && Object.hasOwnProperty.call(message, "maxPollDelay"))
+ object.maxPollDelay = $root.google.protobuf.Duration.toObject(message.maxPollDelay, options, q + 1);
+ if (message.totalPollTimeout != null && Object.hasOwnProperty.call(message, "totalPollTimeout"))
+ object.totalPollTimeout = $root.google.protobuf.Duration.toObject(message.totalPollTimeout, options, q + 1);
+ return object;
+ };
+
+ /**
+ * Converts this LongRunning to JSON.
+ * @function toJSON
+ * @memberof google.api.MethodSettings.LongRunning
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ LongRunning.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for LongRunning
+ * @function getTypeUrl
+ * @memberof google.api.MethodSettings.LongRunning
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ LongRunning.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.MethodSettings.LongRunning";
+ };
+
+ return LongRunning;
+ })();
+
+ return MethodSettings;
+ })();
+
+ /**
+ * ClientLibraryOrganization enum.
+ * @name google.api.ClientLibraryOrganization
+ * @enum {number}
+ * @property {number} CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED=0 CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED value
+ * @property {number} CLOUD=1 CLOUD value
+ * @property {number} ADS=2 ADS value
+ * @property {number} PHOTOS=3 PHOTOS value
+ * @property {number} STREET_VIEW=4 STREET_VIEW value
+ * @property {number} SHOPPING=5 SHOPPING value
+ * @property {number} GEO=6 GEO value
+ * @property {number} GENERATIVE_AI=7 GENERATIVE_AI value
+ */
+ api.ClientLibraryOrganization = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "CLOUD"] = 1;
+ values[valuesById[2] = "ADS"] = 2;
+ values[valuesById[3] = "PHOTOS"] = 3;
+ values[valuesById[4] = "STREET_VIEW"] = 4;
+ values[valuesById[5] = "SHOPPING"] = 5;
+ values[valuesById[6] = "GEO"] = 6;
+ values[valuesById[7] = "GENERATIVE_AI"] = 7;
+ return values;
+ })();
+
+ /**
+ * ClientLibraryDestination enum.
+ * @name google.api.ClientLibraryDestination
+ * @enum {number}
+ * @property {number} CLIENT_LIBRARY_DESTINATION_UNSPECIFIED=0 CLIENT_LIBRARY_DESTINATION_UNSPECIFIED value
+ * @property {number} GITHUB=10 GITHUB value
+ * @property {number} PACKAGE_MANAGER=20 PACKAGE_MANAGER value
+ */
+ api.ClientLibraryDestination = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED"] = 0;
+ values[valuesById[10] = "GITHUB"] = 10;
+ values[valuesById[20] = "PACKAGE_MANAGER"] = 20;
+ return values;
+ })();
+
+ api.SelectiveGapicGeneration = (function() {
+
+ /**
+ * Properties of a SelectiveGapicGeneration.
+ * @memberof google.api
+ * @interface ISelectiveGapicGeneration
+ * @property {Array.|null} [methods] SelectiveGapicGeneration methods
+ * @property {boolean|null} [generateOmittedAsInternal] SelectiveGapicGeneration generateOmittedAsInternal
+ */
+
+ /**
+ * Constructs a new SelectiveGapicGeneration.
+ * @memberof google.api
+ * @classdesc Represents a SelectiveGapicGeneration.
+ * @implements ISelectiveGapicGeneration
+ * @constructor
+ * @param {google.api.ISelectiveGapicGeneration=} [properties] Properties to set
+ */
+ function SelectiveGapicGeneration(properties) {
+ this.methods = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * SelectiveGapicGeneration methods.
+ * @member {Array.} methods
+ * @memberof google.api.SelectiveGapicGeneration
+ * @instance
+ */
+ SelectiveGapicGeneration.prototype.methods = $util.emptyArray;
+
+ /**
+ * SelectiveGapicGeneration generateOmittedAsInternal.
+ * @member {boolean} generateOmittedAsInternal
+ * @memberof google.api.SelectiveGapicGeneration
+ * @instance
+ */
+ SelectiveGapicGeneration.prototype.generateOmittedAsInternal = false;
+
+ /**
+ * Creates a new SelectiveGapicGeneration instance using the specified properties.
+ * @function create
+ * @memberof google.api.SelectiveGapicGeneration
+ * @static
+ * @param {google.api.ISelectiveGapicGeneration=} [properties] Properties to set
+ * @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration instance
+ */
+ SelectiveGapicGeneration.create = function create(properties) {
+ return new SelectiveGapicGeneration(properties);
+ };
+
+ /**
+ * Encodes the specified SelectiveGapicGeneration message. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.SelectiveGapicGeneration
+ * @static
+ * @param {google.api.ISelectiveGapicGeneration} message SelectiveGapicGeneration message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SelectiveGapicGeneration.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.methods != null && message.methods.length)
+ for (var i = 0; i < message.methods.length; ++i)
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.methods[i]);
+ if (message.generateOmittedAsInternal != null && Object.hasOwnProperty.call(message, "generateOmittedAsInternal"))
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.generateOmittedAsInternal);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SelectiveGapicGeneration message, length delimited. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.SelectiveGapicGeneration
+ * @static
+ * @param {google.api.ISelectiveGapicGeneration} message SelectiveGapicGeneration message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SelectiveGapicGeneration.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a SelectiveGapicGeneration message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.SelectiveGapicGeneration
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SelectiveGapicGeneration.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.SelectiveGapicGeneration();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.methods && message.methods.length))
+ message.methods = [];
+ message.methods.push(reader.string());
+ break;
+ }
+ case 2: {
+ message.generateOmittedAsInternal = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SelectiveGapicGeneration message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.SelectiveGapicGeneration
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SelectiveGapicGeneration.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SelectiveGapicGeneration message.
+ * @function verify
+ * @memberof google.api.SelectiveGapicGeneration
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SelectiveGapicGeneration.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.methods != null && Object.hasOwnProperty.call(message, "methods")) {
+ if (!Array.isArray(message.methods))
+ return "methods: array expected";
+ for (var i = 0; i < message.methods.length; ++i)
+ if (!$util.isString(message.methods[i]))
+ return "methods: string[] expected";
+ }
+ if (message.generateOmittedAsInternal != null && Object.hasOwnProperty.call(message, "generateOmittedAsInternal"))
+ if (typeof message.generateOmittedAsInternal !== "boolean")
+ return "generateOmittedAsInternal: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a SelectiveGapicGeneration message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.SelectiveGapicGeneration
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.SelectiveGapicGeneration} SelectiveGapicGeneration
+ */
+ SelectiveGapicGeneration.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.api.SelectiveGapicGeneration)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.api.SelectiveGapicGeneration: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.api.SelectiveGapicGeneration();
+ if (object.methods) {
+ if (!Array.isArray(object.methods))
+ throw TypeError(".google.api.SelectiveGapicGeneration.methods: array expected");
+ message.methods = [];
+ for (var i = 0; i < object.methods.length; ++i)
+ message.methods[i] = String(object.methods[i]);
+ }
+ if (object.generateOmittedAsInternal != null)
+ message.generateOmittedAsInternal = Boolean(object.generateOmittedAsInternal);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SelectiveGapicGeneration message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.SelectiveGapicGeneration
+ * @static
+ * @param {google.api.SelectiveGapicGeneration} message SelectiveGapicGeneration
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SelectiveGapicGeneration.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.methods = [];
+ if (options.defaults)
+ object.generateOmittedAsInternal = false;
+ if (message.methods && message.methods.length) {
+ object.methods = [];
+ for (var j = 0; j < message.methods.length; ++j)
+ object.methods[j] = message.methods[j];
+ }
+ if (message.generateOmittedAsInternal != null && Object.hasOwnProperty.call(message, "generateOmittedAsInternal"))
+ object.generateOmittedAsInternal = message.generateOmittedAsInternal;
+ return object;
+ };
+
+ /**
+ * Converts this SelectiveGapicGeneration to JSON.
+ * @function toJSON
+ * @memberof google.api.SelectiveGapicGeneration
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SelectiveGapicGeneration.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SelectiveGapicGeneration
+ * @function getTypeUrl
+ * @memberof google.api.SelectiveGapicGeneration
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SelectiveGapicGeneration.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.api.SelectiveGapicGeneration";
+ };
+
+ return SelectiveGapicGeneration;
+ })();
+
+ /**
+ * LaunchStage enum.
+ * @name google.api.LaunchStage
+ * @enum {number}
+ * @property {number} LAUNCH_STAGE_UNSPECIFIED=0 LAUNCH_STAGE_UNSPECIFIED value
+ * @property {number} UNIMPLEMENTED=6 UNIMPLEMENTED value
+ * @property {number} PRELAUNCH=7 PRELAUNCH value
+ * @property {number} EARLY_ACCESS=1 EARLY_ACCESS value
+ * @property {number} ALPHA=2 ALPHA value
+ * @property {number} BETA=3 BETA value
+ * @property {number} GA=4 GA value
+ * @property {number} DEPRECATED=5 DEPRECATED value
+ */
+ api.LaunchStage = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "LAUNCH_STAGE_UNSPECIFIED"] = 0;
+ values[valuesById[6] = "UNIMPLEMENTED"] = 6;
+ values[valuesById[7] = "PRELAUNCH"] = 7;
+ values[valuesById[1] = "EARLY_ACCESS"] = 1;
+ values[valuesById[2] = "ALPHA"] = 2;
+ values[valuesById[3] = "BETA"] = 3;
+ values[valuesById[4] = "GA"] = 4;
+ values[valuesById[5] = "DEPRECATED"] = 5;
+ return values;
+ })();
+
+ /**
+ * 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
+ * @property {number} UNORDERED_LIST=6 UNORDERED_LIST value
+ * @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value
+ * @property {number} IDENTIFIER=8 IDENTIFIER 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;
+ values[valuesById[6] = "UNORDERED_LIST"] = 6;
+ values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7;
+ values[valuesById[8] = "IDENTIFIER"] = 8;
+ return values;
+ })();
+
+ 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 && keys[i] !== "__proto__")
+ 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, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ 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(), q + 1).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 && writer.len ? writer.fork() : 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, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorSet();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.file && message.file.length))
+ message.file = [];
+ message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ 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, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.file != null && Object.hasOwnProperty.call(message, "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], long + 1);
+ 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, long) {
+ if (object instanceof $root.google.protobuf.FileDescriptorSet)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.protobuf.FileDescriptorSet: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ 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 (!$util.isObject(object.file[i]))
+ throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected");
+ message.file[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.file[i], long + 1);
+ }
+ }
+ 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, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ 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, q + 1);
+ }
+ 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);
+ };
+
+ /**
+ * 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;
+ })();
+
+ /**
+ * Edition enum.
+ * @name google.protobuf.Edition
+ * @enum {number}
+ * @property {number} EDITION_UNKNOWN=0 EDITION_UNKNOWN value
+ * @property {number} EDITION_LEGACY=900 EDITION_LEGACY value
+ * @property {number} EDITION_PROTO2=998 EDITION_PROTO2 value
+ * @property {number} EDITION_PROTO3=999 EDITION_PROTO3 value
+ * @property {number} EDITION_2023=1000 EDITION_2023 value
+ * @property {number} EDITION_2024=1001 EDITION_2024 value
+ * @property {number} EDITION_1_TEST_ONLY=1 EDITION_1_TEST_ONLY value
+ * @property {number} EDITION_2_TEST_ONLY=2 EDITION_2_TEST_ONLY value
+ * @property {number} EDITION_99997_TEST_ONLY=99997 EDITION_99997_TEST_ONLY value
+ * @property {number} EDITION_99998_TEST_ONLY=99998 EDITION_99998_TEST_ONLY value
+ * @property {number} EDITION_99999_TEST_ONLY=99999 EDITION_99999_TEST_ONLY value
+ * @property {number} EDITION_MAX=2147483647 EDITION_MAX value
+ */
+ protobuf.Edition = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "EDITION_UNKNOWN"] = 0;
+ values[valuesById[900] = "EDITION_LEGACY"] = 900;
+ values[valuesById[998] = "EDITION_PROTO2"] = 998;
+ values[valuesById[999] = "EDITION_PROTO3"] = 999;
+ values[valuesById[1000] = "EDITION_2023"] = 1000;
+ values[valuesById[1001] = "EDITION_2024"] = 1001;
+ values[valuesById[1] = "EDITION_1_TEST_ONLY"] = 1;
+ values[valuesById[2] = "EDITION_2_TEST_ONLY"] = 2;
+ values[valuesById[99997] = "EDITION_99997_TEST_ONLY"] = 99997;
+ values[valuesById[99998] = "EDITION_99998_TEST_ONLY"] = 99998;
+ values[valuesById[99999] = "EDITION_99999_TEST_ONLY"] = 99999;
+ values[valuesById[2147483647] = "EDITION_MAX"] = 2147483647;
+ return values;
+ })();
+
+ 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} [optionDependency] FileDescriptorProto optionDependency
+ * @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
+ * @property {google.protobuf.Edition|null} [edition] FileDescriptorProto edition
+ */
+
+ /**
+ * 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.optionDependency = [];
+ 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 && keys[i] !== "__proto__")
+ 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 optionDependency.
+ * @member {Array.} optionDependency
+ * @memberof google.protobuf.FileDescriptorProto
+ * @instance
+ */
+ FileDescriptorProto.prototype.optionDependency = $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 = "";
+
+ /**
+ * FileDescriptorProto edition.
+ * @member {google.protobuf.Edition} edition
+ * @memberof google.protobuf.FileDescriptorProto
+ * @instance
+ */
+ FileDescriptorProto.prototype.edition = 0;
+
+ /**
+ * 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, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ 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(), q + 1).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(), q + 1).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(), q + 1).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(), q + 1).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(), q + 1).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(), q + 1).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);
+ if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
+ writer.uint32(/* id 14, wireType 0 =*/112).int32(message.edition);
+ if (message.optionDependency != null && message.optionDependency.length)
+ for (var i = 0; i < message.optionDependency.length; ++i)
+ writer.uint32(/* id 15, wireType 2 =*/122).string(message.optionDependency[i]);
+ 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 && writer.len ? writer.fork() : 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, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorProto();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message["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 15: {
+ if (!(message.optionDependency && message.optionDependency.length))
+ message.optionDependency = [];
+ message.optionDependency.push(reader.string());
+ break;
+ }
+ case 4: {
+ if (!(message.messageType && message.messageType.length))
+ message.messageType = [];
+ message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 5: {
+ if (!(message.enumType && message.enumType.length))
+ message.enumType = [];
+ message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 6: {
+ if (!(message.service && message.service.length))
+ message.service = [];
+ message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 7: {
+ if (!(message.extension && message.extension.length))
+ message.extension = [];
+ message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 8: {
+ message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 9: {
+ message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 12: {
+ message.syntax = reader.string();
+ break;
+ }
+ case 14: {
+ message.edition = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ 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, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message["package"] != null && Object.hasOwnProperty.call(message, "package"))
+ if (!$util.isString(message["package"]))
+ return "package: string expected";
+ if (message.dependency != null && Object.hasOwnProperty.call(message, "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 && Object.hasOwnProperty.call(message, "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 && Object.hasOwnProperty.call(message, "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.optionDependency != null && Object.hasOwnProperty.call(message, "optionDependency")) {
+ if (!Array.isArray(message.optionDependency))
+ return "optionDependency: array expected";
+ for (var i = 0; i < message.optionDependency.length; ++i)
+ if (!$util.isString(message.optionDependency[i]))
+ return "optionDependency: string[] expected";
+ }
+ if (message.messageType != null && Object.hasOwnProperty.call(message, "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], long + 1);
+ if (error)
+ return "messageType." + error;
+ }
+ }
+ if (message.enumType != null && Object.hasOwnProperty.call(message, "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], long + 1);
+ if (error)
+ return "enumType." + error;
+ }
+ }
+ if (message.service != null && Object.hasOwnProperty.call(message, "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], long + 1);
+ if (error)
+ return "service." + error;
+ }
+ }
+ if (message.extension != null && Object.hasOwnProperty.call(message, "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], long + 1);
+ if (error)
+ return "extension." + error;
+ }
+ }
+ if (message.options != null && Object.hasOwnProperty.call(message, "options")) {
+ var error = $root.google.protobuf.FileOptions.verify(message.options, long + 1);
+ if (error)
+ return "options." + error;
+ }
+ if (message.sourceCodeInfo != null && Object.hasOwnProperty.call(message, "sourceCodeInfo")) {
+ var error = $root.google.protobuf.SourceCodeInfo.verify(message.sourceCodeInfo, long + 1);
+ if (error)
+ return "sourceCodeInfo." + error;
+ }
+ if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax"))
+ if (!$util.isString(message.syntax))
+ return "syntax: string expected";
+ if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
+ switch (message.edition) {
+ default:
+ return "edition: enum value expected";
+ case 0:
+ case 900:
+ case 998:
+ case 999:
+ case 1000:
+ case 1001:
+ case 1:
+ case 2:
+ case 99997:
+ case 99998:
+ case 99999:
+ case 2147483647:
+ break;
+ }
+ 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, long) {
+ if (object instanceof $root.google.protobuf.FileDescriptorProto)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.protobuf.FileDescriptorProto: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ 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.optionDependency) {
+ if (!Array.isArray(object.optionDependency))
+ throw TypeError(".google.protobuf.FileDescriptorProto.optionDependency: array expected");
+ message.optionDependency = [];
+ for (var i = 0; i < object.optionDependency.length; ++i)
+ message.optionDependency[i] = String(object.optionDependency[i]);
+ }
+ 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 (!$util.isObject(object.messageType[i]))
+ throw TypeError(".google.protobuf.FileDescriptorProto.messageType: object expected");
+ message.messageType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.messageType[i], long + 1);
+ }
+ }
+ 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 (!$util.isObject(object.enumType[i]))
+ throw TypeError(".google.protobuf.FileDescriptorProto.enumType: object expected");
+ message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i], long + 1);
+ }
+ }
+ 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 (!$util.isObject(object.service[i]))
+ throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected");
+ message.service[i] = $root.google.protobuf.ServiceDescriptorProto.fromObject(object.service[i], long + 1);
+ }
+ }
+ 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 (!$util.isObject(object.extension[i]))
+ throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected");
+ message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i], long + 1);
+ }
+ }
+ if (object.options != null) {
+ if (!$util.isObject(object.options))
+ throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected");
+ message.options = $root.google.protobuf.FileOptions.fromObject(object.options, long + 1);
+ }
+ if (object.sourceCodeInfo != null) {
+ if (!$util.isObject(object.sourceCodeInfo))
+ throw TypeError(".google.protobuf.FileDescriptorProto.sourceCodeInfo: object expected");
+ message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.fromObject(object.sourceCodeInfo, long + 1);
+ }
+ if (object.syntax != null)
+ message.syntax = String(object.syntax);
+ switch (object.edition) {
+ default:
+ if (typeof object.edition === "number") {
+ message.edition = object.edition;
+ break;
+ }
+ break;
+ case "EDITION_UNKNOWN":
+ case 0:
+ message.edition = 0;
+ break;
+ case "EDITION_LEGACY":
+ case 900:
+ message.edition = 900;
+ break;
+ case "EDITION_PROTO2":
+ case 998:
+ message.edition = 998;
+ break;
+ case "EDITION_PROTO3":
+ case 999:
+ message.edition = 999;
+ break;
+ case "EDITION_2023":
+ case 1000:
+ message.edition = 1000;
+ break;
+ case "EDITION_2024":
+ case 1001:
+ message.edition = 1001;
+ break;
+ case "EDITION_1_TEST_ONLY":
+ case 1:
+ message.edition = 1;
+ break;
+ case "EDITION_2_TEST_ONLY":
+ case 2:
+ message.edition = 2;
+ break;
+ case "EDITION_99997_TEST_ONLY":
+ case 99997:
+ message.edition = 99997;
+ break;
+ case "EDITION_99998_TEST_ONLY":
+ case 99998:
+ message.edition = 99998;
+ break;
+ case "EDITION_99999_TEST_ONLY":
+ case 99999:
+ message.edition = 99999;
+ break;
+ case "EDITION_MAX":
+ case 2147483647:
+ message.edition = 2147483647;
+ break;
+ }
+ 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, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.dependency = [];
+ object.messageType = [];
+ object.enumType = [];
+ object.service = [];
+ object.extension = [];
+ object.publicDependency = [];
+ object.weakDependency = [];
+ object.optionDependency = [];
+ }
+ if (options.defaults) {
+ object.name = "";
+ object["package"] = "";
+ object.options = null;
+ object.sourceCodeInfo = null;
+ object.syntax = "";
+ object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
+ }
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ object.name = message.name;
+ if (message["package"] != null && Object.hasOwnProperty.call(message, "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, q + 1);
+ }
+ 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, q + 1);
+ }
+ 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, q + 1);
+ }
+ 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, q + 1);
+ }
+ if (message.options != null && Object.hasOwnProperty.call(message, "options"))
+ object.options = $root.google.protobuf.FileOptions.toObject(message.options, options, q + 1);
+ if (message.sourceCodeInfo != null && Object.hasOwnProperty.call(message, "sourceCodeInfo"))
+ object.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.toObject(message.sourceCodeInfo, options, q + 1);
+ 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 && Object.hasOwnProperty.call(message, "syntax"))
+ object.syntax = message.syntax;
+ if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
+ object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
+ if (message.optionDependency && message.optionDependency.length) {
+ object.optionDependency = [];
+ for (var j = 0; j < message.optionDependency.length; ++j)
+ object.optionDependency[j] = message.optionDependency[j];
+ }
+ 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);
+ };
+
+ /**
+ * 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;
+ })();
+
+ 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.