diff --git a/owl-bot-staging/google-cloud-servicehealth/v1/.eslintignore b/owl-bot-staging/google-cloud-servicehealth/v1/.eslintignore
new file mode 100644
index 00000000000..cfc348ec4d1
--- /dev/null
+++ b/owl-bot-staging/google-cloud-servicehealth/v1/.eslintignore
@@ -0,0 +1,7 @@
+**/node_modules
+**/.coverage
+build/
+docs/
+protos/
+system-test/
+samples/generated/
diff --git a/owl-bot-staging/google-cloud-servicehealth/v1/.eslintrc.json b/owl-bot-staging/google-cloud-servicehealth/v1/.eslintrc.json
new file mode 100644
index 00000000000..78215349546
--- /dev/null
+++ b/owl-bot-staging/google-cloud-servicehealth/v1/.eslintrc.json
@@ -0,0 +1,3 @@
+{
+ "extends": "./node_modules/gts"
+}
diff --git a/owl-bot-staging/google-cloud-servicehealth/v1/.gitignore b/owl-bot-staging/google-cloud-servicehealth/v1/.gitignore
new file mode 100644
index 00000000000..d4f03a0df2e
--- /dev/null
+++ b/owl-bot-staging/google-cloud-servicehealth/v1/.gitignore
@@ -0,0 +1,14 @@
+**/*.log
+**/node_modules
+/.coverage
+/coverage
+/.nyc_output
+/docs/
+/out/
+/build/
+system-test/secrets.js
+system-test/*key.json
+*.lock
+.DS_Store
+package-lock.json
+__pycache__
diff --git a/owl-bot-staging/google-cloud-servicehealth/v1/.jsdoc.js b/owl-bot-staging/google-cloud-servicehealth/v1/.jsdoc.js
new file mode 100644
index 00000000000..bb8994d1bb4
--- /dev/null
+++ b/owl-bot-staging/google-cloud-servicehealth/v1/.jsdoc.js
@@ -0,0 +1,55 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// ** This file is automatically generated by gapic-generator-typescript. **
+// ** https://github.com/googleapis/gapic-generator-typescript **
+// ** All changes to this file may be overwritten. **
+
+'use strict';
+
+module.exports = {
+ opts: {
+ readme: './README.md',
+ package: './package.json',
+ template: './node_modules/jsdoc-fresh',
+ recurse: true,
+ verbose: true,
+ destination: './docs/'
+ },
+ plugins: [
+ 'plugins/markdown',
+ 'jsdoc-region-tag'
+ ],
+ source: {
+ excludePattern: '(^|\\/|\\\\)[._]',
+ include: [
+ 'build/src',
+ 'protos'
+ ],
+ includePattern: '\\.js$'
+ },
+ templates: {
+ copyright: 'Copyright 2024 Google LLC',
+ includeDate: false,
+ sourceFiles: false,
+ systemName: '@google-cloud/servicehealth',
+ theme: 'lumen',
+ default: {
+ outputSourceFiles: false
+ }
+ },
+ markdown: {
+ idInHeadings: true
+ }
+};
diff --git a/owl-bot-staging/google-cloud-servicehealth/v1/.mocharc.js b/owl-bot-staging/google-cloud-servicehealth/v1/.mocharc.js
new file mode 100644
index 00000000000..13b67c34edc
--- /dev/null
+++ b/owl-bot-staging/google-cloud-servicehealth/v1/.mocharc.js
@@ -0,0 +1,33 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// ** This file is automatically generated by gapic-generator-typescript. **
+// ** https://github.com/googleapis/gapic-generator-typescript **
+// ** All changes to this file may be overwritten. **
+
+const config = {
+ "enable-source-maps": true,
+ "throw-deprecation": true,
+ "timeout": 10000
+}
+if (process.env.MOCHA_THROW_DEPRECATION === 'false') {
+ delete config['throw-deprecation'];
+}
+if (process.env.MOCHA_REPORTER) {
+ config.reporter = process.env.MOCHA_REPORTER;
+}
+if (process.env.MOCHA_REPORTER_OUTPUT) {
+ config['reporter-option'] = `output=${process.env.MOCHA_REPORTER_OUTPUT}`;
+}
+module.exports = config
diff --git a/owl-bot-staging/google-cloud-servicehealth/v1/.prettierrc.js b/owl-bot-staging/google-cloud-servicehealth/v1/.prettierrc.js
new file mode 100644
index 00000000000..9a8fd690982
--- /dev/null
+++ b/owl-bot-staging/google-cloud-servicehealth/v1/.prettierrc.js
@@ -0,0 +1,22 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// ** This file is automatically generated by gapic-generator-typescript. **
+// ** https://github.com/googleapis/gapic-generator-typescript **
+// ** All changes to this file may be overwritten. **
+
+
+module.exports = {
+ ...require('gts/.prettierrc.json')
+}
diff --git a/owl-bot-staging/google-cloud-servicehealth/v1/README.md b/owl-bot-staging/google-cloud-servicehealth/v1/README.md
new file mode 100644
index 00000000000..3834691769b
--- /dev/null
+++ b/owl-bot-staging/google-cloud-servicehealth/v1/README.md
@@ -0,0 +1 @@
+Servicehealth: Nodejs Client
diff --git a/owl-bot-staging/google-cloud-servicehealth/v1/package.json b/owl-bot-staging/google-cloud-servicehealth/v1/package.json
new file mode 100644
index 00000000000..4e9adcebcde
--- /dev/null
+++ b/owl-bot-staging/google-cloud-servicehealth/v1/package.json
@@ -0,0 +1,58 @@
+{
+ "name": "@google-cloud/servicehealth",
+ "version": "0.1.0",
+ "description": "Servicehealth client for Node.js",
+ "repository": "googleapis/nodejs-servicehealth",
+ "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 servicehealth",
+ "servicehealth",
+ "service health"
+ ],
+ "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 build/system-test",
+ "test": "c8 mocha build/test"
+ },
+ "dependencies": {
+ "google-gax": "^4.3.4"
+ },
+ "devDependencies": {
+ "@types/mocha": "^10.0.6",
+ "@types/node": "^20.12.12",
+ "@types/sinon": "^10.0.20",
+ "c8": "^9.1.0",
+ "gapic-tools": "^0.4.2",
+ "gts": "5.3.0",
+ "jsdoc": "^4.0.3",
+ "jsdoc-fresh": "^3.0.0",
+ "jsdoc-region-tag": "^3.0.0",
+ "mocha": "^10.4.0",
+ "pack-n-play": "^2.0.3",
+ "sinon": "^15.2.0",
+ "typescript": "5.1.6"
+ },
+ "engines": {
+ "node": ">=v14"
+ }
+}
diff --git a/owl-bot-staging/google-cloud-servicehealth/v1/protos/google/cloud/servicehealth/v1/event_resources.proto b/owl-bot-staging/google-cloud-servicehealth/v1/protos/google/cloud/servicehealth/v1/event_resources.proto
new file mode 100644
index 00000000000..1be91926999
--- /dev/null
+++ b/owl-bot-staging/google-cloud-servicehealth/v1/protos/google/cloud/servicehealth/v1/event_resources.proto
@@ -0,0 +1,754 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.servicehealth.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.ServiceHealth.V1";
+option go_package = "cloud.google.com/go/servicehealth/apiv1/servicehealthpb;servicehealthpb";
+option java_multiple_files = true;
+option java_outer_classname = "EventResourcesProto";
+option java_package = "com.google.cloud.servicehealth.v1";
+option php_namespace = "Google\\Cloud\\ServiceHealth\\V1";
+option ruby_package = "Google::Cloud::ServiceHealth::V1";
+option (google.api.resource_definition) = {
+ type: "servicehealth.googleapis.com/OrganizationLocation"
+ pattern: "organizations/{organization}/locations/{location}"
+};
+
+// Represents service health events that may affect Google Cloud products.
+// Event resource is a read-only view and does not allow any modifications. All
+// fields are output only.
+message Event {
+ option (google.api.resource) = {
+ type: "servicehealth.googleapis.com/Event"
+ pattern: "projects/{project}/locations/{location}/events/{event}"
+ plural: "events"
+ singular: "event"
+ };
+
+ // The category of the event. This enum lists all possible categories of
+ // event.
+ enum EventCategory {
+ // Unspecified category.
+ EVENT_CATEGORY_UNSPECIFIED = 0;
+
+ // Event category for service outage or degradation.
+ INCIDENT = 2;
+ }
+
+ // The detailed category of an event. Contains all possible states for all
+ // event categories.
+ enum DetailedCategory {
+ // Unspecified detailed category.
+ DETAILED_CATEGORY_UNSPECIFIED = 0;
+
+ // Indicates an event with category INCIDENT has a confirmed impact to at
+ // least one Google Cloud product.
+ CONFIRMED_INCIDENT = 1;
+
+ // Indicates an event with category INCIDENT is under investigation to
+ // determine if it has a confirmed impact on any Google Cloud products.
+ EMERGING_INCIDENT = 2;
+ }
+
+ // The state of the event. This enum lists all possible states of event.
+ enum State {
+ // Unspecified state.
+ STATE_UNSPECIFIED = 0;
+
+ // Event is actively affecting a Google Cloud product and will continue to
+ // receive updates.
+ ACTIVE = 1;
+
+ // Event is no longer affecting the Google Cloud product or has been merged
+ // with another event.
+ CLOSED = 2;
+ }
+
+ // The detailed state of the incident. This enum lists all possible detailed
+ // states of an incident.
+ enum DetailedState {
+ // Unspecified detail state.
+ DETAILED_STATE_UNSPECIFIED = 0;
+
+ // Google engineers are actively investigating the event to determine the
+ // impact.
+ EMERGING = 1;
+
+ // The incident is confirmed and impacting at least one Google Cloud
+ // product. Ongoing status updates will be provided until it is resolved.
+ CONFIRMED = 2;
+
+ // The incident is no longer affecting any Google Cloud product, and there
+ // will be no further updates.
+ RESOLVED = 3;
+
+ // The incident was merged into a parent incident. All further updates will
+ // be published to the parent only. The `parent_event` field contains the
+ // name of the parent.
+ MERGED = 4;
+
+ // The incident was automatically closed because of the following reasons:
+ //
+ // * The impact of the incident could not be confirmed.
+ // * The incident was intermittent or resolved itself.
+ //
+ // The incident does not have a resolution because no action or
+ // investigation happened. If it is intermittent, the incident may reopen.
+ AUTO_CLOSED = 9;
+
+ // Upon investigation, Google engineers concluded that the incident is not
+ // affecting a Google Cloud product. This state can change if the incident
+ // is reviewed again.
+ FALSE_POSITIVE = 10;
+ }
+
+ // Communicates why a given incident is deemed relevant in the context of a
+ // given project. This enum lists all possible detailed states of relevance.
+ enum Relevance {
+ // Unspecified relevance.
+ RELEVANCE_UNSPECIFIED = 0;
+
+ // The relevance of the incident to the project is unknown.
+ UNKNOWN = 2;
+
+ // The incident does not impact the project.
+ NOT_IMPACTED = 6;
+
+ // The incident is associated with a Google Cloud product your project uses,
+ // but the incident may not be impacting your project. For example, the
+ // incident may be impacting a Google Cloud product that your project uses,
+ // but in a location that your project does not use.
+ PARTIALLY_RELATED = 7;
+
+ // The incident has a direct connection with your project and impacts a
+ // Google Cloud product in a location your project uses.
+ RELATED = 8;
+
+ // The incident is verified to be impacting your project.
+ IMPACTED = 9;
+ }
+
+ // Output only. Identifier. Name of the event. Unique name of the event in
+ // this scope including project and location using the form
+ // `projects/{project_id}/locations/{location}/events/{event_id}`.
+ string name = 1 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.field_behavior) = IDENTIFIER
+ ];
+
+ // Output only. Brief description for the event.
+ string title = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Free-form, human-readable description.
+ string description = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The category of the event.
+ EventCategory category = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The detailed category of the event.
+ DetailedCategory detailed_category = 21
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The current state of the event.
+ State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The current detailed state of the incident.
+ DetailedState detailed_state = 19 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Google Cloud products and locations impacted by the event.
+ repeated EventImpact event_impacts = 20;
+
+ // Output only. Communicates why a given event is deemed relevant in the
+ // context of a given project.
+ Relevance relevance = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Event updates are correspondence from Google.
+ repeated EventUpdate updates = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
+ // name of the parent event. All further updates will be published to the
+ // parent event.
+ string parent_event = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the event was last modified.
+ google.protobuf.Timestamp update_time = 12
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The start time of the event, if applicable.
+ google.protobuf.Timestamp start_time = 13
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The end time of the event, if applicable.
+ google.protobuf.Timestamp end_time = 14
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the next update can be expected.
+ google.protobuf.Timestamp next_update_time = 15
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Represents service health events that may affect Google Cloud products used
+// across the organization. It is a read-only view and does not allow any
+// modifications.
+message OrganizationEvent {
+ option (google.api.resource) = {
+ type: "servicehealth.googleapis.com/OrganizationEvent"
+ pattern: "organizations/{organization}/locations/{location}/organizationEvents/{event}"
+ plural: "organizationEvents"
+ singular: "organizationEvent"
+ };
+
+ // The category of the event. This enum lists all possible categories of
+ // event.
+ enum EventCategory {
+ // Unspecified category.
+ EVENT_CATEGORY_UNSPECIFIED = 0;
+
+ // Event category for service outage or degradation.
+ INCIDENT = 2;
+ }
+
+ // The detailed category of an event. Contains all possible states for all
+ // event categories.
+ enum DetailedCategory {
+ // Unspecified detailed category.
+ DETAILED_CATEGORY_UNSPECIFIED = 0;
+
+ // Indicates an event with category INCIDENT has a confirmed impact to at
+ // least one Google Cloud product.
+ CONFIRMED_INCIDENT = 1;
+
+ // Indicates an event with category INCIDENT is under investigation to
+ // determine if it has a confirmed impact on any Google Cloud products.
+ EMERGING_INCIDENT = 2;
+ }
+
+ // The state of the organization event. This enum lists all possible states of
+ // event.
+ enum State {
+ // Unspecified state.
+ STATE_UNSPECIFIED = 0;
+
+ // Event is actively affecting a Google Cloud product and will continue to
+ // receive updates.
+ ACTIVE = 1;
+
+ // Event is no longer affecting the Google Cloud product or has been merged
+ // with another event.
+ CLOSED = 2;
+ }
+
+ // The detailed state of the incident. This enum lists all possible detailed
+ // states of an incident.
+ enum DetailedState {
+ // Unspecified detail state.
+ DETAILED_STATE_UNSPECIFIED = 0;
+
+ // Google engineers are actively investigating the incident to determine the
+ // impact.
+ EMERGING = 1;
+
+ // The incident is confirmed and impacting at least one Google Cloud
+ // product. Ongoing status updates will be provided until it is resolved.
+ CONFIRMED = 2;
+
+ // The incident is no longer affecting any Google Cloud product, and there
+ // will be no further updates.
+ RESOLVED = 3;
+
+ // The incident was merged into a parent event. All further updates will be
+ // published to the parent only. The `parent_event` contains the name of the
+ // parent.
+ MERGED = 4;
+
+ // The incident was automatically closed because of the following reasons:
+ //
+ // * The impact of the incident could not be confirmed.
+ // * The incident was intermittent or resolved itself.
+ //
+ // The incident does not have a resolution because no action or
+ // investigation happened. If it is intermittent, the incident may reopen.
+ AUTO_CLOSED = 9;
+
+ // Upon investigation, Google engineers concluded that the incident is not
+ // affecting a Google Cloud product. This state can change if the incident
+ // is reviewed again.
+ FALSE_POSITIVE = 10;
+ }
+
+ // Output only. Identifier. Name of the event. Unique name of the event in
+ // this scope including organization ID and location using the form
+ // `organizations/{organization_id}/locations/{location}/organizationEvents/{event_id}`.
+ //
+ // `organization_id` - see [Getting your organization resource
+ // ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id).
+ // `location` - The location to get the service health events from.
+ // `event_id` - Organization event ID to retrieve.
+ string name = 1 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.field_behavior) = IDENTIFIER
+ ];
+
+ // Output only. Brief description for the event.
+ string title = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Free-form, human-readable description.
+ string description = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The category of the event.
+ EventCategory category = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The detailed category of the event.
+ DetailedCategory detailed_category = 17
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The current state of the event.
+ State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The current detailed state of the incident.
+ DetailedState detailed_state = 16 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Represents the Google Cloud products and locations impacted by
+ // the event.
+ repeated EventImpact event_impacts = 15
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Incident-only field. Event updates are correspondence from
+ // Google.
+ repeated EventUpdate updates = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. When `detailed_state`=`MERGED`, `parent_event` contains the
+ // name of the parent event. All further updates will be published to the
+ // parent event.
+ string parent_event = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time the update was posted.
+ google.protobuf.Timestamp update_time = 11
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The start time of the event, if applicable.
+ google.protobuf.Timestamp start_time = 12
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The end time of the event, if applicable.
+ google.protobuf.Timestamp end_time = 13
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Incident-only field. The time when the next update can be
+ // expected.
+ google.protobuf.Timestamp next_update_time = 14
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Records an update made to the event.
+message EventUpdate {
+ // Output only. The time the update was posted.
+ google.protobuf.Timestamp update_time = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Brief title for the event.
+ string title = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Free-form, human-readable description.
+ string description = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Symptoms of the event, if available.
+ string symptom = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Workaround steps to remediate the event impact, if available.
+ string workaround = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Represents the locations impacted by the event.
+message Location {
+ // Location impacted by the event. Example: `"us-central1"`
+ string location_name = 1;
+}
+
+// Represents the Google Cloud product impacted by the event.
+message Product {
+ // Google Cloud product impacted by the event. Example: `"Google Cloud SQL"`
+ string product_name = 1;
+
+ // Unique identifier for the product.
+ string id = 2;
+}
+
+// Represents the Google Cloud products and locations impacted by the event.
+message EventImpact {
+ // Google Cloud product impacted by the event.
+ Product product = 1;
+
+ // Location impacted by the event.
+ Location location = 2;
+}
+
+// Represents impact to assets at organizational level. It is a read-only view
+// and does not allow any modifications.
+message OrganizationImpact {
+ option (google.api.resource) = {
+ type: "servicehealth.googleapis.com/OrganizationImpact"
+ pattern: "organizations/{organization}/locations/{location}/organizationImpacts/{organization_impact}"
+ plural: "organizationImpacts"
+ singular: "organizationImpact"
+ };
+
+ // Output only. Identifier. Unique name of the organization impact in this
+ // scope including organization and location using the form
+ // `organizations/{organization_id}/locations/{location}/organizationImpacts/{organization_impact_id}`.
+ //
+ // `organization_id` - ID (number) of the organization that contains the
+ // event. To get your `organization_id`, see
+ // [Getting your organization resource
+ // ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id).
+ // `organization_impact_id` - ID of the [OrganizationImpact
+ // resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
+ string name = 1 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.field_behavior) = IDENTIFIER
+ ];
+
+ // Output only. A list of event names impacting the asset.
+ repeated string events = 2 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.resource_reference) = {
+ type: "servicehealth.googleapis.com/Event"
+ }
+ ];
+
+ // Output only. Google Cloud asset possibly impacted by the specified events.
+ Asset asset = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time when the affected project was last modified.
+ google.protobuf.Timestamp update_time = 4
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Represents the asset impacted by the events.
+message Asset {
+ // Output only. Full name of the resource as defined in
+ // [Resource
+ // Names](https://cloud.google.com/apis/design/resource_names#full_resource_name).
+ string asset_name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Type of the asset. Example:
+ // `"cloudresourcemanager.googleapis.com/Project"`
+ string asset_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Requests list of events.
+message ListEventsRequest {
+ // Required. Parent value using the form
+ // `projects/{project_id}/locations/{location}/events`.
+ //
+ // `project_id` - ID of the project for which to list service health
+ // events.
+ // `location` - The location to get the service health events from.
+ // To retrieve service health events of category = INCIDENT, use `location` =
+ // `global`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "servicehealth.googleapis.com/Event"
+ }
+ ];
+
+ // Optional. The maximum number of events that should be returned. Acceptable
+ // values are 1 to 100, inclusive. (The default value is 10.) If more results
+ // are available, the service returns a next_page_token that you can use to
+ // get the next page of results in subsequent list requests. The service may
+ // return fewer events than the requested page_size.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A token identifying a page of results the server should return.
+ // Provide Page token returned by a previous `ListEvents` call to retrieve the
+ // next page of results. When paginating, all other parameters provided to
+ // `ListEvents` must match the call that provided the page token.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A filter expression that filters resources listed in the
+ // response. The expression takes the following forms:
+ // * field=value for `category` and `state`
+ // * field <, >, <=, or >= value for `update_time`
+ // Examples: `category=INCIDENT`, `update_time>="2000-01-01T11:30:00-04:00"`,
+ // `event_impacts.product.product_name:"Eventarc"`
+ //
+ //
+ // Multiple filter queries are separated by spaces. Example:
+ // `category=INCIDENT state=ACTIVE`.
+ //
+ // By default, each expression is an AND expression. However, you can include
+ // AND and OR expressions explicitly.
+ //
+ // Filter is supported for the following fields: `category`, `state`,
+ // `update_time`, `event_impacts.product.product_name`
+ string filter = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Event fields to include in response.
+ EventView view = 6 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response to request for listing events.
+message ListEventsResponse {
+ // Output only. List of events.
+ repeated Event events = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The continuation token, used to page through large result
+ // sets. Provide this value in a subsequent request as page_token to retrieve
+ // the next page.
+ //
+ // If this field is not present, there are no subsequent results.
+ string next_page_token = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Locations that could not be reached.
+ repeated string unreachable = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Gets information about a specific event.
+message GetEventRequest {
+ // Required. Unique name of the event in this scope including project
+ // and location using the form
+ // `projects/{project_id}/locations/{location}/events/{event_id}`.
+ //
+ // `project_id` - Project ID of the project that contains the event.
+ // `location` - The location to get the service health events from.
+ // `event_id` - Event ID to retrieve.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "servicehealth.googleapis.com/Event"
+ }
+ ];
+}
+
+// Requests list of events that affect an organization.
+message ListOrganizationEventsRequest {
+ // Required. Parent value using the form
+ // `organizations/{organization_id}/locations/{location}/organizationEvents`.
+ //
+ // `organization_id` - ID (number) of the project that contains the event. To
+ // get your `organization_id`, see
+ // [Getting your organization resource
+ // ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id).
+ // `location` - The location to get the service health events from. To
+ // retrieve service health events of category = INCIDENT, use `location` =
+ // `global`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "servicehealth.googleapis.com/OrganizationEvent"
+ }
+ ];
+
+ // Optional. The maximum number of events that should be returned. Acceptable
+ // values are `1` to `100`, inclusive. (The default value is `10`.) If more
+ // results are available, the service returns a `next_page_token` that you can
+ // use to get the next page of results in subsequent list requests. The
+ // service may return fewer events than the requested `page_size`.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A token identifying a page of results the server should return.
+ //
+ // Provide Page token returned by a previous `ListOrganizationEvents` call to
+ // retrieve the next page of results.
+ //
+ // When paginating, all other parameters provided to
+ // `ListOrganizationEvents` must match the call that provided the page token.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A filter expression that filters resources listed in the
+ // response. The expression takes the following forms:
+ //
+ // * field=value for `category` and `state`
+ // * field <, >, <=, or >= value for `update_time`
+ //
+ // Examples: `category=INCIDENT`, `update_time>="2000-01-01T11:30:00-04:00"`
+ //
+ // Multiple filter queries are space-separated. Example:
+ // `category=INCIDENT state=ACTIVE`.
+ //
+ // By default, each expression is an AND expression. However, you can include
+ // AND and OR expressions explicitly.
+ //
+ // Filter is supported for the following fields: `category`, `state`,
+ // `update_time`
+ string filter = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. OrganizationEvent fields to include in response.
+ OrganizationEventView view = 6 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response to request for listing organization events.
+message ListOrganizationEventsResponse {
+ // Output only. List of organization events affecting an organization.
+ repeated OrganizationEvent organization_events = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The continuation token, used to page through large result
+ // sets. Provide this value in a subsequent request as `page_token` to
+ // retrieve the next page.
+ //
+ // If this field is not present, there are no subsequent results.
+ string next_page_token = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Locations that could not be reached.
+ repeated string unreachable = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Gets information about a specific event affecting an organization.
+message GetOrganizationEventRequest {
+ // Required. Unique name of the event in this scope including organization and
+ // event ID using the form
+ // `organizations/{organization_id}/locations/locations/global/organizationEvents/{event_id}`.
+ //
+ // `organization_id` - ID (number) of the project that contains the event. To
+ // get your `organization_id`, see
+ // [Getting your organization resource
+ // ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id).
+ // `event_id` - Organization event ID to retrieve.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "servicehealth.googleapis.com/OrganizationEvent"
+ }
+ ];
+}
+
+// Requests list of projects under an organization affected by an event.
+message ListOrganizationImpactsRequest {
+ // Required. Parent value using the form
+ // `organizations/{organization_id}/locations/{location}/organizationImpacts`.
+ //
+ // `organization_id` - ID (number) of the project that contains the event. To
+ // get your `organization_id`, see
+ // [Getting your organization resource
+ // ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id).
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "servicehealth.googleapis.com/OrganizationImpact"
+ }
+ ];
+
+ // Optional. The maximum number of events that should be returned. Acceptable
+ // values are `1` to `100`, inclusive. The default value is `10`.
+ //
+ // If more results are available, the service returns a
+ // `next_page_token` that can be used to get the next page of results in
+ // subsequent list requests. The service may return fewer
+ // [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
+ // than the requested `page_size`.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A token identifying a page of results the server should return.
+ //
+ // Provide `page_token` returned by a previous `ListOrganizationImpacts` call
+ // to retrieve the next page of results.
+ //
+ // When paginating, all other parameters provided to `ListOrganizationImpacts`
+ // must match the call that provided the page token.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A filter expression that filters resources listed in the
+ // response. The expression is in the form of `field:value` for checking if a
+ // repeated field contains a value.
+ //
+ // Example:
+ // `events:organizations%2F{organization_id}%2Flocations%2Fglobal%2ForganizationEvents%2Fevent-id`
+ //
+ // To get your `{organization_id}`, see
+ // [Getting your organization resource
+ // ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id).
+ //
+ // Multiple filter queries are separated by spaces.
+ //
+ // By default, each expression is an AND expression. However, you can include
+ // AND and OR expressions explicitly.
+ // Filter is supported for the following fields: `events`.
+ string filter = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response to request for listing projects under an organization affected by an
+// event.
+message ListOrganizationImpactsResponse {
+ // Output only. List of
+ // [impacts](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact)
+ // for an organization affected by service health events.
+ repeated OrganizationImpact organization_impacts = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The continuation token, used to page through large result
+ // sets. Provide this value in a subsequent request as `page_token` to
+ // retrieve the next page.
+ //
+ // If this field is not present, there are no subsequent results.
+ string next_page_token = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Locations that could not be reached.
+ repeated string unreachable = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Gets information about an event that affects a project under an organization.
+message GetOrganizationImpactRequest {
+ // Required. Name of the resource using the form
+ // `organizations/{organization_id}/locations/global/organizationImpacts/{organization_impact_id}`.
+ //
+ // `organization_id` - ID (number) of the organization that contains the
+ // event. To get your `organization_id`, see
+ // [Getting your organization resource
+ // ID](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id).
+ // `organization_impact_id` - ID of the [OrganizationImpact
+ // resource](/service-health/docs/reference/rest/v1beta/organizations.locations.organizationImpacts#OrganizationImpact).
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "servicehealth.googleapis.com/OrganizationImpact"
+ }
+ ];
+}
+
+// The event fields to include in ListEvents API response. This enum lists all
+// possible event views.
+enum EventView {
+ // Unspecified event view. Default to `EVENT_VIEW_BASIC`.
+ EVENT_VIEW_UNSPECIFIED = 0;
+
+ // Includes all fields except `updates`. This view is the default for
+ // ListEvents API.
+ EVENT_VIEW_BASIC = 1;
+
+ // Includes all event fields.
+ EVENT_VIEW_FULL = 2;
+}
+
+// The organization event fields to include in ListOrganizationEvents API
+// response. This enum lists all possible organization event views.
+enum OrganizationEventView {
+ // Unspecified event view. Default to `ORGANIZATION_EVENT_VIEW_BASIC`.
+ ORGANIZATION_EVENT_VIEW_UNSPECIFIED = 0;
+
+ // Includes all organization event fields except `updates`. This view is the
+ // default for ListOrganizationEvents API.
+ ORGANIZATION_EVENT_VIEW_BASIC = 1;
+
+ // Includes all organization event fields.
+ ORGANIZATION_EVENT_VIEW_FULL = 2;
+}
diff --git a/owl-bot-staging/google-cloud-servicehealth/v1/protos/google/cloud/servicehealth/v1/event_service.proto b/owl-bot-staging/google-cloud-servicehealth/v1/protos/google/cloud/servicehealth/v1/event_service.proto
new file mode 100644
index 00000000000..36ea7a1fc5d
--- /dev/null
+++ b/owl-bot-staging/google-cloud-servicehealth/v1/protos/google/cloud/servicehealth/v1/event_service.proto
@@ -0,0 +1,91 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.servicehealth.v1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/cloud/servicehealth/v1/event_resources.proto";
+
+option csharp_namespace = "Google.Cloud.ServiceHealth.V1";
+option go_package = "cloud.google.com/go/servicehealth/apiv1/servicehealthpb;servicehealthpb";
+option java_multiple_files = true;
+option java_outer_classname = "EventServiceProto";
+option java_package = "com.google.cloud.servicehealth.v1";
+option php_namespace = "Google\\Cloud\\ServiceHealth\\V1";
+option ruby_package = "Google::Cloud::ServiceHealth::V1";
+
+// Request service health events relevant to your Google Cloud project.
+service ServiceHealth {
+ option (google.api.default_host) = "servicehealth.googleapis.com";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/cloud-platform";
+
+ // Lists events under a given project and location.
+ rpc ListEvents(ListEventsRequest) returns (ListEventsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/events"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Retrieves a resource containing information about an event.
+ rpc GetEvent(GetEventRequest) returns (Event) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/events/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists organization events under a given organization and location.
+ rpc ListOrganizationEvents(ListOrganizationEventsRequest)
+ returns (ListOrganizationEventsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=organizations/*/locations/*}/organizationEvents"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Retrieves a resource containing information about an event affecting an
+ // organization .
+ rpc GetOrganizationEvent(GetOrganizationEventRequest)
+ returns (OrganizationEvent) {
+ option (google.api.http) = {
+ get: "/v1/{name=organizations/*/locations/*/organizationEvents/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists assets impacted by organization events under a given organization and
+ // location.
+ rpc ListOrganizationImpacts(ListOrganizationImpactsRequest)
+ returns (ListOrganizationImpactsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=organizations/*/locations/*}/organizationImpacts"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Retrieves a resource containing information about impact to an asset under
+ // an organization affected by a service health event.
+ rpc GetOrganizationImpact(GetOrganizationImpactRequest)
+ returns (OrganizationImpact) {
+ option (google.api.http) = {
+ get: "/v1/{name=organizations/*/locations/*/organizationImpacts/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+}
diff --git a/owl-bot-staging/google-cloud-servicehealth/v1/protos/protos.d.ts b/owl-bot-staging/google-cloud-servicehealth/v1/protos/protos.d.ts
new file mode 100644
index 00000000000..d3438ff2dd9
--- /dev/null
+++ b/owl-bot-staging/google-cloud-servicehealth/v1/protos/protos.d.ts
@@ -0,0 +1,8683 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+import type {protobuf as $protobuf} from "google-gax";
+import Long = require("long");
+/** Namespace google. */
+export namespace google {
+
+ /** Namespace cloud. */
+ namespace cloud {
+
+ /** Namespace servicehealth. */
+ namespace servicehealth {
+
+ /** Namespace v1. */
+ namespace v1 {
+
+ /** Properties of an Event. */
+ interface IEvent {
+
+ /** Event name */
+ name?: (string|null);
+
+ /** Event title */
+ title?: (string|null);
+
+ /** Event description */
+ description?: (string|null);
+
+ /** Event category */
+ category?: (google.cloud.servicehealth.v1.Event.EventCategory|keyof typeof google.cloud.servicehealth.v1.Event.EventCategory|null);
+
+ /** Event detailedCategory */
+ detailedCategory?: (google.cloud.servicehealth.v1.Event.DetailedCategory|keyof typeof google.cloud.servicehealth.v1.Event.DetailedCategory|null);
+
+ /** Event state */
+ state?: (google.cloud.servicehealth.v1.Event.State|keyof typeof google.cloud.servicehealth.v1.Event.State|null);
+
+ /** Event detailedState */
+ detailedState?: (google.cloud.servicehealth.v1.Event.DetailedState|keyof typeof google.cloud.servicehealth.v1.Event.DetailedState|null);
+
+ /** Event eventImpacts */
+ eventImpacts?: (google.cloud.servicehealth.v1.IEventImpact[]|null);
+
+ /** Event relevance */
+ relevance?: (google.cloud.servicehealth.v1.Event.Relevance|keyof typeof google.cloud.servicehealth.v1.Event.Relevance|null);
+
+ /** Event updates */
+ updates?: (google.cloud.servicehealth.v1.IEventUpdate[]|null);
+
+ /** Event parentEvent */
+ parentEvent?: (string|null);
+
+ /** Event updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Event startTime */
+ startTime?: (google.protobuf.ITimestamp|null);
+
+ /** Event endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** Event nextUpdateTime */
+ nextUpdateTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents an Event. */
+ class Event implements IEvent {
+
+ /**
+ * Constructs a new Event.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.servicehealth.v1.IEvent);
+
+ /** Event name. */
+ public name: string;
+
+ /** Event title. */
+ public title: string;
+
+ /** Event description. */
+ public description: string;
+
+ /** Event category. */
+ public category: (google.cloud.servicehealth.v1.Event.EventCategory|keyof typeof google.cloud.servicehealth.v1.Event.EventCategory);
+
+ /** Event detailedCategory. */
+ public detailedCategory: (google.cloud.servicehealth.v1.Event.DetailedCategory|keyof typeof google.cloud.servicehealth.v1.Event.DetailedCategory);
+
+ /** Event state. */
+ public state: (google.cloud.servicehealth.v1.Event.State|keyof typeof google.cloud.servicehealth.v1.Event.State);
+
+ /** Event detailedState. */
+ public detailedState: (google.cloud.servicehealth.v1.Event.DetailedState|keyof typeof google.cloud.servicehealth.v1.Event.DetailedState);
+
+ /** Event eventImpacts. */
+ public eventImpacts: google.cloud.servicehealth.v1.IEventImpact[];
+
+ /** Event relevance. */
+ public relevance: (google.cloud.servicehealth.v1.Event.Relevance|keyof typeof google.cloud.servicehealth.v1.Event.Relevance);
+
+ /** Event updates. */
+ public updates: google.cloud.servicehealth.v1.IEventUpdate[];
+
+ /** Event parentEvent. */
+ public parentEvent: string;
+
+ /** Event updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Event startTime. */
+ public startTime?: (google.protobuf.ITimestamp|null);
+
+ /** Event endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** Event nextUpdateTime. */
+ public nextUpdateTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new Event instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Event instance
+ */
+ public static create(properties?: google.cloud.servicehealth.v1.IEvent): google.cloud.servicehealth.v1.Event;
+
+ /**
+ * Encodes the specified Event message. Does not implicitly {@link google.cloud.servicehealth.v1.Event.verify|verify} messages.
+ * @param message Event message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.servicehealth.v1.IEvent, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Event message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.Event.verify|verify} messages.
+ * @param message Event message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.servicehealth.v1.IEvent, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Event message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Event
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.servicehealth.v1.Event;
+
+ /**
+ * Decodes an Event message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Event
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.servicehealth.v1.Event;
+
+ /**
+ * Verifies an Event message.
+ * @param message Plain 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 Event message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Event
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.servicehealth.v1.Event;
+
+ /**
+ * Creates a plain object from an Event message. Also converts values to other types if specified.
+ * @param message Event
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.servicehealth.v1.Event, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Event to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Event
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Event {
+
+ /** EventCategory enum. */
+ enum EventCategory {
+ EVENT_CATEGORY_UNSPECIFIED = 0,
+ INCIDENT = 2
+ }
+
+ /** DetailedCategory enum. */
+ enum DetailedCategory {
+ DETAILED_CATEGORY_UNSPECIFIED = 0,
+ CONFIRMED_INCIDENT = 1,
+ EMERGING_INCIDENT = 2
+ }
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ ACTIVE = 1,
+ CLOSED = 2
+ }
+
+ /** DetailedState enum. */
+ enum DetailedState {
+ DETAILED_STATE_UNSPECIFIED = 0,
+ EMERGING = 1,
+ CONFIRMED = 2,
+ RESOLVED = 3,
+ MERGED = 4,
+ AUTO_CLOSED = 9,
+ FALSE_POSITIVE = 10
+ }
+
+ /** Relevance enum. */
+ enum Relevance {
+ RELEVANCE_UNSPECIFIED = 0,
+ UNKNOWN = 2,
+ NOT_IMPACTED = 6,
+ PARTIALLY_RELATED = 7,
+ RELATED = 8,
+ IMPACTED = 9
+ }
+ }
+
+ /** Properties of an OrganizationEvent. */
+ interface IOrganizationEvent {
+
+ /** OrganizationEvent name */
+ name?: (string|null);
+
+ /** OrganizationEvent title */
+ title?: (string|null);
+
+ /** OrganizationEvent description */
+ description?: (string|null);
+
+ /** OrganizationEvent category */
+ category?: (google.cloud.servicehealth.v1.OrganizationEvent.EventCategory|keyof typeof google.cloud.servicehealth.v1.OrganizationEvent.EventCategory|null);
+
+ /** OrganizationEvent detailedCategory */
+ detailedCategory?: (google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory|keyof typeof google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory|null);
+
+ /** OrganizationEvent state */
+ state?: (google.cloud.servicehealth.v1.OrganizationEvent.State|keyof typeof google.cloud.servicehealth.v1.OrganizationEvent.State|null);
+
+ /** OrganizationEvent detailedState */
+ detailedState?: (google.cloud.servicehealth.v1.OrganizationEvent.DetailedState|keyof typeof google.cloud.servicehealth.v1.OrganizationEvent.DetailedState|null);
+
+ /** OrganizationEvent eventImpacts */
+ eventImpacts?: (google.cloud.servicehealth.v1.IEventImpact[]|null);
+
+ /** OrganizationEvent updates */
+ updates?: (google.cloud.servicehealth.v1.IEventUpdate[]|null);
+
+ /** OrganizationEvent parentEvent */
+ parentEvent?: (string|null);
+
+ /** OrganizationEvent updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** OrganizationEvent startTime */
+ startTime?: (google.protobuf.ITimestamp|null);
+
+ /** OrganizationEvent endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** OrganizationEvent nextUpdateTime */
+ nextUpdateTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents an OrganizationEvent. */
+ class OrganizationEvent implements IOrganizationEvent {
+
+ /**
+ * Constructs a new OrganizationEvent.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.servicehealth.v1.IOrganizationEvent);
+
+ /** OrganizationEvent name. */
+ public name: string;
+
+ /** OrganizationEvent title. */
+ public title: string;
+
+ /** OrganizationEvent description. */
+ public description: string;
+
+ /** OrganizationEvent category. */
+ public category: (google.cloud.servicehealth.v1.OrganizationEvent.EventCategory|keyof typeof google.cloud.servicehealth.v1.OrganizationEvent.EventCategory);
+
+ /** OrganizationEvent detailedCategory. */
+ public detailedCategory: (google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory|keyof typeof google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory);
+
+ /** OrganizationEvent state. */
+ public state: (google.cloud.servicehealth.v1.OrganizationEvent.State|keyof typeof google.cloud.servicehealth.v1.OrganizationEvent.State);
+
+ /** OrganizationEvent detailedState. */
+ public detailedState: (google.cloud.servicehealth.v1.OrganizationEvent.DetailedState|keyof typeof google.cloud.servicehealth.v1.OrganizationEvent.DetailedState);
+
+ /** OrganizationEvent eventImpacts. */
+ public eventImpacts: google.cloud.servicehealth.v1.IEventImpact[];
+
+ /** OrganizationEvent updates. */
+ public updates: google.cloud.servicehealth.v1.IEventUpdate[];
+
+ /** OrganizationEvent parentEvent. */
+ public parentEvent: string;
+
+ /** OrganizationEvent updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** OrganizationEvent startTime. */
+ public startTime?: (google.protobuf.ITimestamp|null);
+
+ /** OrganizationEvent endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** OrganizationEvent nextUpdateTime. */
+ public nextUpdateTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new OrganizationEvent instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OrganizationEvent instance
+ */
+ public static create(properties?: google.cloud.servicehealth.v1.IOrganizationEvent): google.cloud.servicehealth.v1.OrganizationEvent;
+
+ /**
+ * Encodes the specified OrganizationEvent message. Does not implicitly {@link google.cloud.servicehealth.v1.OrganizationEvent.verify|verify} messages.
+ * @param message OrganizationEvent message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.servicehealth.v1.IOrganizationEvent, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OrganizationEvent message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.OrganizationEvent.verify|verify} messages.
+ * @param message OrganizationEvent message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.servicehealth.v1.IOrganizationEvent, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OrganizationEvent message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OrganizationEvent
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.servicehealth.v1.OrganizationEvent;
+
+ /**
+ * Decodes an OrganizationEvent message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OrganizationEvent
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.servicehealth.v1.OrganizationEvent;
+
+ /**
+ * Verifies an OrganizationEvent message.
+ * @param message Plain 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 OrganizationEvent message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OrganizationEvent
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.servicehealth.v1.OrganizationEvent;
+
+ /**
+ * Creates a plain object from an OrganizationEvent message. Also converts values to other types if specified.
+ * @param message OrganizationEvent
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.servicehealth.v1.OrganizationEvent, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OrganizationEvent to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OrganizationEvent
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace OrganizationEvent {
+
+ /** EventCategory enum. */
+ enum EventCategory {
+ EVENT_CATEGORY_UNSPECIFIED = 0,
+ INCIDENT = 2
+ }
+
+ /** DetailedCategory enum. */
+ enum DetailedCategory {
+ DETAILED_CATEGORY_UNSPECIFIED = 0,
+ CONFIRMED_INCIDENT = 1,
+ EMERGING_INCIDENT = 2
+ }
+
+ /** State enum. */
+ enum State {
+ STATE_UNSPECIFIED = 0,
+ ACTIVE = 1,
+ CLOSED = 2
+ }
+
+ /** DetailedState enum. */
+ enum DetailedState {
+ DETAILED_STATE_UNSPECIFIED = 0,
+ EMERGING = 1,
+ CONFIRMED = 2,
+ RESOLVED = 3,
+ MERGED = 4,
+ AUTO_CLOSED = 9,
+ FALSE_POSITIVE = 10
+ }
+ }
+
+ /** Properties of an EventUpdate. */
+ interface IEventUpdate {
+
+ /** EventUpdate updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** EventUpdate title */
+ title?: (string|null);
+
+ /** EventUpdate description */
+ description?: (string|null);
+
+ /** EventUpdate symptom */
+ symptom?: (string|null);
+
+ /** EventUpdate workaround */
+ workaround?: (string|null);
+ }
+
+ /** Represents an EventUpdate. */
+ class EventUpdate implements IEventUpdate {
+
+ /**
+ * Constructs a new EventUpdate.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.servicehealth.v1.IEventUpdate);
+
+ /** EventUpdate updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** EventUpdate title. */
+ public title: string;
+
+ /** EventUpdate description. */
+ public description: string;
+
+ /** EventUpdate symptom. */
+ public symptom: string;
+
+ /** EventUpdate workaround. */
+ public workaround: string;
+
+ /**
+ * Creates a new EventUpdate instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EventUpdate instance
+ */
+ public static create(properties?: google.cloud.servicehealth.v1.IEventUpdate): google.cloud.servicehealth.v1.EventUpdate;
+
+ /**
+ * Encodes the specified EventUpdate message. Does not implicitly {@link google.cloud.servicehealth.v1.EventUpdate.verify|verify} messages.
+ * @param message EventUpdate message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.servicehealth.v1.IEventUpdate, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EventUpdate message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.EventUpdate.verify|verify} messages.
+ * @param message EventUpdate message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.servicehealth.v1.IEventUpdate, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EventUpdate message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EventUpdate
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.servicehealth.v1.EventUpdate;
+
+ /**
+ * Decodes an EventUpdate message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EventUpdate
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.servicehealth.v1.EventUpdate;
+
+ /**
+ * Verifies an EventUpdate message.
+ * @param message Plain 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 EventUpdate message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EventUpdate
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.servicehealth.v1.EventUpdate;
+
+ /**
+ * Creates a plain object from an EventUpdate message. Also converts values to other types if specified.
+ * @param message EventUpdate
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.servicehealth.v1.EventUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EventUpdate to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EventUpdate
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Location. */
+ interface ILocation {
+
+ /** Location locationName */
+ locationName?: (string|null);
+ }
+
+ /** Represents a Location. */
+ class Location implements ILocation {
+
+ /**
+ * Constructs a new Location.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.servicehealth.v1.ILocation);
+
+ /** Location locationName. */
+ public locationName: string;
+
+ /**
+ * Creates a new Location instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Location instance
+ */
+ public static create(properties?: google.cloud.servicehealth.v1.ILocation): google.cloud.servicehealth.v1.Location;
+
+ /**
+ * Encodes the specified Location message. Does not implicitly {@link google.cloud.servicehealth.v1.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.cloud.servicehealth.v1.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Location message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.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.cloud.servicehealth.v1.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.cloud.servicehealth.v1.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.cloud.servicehealth.v1.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.cloud.servicehealth.v1.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.cloud.servicehealth.v1.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 Product. */
+ interface IProduct {
+
+ /** Product productName */
+ productName?: (string|null);
+
+ /** Product id */
+ id?: (string|null);
+ }
+
+ /** Represents a Product. */
+ class Product implements IProduct {
+
+ /**
+ * Constructs a new Product.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.servicehealth.v1.IProduct);
+
+ /** Product productName. */
+ public productName: string;
+
+ /** Product id. */
+ public id: string;
+
+ /**
+ * Creates a new Product instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Product instance
+ */
+ public static create(properties?: google.cloud.servicehealth.v1.IProduct): google.cloud.servicehealth.v1.Product;
+
+ /**
+ * Encodes the specified Product message. Does not implicitly {@link google.cloud.servicehealth.v1.Product.verify|verify} messages.
+ * @param message Product message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.servicehealth.v1.IProduct, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Product message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.Product.verify|verify} messages.
+ * @param message Product message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.servicehealth.v1.IProduct, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Product message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Product
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.servicehealth.v1.Product;
+
+ /**
+ * Decodes a Product message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Product
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.servicehealth.v1.Product;
+
+ /**
+ * Verifies a Product message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Product message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Product
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.servicehealth.v1.Product;
+
+ /**
+ * Creates a plain object from a Product message. Also converts values to other types if specified.
+ * @param message Product
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.servicehealth.v1.Product, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Product to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Product
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EventImpact. */
+ interface IEventImpact {
+
+ /** EventImpact product */
+ product?: (google.cloud.servicehealth.v1.IProduct|null);
+
+ /** EventImpact location */
+ location?: (google.cloud.servicehealth.v1.ILocation|null);
+ }
+
+ /** Represents an EventImpact. */
+ class EventImpact implements IEventImpact {
+
+ /**
+ * Constructs a new EventImpact.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.servicehealth.v1.IEventImpact);
+
+ /** EventImpact product. */
+ public product?: (google.cloud.servicehealth.v1.IProduct|null);
+
+ /** EventImpact location. */
+ public location?: (google.cloud.servicehealth.v1.ILocation|null);
+
+ /**
+ * Creates a new EventImpact instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EventImpact instance
+ */
+ public static create(properties?: google.cloud.servicehealth.v1.IEventImpact): google.cloud.servicehealth.v1.EventImpact;
+
+ /**
+ * Encodes the specified EventImpact message. Does not implicitly {@link google.cloud.servicehealth.v1.EventImpact.verify|verify} messages.
+ * @param message EventImpact message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.servicehealth.v1.IEventImpact, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EventImpact message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.EventImpact.verify|verify} messages.
+ * @param message EventImpact message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.servicehealth.v1.IEventImpact, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EventImpact message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EventImpact
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.servicehealth.v1.EventImpact;
+
+ /**
+ * Decodes an EventImpact message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EventImpact
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.servicehealth.v1.EventImpact;
+
+ /**
+ * Verifies an EventImpact message.
+ * @param message Plain 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 EventImpact message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EventImpact
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.servicehealth.v1.EventImpact;
+
+ /**
+ * Creates a plain object from an EventImpact message. Also converts values to other types if specified.
+ * @param message EventImpact
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.servicehealth.v1.EventImpact, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EventImpact to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EventImpact
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OrganizationImpact. */
+ interface IOrganizationImpact {
+
+ /** OrganizationImpact name */
+ name?: (string|null);
+
+ /** OrganizationImpact events */
+ events?: (string[]|null);
+
+ /** OrganizationImpact asset */
+ asset?: (google.cloud.servicehealth.v1.IAsset|null);
+
+ /** OrganizationImpact updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents an OrganizationImpact. */
+ class OrganizationImpact implements IOrganizationImpact {
+
+ /**
+ * Constructs a new OrganizationImpact.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.servicehealth.v1.IOrganizationImpact);
+
+ /** OrganizationImpact name. */
+ public name: string;
+
+ /** OrganizationImpact events. */
+ public events: string[];
+
+ /** OrganizationImpact asset. */
+ public asset?: (google.cloud.servicehealth.v1.IAsset|null);
+
+ /** OrganizationImpact updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /**
+ * Creates a new OrganizationImpact instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OrganizationImpact instance
+ */
+ public static create(properties?: google.cloud.servicehealth.v1.IOrganizationImpact): google.cloud.servicehealth.v1.OrganizationImpact;
+
+ /**
+ * Encodes the specified OrganizationImpact message. Does not implicitly {@link google.cloud.servicehealth.v1.OrganizationImpact.verify|verify} messages.
+ * @param message OrganizationImpact message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.servicehealth.v1.IOrganizationImpact, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OrganizationImpact message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.OrganizationImpact.verify|verify} messages.
+ * @param message OrganizationImpact message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.servicehealth.v1.IOrganizationImpact, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OrganizationImpact message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OrganizationImpact
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.servicehealth.v1.OrganizationImpact;
+
+ /**
+ * Decodes an OrganizationImpact message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OrganizationImpact
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.servicehealth.v1.OrganizationImpact;
+
+ /**
+ * Verifies an OrganizationImpact message.
+ * @param message Plain 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 OrganizationImpact message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OrganizationImpact
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.servicehealth.v1.OrganizationImpact;
+
+ /**
+ * Creates a plain object from an OrganizationImpact message. Also converts values to other types if specified.
+ * @param message OrganizationImpact
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.servicehealth.v1.OrganizationImpact, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OrganizationImpact to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OrganizationImpact
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Asset. */
+ interface IAsset {
+
+ /** Asset assetName */
+ assetName?: (string|null);
+
+ /** Asset assetType */
+ assetType?: (string|null);
+ }
+
+ /** Represents an Asset. */
+ class Asset implements IAsset {
+
+ /**
+ * Constructs a new Asset.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.servicehealth.v1.IAsset);
+
+ /** Asset assetName. */
+ public assetName: string;
+
+ /** Asset assetType. */
+ public assetType: string;
+
+ /**
+ * Creates a new Asset instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Asset instance
+ */
+ public static create(properties?: google.cloud.servicehealth.v1.IAsset): google.cloud.servicehealth.v1.Asset;
+
+ /**
+ * Encodes the specified Asset message. Does not implicitly {@link google.cloud.servicehealth.v1.Asset.verify|verify} messages.
+ * @param message Asset message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.servicehealth.v1.IAsset, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Asset message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.Asset.verify|verify} messages.
+ * @param message Asset message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.servicehealth.v1.IAsset, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Asset message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Asset
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.servicehealth.v1.Asset;
+
+ /**
+ * Decodes an Asset message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Asset
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.servicehealth.v1.Asset;
+
+ /**
+ * Verifies an Asset message.
+ * @param message Plain 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 Asset message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Asset
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.servicehealth.v1.Asset;
+
+ /**
+ * Creates a plain object from an Asset message. Also converts values to other types if specified.
+ * @param message Asset
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.servicehealth.v1.Asset, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Asset to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Asset
+ * @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 parent */
+ parent?: (string|null);
+
+ /** ListEventsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListEventsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListEventsRequest filter */
+ filter?: (string|null);
+
+ /** ListEventsRequest view */
+ view?: (google.cloud.servicehealth.v1.EventView|keyof typeof google.cloud.servicehealth.v1.EventView|null);
+ }
+
+ /** Represents a ListEventsRequest. */
+ class ListEventsRequest implements IListEventsRequest {
+
+ /**
+ * Constructs a new ListEventsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.servicehealth.v1.IListEventsRequest);
+
+ /** ListEventsRequest parent. */
+ public parent: string;
+
+ /** ListEventsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListEventsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListEventsRequest filter. */
+ public filter: string;
+
+ /** ListEventsRequest view. */
+ public view: (google.cloud.servicehealth.v1.EventView|keyof typeof google.cloud.servicehealth.v1.EventView);
+
+ /**
+ * Creates a new ListEventsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListEventsRequest instance
+ */
+ public static create(properties?: google.cloud.servicehealth.v1.IListEventsRequest): google.cloud.servicehealth.v1.ListEventsRequest;
+
+ /**
+ * Encodes the specified ListEventsRequest message. Does not implicitly {@link google.cloud.servicehealth.v1.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.cloud.servicehealth.v1.IListEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListEventsRequest message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.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.cloud.servicehealth.v1.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.cloud.servicehealth.v1.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.cloud.servicehealth.v1.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.cloud.servicehealth.v1.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.cloud.servicehealth.v1.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 events */
+ events?: (google.cloud.servicehealth.v1.IEvent[]|null);
+
+ /** ListEventsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListEventsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListEventsResponse. */
+ class ListEventsResponse implements IListEventsResponse {
+
+ /**
+ * Constructs a new ListEventsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.servicehealth.v1.IListEventsResponse);
+
+ /** ListEventsResponse events. */
+ public events: google.cloud.servicehealth.v1.IEvent[];
+
+ /** ListEventsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListEventsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListEventsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListEventsResponse instance
+ */
+ public static create(properties?: google.cloud.servicehealth.v1.IListEventsResponse): google.cloud.servicehealth.v1.ListEventsResponse;
+
+ /**
+ * Encodes the specified ListEventsResponse message. Does not implicitly {@link google.cloud.servicehealth.v1.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.cloud.servicehealth.v1.IListEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListEventsResponse message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.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.cloud.servicehealth.v1.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.cloud.servicehealth.v1.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.cloud.servicehealth.v1.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.cloud.servicehealth.v1.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.cloud.servicehealth.v1.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 GetEventRequest. */
+ interface IGetEventRequest {
+
+ /** GetEventRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetEventRequest. */
+ class GetEventRequest implements IGetEventRequest {
+
+ /**
+ * Constructs a new GetEventRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.servicehealth.v1.IGetEventRequest);
+
+ /** GetEventRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetEventRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetEventRequest instance
+ */
+ public static create(properties?: google.cloud.servicehealth.v1.IGetEventRequest): google.cloud.servicehealth.v1.GetEventRequest;
+
+ /**
+ * Encodes the specified GetEventRequest message. Does not implicitly {@link google.cloud.servicehealth.v1.GetEventRequest.verify|verify} messages.
+ * @param message GetEventRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.servicehealth.v1.IGetEventRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetEventRequest message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.GetEventRequest.verify|verify} messages.
+ * @param message GetEventRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.servicehealth.v1.IGetEventRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetEventRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetEventRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.servicehealth.v1.GetEventRequest;
+
+ /**
+ * Decodes a GetEventRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetEventRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.servicehealth.v1.GetEventRequest;
+
+ /**
+ * Verifies a GetEventRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetEventRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetEventRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.servicehealth.v1.GetEventRequest;
+
+ /**
+ * Creates a plain object from a GetEventRequest message. Also converts values to other types if specified.
+ * @param message GetEventRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.servicehealth.v1.GetEventRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetEventRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetEventRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOrganizationEventsRequest. */
+ interface IListOrganizationEventsRequest {
+
+ /** ListOrganizationEventsRequest parent */
+ parent?: (string|null);
+
+ /** ListOrganizationEventsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListOrganizationEventsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListOrganizationEventsRequest filter */
+ filter?: (string|null);
+
+ /** ListOrganizationEventsRequest view */
+ view?: (google.cloud.servicehealth.v1.OrganizationEventView|keyof typeof google.cloud.servicehealth.v1.OrganizationEventView|null);
+ }
+
+ /** Represents a ListOrganizationEventsRequest. */
+ class ListOrganizationEventsRequest implements IListOrganizationEventsRequest {
+
+ /**
+ * Constructs a new ListOrganizationEventsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.servicehealth.v1.IListOrganizationEventsRequest);
+
+ /** ListOrganizationEventsRequest parent. */
+ public parent: string;
+
+ /** ListOrganizationEventsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListOrganizationEventsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListOrganizationEventsRequest filter. */
+ public filter: string;
+
+ /** ListOrganizationEventsRequest view. */
+ public view: (google.cloud.servicehealth.v1.OrganizationEventView|keyof typeof google.cloud.servicehealth.v1.OrganizationEventView);
+
+ /**
+ * Creates a new ListOrganizationEventsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOrganizationEventsRequest instance
+ */
+ public static create(properties?: google.cloud.servicehealth.v1.IListOrganizationEventsRequest): google.cloud.servicehealth.v1.ListOrganizationEventsRequest;
+
+ /**
+ * Encodes the specified ListOrganizationEventsRequest message. Does not implicitly {@link google.cloud.servicehealth.v1.ListOrganizationEventsRequest.verify|verify} messages.
+ * @param message ListOrganizationEventsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.servicehealth.v1.IListOrganizationEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOrganizationEventsRequest message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.ListOrganizationEventsRequest.verify|verify} messages.
+ * @param message ListOrganizationEventsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.servicehealth.v1.IListOrganizationEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOrganizationEventsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOrganizationEventsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.servicehealth.v1.ListOrganizationEventsRequest;
+
+ /**
+ * Decodes a ListOrganizationEventsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOrganizationEventsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.servicehealth.v1.ListOrganizationEventsRequest;
+
+ /**
+ * Verifies a ListOrganizationEventsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOrganizationEventsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOrganizationEventsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.servicehealth.v1.ListOrganizationEventsRequest;
+
+ /**
+ * Creates a plain object from a ListOrganizationEventsRequest message. Also converts values to other types if specified.
+ * @param message ListOrganizationEventsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.servicehealth.v1.ListOrganizationEventsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOrganizationEventsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOrganizationEventsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOrganizationEventsResponse. */
+ interface IListOrganizationEventsResponse {
+
+ /** ListOrganizationEventsResponse organizationEvents */
+ organizationEvents?: (google.cloud.servicehealth.v1.IOrganizationEvent[]|null);
+
+ /** ListOrganizationEventsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListOrganizationEventsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListOrganizationEventsResponse. */
+ class ListOrganizationEventsResponse implements IListOrganizationEventsResponse {
+
+ /**
+ * Constructs a new ListOrganizationEventsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.servicehealth.v1.IListOrganizationEventsResponse);
+
+ /** ListOrganizationEventsResponse organizationEvents. */
+ public organizationEvents: google.cloud.servicehealth.v1.IOrganizationEvent[];
+
+ /** ListOrganizationEventsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListOrganizationEventsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListOrganizationEventsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOrganizationEventsResponse instance
+ */
+ public static create(properties?: google.cloud.servicehealth.v1.IListOrganizationEventsResponse): google.cloud.servicehealth.v1.ListOrganizationEventsResponse;
+
+ /**
+ * Encodes the specified ListOrganizationEventsResponse message. Does not implicitly {@link google.cloud.servicehealth.v1.ListOrganizationEventsResponse.verify|verify} messages.
+ * @param message ListOrganizationEventsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.servicehealth.v1.IListOrganizationEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOrganizationEventsResponse message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.ListOrganizationEventsResponse.verify|verify} messages.
+ * @param message ListOrganizationEventsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.servicehealth.v1.IListOrganizationEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOrganizationEventsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOrganizationEventsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.servicehealth.v1.ListOrganizationEventsResponse;
+
+ /**
+ * Decodes a ListOrganizationEventsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOrganizationEventsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.servicehealth.v1.ListOrganizationEventsResponse;
+
+ /**
+ * Verifies a ListOrganizationEventsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOrganizationEventsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOrganizationEventsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.servicehealth.v1.ListOrganizationEventsResponse;
+
+ /**
+ * Creates a plain object from a ListOrganizationEventsResponse message. Also converts values to other types if specified.
+ * @param message ListOrganizationEventsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.servicehealth.v1.ListOrganizationEventsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOrganizationEventsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOrganizationEventsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetOrganizationEventRequest. */
+ interface IGetOrganizationEventRequest {
+
+ /** GetOrganizationEventRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetOrganizationEventRequest. */
+ class GetOrganizationEventRequest implements IGetOrganizationEventRequest {
+
+ /**
+ * Constructs a new GetOrganizationEventRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.servicehealth.v1.IGetOrganizationEventRequest);
+
+ /** GetOrganizationEventRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetOrganizationEventRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetOrganizationEventRequest instance
+ */
+ public static create(properties?: google.cloud.servicehealth.v1.IGetOrganizationEventRequest): google.cloud.servicehealth.v1.GetOrganizationEventRequest;
+
+ /**
+ * Encodes the specified GetOrganizationEventRequest message. Does not implicitly {@link google.cloud.servicehealth.v1.GetOrganizationEventRequest.verify|verify} messages.
+ * @param message GetOrganizationEventRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.servicehealth.v1.IGetOrganizationEventRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetOrganizationEventRequest message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.GetOrganizationEventRequest.verify|verify} messages.
+ * @param message GetOrganizationEventRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.servicehealth.v1.IGetOrganizationEventRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetOrganizationEventRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetOrganizationEventRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.servicehealth.v1.GetOrganizationEventRequest;
+
+ /**
+ * Decodes a GetOrganizationEventRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetOrganizationEventRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.servicehealth.v1.GetOrganizationEventRequest;
+
+ /**
+ * Verifies a GetOrganizationEventRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetOrganizationEventRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetOrganizationEventRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.servicehealth.v1.GetOrganizationEventRequest;
+
+ /**
+ * Creates a plain object from a GetOrganizationEventRequest message. Also converts values to other types if specified.
+ * @param message GetOrganizationEventRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.servicehealth.v1.GetOrganizationEventRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetOrganizationEventRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetOrganizationEventRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOrganizationImpactsRequest. */
+ interface IListOrganizationImpactsRequest {
+
+ /** ListOrganizationImpactsRequest parent */
+ parent?: (string|null);
+
+ /** ListOrganizationImpactsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListOrganizationImpactsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListOrganizationImpactsRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListOrganizationImpactsRequest. */
+ class ListOrganizationImpactsRequest implements IListOrganizationImpactsRequest {
+
+ /**
+ * Constructs a new ListOrganizationImpactsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.servicehealth.v1.IListOrganizationImpactsRequest);
+
+ /** ListOrganizationImpactsRequest parent. */
+ public parent: string;
+
+ /** ListOrganizationImpactsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListOrganizationImpactsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListOrganizationImpactsRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListOrganizationImpactsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOrganizationImpactsRequest instance
+ */
+ public static create(properties?: google.cloud.servicehealth.v1.IListOrganizationImpactsRequest): google.cloud.servicehealth.v1.ListOrganizationImpactsRequest;
+
+ /**
+ * Encodes the specified ListOrganizationImpactsRequest message. Does not implicitly {@link google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.verify|verify} messages.
+ * @param message ListOrganizationImpactsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.servicehealth.v1.IListOrganizationImpactsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOrganizationImpactsRequest message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.verify|verify} messages.
+ * @param message ListOrganizationImpactsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.servicehealth.v1.IListOrganizationImpactsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOrganizationImpactsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOrganizationImpactsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.servicehealth.v1.ListOrganizationImpactsRequest;
+
+ /**
+ * Decodes a ListOrganizationImpactsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOrganizationImpactsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.servicehealth.v1.ListOrganizationImpactsRequest;
+
+ /**
+ * Verifies a ListOrganizationImpactsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOrganizationImpactsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOrganizationImpactsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.servicehealth.v1.ListOrganizationImpactsRequest;
+
+ /**
+ * Creates a plain object from a ListOrganizationImpactsRequest message. Also converts values to other types if specified.
+ * @param message ListOrganizationImpactsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.servicehealth.v1.ListOrganizationImpactsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOrganizationImpactsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOrganizationImpactsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOrganizationImpactsResponse. */
+ interface IListOrganizationImpactsResponse {
+
+ /** ListOrganizationImpactsResponse organizationImpacts */
+ organizationImpacts?: (google.cloud.servicehealth.v1.IOrganizationImpact[]|null);
+
+ /** ListOrganizationImpactsResponse nextPageToken */
+ nextPageToken?: (string|null);
+
+ /** ListOrganizationImpactsResponse unreachable */
+ unreachable?: (string[]|null);
+ }
+
+ /** Represents a ListOrganizationImpactsResponse. */
+ class ListOrganizationImpactsResponse implements IListOrganizationImpactsResponse {
+
+ /**
+ * Constructs a new ListOrganizationImpactsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.servicehealth.v1.IListOrganizationImpactsResponse);
+
+ /** ListOrganizationImpactsResponse organizationImpacts. */
+ public organizationImpacts: google.cloud.servicehealth.v1.IOrganizationImpact[];
+
+ /** ListOrganizationImpactsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /** ListOrganizationImpactsResponse unreachable. */
+ public unreachable: string[];
+
+ /**
+ * Creates a new ListOrganizationImpactsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOrganizationImpactsResponse instance
+ */
+ public static create(properties?: google.cloud.servicehealth.v1.IListOrganizationImpactsResponse): google.cloud.servicehealth.v1.ListOrganizationImpactsResponse;
+
+ /**
+ * Encodes the specified ListOrganizationImpactsResponse message. Does not implicitly {@link google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.verify|verify} messages.
+ * @param message ListOrganizationImpactsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.servicehealth.v1.IListOrganizationImpactsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOrganizationImpactsResponse message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.verify|verify} messages.
+ * @param message ListOrganizationImpactsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.servicehealth.v1.IListOrganizationImpactsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOrganizationImpactsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOrganizationImpactsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.servicehealth.v1.ListOrganizationImpactsResponse;
+
+ /**
+ * Decodes a ListOrganizationImpactsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOrganizationImpactsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.servicehealth.v1.ListOrganizationImpactsResponse;
+
+ /**
+ * Verifies a ListOrganizationImpactsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOrganizationImpactsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOrganizationImpactsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.servicehealth.v1.ListOrganizationImpactsResponse;
+
+ /**
+ * Creates a plain object from a ListOrganizationImpactsResponse message. Also converts values to other types if specified.
+ * @param message ListOrganizationImpactsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.servicehealth.v1.ListOrganizationImpactsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOrganizationImpactsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOrganizationImpactsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetOrganizationImpactRequest. */
+ interface IGetOrganizationImpactRequest {
+
+ /** GetOrganizationImpactRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetOrganizationImpactRequest. */
+ class GetOrganizationImpactRequest implements IGetOrganizationImpactRequest {
+
+ /**
+ * Constructs a new GetOrganizationImpactRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.servicehealth.v1.IGetOrganizationImpactRequest);
+
+ /** GetOrganizationImpactRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetOrganizationImpactRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetOrganizationImpactRequest instance
+ */
+ public static create(properties?: google.cloud.servicehealth.v1.IGetOrganizationImpactRequest): google.cloud.servicehealth.v1.GetOrganizationImpactRequest;
+
+ /**
+ * Encodes the specified GetOrganizationImpactRequest message. Does not implicitly {@link google.cloud.servicehealth.v1.GetOrganizationImpactRequest.verify|verify} messages.
+ * @param message GetOrganizationImpactRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.servicehealth.v1.IGetOrganizationImpactRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetOrganizationImpactRequest message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.GetOrganizationImpactRequest.verify|verify} messages.
+ * @param message GetOrganizationImpactRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.servicehealth.v1.IGetOrganizationImpactRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetOrganizationImpactRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetOrganizationImpactRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.servicehealth.v1.GetOrganizationImpactRequest;
+
+ /**
+ * Decodes a GetOrganizationImpactRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetOrganizationImpactRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.servicehealth.v1.GetOrganizationImpactRequest;
+
+ /**
+ * Verifies a GetOrganizationImpactRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetOrganizationImpactRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetOrganizationImpactRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.servicehealth.v1.GetOrganizationImpactRequest;
+
+ /**
+ * Creates a plain object from a GetOrganizationImpactRequest message. Also converts values to other types if specified.
+ * @param message GetOrganizationImpactRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.servicehealth.v1.GetOrganizationImpactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetOrganizationImpactRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetOrganizationImpactRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** EventView enum. */
+ enum EventView {
+ EVENT_VIEW_UNSPECIFIED = 0,
+ EVENT_VIEW_BASIC = 1,
+ EVENT_VIEW_FULL = 2
+ }
+
+ /** OrganizationEventView enum. */
+ enum OrganizationEventView {
+ ORGANIZATION_EVENT_VIEW_UNSPECIFIED = 0,
+ ORGANIZATION_EVENT_VIEW_BASIC = 1,
+ ORGANIZATION_EVENT_VIEW_FULL = 2
+ }
+
+ /** Represents a ServiceHealth */
+ class ServiceHealth extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new ServiceHealth 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 ServiceHealth 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): ServiceHealth;
+
+ /**
+ * 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.cloud.servicehealth.v1.IListEventsRequest, callback: google.cloud.servicehealth.v1.ServiceHealth.ListEventsCallback): void;
+
+ /**
+ * Calls ListEvents.
+ * @param request ListEventsRequest message or plain object
+ * @returns Promise
+ */
+ public listEvents(request: google.cloud.servicehealth.v1.IListEventsRequest): Promise;
+
+ /**
+ * Calls GetEvent.
+ * @param request GetEventRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Event
+ */
+ public getEvent(request: google.cloud.servicehealth.v1.IGetEventRequest, callback: google.cloud.servicehealth.v1.ServiceHealth.GetEventCallback): void;
+
+ /**
+ * Calls GetEvent.
+ * @param request GetEventRequest message or plain object
+ * @returns Promise
+ */
+ public getEvent(request: google.cloud.servicehealth.v1.IGetEventRequest): Promise;
+
+ /**
+ * Calls ListOrganizationEvents.
+ * @param request ListOrganizationEventsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListOrganizationEventsResponse
+ */
+ public listOrganizationEvents(request: google.cloud.servicehealth.v1.IListOrganizationEventsRequest, callback: google.cloud.servicehealth.v1.ServiceHealth.ListOrganizationEventsCallback): void;
+
+ /**
+ * Calls ListOrganizationEvents.
+ * @param request ListOrganizationEventsRequest message or plain object
+ * @returns Promise
+ */
+ public listOrganizationEvents(request: google.cloud.servicehealth.v1.IListOrganizationEventsRequest): Promise;
+
+ /**
+ * Calls GetOrganizationEvent.
+ * @param request GetOrganizationEventRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and OrganizationEvent
+ */
+ public getOrganizationEvent(request: google.cloud.servicehealth.v1.IGetOrganizationEventRequest, callback: google.cloud.servicehealth.v1.ServiceHealth.GetOrganizationEventCallback): void;
+
+ /**
+ * Calls GetOrganizationEvent.
+ * @param request GetOrganizationEventRequest message or plain object
+ * @returns Promise
+ */
+ public getOrganizationEvent(request: google.cloud.servicehealth.v1.IGetOrganizationEventRequest): Promise;
+
+ /**
+ * Calls ListOrganizationImpacts.
+ * @param request ListOrganizationImpactsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListOrganizationImpactsResponse
+ */
+ public listOrganizationImpacts(request: google.cloud.servicehealth.v1.IListOrganizationImpactsRequest, callback: google.cloud.servicehealth.v1.ServiceHealth.ListOrganizationImpactsCallback): void;
+
+ /**
+ * Calls ListOrganizationImpacts.
+ * @param request ListOrganizationImpactsRequest message or plain object
+ * @returns Promise
+ */
+ public listOrganizationImpacts(request: google.cloud.servicehealth.v1.IListOrganizationImpactsRequest): Promise;
+
+ /**
+ * Calls GetOrganizationImpact.
+ * @param request GetOrganizationImpactRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and OrganizationImpact
+ */
+ public getOrganizationImpact(request: google.cloud.servicehealth.v1.IGetOrganizationImpactRequest, callback: google.cloud.servicehealth.v1.ServiceHealth.GetOrganizationImpactCallback): void;
+
+ /**
+ * Calls GetOrganizationImpact.
+ * @param request GetOrganizationImpactRequest message or plain object
+ * @returns Promise
+ */
+ public getOrganizationImpact(request: google.cloud.servicehealth.v1.IGetOrganizationImpactRequest): Promise;
+ }
+
+ namespace ServiceHealth {
+
+ /**
+ * Callback as used by {@link google.cloud.servicehealth.v1.ServiceHealth|listEvents}.
+ * @param error Error, if any
+ * @param [response] ListEventsResponse
+ */
+ type ListEventsCallback = (error: (Error|null), response?: google.cloud.servicehealth.v1.ListEventsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.servicehealth.v1.ServiceHealth|getEvent}.
+ * @param error Error, if any
+ * @param [response] Event
+ */
+ type GetEventCallback = (error: (Error|null), response?: google.cloud.servicehealth.v1.Event) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.servicehealth.v1.ServiceHealth|listOrganizationEvents}.
+ * @param error Error, if any
+ * @param [response] ListOrganizationEventsResponse
+ */
+ type ListOrganizationEventsCallback = (error: (Error|null), response?: google.cloud.servicehealth.v1.ListOrganizationEventsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.servicehealth.v1.ServiceHealth|getOrganizationEvent}.
+ * @param error Error, if any
+ * @param [response] OrganizationEvent
+ */
+ type GetOrganizationEventCallback = (error: (Error|null), response?: google.cloud.servicehealth.v1.OrganizationEvent) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.servicehealth.v1.ServiceHealth|listOrganizationImpacts}.
+ * @param error Error, if any
+ * @param [response] ListOrganizationImpactsResponse
+ */
+ type ListOrganizationImpactsCallback = (error: (Error|null), response?: google.cloud.servicehealth.v1.ListOrganizationImpactsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.servicehealth.v1.ServiceHealth|getOrganizationImpact}.
+ * @param error Error, if any
+ * @param [response] OrganizationImpact
+ */
+ type GetOrganizationImpactCallback = (error: (Error|null), response?: google.cloud.servicehealth.v1.OrganizationImpact) => void;
+ }
+ }
+ }
+ }
+
+ /** Namespace api. */
+ namespace api {
+
+ /** FieldBehavior enum. */
+ enum FieldBehavior {
+ FIELD_BEHAVIOR_UNSPECIFIED = 0,
+ OPTIONAL = 1,
+ REQUIRED = 2,
+ OUTPUT_ONLY = 3,
+ INPUT_ONLY = 4,
+ IMMUTABLE = 5,
+ UNORDERED_LIST = 6,
+ NON_EMPTY_DEFAULT = 7,
+ IDENTIFIER = 8
+ }
+
+ /** Properties of a ResourceDescriptor. */
+ interface IResourceDescriptor {
+
+ /** ResourceDescriptor type */
+ type?: (string|null);
+
+ /** ResourceDescriptor pattern */
+ pattern?: (string[]|null);
+
+ /** ResourceDescriptor nameField */
+ nameField?: (string|null);
+
+ /** ResourceDescriptor history */
+ history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null);
+
+ /** ResourceDescriptor plural */
+ plural?: (string|null);
+
+ /** ResourceDescriptor singular */
+ singular?: (string|null);
+
+ /** ResourceDescriptor style */
+ style?: (google.api.ResourceDescriptor.Style[]|null);
+ }
+
+ /** Represents a ResourceDescriptor. */
+ class ResourceDescriptor implements IResourceDescriptor {
+
+ /**
+ * Constructs a new ResourceDescriptor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceDescriptor);
+
+ /** ResourceDescriptor type. */
+ public type: string;
+
+ /** ResourceDescriptor pattern. */
+ public pattern: string[];
+
+ /** ResourceDescriptor nameField. */
+ public nameField: string;
+
+ /** ResourceDescriptor history. */
+ public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History);
+
+ /** ResourceDescriptor plural. */
+ public plural: string;
+
+ /** ResourceDescriptor singular. */
+ public singular: string;
+
+ /** ResourceDescriptor style. */
+ public style: google.api.ResourceDescriptor.Style[];
+
+ /**
+ * Creates a new ResourceDescriptor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceDescriptor instance
+ */
+ public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor;
+
+ /**
+ * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceDescriptor;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceDescriptor;
+
+ /**
+ * Verifies a ResourceDescriptor message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceDescriptor
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
+
+ /**
+ * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
+ * @param message ResourceDescriptor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceDescriptor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceDescriptor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ResourceDescriptor {
+
+ /** History enum. */
+ enum History {
+ HISTORY_UNSPECIFIED = 0,
+ ORIGINALLY_SINGLE_PATTERN = 1,
+ FUTURE_MULTI_PATTERN = 2
+ }
+
+ /** Style enum. */
+ enum Style {
+ STYLE_UNSPECIFIED = 0,
+ DECLARATIVE_FRIENDLY = 1
+ }
+ }
+
+ /** Properties of a ResourceReference. */
+ interface IResourceReference {
+
+ /** ResourceReference type */
+ type?: (string|null);
+
+ /** ResourceReference childType */
+ childType?: (string|null);
+ }
+
+ /** Represents a ResourceReference. */
+ class ResourceReference implements IResourceReference {
+
+ /**
+ * Constructs a new ResourceReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceReference);
+
+ /** ResourceReference type. */
+ public type: string;
+
+ /** ResourceReference childType. */
+ public childType: string;
+
+ /**
+ * Creates a new ResourceReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceReference instance
+ */
+ public static create(properties?: google.api.IResourceReference): google.api.ResourceReference;
+
+ /**
+ * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceReference;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceReference;
+
+ /**
+ * Verifies a ResourceReference message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
+
+ /**
+ * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
+ * @param message ResourceReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceReference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Http. */
+ interface IHttp {
+
+ /** Http rules */
+ rules?: (google.api.IHttpRule[]|null);
+
+ /** Http fullyDecodeReservedExpansion */
+ fullyDecodeReservedExpansion?: (boolean|null);
+ }
+
+ /** Represents a Http. */
+ class Http implements IHttp {
+
+ /**
+ * Constructs a new Http.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttp);
+
+ /** Http rules. */
+ public rules: google.api.IHttpRule[];
+
+ /** Http fullyDecodeReservedExpansion. */
+ public fullyDecodeReservedExpansion: boolean;
+
+ /**
+ * Creates a new Http instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Http instance
+ */
+ public static create(properties?: google.api.IHttp): google.api.Http;
+
+ /**
+ * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http;
+
+ /**
+ * Verifies a Http message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Http message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Http
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Http;
+
+ /**
+ * Creates a plain object from a Http message. Also converts values to other types if specified.
+ * @param message Http
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Http to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Http
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HttpRule. */
+ interface IHttpRule {
+
+ /** HttpRule selector */
+ selector?: (string|null);
+
+ /** HttpRule get */
+ get?: (string|null);
+
+ /** HttpRule put */
+ put?: (string|null);
+
+ /** HttpRule post */
+ post?: (string|null);
+
+ /** HttpRule delete */
+ "delete"?: (string|null);
+
+ /** HttpRule patch */
+ patch?: (string|null);
+
+ /** HttpRule custom */
+ custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body */
+ body?: (string|null);
+
+ /** HttpRule responseBody */
+ responseBody?: (string|null);
+
+ /** HttpRule additionalBindings */
+ additionalBindings?: (google.api.IHttpRule[]|null);
+ }
+
+ /** Represents a HttpRule. */
+ class HttpRule implements IHttpRule {
+
+ /**
+ * Constructs a new HttpRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttpRule);
+
+ /** HttpRule selector. */
+ public selector: string;
+
+ /** HttpRule get. */
+ public get?: (string|null);
+
+ /** HttpRule put. */
+ public put?: (string|null);
+
+ /** HttpRule post. */
+ public post?: (string|null);
+
+ /** HttpRule delete. */
+ public delete?: (string|null);
+
+ /** HttpRule patch. */
+ public patch?: (string|null);
+
+ /** HttpRule custom. */
+ public custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body. */
+ public body: string;
+
+ /** HttpRule responseBody. */
+ public responseBody: string;
+
+ /** HttpRule additionalBindings. */
+ public additionalBindings: google.api.IHttpRule[];
+
+ /** HttpRule pattern. */
+ public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
+
+ /**
+ * Creates a new HttpRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HttpRule instance
+ */
+ public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
+
+ /**
+ * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule;
+
+ /**
+ * Verifies a HttpRule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HttpRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
+
+ /**
+ * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
+ * @param message HttpRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HttpRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HttpRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CustomHttpPattern. */
+ interface ICustomHttpPattern {
+
+ /** CustomHttpPattern kind */
+ kind?: (string|null);
+
+ /** CustomHttpPattern path */
+ path?: (string|null);
+ }
+
+ /** Represents a CustomHttpPattern. */
+ class CustomHttpPattern implements ICustomHttpPattern {
+
+ /**
+ * Constructs a new CustomHttpPattern.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICustomHttpPattern);
+
+ /** CustomHttpPattern kind. */
+ public kind: string;
+
+ /** CustomHttpPattern path. */
+ public path: string;
+
+ /**
+ * Creates a new CustomHttpPattern instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CustomHttpPattern instance
+ */
+ public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
+
+ /**
+ * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern;
+
+ /**
+ * Verifies a CustomHttpPattern message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CustomHttpPattern
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
+
+ /**
+ * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
+ * @param message CustomHttpPattern
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CustomHttpPattern to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CustomHttpPattern
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CommonLanguageSettings. */
+ interface ICommonLanguageSettings {
+
+ /** CommonLanguageSettings referenceDocsUri */
+ referenceDocsUri?: (string|null);
+
+ /** CommonLanguageSettings destinations */
+ destinations?: (google.api.ClientLibraryDestination[]|null);
+ }
+
+ /** Represents a CommonLanguageSettings. */
+ class CommonLanguageSettings implements ICommonLanguageSettings {
+
+ /**
+ * Constructs a new CommonLanguageSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICommonLanguageSettings);
+
+ /** CommonLanguageSettings referenceDocsUri. */
+ public referenceDocsUri: string;
+
+ /** CommonLanguageSettings destinations. */
+ public destinations: google.api.ClientLibraryDestination[];
+
+ /**
+ * Creates a new CommonLanguageSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CommonLanguageSettings instance
+ */
+ public static create(properties?: google.api.ICommonLanguageSettings): google.api.CommonLanguageSettings;
+
+ /**
+ * Encodes the specified CommonLanguageSettings message. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
+ * @param message CommonLanguageSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICommonLanguageSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CommonLanguageSettings message, length delimited. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
+ * @param message CommonLanguageSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICommonLanguageSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CommonLanguageSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CommonLanguageSettings;
+
+ /**
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CommonLanguageSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CommonLanguageSettings;
+
+ /**
+ * Verifies a CommonLanguageSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CommonLanguageSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CommonLanguageSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CommonLanguageSettings;
+
+ /**
+ * Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified.
+ * @param message CommonLanguageSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CommonLanguageSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CommonLanguageSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CommonLanguageSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ClientLibrarySettings. */
+ interface IClientLibrarySettings {
+
+ /** ClientLibrarySettings version */
+ version?: (string|null);
+
+ /** ClientLibrarySettings launchStage */
+ launchStage?: (google.api.LaunchStage|keyof typeof google.api.LaunchStage|null);
+
+ /** ClientLibrarySettings restNumericEnums */
+ restNumericEnums?: (boolean|null);
+
+ /** ClientLibrarySettings javaSettings */
+ javaSettings?: (google.api.IJavaSettings|null);
+
+ /** ClientLibrarySettings cppSettings */
+ cppSettings?: (google.api.ICppSettings|null);
+
+ /** ClientLibrarySettings phpSettings */
+ phpSettings?: (google.api.IPhpSettings|null);
+
+ /** ClientLibrarySettings pythonSettings */
+ pythonSettings?: (google.api.IPythonSettings|null);
+
+ /** ClientLibrarySettings nodeSettings */
+ nodeSettings?: (google.api.INodeSettings|null);
+
+ /** ClientLibrarySettings dotnetSettings */
+ dotnetSettings?: (google.api.IDotnetSettings|null);
+
+ /** ClientLibrarySettings rubySettings */
+ rubySettings?: (google.api.IRubySettings|null);
+
+ /** ClientLibrarySettings goSettings */
+ goSettings?: (google.api.IGoSettings|null);
+ }
+
+ /** Represents a ClientLibrarySettings. */
+ class ClientLibrarySettings implements IClientLibrarySettings {
+
+ /**
+ * Constructs a new ClientLibrarySettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IClientLibrarySettings);
+
+ /** ClientLibrarySettings version. */
+ public version: string;
+
+ /** ClientLibrarySettings launchStage. */
+ public launchStage: (google.api.LaunchStage|keyof typeof google.api.LaunchStage);
+
+ /** ClientLibrarySettings restNumericEnums. */
+ public restNumericEnums: boolean;
+
+ /** ClientLibrarySettings javaSettings. */
+ public javaSettings?: (google.api.IJavaSettings|null);
+
+ /** ClientLibrarySettings cppSettings. */
+ public cppSettings?: (google.api.ICppSettings|null);
+
+ /** ClientLibrarySettings phpSettings. */
+ public phpSettings?: (google.api.IPhpSettings|null);
+
+ /** ClientLibrarySettings pythonSettings. */
+ public pythonSettings?: (google.api.IPythonSettings|null);
+
+ /** ClientLibrarySettings nodeSettings. */
+ public nodeSettings?: (google.api.INodeSettings|null);
+
+ /** ClientLibrarySettings dotnetSettings. */
+ public dotnetSettings?: (google.api.IDotnetSettings|null);
+
+ /** ClientLibrarySettings rubySettings. */
+ public rubySettings?: (google.api.IRubySettings|null);
+
+ /** ClientLibrarySettings goSettings. */
+ public goSettings?: (google.api.IGoSettings|null);
+
+ /**
+ * Creates a new ClientLibrarySettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ClientLibrarySettings instance
+ */
+ public static create(properties?: google.api.IClientLibrarySettings): google.api.ClientLibrarySettings;
+
+ /**
+ * Encodes the specified ClientLibrarySettings message. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
+ * @param message ClientLibrarySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IClientLibrarySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ClientLibrarySettings message, length delimited. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
+ * @param message ClientLibrarySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IClientLibrarySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ClientLibrarySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ClientLibrarySettings;
+
+ /**
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ClientLibrarySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ClientLibrarySettings;
+
+ /**
+ * Verifies a ClientLibrarySettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ClientLibrarySettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ClientLibrarySettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ClientLibrarySettings;
+
+ /**
+ * Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified.
+ * @param message ClientLibrarySettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ClientLibrarySettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ClientLibrarySettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ClientLibrarySettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Publishing. */
+ interface IPublishing {
+
+ /** Publishing methodSettings */
+ methodSettings?: (google.api.IMethodSettings[]|null);
+
+ /** Publishing newIssueUri */
+ newIssueUri?: (string|null);
+
+ /** Publishing documentationUri */
+ documentationUri?: (string|null);
+
+ /** Publishing apiShortName */
+ apiShortName?: (string|null);
+
+ /** Publishing githubLabel */
+ githubLabel?: (string|null);
+
+ /** Publishing codeownerGithubTeams */
+ codeownerGithubTeams?: (string[]|null);
+
+ /** Publishing docTagPrefix */
+ docTagPrefix?: (string|null);
+
+ /** Publishing organization */
+ organization?: (google.api.ClientLibraryOrganization|keyof typeof google.api.ClientLibraryOrganization|null);
+
+ /** Publishing librarySettings */
+ librarySettings?: (google.api.IClientLibrarySettings[]|null);
+
+ /** Publishing protoReferenceDocumentationUri */
+ protoReferenceDocumentationUri?: (string|null);
+
+ /** Publishing restReferenceDocumentationUri */
+ restReferenceDocumentationUri?: (string|null);
+ }
+
+ /** Represents a Publishing. */
+ class Publishing implements IPublishing {
+
+ /**
+ * Constructs a new Publishing.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPublishing);
+
+ /** Publishing methodSettings. */
+ public methodSettings: google.api.IMethodSettings[];
+
+ /** Publishing newIssueUri. */
+ public newIssueUri: string;
+
+ /** Publishing documentationUri. */
+ public documentationUri: string;
+
+ /** Publishing apiShortName. */
+ public apiShortName: string;
+
+ /** Publishing githubLabel. */
+ public githubLabel: string;
+
+ /** Publishing codeownerGithubTeams. */
+ public codeownerGithubTeams: string[];
+
+ /** Publishing docTagPrefix. */
+ public docTagPrefix: string;
+
+ /** Publishing organization. */
+ public organization: (google.api.ClientLibraryOrganization|keyof typeof google.api.ClientLibraryOrganization);
+
+ /** Publishing librarySettings. */
+ public librarySettings: google.api.IClientLibrarySettings[];
+
+ /** Publishing protoReferenceDocumentationUri. */
+ public protoReferenceDocumentationUri: string;
+
+ /** Publishing restReferenceDocumentationUri. */
+ public restReferenceDocumentationUri: string;
+
+ /**
+ * Creates a new Publishing instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Publishing instance
+ */
+ public static create(properties?: google.api.IPublishing): google.api.Publishing;
+
+ /**
+ * Encodes the specified Publishing message. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
+ * @param message Publishing message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPublishing, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Publishing message, length delimited. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
+ * @param message Publishing message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPublishing, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Publishing message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Publishing
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Publishing;
+
+ /**
+ * Decodes a Publishing message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Publishing
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Publishing;
+
+ /**
+ * Verifies a Publishing message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Publishing message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Publishing
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Publishing;
+
+ /**
+ * Creates a plain object from a Publishing message. Also converts values to other types if specified.
+ * @param message Publishing
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Publishing, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Publishing to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Publishing
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a JavaSettings. */
+ interface IJavaSettings {
+
+ /** JavaSettings libraryPackage */
+ libraryPackage?: (string|null);
+
+ /** JavaSettings serviceClassNames */
+ serviceClassNames?: ({ [k: string]: string }|null);
+
+ /** JavaSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a JavaSettings. */
+ class JavaSettings implements IJavaSettings {
+
+ /**
+ * Constructs a new JavaSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IJavaSettings);
+
+ /** JavaSettings libraryPackage. */
+ public libraryPackage: string;
+
+ /** JavaSettings serviceClassNames. */
+ public serviceClassNames: { [k: string]: string };
+
+ /** JavaSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new JavaSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns JavaSettings instance
+ */
+ public static create(properties?: google.api.IJavaSettings): google.api.JavaSettings;
+
+ /**
+ * Encodes the specified JavaSettings message. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
+ * @param message JavaSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IJavaSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified JavaSettings message, length delimited. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
+ * @param message JavaSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IJavaSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a JavaSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns JavaSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.JavaSettings;
+
+ /**
+ * Decodes a JavaSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns JavaSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.JavaSettings;
+
+ /**
+ * Verifies a JavaSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a JavaSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns JavaSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.JavaSettings;
+
+ /**
+ * Creates a plain object from a JavaSettings message. Also converts values to other types if specified.
+ * @param message JavaSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.JavaSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this JavaSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for JavaSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CppSettings. */
+ interface ICppSettings {
+
+ /** CppSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a CppSettings. */
+ class CppSettings implements ICppSettings {
+
+ /**
+ * Constructs a new CppSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICppSettings);
+
+ /** CppSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new CppSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CppSettings instance
+ */
+ public static create(properties?: google.api.ICppSettings): google.api.CppSettings;
+
+ /**
+ * Encodes the specified CppSettings message. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
+ * @param message CppSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICppSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CppSettings message, length delimited. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
+ * @param message CppSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICppSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CppSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CppSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CppSettings;
+
+ /**
+ * Decodes a CppSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CppSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CppSettings;
+
+ /**
+ * Verifies a CppSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CppSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CppSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CppSettings;
+
+ /**
+ * Creates a plain object from a CppSettings message. Also converts values to other types if specified.
+ * @param message CppSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CppSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CppSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CppSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PhpSettings. */
+ interface IPhpSettings {
+
+ /** PhpSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a PhpSettings. */
+ class PhpSettings implements IPhpSettings {
+
+ /**
+ * Constructs a new PhpSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPhpSettings);
+
+ /** PhpSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new PhpSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PhpSettings instance
+ */
+ public static create(properties?: google.api.IPhpSettings): google.api.PhpSettings;
+
+ /**
+ * Encodes the specified PhpSettings message. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
+ * @param message PhpSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPhpSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PhpSettings message, length delimited. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
+ * @param message PhpSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPhpSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PhpSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PhpSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.PhpSettings;
+
+ /**
+ * Decodes a PhpSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PhpSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.PhpSettings;
+
+ /**
+ * Verifies a PhpSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PhpSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PhpSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.PhpSettings;
+
+ /**
+ * Creates a plain object from a PhpSettings message. Also converts values to other types if specified.
+ * @param message PhpSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.PhpSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PhpSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PhpSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PythonSettings. */
+ interface IPythonSettings {
+
+ /** PythonSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a PythonSettings. */
+ class PythonSettings implements IPythonSettings {
+
+ /**
+ * Constructs a new PythonSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPythonSettings);
+
+ /** PythonSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new PythonSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PythonSettings instance
+ */
+ public static create(properties?: google.api.IPythonSettings): google.api.PythonSettings;
+
+ /**
+ * Encodes the specified PythonSettings message. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
+ * @param message PythonSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPythonSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PythonSettings message, length delimited. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
+ * @param message PythonSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPythonSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PythonSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PythonSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.PythonSettings;
+
+ /**
+ * Decodes a PythonSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PythonSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.PythonSettings;
+
+ /**
+ * Verifies a PythonSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PythonSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PythonSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.PythonSettings;
+
+ /**
+ * Creates a plain object from a PythonSettings message. Also converts values to other types if specified.
+ * @param message PythonSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.PythonSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PythonSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PythonSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a NodeSettings. */
+ interface INodeSettings {
+
+ /** NodeSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a NodeSettings. */
+ class NodeSettings implements INodeSettings {
+
+ /**
+ * Constructs a new NodeSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.INodeSettings);
+
+ /** NodeSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new NodeSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NodeSettings instance
+ */
+ public static create(properties?: google.api.INodeSettings): google.api.NodeSettings;
+
+ /**
+ * Encodes the specified NodeSettings message. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
+ * @param message NodeSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.INodeSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NodeSettings message, length delimited. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
+ * @param message NodeSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.INodeSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NodeSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NodeSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.NodeSettings;
+
+ /**
+ * Decodes a NodeSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NodeSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.NodeSettings;
+
+ /**
+ * Verifies a NodeSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NodeSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NodeSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.NodeSettings;
+
+ /**
+ * Creates a plain object from a NodeSettings message. Also converts values to other types if specified.
+ * @param message NodeSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.NodeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NodeSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NodeSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DotnetSettings. */
+ interface IDotnetSettings {
+
+ /** DotnetSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+
+ /** DotnetSettings renamedServices */
+ renamedServices?: ({ [k: string]: string }|null);
+
+ /** DotnetSettings renamedResources */
+ renamedResources?: ({ [k: string]: string }|null);
+
+ /** DotnetSettings ignoredResources */
+ ignoredResources?: (string[]|null);
+
+ /** DotnetSettings forcedNamespaceAliases */
+ forcedNamespaceAliases?: (string[]|null);
+
+ /** DotnetSettings handwrittenSignatures */
+ handwrittenSignatures?: (string[]|null);
+ }
+
+ /** Represents a DotnetSettings. */
+ class DotnetSettings implements IDotnetSettings {
+
+ /**
+ * Constructs a new DotnetSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IDotnetSettings);
+
+ /** DotnetSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /** DotnetSettings renamedServices. */
+ public renamedServices: { [k: string]: string };
+
+ /** DotnetSettings renamedResources. */
+ public renamedResources: { [k: string]: string };
+
+ /** DotnetSettings ignoredResources. */
+ public ignoredResources: string[];
+
+ /** DotnetSettings forcedNamespaceAliases. */
+ public forcedNamespaceAliases: string[];
+
+ /** DotnetSettings handwrittenSignatures. */
+ public handwrittenSignatures: string[];
+
+ /**
+ * Creates a new DotnetSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DotnetSettings instance
+ */
+ public static create(properties?: google.api.IDotnetSettings): google.api.DotnetSettings;
+
+ /**
+ * Encodes the specified DotnetSettings message. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
+ * @param message DotnetSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IDotnetSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DotnetSettings message, length delimited. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
+ * @param message DotnetSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IDotnetSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DotnetSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DotnetSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.DotnetSettings;
+
+ /**
+ * Decodes a DotnetSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DotnetSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.DotnetSettings;
+
+ /**
+ * Verifies a DotnetSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DotnetSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DotnetSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.DotnetSettings;
+
+ /**
+ * Creates a plain object from a DotnetSettings message. Also converts values to other types if specified.
+ * @param message DotnetSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.DotnetSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DotnetSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DotnetSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RubySettings. */
+ interface IRubySettings {
+
+ /** RubySettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a RubySettings. */
+ class RubySettings implements IRubySettings {
+
+ /**
+ * Constructs a new RubySettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IRubySettings);
+
+ /** RubySettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new RubySettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RubySettings instance
+ */
+ public static create(properties?: google.api.IRubySettings): google.api.RubySettings;
+
+ /**
+ * Encodes the specified RubySettings message. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
+ * @param message RubySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IRubySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RubySettings message, length delimited. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
+ * @param message RubySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IRubySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RubySettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RubySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.RubySettings;
+
+ /**
+ * Decodes a RubySettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RubySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.RubySettings;
+
+ /**
+ * Verifies a RubySettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RubySettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RubySettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.RubySettings;
+
+ /**
+ * Creates a plain object from a RubySettings message. Also converts values to other types if specified.
+ * @param message RubySettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.RubySettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RubySettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RubySettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GoSettings. */
+ interface IGoSettings {
+
+ /** GoSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a GoSettings. */
+ class GoSettings implements IGoSettings {
+
+ /**
+ * Constructs a new GoSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IGoSettings);
+
+ /** GoSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new GoSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GoSettings instance
+ */
+ public static create(properties?: google.api.IGoSettings): google.api.GoSettings;
+
+ /**
+ * Encodes the specified GoSettings message. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
+ * @param message GoSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IGoSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GoSettings message, length delimited. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
+ * @param message GoSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IGoSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GoSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GoSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.GoSettings;
+
+ /**
+ * Decodes a GoSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GoSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.GoSettings;
+
+ /**
+ * Verifies a GoSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GoSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GoSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.GoSettings;
+
+ /**
+ * Creates a plain object from a GoSettings message. Also converts values to other types if specified.
+ * @param message GoSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.GoSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GoSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GoSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodSettings. */
+ interface IMethodSettings {
+
+ /** MethodSettings selector */
+ selector?: (string|null);
+
+ /** MethodSettings longRunning */
+ longRunning?: (google.api.MethodSettings.ILongRunning|null);
+
+ /** MethodSettings autoPopulatedFields */
+ autoPopulatedFields?: (string[]|null);
+ }
+
+ /** Represents a MethodSettings. */
+ class MethodSettings implements IMethodSettings {
+
+ /**
+ * Constructs a new MethodSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IMethodSettings);
+
+ /** MethodSettings selector. */
+ public selector: string;
+
+ /** MethodSettings longRunning. */
+ public longRunning?: (google.api.MethodSettings.ILongRunning|null);
+
+ /** MethodSettings autoPopulatedFields. */
+ public autoPopulatedFields: string[];
+
+ /**
+ * Creates a new MethodSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodSettings instance
+ */
+ public static create(properties?: google.api.IMethodSettings): google.api.MethodSettings;
+
+ /**
+ * Encodes the specified MethodSettings message. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
+ * @param message MethodSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IMethodSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodSettings message, length delimited. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
+ * @param message MethodSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IMethodSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.MethodSettings;
+
+ /**
+ * Decodes a MethodSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.MethodSettings;
+
+ /**
+ * Verifies a MethodSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.MethodSettings;
+
+ /**
+ * Creates a plain object from a MethodSettings message. Also converts values to other types if specified.
+ * @param message MethodSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.MethodSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MethodSettings {
+
+ /** Properties of a LongRunning. */
+ interface ILongRunning {
+
+ /** LongRunning initialPollDelay */
+ initialPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning pollDelayMultiplier */
+ pollDelayMultiplier?: (number|null);
+
+ /** LongRunning maxPollDelay */
+ maxPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning totalPollTimeout */
+ totalPollTimeout?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a LongRunning. */
+ class LongRunning implements ILongRunning {
+
+ /**
+ * Constructs a new LongRunning.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.MethodSettings.ILongRunning);
+
+ /** LongRunning initialPollDelay. */
+ public initialPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning pollDelayMultiplier. */
+ public pollDelayMultiplier: number;
+
+ /** LongRunning maxPollDelay. */
+ public maxPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning totalPollTimeout. */
+ public totalPollTimeout?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new LongRunning instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LongRunning instance
+ */
+ public static create(properties?: google.api.MethodSettings.ILongRunning): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Encodes the specified LongRunning message. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
+ * @param message LongRunning message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.MethodSettings.ILongRunning, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LongRunning message, length delimited. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
+ * @param message LongRunning message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.MethodSettings.ILongRunning, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LongRunning message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LongRunning
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Decodes a LongRunning message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LongRunning
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Verifies a LongRunning message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LongRunning message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LongRunning
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Creates a plain object from a LongRunning message. Also converts values to other types if specified.
+ * @param message LongRunning
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.MethodSettings.LongRunning, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LongRunning to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LongRunning
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** ClientLibraryOrganization enum. */
+ enum ClientLibraryOrganization {
+ CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0,
+ CLOUD = 1,
+ ADS = 2,
+ PHOTOS = 3,
+ STREET_VIEW = 4,
+ SHOPPING = 5,
+ GEO = 6,
+ GENERATIVE_AI = 7
+ }
+
+ /** ClientLibraryDestination enum. */
+ enum ClientLibraryDestination {
+ CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0,
+ GITHUB = 10,
+ PACKAGE_MANAGER = 20
+ }
+
+ /** LaunchStage enum. */
+ enum LaunchStage {
+ LAUNCH_STAGE_UNSPECIFIED = 0,
+ UNIMPLEMENTED = 6,
+ PRELAUNCH = 7,
+ EARLY_ACCESS = 1,
+ ALPHA = 2,
+ BETA = 3,
+ GA = 4,
+ DEPRECATED = 5
+ }
+ }
+
+ /** Namespace protobuf. */
+ namespace protobuf {
+
+ /** Properties of a FileDescriptorSet. */
+ interface IFileDescriptorSet {
+
+ /** FileDescriptorSet file */
+ file?: (google.protobuf.IFileDescriptorProto[]|null);
+ }
+
+ /** Represents a FileDescriptorSet. */
+ class FileDescriptorSet implements IFileDescriptorSet {
+
+ /**
+ * Constructs a new FileDescriptorSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorSet);
+
+ /** FileDescriptorSet file. */
+ public file: google.protobuf.IFileDescriptorProto[];
+
+ /**
+ * Creates a new FileDescriptorSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorSet instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Verifies a FileDescriptorSet message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
+ * @param message FileDescriptorSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Edition enum. */
+ enum Edition {
+ EDITION_UNKNOWN = 0,
+ EDITION_PROTO2 = 998,
+ EDITION_PROTO3 = 999,
+ EDITION_2023 = 1000,
+ EDITION_2024 = 1001,
+ EDITION_1_TEST_ONLY = 1,
+ EDITION_2_TEST_ONLY = 2,
+ EDITION_99997_TEST_ONLY = 99997,
+ EDITION_99998_TEST_ONLY = 99998,
+ EDITION_99999_TEST_ONLY = 99999,
+ EDITION_MAX = 2147483647
+ }
+
+ /** Properties of a FileDescriptorProto. */
+ interface IFileDescriptorProto {
+
+ /** FileDescriptorProto name */
+ name?: (string|null);
+
+ /** FileDescriptorProto package */
+ "package"?: (string|null);
+
+ /** FileDescriptorProto dependency */
+ dependency?: (string[]|null);
+
+ /** FileDescriptorProto publicDependency */
+ publicDependency?: (number[]|null);
+
+ /** FileDescriptorProto weakDependency */
+ weakDependency?: (number[]|null);
+
+ /** FileDescriptorProto messageType */
+ messageType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** FileDescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** FileDescriptorProto service */
+ service?: (google.protobuf.IServiceDescriptorProto[]|null);
+
+ /** FileDescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** FileDescriptorProto options */
+ options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo */
+ sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax */
+ syntax?: (string|null);
+
+ /** FileDescriptorProto edition */
+ edition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+ }
+
+ /** Represents a FileDescriptorProto. */
+ class FileDescriptorProto implements IFileDescriptorProto {
+
+ /**
+ * Constructs a new FileDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorProto);
+
+ /** FileDescriptorProto name. */
+ public name: string;
+
+ /** FileDescriptorProto package. */
+ public package: string;
+
+ /** FileDescriptorProto dependency. */
+ public dependency: string[];
+
+ /** FileDescriptorProto publicDependency. */
+ public publicDependency: number[];
+
+ /** FileDescriptorProto weakDependency. */
+ public weakDependency: number[];
+
+ /** FileDescriptorProto messageType. */
+ public messageType: google.protobuf.IDescriptorProto[];
+
+ /** FileDescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** FileDescriptorProto service. */
+ public service: google.protobuf.IServiceDescriptorProto[];
+
+ /** FileDescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** FileDescriptorProto options. */
+ public options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo. */
+ public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax. */
+ public syntax: string;
+
+ /** FileDescriptorProto edition. */
+ public edition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /**
+ * Creates a new FileDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Verifies a FileDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
+ * @param message FileDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DescriptorProto. */
+ interface IDescriptorProto {
+
+ /** DescriptorProto name */
+ name?: (string|null);
+
+ /** DescriptorProto field */
+ field?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto nestedType */
+ nestedType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** DescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** DescriptorProto extensionRange */
+ extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
+
+ /** DescriptorProto oneofDecl */
+ oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
+
+ /** DescriptorProto options */
+ options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
+
+ /** DescriptorProto reservedName */
+ reservedName?: (string[]|null);
+ }
+
+ /** Represents a DescriptorProto. */
+ class DescriptorProto implements IDescriptorProto {
+
+ /**
+ * Constructs a new DescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDescriptorProto);
+
+ /** DescriptorProto name. */
+ public name: string;
+
+ /** DescriptorProto field. */
+ public field: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto nestedType. */
+ public nestedType: google.protobuf.IDescriptorProto[];
+
+ /** DescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** DescriptorProto extensionRange. */
+ public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[];
+
+ /** DescriptorProto oneofDecl. */
+ public oneofDecl: google.protobuf.IOneofDescriptorProto[];
+
+ /** DescriptorProto options. */
+ public options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.DescriptorProto.IReservedRange[];
+
+ /** DescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /**
+ * Creates a new DescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
+
+ /**
+ * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto;
+
+ /**
+ * Verifies a DescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
+
+ /**
+ * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
+ * @param message DescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DescriptorProto {
+
+ /** Properties of an ExtensionRange. */
+ interface IExtensionRange {
+
+ /** ExtensionRange start */
+ start?: (number|null);
+
+ /** ExtensionRange end */
+ end?: (number|null);
+
+ /** ExtensionRange options */
+ options?: (google.protobuf.IExtensionRangeOptions|null);
+ }
+
+ /** Represents an ExtensionRange. */
+ class ExtensionRange implements IExtensionRange {
+
+ /**
+ * Constructs a new ExtensionRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
+
+ /** ExtensionRange start. */
+ public start: number;
+
+ /** ExtensionRange end. */
+ public end: number;
+
+ /** ExtensionRange options. */
+ public options?: (google.protobuf.IExtensionRangeOptions|null);
+
+ /**
+ * Creates a new ExtensionRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Verifies an ExtensionRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
+ * @param message ExtensionRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ReservedRange. */
+ interface IReservedRange {
+
+ /** ReservedRange start */
+ start?: (number|null);
+
+ /** ReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents a ReservedRange. */
+ class ReservedRange implements IReservedRange {
+
+ /**
+ * Constructs a new ReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
+
+ /** ReservedRange start. */
+ public start: number;
+
+ /** ReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new ReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReservedRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Verifies a ReservedRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
+ * @param message ReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an ExtensionRangeOptions. */
+ interface IExtensionRangeOptions {
+
+ /** ExtensionRangeOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** ExtensionRangeOptions declaration */
+ declaration?: (google.protobuf.ExtensionRangeOptions.IDeclaration[]|null);
+
+ /** ExtensionRangeOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** ExtensionRangeOptions verification */
+ verification?: (google.protobuf.ExtensionRangeOptions.VerificationState|keyof typeof google.protobuf.ExtensionRangeOptions.VerificationState|null);
+ }
+
+ /** Represents an ExtensionRangeOptions. */
+ class ExtensionRangeOptions implements IExtensionRangeOptions {
+
+ /**
+ * Constructs a new ExtensionRangeOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IExtensionRangeOptions);
+
+ /** ExtensionRangeOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /** ExtensionRangeOptions declaration. */
+ public declaration: google.protobuf.ExtensionRangeOptions.IDeclaration[];
+
+ /** ExtensionRangeOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** ExtensionRangeOptions verification. */
+ public verification: (google.protobuf.ExtensionRangeOptions.VerificationState|keyof typeof google.protobuf.ExtensionRangeOptions.VerificationState);
+
+ /**
+ * Creates a new ExtensionRangeOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRangeOptions instance
+ */
+ public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRangeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRangeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Verifies an ExtensionRangeOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRangeOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
+ * @param message ExtensionRangeOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRangeOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRangeOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ExtensionRangeOptions {
+
+ /** Properties of a Declaration. */
+ interface IDeclaration {
+
+ /** Declaration number */
+ number?: (number|null);
+
+ /** Declaration fullName */
+ fullName?: (string|null);
+
+ /** Declaration type */
+ type?: (string|null);
+
+ /** Declaration reserved */
+ reserved?: (boolean|null);
+
+ /** Declaration repeated */
+ repeated?: (boolean|null);
+ }
+
+ /** Represents a Declaration. */
+ class Declaration implements IDeclaration {
+
+ /**
+ * Constructs a new Declaration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ExtensionRangeOptions.IDeclaration);
+
+ /** Declaration number. */
+ public number: number;
+
+ /** Declaration fullName. */
+ public fullName: string;
+
+ /** Declaration type. */
+ public type: string;
+
+ /** Declaration reserved. */
+ public reserved: boolean;
+
+ /** Declaration repeated. */
+ public repeated: boolean;
+
+ /**
+ * Creates a new Declaration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Declaration instance
+ */
+ public static create(properties?: google.protobuf.ExtensionRangeOptions.IDeclaration): google.protobuf.ExtensionRangeOptions.Declaration;
+
+ /**
+ * Encodes the specified Declaration message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages.
+ * @param message Declaration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ExtensionRangeOptions.IDeclaration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Declaration message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages.
+ * @param message Declaration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ExtensionRangeOptions.IDeclaration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Declaration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Declaration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions.Declaration;
+
+ /**
+ * Decodes a Declaration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Declaration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions.Declaration;
+
+ /**
+ * Verifies a Declaration message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Declaration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Declaration
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions.Declaration;
+
+ /**
+ * Creates a plain object from a Declaration message. Also converts values to other types if specified.
+ * @param message Declaration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ExtensionRangeOptions.Declaration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Declaration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Declaration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** VerificationState enum. */
+ enum VerificationState {
+ DECLARATION = 0,
+ UNVERIFIED = 1
+ }
+ }
+
+ /** Properties of a FieldDescriptorProto. */
+ interface IFieldDescriptorProto {
+
+ /** FieldDescriptorProto name */
+ name?: (string|null);
+
+ /** FieldDescriptorProto number */
+ number?: (number|null);
+
+ /** FieldDescriptorProto label */
+ label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null);
+
+ /** FieldDescriptorProto type */
+ type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null);
+
+ /** FieldDescriptorProto typeName */
+ typeName?: (string|null);
+
+ /** FieldDescriptorProto extendee */
+ extendee?: (string|null);
+
+ /** FieldDescriptorProto defaultValue */
+ defaultValue?: (string|null);
+
+ /** FieldDescriptorProto oneofIndex */
+ oneofIndex?: (number|null);
+
+ /** FieldDescriptorProto jsonName */
+ jsonName?: (string|null);
+
+ /** FieldDescriptorProto options */
+ options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional */
+ proto3Optional?: (boolean|null);
+ }
+
+ /** Represents a FieldDescriptorProto. */
+ class FieldDescriptorProto implements IFieldDescriptorProto {
+
+ /**
+ * Constructs a new FieldDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldDescriptorProto);
+
+ /** FieldDescriptorProto name. */
+ public name: string;
+
+ /** FieldDescriptorProto number. */
+ public number: number;
+
+ /** FieldDescriptorProto label. */
+ public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label);
+
+ /** FieldDescriptorProto type. */
+ public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type);
+
+ /** FieldDescriptorProto typeName. */
+ public typeName: string;
+
+ /** FieldDescriptorProto extendee. */
+ public extendee: string;
+
+ /** FieldDescriptorProto defaultValue. */
+ public defaultValue: string;
+
+ /** FieldDescriptorProto oneofIndex. */
+ public oneofIndex: number;
+
+ /** FieldDescriptorProto jsonName. */
+ public jsonName: string;
+
+ /** FieldDescriptorProto options. */
+ public options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional. */
+ public proto3Optional: boolean;
+
+ /**
+ * Creates a new FieldDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Verifies a FieldDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
+ * @param message FieldDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldDescriptorProto {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_DOUBLE = 1,
+ TYPE_FLOAT = 2,
+ TYPE_INT64 = 3,
+ TYPE_UINT64 = 4,
+ TYPE_INT32 = 5,
+ TYPE_FIXED64 = 6,
+ TYPE_FIXED32 = 7,
+ TYPE_BOOL = 8,
+ TYPE_STRING = 9,
+ TYPE_GROUP = 10,
+ TYPE_MESSAGE = 11,
+ TYPE_BYTES = 12,
+ TYPE_UINT32 = 13,
+ TYPE_ENUM = 14,
+ TYPE_SFIXED32 = 15,
+ TYPE_SFIXED64 = 16,
+ TYPE_SINT32 = 17,
+ TYPE_SINT64 = 18
+ }
+
+ /** Label enum. */
+ enum Label {
+ LABEL_OPTIONAL = 1,
+ LABEL_REPEATED = 3,
+ LABEL_REQUIRED = 2
+ }
+ }
+
+ /** Properties of an OneofDescriptorProto. */
+ interface IOneofDescriptorProto {
+
+ /** OneofDescriptorProto name */
+ name?: (string|null);
+
+ /** OneofDescriptorProto options */
+ options?: (google.protobuf.IOneofOptions|null);
+ }
+
+ /** Represents an OneofDescriptorProto. */
+ class OneofDescriptorProto implements IOneofDescriptorProto {
+
+ /**
+ * Constructs a new OneofDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofDescriptorProto);
+
+ /** OneofDescriptorProto name. */
+ public name: string;
+
+ /** OneofDescriptorProto options. */
+ public options?: (google.protobuf.IOneofOptions|null);
+
+ /**
+ * Creates a new OneofDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Verifies an OneofDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
+ * @param message OneofDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumDescriptorProto. */
+ interface IEnumDescriptorProto {
+
+ /** EnumDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumDescriptorProto value */
+ value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
+
+ /** EnumDescriptorProto options */
+ options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
+
+ /** EnumDescriptorProto reservedName */
+ reservedName?: (string[]|null);
+ }
+
+ /** Represents an EnumDescriptorProto. */
+ class EnumDescriptorProto implements IEnumDescriptorProto {
+
+ /**
+ * Constructs a new EnumDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumDescriptorProto);
+
+ /** EnumDescriptorProto name. */
+ public name: string;
+
+ /** EnumDescriptorProto value. */
+ public value: google.protobuf.IEnumValueDescriptorProto[];
+
+ /** EnumDescriptorProto options. */
+ public options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
+
+ /** EnumDescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /**
+ * Creates a new EnumDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Verifies an EnumDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace EnumDescriptorProto {
+
+ /** Properties of an EnumReservedRange. */
+ interface IEnumReservedRange {
+
+ /** EnumReservedRange start */
+ start?: (number|null);
+
+ /** EnumReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents an EnumReservedRange. */
+ class EnumReservedRange implements IEnumReservedRange {
+
+ /**
+ * Constructs a new EnumReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
+
+ /** EnumReservedRange start. */
+ public start: number;
+
+ /** EnumReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new EnumReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumReservedRange instance
+ */
+ public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Verifies an EnumReservedRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
+ * @param message EnumReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an EnumValueDescriptorProto. */
+ interface IEnumValueDescriptorProto {
+
+ /** EnumValueDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumValueDescriptorProto number */
+ number?: (number|null);
+
+ /** EnumValueDescriptorProto options */
+ options?: (google.protobuf.IEnumValueOptions|null);
+ }
+
+ /** Represents an EnumValueDescriptorProto. */
+ class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
+
+ /**
+ * Constructs a new EnumValueDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
+
+ /** EnumValueDescriptorProto name. */
+ public name: string;
+
+ /** EnumValueDescriptorProto number. */
+ public number: number;
+
+ /** EnumValueDescriptorProto options. */
+ public options?: (google.protobuf.IEnumValueOptions|null);
+
+ /**
+ * Creates a new EnumValueDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Verifies an EnumValueDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumValueDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceDescriptorProto. */
+ interface IServiceDescriptorProto {
+
+ /** ServiceDescriptorProto name */
+ name?: (string|null);
+
+ /** ServiceDescriptorProto method */
+ method?: (google.protobuf.IMethodDescriptorProto[]|null);
+
+ /** ServiceDescriptorProto options */
+ options?: (google.protobuf.IServiceOptions|null);
+ }
+
+ /** Represents a ServiceDescriptorProto. */
+ class ServiceDescriptorProto implements IServiceDescriptorProto {
+
+ /**
+ * Constructs a new ServiceDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceDescriptorProto);
+
+ /** ServiceDescriptorProto name. */
+ public name: string;
+
+ /** ServiceDescriptorProto method. */
+ public method: google.protobuf.IMethodDescriptorProto[];
+
+ /** ServiceDescriptorProto options. */
+ public options?: (google.protobuf.IServiceOptions|null);
+
+ /**
+ * Creates a new ServiceDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Verifies a ServiceDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
+ * @param message ServiceDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodDescriptorProto. */
+ interface IMethodDescriptorProto {
+
+ /** MethodDescriptorProto name */
+ name?: (string|null);
+
+ /** MethodDescriptorProto inputType */
+ inputType?: (string|null);
+
+ /** MethodDescriptorProto outputType */
+ outputType?: (string|null);
+
+ /** MethodDescriptorProto options */
+ options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming */
+ clientStreaming?: (boolean|null);
+
+ /** MethodDescriptorProto serverStreaming */
+ serverStreaming?: (boolean|null);
+ }
+
+ /** Represents a MethodDescriptorProto. */
+ class MethodDescriptorProto implements IMethodDescriptorProto {
+
+ /**
+ * Constructs a new MethodDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodDescriptorProto);
+
+ /** MethodDescriptorProto name. */
+ public name: string;
+
+ /** MethodDescriptorProto inputType. */
+ public inputType: string;
+
+ /** MethodDescriptorProto outputType. */
+ public outputType: string;
+
+ /** MethodDescriptorProto options. */
+ public options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming. */
+ public clientStreaming: boolean;
+
+ /** MethodDescriptorProto serverStreaming. */
+ public serverStreaming: boolean;
+
+ /**
+ * Creates a new MethodDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Verifies a MethodDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
+ * @param message MethodDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FileOptions. */
+ interface IFileOptions {
+
+ /** FileOptions javaPackage */
+ javaPackage?: (string|null);
+
+ /** FileOptions javaOuterClassname */
+ javaOuterClassname?: (string|null);
+
+ /** FileOptions javaMultipleFiles */
+ javaMultipleFiles?: (boolean|null);
+
+ /** FileOptions javaGenerateEqualsAndHash */
+ javaGenerateEqualsAndHash?: (boolean|null);
+
+ /** FileOptions javaStringCheckUtf8 */
+ javaStringCheckUtf8?: (boolean|null);
+
+ /** FileOptions optimizeFor */
+ optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null);
+
+ /** FileOptions goPackage */
+ goPackage?: (string|null);
+
+ /** FileOptions ccGenericServices */
+ ccGenericServices?: (boolean|null);
+
+ /** FileOptions javaGenericServices */
+ javaGenericServices?: (boolean|null);
+
+ /** FileOptions pyGenericServices */
+ pyGenericServices?: (boolean|null);
+
+ /** FileOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FileOptions ccEnableArenas */
+ ccEnableArenas?: (boolean|null);
+
+ /** FileOptions objcClassPrefix */
+ objcClassPrefix?: (string|null);
+
+ /** FileOptions csharpNamespace */
+ csharpNamespace?: (string|null);
+
+ /** FileOptions swiftPrefix */
+ swiftPrefix?: (string|null);
+
+ /** FileOptions phpClassPrefix */
+ phpClassPrefix?: (string|null);
+
+ /** FileOptions phpNamespace */
+ phpNamespace?: (string|null);
+
+ /** FileOptions phpMetadataNamespace */
+ phpMetadataNamespace?: (string|null);
+
+ /** FileOptions rubyPackage */
+ rubyPackage?: (string|null);
+
+ /** FileOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** FileOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FileOptions .google.api.resourceDefinition */
+ ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null);
+ }
+
+ /** Represents a FileOptions. */
+ class FileOptions implements IFileOptions {
+
+ /**
+ * Constructs a new FileOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileOptions);
+
+ /** FileOptions javaPackage. */
+ public javaPackage: string;
+
+ /** FileOptions javaOuterClassname. */
+ public javaOuterClassname: string;
+
+ /** FileOptions javaMultipleFiles. */
+ public javaMultipleFiles: boolean;
+
+ /** FileOptions javaGenerateEqualsAndHash. */
+ public javaGenerateEqualsAndHash: boolean;
+
+ /** FileOptions javaStringCheckUtf8. */
+ public javaStringCheckUtf8: boolean;
+
+ /** FileOptions optimizeFor. */
+ public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
+
+ /** FileOptions goPackage. */
+ public goPackage: string;
+
+ /** FileOptions ccGenericServices. */
+ public ccGenericServices: boolean;
+
+ /** FileOptions javaGenericServices. */
+ public javaGenericServices: boolean;
+
+ /** FileOptions pyGenericServices. */
+ public pyGenericServices: boolean;
+
+ /** FileOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FileOptions ccEnableArenas. */
+ public ccEnableArenas: boolean;
+
+ /** FileOptions objcClassPrefix. */
+ public objcClassPrefix: string;
+
+ /** FileOptions csharpNamespace. */
+ public csharpNamespace: string;
+
+ /** FileOptions swiftPrefix. */
+ public swiftPrefix: string;
+
+ /** FileOptions phpClassPrefix. */
+ public phpClassPrefix: string;
+
+ /** FileOptions phpNamespace. */
+ public phpNamespace: string;
+
+ /** FileOptions phpMetadataNamespace. */
+ public phpMetadataNamespace: string;
+
+ /** FileOptions rubyPackage. */
+ public rubyPackage: string;
+
+ /** FileOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** FileOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FileOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileOptions instance
+ */
+ public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
+
+ /**
+ * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions;
+
+ /**
+ * Verifies a FileOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
+
+ /**
+ * Creates a plain object from a FileOptions message. Also converts values to other types if specified.
+ * @param message FileOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FileOptions {
+
+ /** OptimizeMode enum. */
+ enum OptimizeMode {
+ SPEED = 1,
+ CODE_SIZE = 2,
+ LITE_RUNTIME = 3
+ }
+ }
+
+ /** Properties of a MessageOptions. */
+ interface IMessageOptions {
+
+ /** MessageOptions messageSetWireFormat */
+ messageSetWireFormat?: (boolean|null);
+
+ /** MessageOptions noStandardDescriptorAccessor */
+ noStandardDescriptorAccessor?: (boolean|null);
+
+ /** MessageOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MessageOptions mapEntry */
+ mapEntry?: (boolean|null);
+
+ /** MessageOptions deprecatedLegacyJsonFieldConflicts */
+ deprecatedLegacyJsonFieldConflicts?: (boolean|null);
+
+ /** MessageOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** MessageOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MessageOptions .google.api.resource */
+ ".google.api.resource"?: (google.api.IResourceDescriptor|null);
+ }
+
+ /** Represents a MessageOptions. */
+ class MessageOptions implements IMessageOptions {
+
+ /**
+ * Constructs a new MessageOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMessageOptions);
+
+ /** MessageOptions messageSetWireFormat. */
+ public messageSetWireFormat: boolean;
+
+ /** MessageOptions noStandardDescriptorAccessor. */
+ public noStandardDescriptorAccessor: boolean;
+
+ /** MessageOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MessageOptions mapEntry. */
+ public mapEntry: boolean;
+
+ /** MessageOptions deprecatedLegacyJsonFieldConflicts. */
+ public deprecatedLegacyJsonFieldConflicts: boolean;
+
+ /** MessageOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** MessageOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MessageOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MessageOptions instance
+ */
+ public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
+
+ /**
+ * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MessageOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MessageOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions;
+
+ /**
+ * Verifies a MessageOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MessageOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
+
+ /**
+ * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
+ * @param message MessageOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MessageOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MessageOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldOptions. */
+ interface IFieldOptions {
+
+ /** FieldOptions ctype */
+ ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null);
+
+ /** FieldOptions packed */
+ packed?: (boolean|null);
+
+ /** FieldOptions jstype */
+ jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null);
+
+ /** FieldOptions lazy */
+ lazy?: (boolean|null);
+
+ /** FieldOptions unverifiedLazy */
+ unverifiedLazy?: (boolean|null);
+
+ /** FieldOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FieldOptions weak */
+ weak?: (boolean|null);
+
+ /** FieldOptions debugRedact */
+ debugRedact?: (boolean|null);
+
+ /** FieldOptions retention */
+ retention?: (google.protobuf.FieldOptions.OptionRetention|keyof typeof google.protobuf.FieldOptions.OptionRetention|null);
+
+ /** FieldOptions targets */
+ targets?: (google.protobuf.FieldOptions.OptionTargetType[]|null);
+
+ /** FieldOptions editionDefaults */
+ editionDefaults?: (google.protobuf.FieldOptions.IEditionDefault[]|null);
+
+ /** FieldOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** FieldOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FieldOptions .google.api.fieldBehavior */
+ ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
+
+ /** FieldOptions .google.api.resourceReference */
+ ".google.api.resourceReference"?: (google.api.IResourceReference|null);
+ }
+
+ /** Represents a FieldOptions. */
+ class FieldOptions implements IFieldOptions {
+
+ /**
+ * Constructs a new FieldOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldOptions);
+
+ /** FieldOptions ctype. */
+ public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
+
+ /** FieldOptions packed. */
+ public packed: boolean;
+
+ /** FieldOptions jstype. */
+ public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
+
+ /** FieldOptions lazy. */
+ public lazy: boolean;
+
+ /** FieldOptions unverifiedLazy. */
+ public unverifiedLazy: boolean;
+
+ /** FieldOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FieldOptions weak. */
+ public weak: boolean;
+
+ /** FieldOptions debugRedact. */
+ public debugRedact: boolean;
+
+ /** FieldOptions retention. */
+ public retention: (google.protobuf.FieldOptions.OptionRetention|keyof typeof google.protobuf.FieldOptions.OptionRetention);
+
+ /** FieldOptions targets. */
+ public targets: google.protobuf.FieldOptions.OptionTargetType[];
+
+ /** FieldOptions editionDefaults. */
+ public editionDefaults: google.protobuf.FieldOptions.IEditionDefault[];
+
+ /** FieldOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** FieldOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FieldOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldOptions instance
+ */
+ public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
+
+ /**
+ * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
+
+ /**
+ * Verifies a FieldOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
+
+ /**
+ * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
+ * @param message FieldOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldOptions {
+
+ /** CType enum. */
+ enum CType {
+ STRING = 0,
+ CORD = 1,
+ STRING_PIECE = 2
+ }
+
+ /** JSType enum. */
+ enum JSType {
+ JS_NORMAL = 0,
+ JS_STRING = 1,
+ JS_NUMBER = 2
+ }
+
+ /** OptionRetention enum. */
+ enum OptionRetention {
+ RETENTION_UNKNOWN = 0,
+ RETENTION_RUNTIME = 1,
+ RETENTION_SOURCE = 2
+ }
+
+ /** OptionTargetType enum. */
+ enum OptionTargetType {
+ TARGET_TYPE_UNKNOWN = 0,
+ TARGET_TYPE_FILE = 1,
+ TARGET_TYPE_EXTENSION_RANGE = 2,
+ TARGET_TYPE_MESSAGE = 3,
+ TARGET_TYPE_FIELD = 4,
+ TARGET_TYPE_ONEOF = 5,
+ TARGET_TYPE_ENUM = 6,
+ TARGET_TYPE_ENUM_ENTRY = 7,
+ TARGET_TYPE_SERVICE = 8,
+ TARGET_TYPE_METHOD = 9
+ }
+
+ /** Properties of an EditionDefault. */
+ interface IEditionDefault {
+
+ /** EditionDefault edition */
+ edition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+
+ /** EditionDefault value */
+ value?: (string|null);
+ }
+
+ /** Represents an EditionDefault. */
+ class EditionDefault implements IEditionDefault {
+
+ /**
+ * Constructs a new EditionDefault.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.FieldOptions.IEditionDefault);
+
+ /** EditionDefault edition. */
+ public edition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /** EditionDefault value. */
+ public value: string;
+
+ /**
+ * Creates a new EditionDefault instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EditionDefault instance
+ */
+ public static create(properties?: google.protobuf.FieldOptions.IEditionDefault): google.protobuf.FieldOptions.EditionDefault;
+
+ /**
+ * Encodes the specified EditionDefault message. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages.
+ * @param message EditionDefault message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.FieldOptions.IEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages.
+ * @param message EditionDefault message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.FieldOptions.IEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EditionDefault message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EditionDefault
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions.EditionDefault;
+
+ /**
+ * Decodes an EditionDefault message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EditionDefault
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions.EditionDefault;
+
+ /**
+ * Verifies an EditionDefault message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EditionDefault message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EditionDefault
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions.EditionDefault;
+
+ /**
+ * Creates a plain object from an EditionDefault message. Also converts values to other types if specified.
+ * @param message EditionDefault
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions.EditionDefault, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EditionDefault to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EditionDefault
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an OneofOptions. */
+ interface IOneofOptions {
+
+ /** OneofOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** OneofOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an OneofOptions. */
+ class OneofOptions implements IOneofOptions {
+
+ /**
+ * Constructs a new OneofOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofOptions);
+
+ /** OneofOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** OneofOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new OneofOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofOptions instance
+ */
+ public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
+
+ /**
+ * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions;
+
+ /**
+ * Verifies an OneofOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
+
+ /**
+ * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
+ * @param message OneofOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumOptions. */
+ interface IEnumOptions {
+
+ /** EnumOptions allowAlias */
+ allowAlias?: (boolean|null);
+
+ /** EnumOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumOptions deprecatedLegacyJsonFieldConflicts */
+ deprecatedLegacyJsonFieldConflicts?: (boolean|null);
+
+ /** EnumOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumOptions. */
+ class EnumOptions implements IEnumOptions {
+
+ /**
+ * Constructs a new EnumOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumOptions);
+
+ /** EnumOptions allowAlias. */
+ public allowAlias: boolean;
+
+ /** EnumOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumOptions deprecatedLegacyJsonFieldConflicts. */
+ public deprecatedLegacyJsonFieldConflicts: boolean;
+
+ /** EnumOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
+
+ /**
+ * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions;
+
+ /**
+ * Verifies an EnumOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
+
+ /**
+ * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
+ * @param message EnumOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumValueOptions. */
+ interface IEnumValueOptions {
+
+ /** EnumValueOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumValueOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumValueOptions debugRedact */
+ debugRedact?: (boolean|null);
+
+ /** EnumValueOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumValueOptions. */
+ class EnumValueOptions implements IEnumValueOptions {
+
+ /**
+ * Constructs a new EnumValueOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueOptions);
+
+ /** EnumValueOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumValueOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumValueOptions debugRedact. */
+ public debugRedact: boolean;
+
+ /** EnumValueOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumValueOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
+
+ /**
+ * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions;
+
+ /**
+ * Verifies an EnumValueOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
+
+ /**
+ * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
+ * @param message EnumValueOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceOptions. */
+ interface IServiceOptions {
+
+ /** ServiceOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** ServiceOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** ServiceOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** ServiceOptions .google.api.defaultHost */
+ ".google.api.defaultHost"?: (string|null);
+
+ /** ServiceOptions .google.api.oauthScopes */
+ ".google.api.oauthScopes"?: (string|null);
+
+ /** 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|string|null);
+
+ /** UninterpretedOption aggregateValue */
+ aggregateValue?: (string|null);
+ }
+
+ /** Represents an UninterpretedOption. */
+ class UninterpretedOption implements IUninterpretedOption {
+
+ /**
+ * Constructs a new UninterpretedOption.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUninterpretedOption);
+
+ /** UninterpretedOption name. */
+ public name: google.protobuf.UninterpretedOption.INamePart[];
+
+ /** UninterpretedOption identifierValue. */
+ public identifierValue: string;
+
+ /** UninterpretedOption positiveIntValue. */
+ public positiveIntValue: (number|Long|string);
+
+ /** UninterpretedOption negativeIntValue. */
+ public negativeIntValue: (number|Long|string);
+
+ /** UninterpretedOption doubleValue. */
+ public doubleValue: number;
+
+ /** UninterpretedOption stringValue. */
+ public stringValue: (Uint8Array|string);
+
+ /** UninterpretedOption aggregateValue. */
+ public aggregateValue: string;
+
+ /**
+ * Creates a new UninterpretedOption instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UninterpretedOption instance
+ */
+ public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
+
+ /**
+ * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption;
+
+ /**
+ * Verifies an UninterpretedOption message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UninterpretedOption
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
+
+ /**
+ * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
+ * @param message UninterpretedOption
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UninterpretedOption to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UninterpretedOption
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace UninterpretedOption {
+
+ /** Properties of a NamePart. */
+ interface INamePart {
+
+ /** NamePart namePart */
+ namePart: string;
+
+ /** NamePart isExtension */
+ isExtension: boolean;
+ }
+
+ /** Represents a NamePart. */
+ class NamePart implements INamePart {
+
+ /**
+ * Constructs a new NamePart.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
+
+ /** NamePart namePart. */
+ public namePart: string;
+
+ /** NamePart isExtension. */
+ public isExtension: boolean;
+
+ /**
+ * Creates a new NamePart instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NamePart instance
+ */
+ public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Verifies a NamePart message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NamePart message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NamePart
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Creates a plain object from a NamePart message. Also converts values to other types if specified.
+ * @param message NamePart
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NamePart to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NamePart
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a FeatureSet. */
+ interface IFeatureSet {
+
+ /** FeatureSet fieldPresence */
+ fieldPresence?: (google.protobuf.FeatureSet.FieldPresence|keyof typeof google.protobuf.FeatureSet.FieldPresence|null);
+
+ /** FeatureSet enumType */
+ enumType?: (google.protobuf.FeatureSet.EnumType|keyof typeof google.protobuf.FeatureSet.EnumType|null);
+
+ /** FeatureSet repeatedFieldEncoding */
+ repeatedFieldEncoding?: (google.protobuf.FeatureSet.RepeatedFieldEncoding|keyof typeof google.protobuf.FeatureSet.RepeatedFieldEncoding|null);
+
+ /** FeatureSet utf8Validation */
+ utf8Validation?: (google.protobuf.FeatureSet.Utf8Validation|keyof typeof google.protobuf.FeatureSet.Utf8Validation|null);
+
+ /** FeatureSet messageEncoding */
+ messageEncoding?: (google.protobuf.FeatureSet.MessageEncoding|keyof typeof google.protobuf.FeatureSet.MessageEncoding|null);
+
+ /** FeatureSet jsonFormat */
+ jsonFormat?: (google.protobuf.FeatureSet.JsonFormat|keyof typeof google.protobuf.FeatureSet.JsonFormat|null);
+ }
+
+ /** Represents a FeatureSet. */
+ class FeatureSet implements IFeatureSet {
+
+ /**
+ * Constructs a new FeatureSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFeatureSet);
+
+ /** FeatureSet fieldPresence. */
+ public fieldPresence: (google.protobuf.FeatureSet.FieldPresence|keyof typeof google.protobuf.FeatureSet.FieldPresence);
+
+ /** FeatureSet enumType. */
+ public enumType: (google.protobuf.FeatureSet.EnumType|keyof typeof google.protobuf.FeatureSet.EnumType);
+
+ /** FeatureSet repeatedFieldEncoding. */
+ public repeatedFieldEncoding: (google.protobuf.FeatureSet.RepeatedFieldEncoding|keyof typeof google.protobuf.FeatureSet.RepeatedFieldEncoding);
+
+ /** FeatureSet utf8Validation. */
+ public utf8Validation: (google.protobuf.FeatureSet.Utf8Validation|keyof typeof google.protobuf.FeatureSet.Utf8Validation);
+
+ /** FeatureSet messageEncoding. */
+ public messageEncoding: (google.protobuf.FeatureSet.MessageEncoding|keyof typeof google.protobuf.FeatureSet.MessageEncoding);
+
+ /** FeatureSet jsonFormat. */
+ public jsonFormat: (google.protobuf.FeatureSet.JsonFormat|keyof typeof google.protobuf.FeatureSet.JsonFormat);
+
+ /**
+ * Creates a new FeatureSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FeatureSet instance
+ */
+ public static create(properties?: google.protobuf.IFeatureSet): google.protobuf.FeatureSet;
+
+ /**
+ * Encodes the specified FeatureSet message. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages.
+ * @param message FeatureSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFeatureSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FeatureSet message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages.
+ * @param message FeatureSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFeatureSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FeatureSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FeatureSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FeatureSet;
+
+ /**
+ * Decodes a FeatureSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FeatureSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FeatureSet;
+
+ /**
+ * Verifies a FeatureSet message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FeatureSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FeatureSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSet;
+
+ /**
+ * Creates a plain object from a FeatureSet message. Also converts values to other types if specified.
+ * @param message FeatureSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FeatureSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FeatureSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FeatureSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FeatureSet {
+
+ /** FieldPresence enum. */
+ enum FieldPresence {
+ FIELD_PRESENCE_UNKNOWN = 0,
+ EXPLICIT = 1,
+ IMPLICIT = 2,
+ LEGACY_REQUIRED = 3
+ }
+
+ /** EnumType enum. */
+ enum EnumType {
+ ENUM_TYPE_UNKNOWN = 0,
+ OPEN = 1,
+ CLOSED = 2
+ }
+
+ /** RepeatedFieldEncoding enum. */
+ enum RepeatedFieldEncoding {
+ REPEATED_FIELD_ENCODING_UNKNOWN = 0,
+ PACKED = 1,
+ EXPANDED = 2
+ }
+
+ /** Utf8Validation enum. */
+ enum Utf8Validation {
+ UTF8_VALIDATION_UNKNOWN = 0,
+ VERIFY = 2,
+ NONE = 3
+ }
+
+ /** MessageEncoding enum. */
+ enum MessageEncoding {
+ MESSAGE_ENCODING_UNKNOWN = 0,
+ LENGTH_PREFIXED = 1,
+ DELIMITED = 2
+ }
+
+ /** JsonFormat enum. */
+ enum JsonFormat {
+ JSON_FORMAT_UNKNOWN = 0,
+ ALLOW = 1,
+ LEGACY_BEST_EFFORT = 2
+ }
+ }
+
+ /** Properties of a FeatureSetDefaults. */
+ interface IFeatureSetDefaults {
+
+ /** FeatureSetDefaults defaults */
+ defaults?: (google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault[]|null);
+
+ /** FeatureSetDefaults minimumEdition */
+ minimumEdition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+
+ /** FeatureSetDefaults maximumEdition */
+ maximumEdition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+ }
+
+ /** Represents a FeatureSetDefaults. */
+ class FeatureSetDefaults implements IFeatureSetDefaults {
+
+ /**
+ * Constructs a new FeatureSetDefaults.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFeatureSetDefaults);
+
+ /** FeatureSetDefaults defaults. */
+ public defaults: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault[];
+
+ /** FeatureSetDefaults minimumEdition. */
+ public minimumEdition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /** FeatureSetDefaults maximumEdition. */
+ public maximumEdition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /**
+ * Creates a new FeatureSetDefaults instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FeatureSetDefaults instance
+ */
+ public static create(properties?: google.protobuf.IFeatureSetDefaults): google.protobuf.FeatureSetDefaults;
+
+ /**
+ * Encodes the specified FeatureSetDefaults message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages.
+ * @param message FeatureSetDefaults message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFeatureSetDefaults, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FeatureSetDefaults message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages.
+ * @param message FeatureSetDefaults message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFeatureSetDefaults, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FeatureSetDefaults message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FeatureSetDefaults
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FeatureSetDefaults;
+
+ /**
+ * Decodes a FeatureSetDefaults message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FeatureSetDefaults
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FeatureSetDefaults;
+
+ /**
+ * Verifies a FeatureSetDefaults message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FeatureSetDefaults message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FeatureSetDefaults
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSetDefaults;
+
+ /**
+ * Creates a plain object from a FeatureSetDefaults message. Also converts values to other types if specified.
+ * @param message FeatureSetDefaults
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FeatureSetDefaults, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FeatureSetDefaults to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FeatureSetDefaults
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FeatureSetDefaults {
+
+ /** Properties of a FeatureSetEditionDefault. */
+ interface IFeatureSetEditionDefault {
+
+ /** FeatureSetEditionDefault edition */
+ edition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+
+ /** FeatureSetEditionDefault features */
+ features?: (google.protobuf.IFeatureSet|null);
+ }
+
+ /** Represents a FeatureSetEditionDefault. */
+ class FeatureSetEditionDefault implements IFeatureSetEditionDefault {
+
+ /**
+ * Constructs a new FeatureSetEditionDefault.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault);
+
+ /** FeatureSetEditionDefault edition. */
+ public edition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /** FeatureSetEditionDefault features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /**
+ * Creates a new FeatureSetEditionDefault instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FeatureSetEditionDefault instance
+ */
+ public static create(properties?: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
+
+ /**
+ * Encodes the specified FeatureSetEditionDefault message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages.
+ * @param message FeatureSetEditionDefault message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FeatureSetEditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages.
+ * @param message FeatureSetEditionDefault message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FeatureSetEditionDefault message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FeatureSetEditionDefault
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
+
+ /**
+ * Decodes a FeatureSetEditionDefault message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FeatureSetEditionDefault
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
+
+ /**
+ * Verifies a FeatureSetEditionDefault message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FeatureSetEditionDefault message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FeatureSetEditionDefault
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
+
+ /**
+ * Creates a plain object from a FeatureSetEditionDefault message. Also converts values to other types if specified.
+ * @param message FeatureSetEditionDefault
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FeatureSetEditionDefault to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FeatureSetEditionDefault
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a SourceCodeInfo. */
+ interface ISourceCodeInfo {
+
+ /** SourceCodeInfo location */
+ location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
+ }
+
+ /** Represents a SourceCodeInfo. */
+ class SourceCodeInfo implements ISourceCodeInfo {
+
+ /**
+ * Constructs a new SourceCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ISourceCodeInfo);
+
+ /** SourceCodeInfo location. */
+ public location: google.protobuf.SourceCodeInfo.ILocation[];
+
+ /**
+ * Creates a new SourceCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SourceCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Verifies a SourceCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SourceCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
+ * @param message SourceCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SourceCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SourceCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SourceCodeInfo {
+
+ /** Properties of a Location. */
+ interface ILocation {
+
+ /** Location path */
+ path?: (number[]|null);
+
+ /** Location span */
+ span?: (number[]|null);
+
+ /** Location leadingComments */
+ leadingComments?: (string|null);
+
+ /** Location trailingComments */
+ trailingComments?: (string|null);
+
+ /** Location leadingDetachedComments */
+ leadingDetachedComments?: (string[]|null);
+ }
+
+ /** Represents a Location. */
+ class Location implements ILocation {
+
+ /**
+ * Constructs a new Location.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
+
+ /** Location path. */
+ public path: number[];
+
+ /** Location span. */
+ public span: number[];
+
+ /** Location leadingComments. */
+ public leadingComments: string;
+
+ /** Location trailingComments. */
+ public trailingComments: string;
+
+ /** Location leadingDetachedComments. */
+ public leadingDetachedComments: string[];
+
+ /**
+ * Creates a new Location instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Location instance
+ */
+ public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Verifies a Location message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Location message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Location
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Creates a plain object from a Location message. Also converts values to other types if specified.
+ * @param message Location
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Location to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Location
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a GeneratedCodeInfo. */
+ interface IGeneratedCodeInfo {
+
+ /** GeneratedCodeInfo annotation */
+ annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
+ }
+
+ /** Represents a GeneratedCodeInfo. */
+ class GeneratedCodeInfo implements IGeneratedCodeInfo {
+
+ /**
+ * Constructs a new GeneratedCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IGeneratedCodeInfo);
+
+ /** GeneratedCodeInfo annotation. */
+ public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
+
+ /**
+ * Creates a new GeneratedCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GeneratedCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Verifies a GeneratedCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GeneratedCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
+ * @param message GeneratedCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GeneratedCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GeneratedCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace GeneratedCodeInfo {
+
+ /** Properties of an Annotation. */
+ interface IAnnotation {
+
+ /** Annotation path */
+ path?: (number[]|null);
+
+ /** Annotation sourceFile */
+ sourceFile?: (string|null);
+
+ /** Annotation begin */
+ begin?: (number|null);
+
+ /** Annotation end */
+ end?: (number|null);
+
+ /** Annotation semantic */
+ semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null);
+ }
+
+ /** Represents an Annotation. */
+ class Annotation implements IAnnotation {
+
+ /**
+ * Constructs a new Annotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
+
+ /** Annotation path. */
+ public path: number[];
+
+ /** Annotation sourceFile. */
+ public sourceFile: string;
+
+ /** Annotation begin. */
+ public begin: number;
+
+ /** Annotation end. */
+ public end: number;
+
+ /** Annotation semantic. */
+ public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic);
+
+ /**
+ * Creates a new Annotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Annotation instance
+ */
+ public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Verifies an Annotation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Annotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Creates a plain object from an Annotation message. Also converts values to other types if specified.
+ * @param message Annotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Annotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Annotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Annotation {
+
+ /** Semantic enum. */
+ enum Semantic {
+ NONE = 0,
+ SET = 1,
+ ALIAS = 2
+ }
+ }
+ }
+
+ /** Properties of a 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/owl-bot-staging/google-cloud-servicehealth/v1/protos/protos.js b/owl-bot-staging/google-cloud-servicehealth/v1/protos/protos.js
new file mode 100644
index 00000000000..a30fbd26817
--- /dev/null
+++ b/owl-bot-staging/google-cloud-servicehealth/v1/protos/protos.js
@@ -0,0 +1,23949 @@
+// Copyright 2024 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
+(function(global, factory) { /* global define, require, module */
+
+ /* AMD */ if (typeof define === 'function' && define.amd)
+ define(["protobufjs/minimal"], factory);
+
+ /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports)
+ module.exports = factory(require("google-gax/build/src/protobuf").protobufMinimal);
+
+})(this, function($protobuf) {
+ "use strict";
+
+ // Common aliases
+ var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;
+
+ // Exported root namespace
+ var $root = $protobuf.roots._google_cloud_servicehealth_protos || ($protobuf.roots._google_cloud_servicehealth_protos = {});
+
+ $root.google = (function() {
+
+ /**
+ * Namespace google.
+ * @exports google
+ * @namespace
+ */
+ var google = {};
+
+ google.cloud = (function() {
+
+ /**
+ * Namespace cloud.
+ * @memberof google
+ * @namespace
+ */
+ var cloud = {};
+
+ cloud.servicehealth = (function() {
+
+ /**
+ * Namespace servicehealth.
+ * @memberof google.cloud
+ * @namespace
+ */
+ var servicehealth = {};
+
+ servicehealth.v1 = (function() {
+
+ /**
+ * Namespace v1.
+ * @memberof google.cloud.servicehealth
+ * @namespace
+ */
+ var v1 = {};
+
+ v1.Event = (function() {
+
+ /**
+ * Properties of an Event.
+ * @memberof google.cloud.servicehealth.v1
+ * @interface IEvent
+ * @property {string|null} [name] Event name
+ * @property {string|null} [title] Event title
+ * @property {string|null} [description] Event description
+ * @property {google.cloud.servicehealth.v1.Event.EventCategory|null} [category] Event category
+ * @property {google.cloud.servicehealth.v1.Event.DetailedCategory|null} [detailedCategory] Event detailedCategory
+ * @property {google.cloud.servicehealth.v1.Event.State|null} [state] Event state
+ * @property {google.cloud.servicehealth.v1.Event.DetailedState|null} [detailedState] Event detailedState
+ * @property {Array.|null} [eventImpacts] Event eventImpacts
+ * @property {google.cloud.servicehealth.v1.Event.Relevance|null} [relevance] Event relevance
+ * @property {Array.|null} [updates] Event updates
+ * @property {string|null} [parentEvent] Event parentEvent
+ * @property {google.protobuf.ITimestamp|null} [updateTime] Event updateTime
+ * @property {google.protobuf.ITimestamp|null} [startTime] Event startTime
+ * @property {google.protobuf.ITimestamp|null} [endTime] Event endTime
+ * @property {google.protobuf.ITimestamp|null} [nextUpdateTime] Event nextUpdateTime
+ */
+
+ /**
+ * Constructs a new Event.
+ * @memberof google.cloud.servicehealth.v1
+ * @classdesc Represents an Event.
+ * @implements IEvent
+ * @constructor
+ * @param {google.cloud.servicehealth.v1.IEvent=} [properties] Properties to set
+ */
+ function Event(properties) {
+ this.eventImpacts = [];
+ this.updates = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Event name.
+ * @member {string} name
+ * @memberof google.cloud.servicehealth.v1.Event
+ * @instance
+ */
+ Event.prototype.name = "";
+
+ /**
+ * Event title.
+ * @member {string} title
+ * @memberof google.cloud.servicehealth.v1.Event
+ * @instance
+ */
+ Event.prototype.title = "";
+
+ /**
+ * Event description.
+ * @member {string} description
+ * @memberof google.cloud.servicehealth.v1.Event
+ * @instance
+ */
+ Event.prototype.description = "";
+
+ /**
+ * Event category.
+ * @member {google.cloud.servicehealth.v1.Event.EventCategory} category
+ * @memberof google.cloud.servicehealth.v1.Event
+ * @instance
+ */
+ Event.prototype.category = 0;
+
+ /**
+ * Event detailedCategory.
+ * @member {google.cloud.servicehealth.v1.Event.DetailedCategory} detailedCategory
+ * @memberof google.cloud.servicehealth.v1.Event
+ * @instance
+ */
+ Event.prototype.detailedCategory = 0;
+
+ /**
+ * Event state.
+ * @member {google.cloud.servicehealth.v1.Event.State} state
+ * @memberof google.cloud.servicehealth.v1.Event
+ * @instance
+ */
+ Event.prototype.state = 0;
+
+ /**
+ * Event detailedState.
+ * @member {google.cloud.servicehealth.v1.Event.DetailedState} detailedState
+ * @memberof google.cloud.servicehealth.v1.Event
+ * @instance
+ */
+ Event.prototype.detailedState = 0;
+
+ /**
+ * Event eventImpacts.
+ * @member {Array.} eventImpacts
+ * @memberof google.cloud.servicehealth.v1.Event
+ * @instance
+ */
+ Event.prototype.eventImpacts = $util.emptyArray;
+
+ /**
+ * Event relevance.
+ * @member {google.cloud.servicehealth.v1.Event.Relevance} relevance
+ * @memberof google.cloud.servicehealth.v1.Event
+ * @instance
+ */
+ Event.prototype.relevance = 0;
+
+ /**
+ * Event updates.
+ * @member {Array.} updates
+ * @memberof google.cloud.servicehealth.v1.Event
+ * @instance
+ */
+ Event.prototype.updates = $util.emptyArray;
+
+ /**
+ * Event parentEvent.
+ * @member {string} parentEvent
+ * @memberof google.cloud.servicehealth.v1.Event
+ * @instance
+ */
+ Event.prototype.parentEvent = "";
+
+ /**
+ * Event updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.servicehealth.v1.Event
+ * @instance
+ */
+ Event.prototype.updateTime = null;
+
+ /**
+ * Event startTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} startTime
+ * @memberof google.cloud.servicehealth.v1.Event
+ * @instance
+ */
+ Event.prototype.startTime = null;
+
+ /**
+ * Event endTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} endTime
+ * @memberof google.cloud.servicehealth.v1.Event
+ * @instance
+ */
+ Event.prototype.endTime = null;
+
+ /**
+ * Event nextUpdateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} nextUpdateTime
+ * @memberof google.cloud.servicehealth.v1.Event
+ * @instance
+ */
+ Event.prototype.nextUpdateTime = null;
+
+ /**
+ * Creates a new Event instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.servicehealth.v1.Event
+ * @static
+ * @param {google.cloud.servicehealth.v1.IEvent=} [properties] Properties to set
+ * @returns {google.cloud.servicehealth.v1.Event} Event instance
+ */
+ Event.create = function create(properties) {
+ return new Event(properties);
+ };
+
+ /**
+ * Encodes the specified Event message. Does not implicitly {@link google.cloud.servicehealth.v1.Event.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.servicehealth.v1.Event
+ * @static
+ * @param {google.cloud.servicehealth.v1.IEvent} message Event message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Event.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.title != null && Object.hasOwnProperty.call(message, "title"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.title);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.description);
+ if (message.category != null && Object.hasOwnProperty.call(message, "category"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.category);
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state);
+ if (message.relevance != null && Object.hasOwnProperty.call(message, "relevance"))
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.relevance);
+ if (message.updates != null && message.updates.length)
+ for (var i = 0; i < message.updates.length; ++i)
+ $root.google.cloud.servicehealth.v1.EventUpdate.encode(message.updates[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
+ if (message.parentEvent != null && Object.hasOwnProperty.call(message, "parentEvent"))
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.parentEvent);
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
+ if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime"))
+ $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
+ if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime"))
+ $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
+ if (message.nextUpdateTime != null && Object.hasOwnProperty.call(message, "nextUpdateTime"))
+ $root.google.protobuf.Timestamp.encode(message.nextUpdateTime, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
+ if (message.detailedState != null && Object.hasOwnProperty.call(message, "detailedState"))
+ writer.uint32(/* id 19, wireType 0 =*/152).int32(message.detailedState);
+ if (message.eventImpacts != null && message.eventImpacts.length)
+ for (var i = 0; i < message.eventImpacts.length; ++i)
+ $root.google.cloud.servicehealth.v1.EventImpact.encode(message.eventImpacts[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
+ if (message.detailedCategory != null && Object.hasOwnProperty.call(message, "detailedCategory"))
+ writer.uint32(/* id 21, wireType 0 =*/168).int32(message.detailedCategory);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Event message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.Event.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.servicehealth.v1.Event
+ * @static
+ * @param {google.cloud.servicehealth.v1.IEvent} message Event message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Event.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an Event message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.servicehealth.v1.Event
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.servicehealth.v1.Event} Event
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Event.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.servicehealth.v1.Event();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.title = reader.string();
+ break;
+ }
+ case 3: {
+ message.description = reader.string();
+ break;
+ }
+ case 4: {
+ message.category = reader.int32();
+ break;
+ }
+ case 21: {
+ message.detailedCategory = reader.int32();
+ break;
+ }
+ case 5: {
+ message.state = reader.int32();
+ break;
+ }
+ case 19: {
+ message.detailedState = reader.int32();
+ break;
+ }
+ case 20: {
+ if (!(message.eventImpacts && message.eventImpacts.length))
+ message.eventImpacts = [];
+ message.eventImpacts.push($root.google.cloud.servicehealth.v1.EventImpact.decode(reader, reader.uint32()));
+ break;
+ }
+ case 8: {
+ message.relevance = reader.int32();
+ break;
+ }
+ case 9: {
+ if (!(message.updates && message.updates.length))
+ message.updates = [];
+ message.updates.push($root.google.cloud.servicehealth.v1.EventUpdate.decode(reader, reader.uint32()));
+ break;
+ }
+ case 10: {
+ message.parentEvent = reader.string();
+ break;
+ }
+ case 12: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 13: {
+ message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 14: {
+ message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 15: {
+ message.nextUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Event message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.servicehealth.v1.Event
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.servicehealth.v1.Event} Event
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Event.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Event message.
+ * @function verify
+ * @memberof google.cloud.servicehealth.v1.Event
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Event.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.title != null && message.hasOwnProperty("title"))
+ if (!$util.isString(message.title))
+ return "title: string expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.category != null && message.hasOwnProperty("category"))
+ switch (message.category) {
+ default:
+ return "category: enum value expected";
+ case 0:
+ case 2:
+ break;
+ }
+ if (message.detailedCategory != null && message.hasOwnProperty("detailedCategory"))
+ switch (message.detailedCategory) {
+ default:
+ return "detailedCategory: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.detailedState != null && message.hasOwnProperty("detailedState"))
+ switch (message.detailedState) {
+ default:
+ return "detailedState: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 9:
+ case 10:
+ break;
+ }
+ if (message.eventImpacts != null && message.hasOwnProperty("eventImpacts")) {
+ if (!Array.isArray(message.eventImpacts))
+ return "eventImpacts: array expected";
+ for (var i = 0; i < message.eventImpacts.length; ++i) {
+ var error = $root.google.cloud.servicehealth.v1.EventImpact.verify(message.eventImpacts[i]);
+ if (error)
+ return "eventImpacts." + error;
+ }
+ }
+ if (message.relevance != null && message.hasOwnProperty("relevance"))
+ switch (message.relevance) {
+ default:
+ return "relevance: enum value expected";
+ case 0:
+ case 2:
+ case 6:
+ case 7:
+ case 8:
+ case 9:
+ break;
+ }
+ if (message.updates != null && message.hasOwnProperty("updates")) {
+ if (!Array.isArray(message.updates))
+ return "updates: array expected";
+ for (var i = 0; i < message.updates.length; ++i) {
+ var error = $root.google.cloud.servicehealth.v1.EventUpdate.verify(message.updates[i]);
+ if (error)
+ return "updates." + error;
+ }
+ }
+ if (message.parentEvent != null && message.hasOwnProperty("parentEvent"))
+ if (!$util.isString(message.parentEvent))
+ return "parentEvent: string expected";
+ if (message.updateTime != null && message.hasOwnProperty("updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + error;
+ }
+ if (message.startTime != null && message.hasOwnProperty("startTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.startTime);
+ if (error)
+ return "startTime." + error;
+ }
+ if (message.endTime != null && message.hasOwnProperty("endTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.endTime);
+ if (error)
+ return "endTime." + error;
+ }
+ if (message.nextUpdateTime != null && message.hasOwnProperty("nextUpdateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.nextUpdateTime);
+ if (error)
+ return "nextUpdateTime." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an Event message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.servicehealth.v1.Event
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.servicehealth.v1.Event} Event
+ */
+ Event.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.servicehealth.v1.Event)
+ return object;
+ var message = new $root.google.cloud.servicehealth.v1.Event();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.title != null)
+ message.title = String(object.title);
+ if (object.description != null)
+ message.description = String(object.description);
+ switch (object.category) {
+ default:
+ if (typeof object.category === "number") {
+ message.category = object.category;
+ break;
+ }
+ break;
+ case "EVENT_CATEGORY_UNSPECIFIED":
+ case 0:
+ message.category = 0;
+ break;
+ case "INCIDENT":
+ case 2:
+ message.category = 2;
+ break;
+ }
+ switch (object.detailedCategory) {
+ default:
+ if (typeof object.detailedCategory === "number") {
+ message.detailedCategory = object.detailedCategory;
+ break;
+ }
+ break;
+ case "DETAILED_CATEGORY_UNSPECIFIED":
+ case 0:
+ message.detailedCategory = 0;
+ break;
+ case "CONFIRMED_INCIDENT":
+ case 1:
+ message.detailedCategory = 1;
+ break;
+ case "EMERGING_INCIDENT":
+ case 2:
+ message.detailedCategory = 2;
+ break;
+ }
+ switch (object.state) {
+ default:
+ if (typeof object.state === "number") {
+ message.state = object.state;
+ break;
+ }
+ break;
+ case "STATE_UNSPECIFIED":
+ case 0:
+ message.state = 0;
+ break;
+ case "ACTIVE":
+ case 1:
+ message.state = 1;
+ break;
+ case "CLOSED":
+ case 2:
+ message.state = 2;
+ break;
+ }
+ switch (object.detailedState) {
+ default:
+ if (typeof object.detailedState === "number") {
+ message.detailedState = object.detailedState;
+ break;
+ }
+ break;
+ case "DETAILED_STATE_UNSPECIFIED":
+ case 0:
+ message.detailedState = 0;
+ break;
+ case "EMERGING":
+ case 1:
+ message.detailedState = 1;
+ break;
+ case "CONFIRMED":
+ case 2:
+ message.detailedState = 2;
+ break;
+ case "RESOLVED":
+ case 3:
+ message.detailedState = 3;
+ break;
+ case "MERGED":
+ case 4:
+ message.detailedState = 4;
+ break;
+ case "AUTO_CLOSED":
+ case 9:
+ message.detailedState = 9;
+ break;
+ case "FALSE_POSITIVE":
+ case 10:
+ message.detailedState = 10;
+ break;
+ }
+ if (object.eventImpacts) {
+ if (!Array.isArray(object.eventImpacts))
+ throw TypeError(".google.cloud.servicehealth.v1.Event.eventImpacts: array expected");
+ message.eventImpacts = [];
+ for (var i = 0; i < object.eventImpacts.length; ++i) {
+ if (typeof object.eventImpacts[i] !== "object")
+ throw TypeError(".google.cloud.servicehealth.v1.Event.eventImpacts: object expected");
+ message.eventImpacts[i] = $root.google.cloud.servicehealth.v1.EventImpact.fromObject(object.eventImpacts[i]);
+ }
+ }
+ switch (object.relevance) {
+ default:
+ if (typeof object.relevance === "number") {
+ message.relevance = object.relevance;
+ break;
+ }
+ break;
+ case "RELEVANCE_UNSPECIFIED":
+ case 0:
+ message.relevance = 0;
+ break;
+ case "UNKNOWN":
+ case 2:
+ message.relevance = 2;
+ break;
+ case "NOT_IMPACTED":
+ case 6:
+ message.relevance = 6;
+ break;
+ case "PARTIALLY_RELATED":
+ case 7:
+ message.relevance = 7;
+ break;
+ case "RELATED":
+ case 8:
+ message.relevance = 8;
+ break;
+ case "IMPACTED":
+ case 9:
+ message.relevance = 9;
+ break;
+ }
+ if (object.updates) {
+ if (!Array.isArray(object.updates))
+ throw TypeError(".google.cloud.servicehealth.v1.Event.updates: array expected");
+ message.updates = [];
+ for (var i = 0; i < object.updates.length; ++i) {
+ if (typeof object.updates[i] !== "object")
+ throw TypeError(".google.cloud.servicehealth.v1.Event.updates: object expected");
+ message.updates[i] = $root.google.cloud.servicehealth.v1.EventUpdate.fromObject(object.updates[i]);
+ }
+ }
+ if (object.parentEvent != null)
+ message.parentEvent = String(object.parentEvent);
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.cloud.servicehealth.v1.Event.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.startTime != null) {
+ if (typeof object.startTime !== "object")
+ throw TypeError(".google.cloud.servicehealth.v1.Event.startTime: object expected");
+ message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime);
+ }
+ if (object.endTime != null) {
+ if (typeof object.endTime !== "object")
+ throw TypeError(".google.cloud.servicehealth.v1.Event.endTime: object expected");
+ message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime);
+ }
+ if (object.nextUpdateTime != null) {
+ if (typeof object.nextUpdateTime !== "object")
+ throw TypeError(".google.cloud.servicehealth.v1.Event.nextUpdateTime: object expected");
+ message.nextUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.nextUpdateTime);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Event message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.servicehealth.v1.Event
+ * @static
+ * @param {google.cloud.servicehealth.v1.Event} message Event
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Event.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.updates = [];
+ object.eventImpacts = [];
+ }
+ if (options.defaults) {
+ object.name = "";
+ object.title = "";
+ object.description = "";
+ object.category = options.enums === String ? "EVENT_CATEGORY_UNSPECIFIED" : 0;
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.relevance = options.enums === String ? "RELEVANCE_UNSPECIFIED" : 0;
+ object.parentEvent = "";
+ object.updateTime = null;
+ object.startTime = null;
+ object.endTime = null;
+ object.nextUpdateTime = null;
+ object.detailedState = options.enums === String ? "DETAILED_STATE_UNSPECIFIED" : 0;
+ object.detailedCategory = options.enums === String ? "DETAILED_CATEGORY_UNSPECIFIED" : 0;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.title != null && message.hasOwnProperty("title"))
+ object.title = message.title;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.category != null && message.hasOwnProperty("category"))
+ object.category = options.enums === String ? $root.google.cloud.servicehealth.v1.Event.EventCategory[message.category] === undefined ? message.category : $root.google.cloud.servicehealth.v1.Event.EventCategory[message.category] : message.category;
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.servicehealth.v1.Event.State[message.state] === undefined ? message.state : $root.google.cloud.servicehealth.v1.Event.State[message.state] : message.state;
+ if (message.relevance != null && message.hasOwnProperty("relevance"))
+ object.relevance = options.enums === String ? $root.google.cloud.servicehealth.v1.Event.Relevance[message.relevance] === undefined ? message.relevance : $root.google.cloud.servicehealth.v1.Event.Relevance[message.relevance] : message.relevance;
+ if (message.updates && message.updates.length) {
+ object.updates = [];
+ for (var j = 0; j < message.updates.length; ++j)
+ object.updates[j] = $root.google.cloud.servicehealth.v1.EventUpdate.toObject(message.updates[j], options);
+ }
+ if (message.parentEvent != null && message.hasOwnProperty("parentEvent"))
+ object.parentEvent = message.parentEvent;
+ if (message.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ if (message.startTime != null && message.hasOwnProperty("startTime"))
+ object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options);
+ if (message.endTime != null && message.hasOwnProperty("endTime"))
+ object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options);
+ if (message.nextUpdateTime != null && message.hasOwnProperty("nextUpdateTime"))
+ object.nextUpdateTime = $root.google.protobuf.Timestamp.toObject(message.nextUpdateTime, options);
+ if (message.detailedState != null && message.hasOwnProperty("detailedState"))
+ object.detailedState = options.enums === String ? $root.google.cloud.servicehealth.v1.Event.DetailedState[message.detailedState] === undefined ? message.detailedState : $root.google.cloud.servicehealth.v1.Event.DetailedState[message.detailedState] : message.detailedState;
+ if (message.eventImpacts && message.eventImpacts.length) {
+ object.eventImpacts = [];
+ for (var j = 0; j < message.eventImpacts.length; ++j)
+ object.eventImpacts[j] = $root.google.cloud.servicehealth.v1.EventImpact.toObject(message.eventImpacts[j], options);
+ }
+ if (message.detailedCategory != null && message.hasOwnProperty("detailedCategory"))
+ object.detailedCategory = options.enums === String ? $root.google.cloud.servicehealth.v1.Event.DetailedCategory[message.detailedCategory] === undefined ? message.detailedCategory : $root.google.cloud.servicehealth.v1.Event.DetailedCategory[message.detailedCategory] : message.detailedCategory;
+ return object;
+ };
+
+ /**
+ * Converts this Event to JSON.
+ * @function toJSON
+ * @memberof google.cloud.servicehealth.v1.Event
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Event.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Event
+ * @function getTypeUrl
+ * @memberof google.cloud.servicehealth.v1.Event
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Event.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.servicehealth.v1.Event";
+ };
+
+ /**
+ * EventCategory enum.
+ * @name google.cloud.servicehealth.v1.Event.EventCategory
+ * @enum {number}
+ * @property {number} EVENT_CATEGORY_UNSPECIFIED=0 EVENT_CATEGORY_UNSPECIFIED value
+ * @property {number} INCIDENT=2 INCIDENT value
+ */
+ Event.EventCategory = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "EVENT_CATEGORY_UNSPECIFIED"] = 0;
+ values[valuesById[2] = "INCIDENT"] = 2;
+ return values;
+ })();
+
+ /**
+ * DetailedCategory enum.
+ * @name google.cloud.servicehealth.v1.Event.DetailedCategory
+ * @enum {number}
+ * @property {number} DETAILED_CATEGORY_UNSPECIFIED=0 DETAILED_CATEGORY_UNSPECIFIED value
+ * @property {number} CONFIRMED_INCIDENT=1 CONFIRMED_INCIDENT value
+ * @property {number} EMERGING_INCIDENT=2 EMERGING_INCIDENT value
+ */
+ Event.DetailedCategory = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "DETAILED_CATEGORY_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "CONFIRMED_INCIDENT"] = 1;
+ values[valuesById[2] = "EMERGING_INCIDENT"] = 2;
+ return values;
+ })();
+
+ /**
+ * State enum.
+ * @name google.cloud.servicehealth.v1.Event.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} ACTIVE=1 ACTIVE value
+ * @property {number} CLOSED=2 CLOSED value
+ */
+ Event.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "ACTIVE"] = 1;
+ values[valuesById[2] = "CLOSED"] = 2;
+ return values;
+ })();
+
+ /**
+ * DetailedState enum.
+ * @name google.cloud.servicehealth.v1.Event.DetailedState
+ * @enum {number}
+ * @property {number} DETAILED_STATE_UNSPECIFIED=0 DETAILED_STATE_UNSPECIFIED value
+ * @property {number} EMERGING=1 EMERGING value
+ * @property {number} CONFIRMED=2 CONFIRMED value
+ * @property {number} RESOLVED=3 RESOLVED value
+ * @property {number} MERGED=4 MERGED value
+ * @property {number} AUTO_CLOSED=9 AUTO_CLOSED value
+ * @property {number} FALSE_POSITIVE=10 FALSE_POSITIVE value
+ */
+ Event.DetailedState = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "DETAILED_STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "EMERGING"] = 1;
+ values[valuesById[2] = "CONFIRMED"] = 2;
+ values[valuesById[3] = "RESOLVED"] = 3;
+ values[valuesById[4] = "MERGED"] = 4;
+ values[valuesById[9] = "AUTO_CLOSED"] = 9;
+ values[valuesById[10] = "FALSE_POSITIVE"] = 10;
+ return values;
+ })();
+
+ /**
+ * Relevance enum.
+ * @name google.cloud.servicehealth.v1.Event.Relevance
+ * @enum {number}
+ * @property {number} RELEVANCE_UNSPECIFIED=0 RELEVANCE_UNSPECIFIED value
+ * @property {number} UNKNOWN=2 UNKNOWN value
+ * @property {number} NOT_IMPACTED=6 NOT_IMPACTED value
+ * @property {number} PARTIALLY_RELATED=7 PARTIALLY_RELATED value
+ * @property {number} RELATED=8 RELATED value
+ * @property {number} IMPACTED=9 IMPACTED value
+ */
+ Event.Relevance = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "RELEVANCE_UNSPECIFIED"] = 0;
+ values[valuesById[2] = "UNKNOWN"] = 2;
+ values[valuesById[6] = "NOT_IMPACTED"] = 6;
+ values[valuesById[7] = "PARTIALLY_RELATED"] = 7;
+ values[valuesById[8] = "RELATED"] = 8;
+ values[valuesById[9] = "IMPACTED"] = 9;
+ return values;
+ })();
+
+ return Event;
+ })();
+
+ v1.OrganizationEvent = (function() {
+
+ /**
+ * Properties of an OrganizationEvent.
+ * @memberof google.cloud.servicehealth.v1
+ * @interface IOrganizationEvent
+ * @property {string|null} [name] OrganizationEvent name
+ * @property {string|null} [title] OrganizationEvent title
+ * @property {string|null} [description] OrganizationEvent description
+ * @property {google.cloud.servicehealth.v1.OrganizationEvent.EventCategory|null} [category] OrganizationEvent category
+ * @property {google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory|null} [detailedCategory] OrganizationEvent detailedCategory
+ * @property {google.cloud.servicehealth.v1.OrganizationEvent.State|null} [state] OrganizationEvent state
+ * @property {google.cloud.servicehealth.v1.OrganizationEvent.DetailedState|null} [detailedState] OrganizationEvent detailedState
+ * @property {Array.|null} [eventImpacts] OrganizationEvent eventImpacts
+ * @property {Array.|null} [updates] OrganizationEvent updates
+ * @property {string|null} [parentEvent] OrganizationEvent parentEvent
+ * @property {google.protobuf.ITimestamp|null} [updateTime] OrganizationEvent updateTime
+ * @property {google.protobuf.ITimestamp|null} [startTime] OrganizationEvent startTime
+ * @property {google.protobuf.ITimestamp|null} [endTime] OrganizationEvent endTime
+ * @property {google.protobuf.ITimestamp|null} [nextUpdateTime] OrganizationEvent nextUpdateTime
+ */
+
+ /**
+ * Constructs a new OrganizationEvent.
+ * @memberof google.cloud.servicehealth.v1
+ * @classdesc Represents an OrganizationEvent.
+ * @implements IOrganizationEvent
+ * @constructor
+ * @param {google.cloud.servicehealth.v1.IOrganizationEvent=} [properties] Properties to set
+ */
+ function OrganizationEvent(properties) {
+ this.eventImpacts = [];
+ this.updates = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * OrganizationEvent name.
+ * @member {string} name
+ * @memberof google.cloud.servicehealth.v1.OrganizationEvent
+ * @instance
+ */
+ OrganizationEvent.prototype.name = "";
+
+ /**
+ * OrganizationEvent title.
+ * @member {string} title
+ * @memberof google.cloud.servicehealth.v1.OrganizationEvent
+ * @instance
+ */
+ OrganizationEvent.prototype.title = "";
+
+ /**
+ * OrganizationEvent description.
+ * @member {string} description
+ * @memberof google.cloud.servicehealth.v1.OrganizationEvent
+ * @instance
+ */
+ OrganizationEvent.prototype.description = "";
+
+ /**
+ * OrganizationEvent category.
+ * @member {google.cloud.servicehealth.v1.OrganizationEvent.EventCategory} category
+ * @memberof google.cloud.servicehealth.v1.OrganizationEvent
+ * @instance
+ */
+ OrganizationEvent.prototype.category = 0;
+
+ /**
+ * OrganizationEvent detailedCategory.
+ * @member {google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory} detailedCategory
+ * @memberof google.cloud.servicehealth.v1.OrganizationEvent
+ * @instance
+ */
+ OrganizationEvent.prototype.detailedCategory = 0;
+
+ /**
+ * OrganizationEvent state.
+ * @member {google.cloud.servicehealth.v1.OrganizationEvent.State} state
+ * @memberof google.cloud.servicehealth.v1.OrganizationEvent
+ * @instance
+ */
+ OrganizationEvent.prototype.state = 0;
+
+ /**
+ * OrganizationEvent detailedState.
+ * @member {google.cloud.servicehealth.v1.OrganizationEvent.DetailedState} detailedState
+ * @memberof google.cloud.servicehealth.v1.OrganizationEvent
+ * @instance
+ */
+ OrganizationEvent.prototype.detailedState = 0;
+
+ /**
+ * OrganizationEvent eventImpacts.
+ * @member {Array.} eventImpacts
+ * @memberof google.cloud.servicehealth.v1.OrganizationEvent
+ * @instance
+ */
+ OrganizationEvent.prototype.eventImpacts = $util.emptyArray;
+
+ /**
+ * OrganizationEvent updates.
+ * @member {Array.} updates
+ * @memberof google.cloud.servicehealth.v1.OrganizationEvent
+ * @instance
+ */
+ OrganizationEvent.prototype.updates = $util.emptyArray;
+
+ /**
+ * OrganizationEvent parentEvent.
+ * @member {string} parentEvent
+ * @memberof google.cloud.servicehealth.v1.OrganizationEvent
+ * @instance
+ */
+ OrganizationEvent.prototype.parentEvent = "";
+
+ /**
+ * OrganizationEvent updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.servicehealth.v1.OrganizationEvent
+ * @instance
+ */
+ OrganizationEvent.prototype.updateTime = null;
+
+ /**
+ * OrganizationEvent startTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} startTime
+ * @memberof google.cloud.servicehealth.v1.OrganizationEvent
+ * @instance
+ */
+ OrganizationEvent.prototype.startTime = null;
+
+ /**
+ * OrganizationEvent endTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} endTime
+ * @memberof google.cloud.servicehealth.v1.OrganizationEvent
+ * @instance
+ */
+ OrganizationEvent.prototype.endTime = null;
+
+ /**
+ * OrganizationEvent nextUpdateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} nextUpdateTime
+ * @memberof google.cloud.servicehealth.v1.OrganizationEvent
+ * @instance
+ */
+ OrganizationEvent.prototype.nextUpdateTime = null;
+
+ /**
+ * Creates a new OrganizationEvent instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.servicehealth.v1.OrganizationEvent
+ * @static
+ * @param {google.cloud.servicehealth.v1.IOrganizationEvent=} [properties] Properties to set
+ * @returns {google.cloud.servicehealth.v1.OrganizationEvent} OrganizationEvent instance
+ */
+ OrganizationEvent.create = function create(properties) {
+ return new OrganizationEvent(properties);
+ };
+
+ /**
+ * Encodes the specified OrganizationEvent message. Does not implicitly {@link google.cloud.servicehealth.v1.OrganizationEvent.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.servicehealth.v1.OrganizationEvent
+ * @static
+ * @param {google.cloud.servicehealth.v1.IOrganizationEvent} message OrganizationEvent message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OrganizationEvent.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.title != null && Object.hasOwnProperty.call(message, "title"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.title);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.description);
+ if (message.category != null && Object.hasOwnProperty.call(message, "category"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.category);
+ if (message.state != null && Object.hasOwnProperty.call(message, "state"))
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state);
+ if (message.updates != null && message.updates.length)
+ for (var i = 0; i < message.updates.length; ++i)
+ $root.google.cloud.servicehealth.v1.EventUpdate.encode(message.updates[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ if (message.parentEvent != null && Object.hasOwnProperty.call(message, "parentEvent"))
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.parentEvent);
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
+ if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime"))
+ $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
+ if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime"))
+ $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
+ if (message.nextUpdateTime != null && Object.hasOwnProperty.call(message, "nextUpdateTime"))
+ $root.google.protobuf.Timestamp.encode(message.nextUpdateTime, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
+ if (message.eventImpacts != null && message.eventImpacts.length)
+ for (var i = 0; i < message.eventImpacts.length; ++i)
+ $root.google.cloud.servicehealth.v1.EventImpact.encode(message.eventImpacts[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
+ if (message.detailedState != null && Object.hasOwnProperty.call(message, "detailedState"))
+ writer.uint32(/* id 16, wireType 0 =*/128).int32(message.detailedState);
+ if (message.detailedCategory != null && Object.hasOwnProperty.call(message, "detailedCategory"))
+ writer.uint32(/* id 17, wireType 0 =*/136).int32(message.detailedCategory);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified OrganizationEvent message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.OrganizationEvent.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.servicehealth.v1.OrganizationEvent
+ * @static
+ * @param {google.cloud.servicehealth.v1.IOrganizationEvent} message OrganizationEvent message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OrganizationEvent.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an OrganizationEvent message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.servicehealth.v1.OrganizationEvent
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.servicehealth.v1.OrganizationEvent} OrganizationEvent
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OrganizationEvent.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.servicehealth.v1.OrganizationEvent();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.title = reader.string();
+ break;
+ }
+ case 3: {
+ message.description = reader.string();
+ break;
+ }
+ case 4: {
+ message.category = reader.int32();
+ break;
+ }
+ case 17: {
+ message.detailedCategory = reader.int32();
+ break;
+ }
+ case 5: {
+ message.state = reader.int32();
+ break;
+ }
+ case 16: {
+ message.detailedState = reader.int32();
+ break;
+ }
+ case 15: {
+ if (!(message.eventImpacts && message.eventImpacts.length))
+ message.eventImpacts = [];
+ message.eventImpacts.push($root.google.cloud.servicehealth.v1.EventImpact.decode(reader, reader.uint32()));
+ break;
+ }
+ case 8: {
+ if (!(message.updates && message.updates.length))
+ message.updates = [];
+ message.updates.push($root.google.cloud.servicehealth.v1.EventUpdate.decode(reader, reader.uint32()));
+ break;
+ }
+ case 9: {
+ message.parentEvent = reader.string();
+ break;
+ }
+ case 11: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 12: {
+ message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 13: {
+ message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 14: {
+ message.nextUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an OrganizationEvent message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.servicehealth.v1.OrganizationEvent
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.servicehealth.v1.OrganizationEvent} OrganizationEvent
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OrganizationEvent.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an OrganizationEvent message.
+ * @function verify
+ * @memberof google.cloud.servicehealth.v1.OrganizationEvent
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ OrganizationEvent.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.title != null && message.hasOwnProperty("title"))
+ if (!$util.isString(message.title))
+ return "title: string expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.category != null && message.hasOwnProperty("category"))
+ switch (message.category) {
+ default:
+ return "category: enum value expected";
+ case 0:
+ case 2:
+ break;
+ }
+ if (message.detailedCategory != null && message.hasOwnProperty("detailedCategory"))
+ switch (message.detailedCategory) {
+ default:
+ return "detailedCategory: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.state != null && message.hasOwnProperty("state"))
+ switch (message.state) {
+ default:
+ return "state: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.detailedState != null && message.hasOwnProperty("detailedState"))
+ switch (message.detailedState) {
+ default:
+ return "detailedState: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 9:
+ case 10:
+ break;
+ }
+ if (message.eventImpacts != null && message.hasOwnProperty("eventImpacts")) {
+ if (!Array.isArray(message.eventImpacts))
+ return "eventImpacts: array expected";
+ for (var i = 0; i < message.eventImpacts.length; ++i) {
+ var error = $root.google.cloud.servicehealth.v1.EventImpact.verify(message.eventImpacts[i]);
+ if (error)
+ return "eventImpacts." + error;
+ }
+ }
+ if (message.updates != null && message.hasOwnProperty("updates")) {
+ if (!Array.isArray(message.updates))
+ return "updates: array expected";
+ for (var i = 0; i < message.updates.length; ++i) {
+ var error = $root.google.cloud.servicehealth.v1.EventUpdate.verify(message.updates[i]);
+ if (error)
+ return "updates." + error;
+ }
+ }
+ if (message.parentEvent != null && message.hasOwnProperty("parentEvent"))
+ if (!$util.isString(message.parentEvent))
+ return "parentEvent: string expected";
+ if (message.updateTime != null && message.hasOwnProperty("updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + error;
+ }
+ if (message.startTime != null && message.hasOwnProperty("startTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.startTime);
+ if (error)
+ return "startTime." + error;
+ }
+ if (message.endTime != null && message.hasOwnProperty("endTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.endTime);
+ if (error)
+ return "endTime." + error;
+ }
+ if (message.nextUpdateTime != null && message.hasOwnProperty("nextUpdateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.nextUpdateTime);
+ if (error)
+ return "nextUpdateTime." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an OrganizationEvent message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.servicehealth.v1.OrganizationEvent
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.servicehealth.v1.OrganizationEvent} OrganizationEvent
+ */
+ OrganizationEvent.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.servicehealth.v1.OrganizationEvent)
+ return object;
+ var message = new $root.google.cloud.servicehealth.v1.OrganizationEvent();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.title != null)
+ message.title = String(object.title);
+ if (object.description != null)
+ message.description = String(object.description);
+ switch (object.category) {
+ default:
+ if (typeof object.category === "number") {
+ message.category = object.category;
+ break;
+ }
+ break;
+ case "EVENT_CATEGORY_UNSPECIFIED":
+ case 0:
+ message.category = 0;
+ break;
+ case "INCIDENT":
+ case 2:
+ message.category = 2;
+ break;
+ }
+ switch (object.detailedCategory) {
+ default:
+ if (typeof object.detailedCategory === "number") {
+ message.detailedCategory = object.detailedCategory;
+ break;
+ }
+ break;
+ case "DETAILED_CATEGORY_UNSPECIFIED":
+ case 0:
+ message.detailedCategory = 0;
+ break;
+ case "CONFIRMED_INCIDENT":
+ case 1:
+ message.detailedCategory = 1;
+ break;
+ case "EMERGING_INCIDENT":
+ case 2:
+ message.detailedCategory = 2;
+ break;
+ }
+ switch (object.state) {
+ default:
+ if (typeof object.state === "number") {
+ message.state = object.state;
+ break;
+ }
+ break;
+ case "STATE_UNSPECIFIED":
+ case 0:
+ message.state = 0;
+ break;
+ case "ACTIVE":
+ case 1:
+ message.state = 1;
+ break;
+ case "CLOSED":
+ case 2:
+ message.state = 2;
+ break;
+ }
+ switch (object.detailedState) {
+ default:
+ if (typeof object.detailedState === "number") {
+ message.detailedState = object.detailedState;
+ break;
+ }
+ break;
+ case "DETAILED_STATE_UNSPECIFIED":
+ case 0:
+ message.detailedState = 0;
+ break;
+ case "EMERGING":
+ case 1:
+ message.detailedState = 1;
+ break;
+ case "CONFIRMED":
+ case 2:
+ message.detailedState = 2;
+ break;
+ case "RESOLVED":
+ case 3:
+ message.detailedState = 3;
+ break;
+ case "MERGED":
+ case 4:
+ message.detailedState = 4;
+ break;
+ case "AUTO_CLOSED":
+ case 9:
+ message.detailedState = 9;
+ break;
+ case "FALSE_POSITIVE":
+ case 10:
+ message.detailedState = 10;
+ break;
+ }
+ if (object.eventImpacts) {
+ if (!Array.isArray(object.eventImpacts))
+ throw TypeError(".google.cloud.servicehealth.v1.OrganizationEvent.eventImpacts: array expected");
+ message.eventImpacts = [];
+ for (var i = 0; i < object.eventImpacts.length; ++i) {
+ if (typeof object.eventImpacts[i] !== "object")
+ throw TypeError(".google.cloud.servicehealth.v1.OrganizationEvent.eventImpacts: object expected");
+ message.eventImpacts[i] = $root.google.cloud.servicehealth.v1.EventImpact.fromObject(object.eventImpacts[i]);
+ }
+ }
+ if (object.updates) {
+ if (!Array.isArray(object.updates))
+ throw TypeError(".google.cloud.servicehealth.v1.OrganizationEvent.updates: array expected");
+ message.updates = [];
+ for (var i = 0; i < object.updates.length; ++i) {
+ if (typeof object.updates[i] !== "object")
+ throw TypeError(".google.cloud.servicehealth.v1.OrganizationEvent.updates: object expected");
+ message.updates[i] = $root.google.cloud.servicehealth.v1.EventUpdate.fromObject(object.updates[i]);
+ }
+ }
+ if (object.parentEvent != null)
+ message.parentEvent = String(object.parentEvent);
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.cloud.servicehealth.v1.OrganizationEvent.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.startTime != null) {
+ if (typeof object.startTime !== "object")
+ throw TypeError(".google.cloud.servicehealth.v1.OrganizationEvent.startTime: object expected");
+ message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime);
+ }
+ if (object.endTime != null) {
+ if (typeof object.endTime !== "object")
+ throw TypeError(".google.cloud.servicehealth.v1.OrganizationEvent.endTime: object expected");
+ message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime);
+ }
+ if (object.nextUpdateTime != null) {
+ if (typeof object.nextUpdateTime !== "object")
+ throw TypeError(".google.cloud.servicehealth.v1.OrganizationEvent.nextUpdateTime: object expected");
+ message.nextUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.nextUpdateTime);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an OrganizationEvent message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.servicehealth.v1.OrganizationEvent
+ * @static
+ * @param {google.cloud.servicehealth.v1.OrganizationEvent} message OrganizationEvent
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ OrganizationEvent.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.updates = [];
+ object.eventImpacts = [];
+ }
+ if (options.defaults) {
+ object.name = "";
+ object.title = "";
+ object.description = "";
+ object.category = options.enums === String ? "EVENT_CATEGORY_UNSPECIFIED" : 0;
+ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0;
+ object.parentEvent = "";
+ object.updateTime = null;
+ object.startTime = null;
+ object.endTime = null;
+ object.nextUpdateTime = null;
+ object.detailedState = options.enums === String ? "DETAILED_STATE_UNSPECIFIED" : 0;
+ object.detailedCategory = options.enums === String ? "DETAILED_CATEGORY_UNSPECIFIED" : 0;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.title != null && message.hasOwnProperty("title"))
+ object.title = message.title;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.category != null && message.hasOwnProperty("category"))
+ object.category = options.enums === String ? $root.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory[message.category] === undefined ? message.category : $root.google.cloud.servicehealth.v1.OrganizationEvent.EventCategory[message.category] : message.category;
+ if (message.state != null && message.hasOwnProperty("state"))
+ object.state = options.enums === String ? $root.google.cloud.servicehealth.v1.OrganizationEvent.State[message.state] === undefined ? message.state : $root.google.cloud.servicehealth.v1.OrganizationEvent.State[message.state] : message.state;
+ if (message.updates && message.updates.length) {
+ object.updates = [];
+ for (var j = 0; j < message.updates.length; ++j)
+ object.updates[j] = $root.google.cloud.servicehealth.v1.EventUpdate.toObject(message.updates[j], options);
+ }
+ if (message.parentEvent != null && message.hasOwnProperty("parentEvent"))
+ object.parentEvent = message.parentEvent;
+ if (message.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ if (message.startTime != null && message.hasOwnProperty("startTime"))
+ object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options);
+ if (message.endTime != null && message.hasOwnProperty("endTime"))
+ object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options);
+ if (message.nextUpdateTime != null && message.hasOwnProperty("nextUpdateTime"))
+ object.nextUpdateTime = $root.google.protobuf.Timestamp.toObject(message.nextUpdateTime, options);
+ if (message.eventImpacts && message.eventImpacts.length) {
+ object.eventImpacts = [];
+ for (var j = 0; j < message.eventImpacts.length; ++j)
+ object.eventImpacts[j] = $root.google.cloud.servicehealth.v1.EventImpact.toObject(message.eventImpacts[j], options);
+ }
+ if (message.detailedState != null && message.hasOwnProperty("detailedState"))
+ object.detailedState = options.enums === String ? $root.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState[message.detailedState] === undefined ? message.detailedState : $root.google.cloud.servicehealth.v1.OrganizationEvent.DetailedState[message.detailedState] : message.detailedState;
+ if (message.detailedCategory != null && message.hasOwnProperty("detailedCategory"))
+ object.detailedCategory = options.enums === String ? $root.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory[message.detailedCategory] === undefined ? message.detailedCategory : $root.google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory[message.detailedCategory] : message.detailedCategory;
+ return object;
+ };
+
+ /**
+ * Converts this OrganizationEvent to JSON.
+ * @function toJSON
+ * @memberof google.cloud.servicehealth.v1.OrganizationEvent
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ OrganizationEvent.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for OrganizationEvent
+ * @function getTypeUrl
+ * @memberof google.cloud.servicehealth.v1.OrganizationEvent
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ OrganizationEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.servicehealth.v1.OrganizationEvent";
+ };
+
+ /**
+ * EventCategory enum.
+ * @name google.cloud.servicehealth.v1.OrganizationEvent.EventCategory
+ * @enum {number}
+ * @property {number} EVENT_CATEGORY_UNSPECIFIED=0 EVENT_CATEGORY_UNSPECIFIED value
+ * @property {number} INCIDENT=2 INCIDENT value
+ */
+ OrganizationEvent.EventCategory = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "EVENT_CATEGORY_UNSPECIFIED"] = 0;
+ values[valuesById[2] = "INCIDENT"] = 2;
+ return values;
+ })();
+
+ /**
+ * DetailedCategory enum.
+ * @name google.cloud.servicehealth.v1.OrganizationEvent.DetailedCategory
+ * @enum {number}
+ * @property {number} DETAILED_CATEGORY_UNSPECIFIED=0 DETAILED_CATEGORY_UNSPECIFIED value
+ * @property {number} CONFIRMED_INCIDENT=1 CONFIRMED_INCIDENT value
+ * @property {number} EMERGING_INCIDENT=2 EMERGING_INCIDENT value
+ */
+ OrganizationEvent.DetailedCategory = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "DETAILED_CATEGORY_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "CONFIRMED_INCIDENT"] = 1;
+ values[valuesById[2] = "EMERGING_INCIDENT"] = 2;
+ return values;
+ })();
+
+ /**
+ * State enum.
+ * @name google.cloud.servicehealth.v1.OrganizationEvent.State
+ * @enum {number}
+ * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value
+ * @property {number} ACTIVE=1 ACTIVE value
+ * @property {number} CLOSED=2 CLOSED value
+ */
+ OrganizationEvent.State = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "ACTIVE"] = 1;
+ values[valuesById[2] = "CLOSED"] = 2;
+ return values;
+ })();
+
+ /**
+ * DetailedState enum.
+ * @name google.cloud.servicehealth.v1.OrganizationEvent.DetailedState
+ * @enum {number}
+ * @property {number} DETAILED_STATE_UNSPECIFIED=0 DETAILED_STATE_UNSPECIFIED value
+ * @property {number} EMERGING=1 EMERGING value
+ * @property {number} CONFIRMED=2 CONFIRMED value
+ * @property {number} RESOLVED=3 RESOLVED value
+ * @property {number} MERGED=4 MERGED value
+ * @property {number} AUTO_CLOSED=9 AUTO_CLOSED value
+ * @property {number} FALSE_POSITIVE=10 FALSE_POSITIVE value
+ */
+ OrganizationEvent.DetailedState = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "DETAILED_STATE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "EMERGING"] = 1;
+ values[valuesById[2] = "CONFIRMED"] = 2;
+ values[valuesById[3] = "RESOLVED"] = 3;
+ values[valuesById[4] = "MERGED"] = 4;
+ values[valuesById[9] = "AUTO_CLOSED"] = 9;
+ values[valuesById[10] = "FALSE_POSITIVE"] = 10;
+ return values;
+ })();
+
+ return OrganizationEvent;
+ })();
+
+ v1.EventUpdate = (function() {
+
+ /**
+ * Properties of an EventUpdate.
+ * @memberof google.cloud.servicehealth.v1
+ * @interface IEventUpdate
+ * @property {google.protobuf.ITimestamp|null} [updateTime] EventUpdate updateTime
+ * @property {string|null} [title] EventUpdate title
+ * @property {string|null} [description] EventUpdate description
+ * @property {string|null} [symptom] EventUpdate symptom
+ * @property {string|null} [workaround] EventUpdate workaround
+ */
+
+ /**
+ * Constructs a new EventUpdate.
+ * @memberof google.cloud.servicehealth.v1
+ * @classdesc Represents an EventUpdate.
+ * @implements IEventUpdate
+ * @constructor
+ * @param {google.cloud.servicehealth.v1.IEventUpdate=} [properties] Properties to set
+ */
+ function EventUpdate(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * EventUpdate updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.servicehealth.v1.EventUpdate
+ * @instance
+ */
+ EventUpdate.prototype.updateTime = null;
+
+ /**
+ * EventUpdate title.
+ * @member {string} title
+ * @memberof google.cloud.servicehealth.v1.EventUpdate
+ * @instance
+ */
+ EventUpdate.prototype.title = "";
+
+ /**
+ * EventUpdate description.
+ * @member {string} description
+ * @memberof google.cloud.servicehealth.v1.EventUpdate
+ * @instance
+ */
+ EventUpdate.prototype.description = "";
+
+ /**
+ * EventUpdate symptom.
+ * @member {string} symptom
+ * @memberof google.cloud.servicehealth.v1.EventUpdate
+ * @instance
+ */
+ EventUpdate.prototype.symptom = "";
+
+ /**
+ * EventUpdate workaround.
+ * @member {string} workaround
+ * @memberof google.cloud.servicehealth.v1.EventUpdate
+ * @instance
+ */
+ EventUpdate.prototype.workaround = "";
+
+ /**
+ * Creates a new EventUpdate instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.servicehealth.v1.EventUpdate
+ * @static
+ * @param {google.cloud.servicehealth.v1.IEventUpdate=} [properties] Properties to set
+ * @returns {google.cloud.servicehealth.v1.EventUpdate} EventUpdate instance
+ */
+ EventUpdate.create = function create(properties) {
+ return new EventUpdate(properties);
+ };
+
+ /**
+ * Encodes the specified EventUpdate message. Does not implicitly {@link google.cloud.servicehealth.v1.EventUpdate.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.servicehealth.v1.EventUpdate
+ * @static
+ * @param {google.cloud.servicehealth.v1.IEventUpdate} message EventUpdate message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EventUpdate.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.title != null && Object.hasOwnProperty.call(message, "title"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.title);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.description);
+ if (message.symptom != null && Object.hasOwnProperty.call(message, "symptom"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.symptom);
+ if (message.workaround != null && Object.hasOwnProperty.call(message, "workaround"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.workaround);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified EventUpdate message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.EventUpdate.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.servicehealth.v1.EventUpdate
+ * @static
+ * @param {google.cloud.servicehealth.v1.IEventUpdate} message EventUpdate message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EventUpdate.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an EventUpdate message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.servicehealth.v1.EventUpdate
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.servicehealth.v1.EventUpdate} EventUpdate
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EventUpdate.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.servicehealth.v1.EventUpdate();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.title = reader.string();
+ break;
+ }
+ case 3: {
+ message.description = reader.string();
+ break;
+ }
+ case 4: {
+ message.symptom = reader.string();
+ break;
+ }
+ case 5: {
+ message.workaround = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an EventUpdate message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.servicehealth.v1.EventUpdate
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.servicehealth.v1.EventUpdate} EventUpdate
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EventUpdate.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an EventUpdate message.
+ * @function verify
+ * @memberof google.cloud.servicehealth.v1.EventUpdate
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ EventUpdate.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.updateTime != null && message.hasOwnProperty("updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + error;
+ }
+ if (message.title != null && message.hasOwnProperty("title"))
+ if (!$util.isString(message.title))
+ return "title: string expected";
+ if (message.description != null && message.hasOwnProperty("description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.symptom != null && message.hasOwnProperty("symptom"))
+ if (!$util.isString(message.symptom))
+ return "symptom: string expected";
+ if (message.workaround != null && message.hasOwnProperty("workaround"))
+ if (!$util.isString(message.workaround))
+ return "workaround: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an EventUpdate message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.servicehealth.v1.EventUpdate
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.servicehealth.v1.EventUpdate} EventUpdate
+ */
+ EventUpdate.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.servicehealth.v1.EventUpdate)
+ return object;
+ var message = new $root.google.cloud.servicehealth.v1.EventUpdate();
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.cloud.servicehealth.v1.EventUpdate.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ if (object.title != null)
+ message.title = String(object.title);
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.symptom != null)
+ message.symptom = String(object.symptom);
+ if (object.workaround != null)
+ message.workaround = String(object.workaround);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an EventUpdate message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.servicehealth.v1.EventUpdate
+ * @static
+ * @param {google.cloud.servicehealth.v1.EventUpdate} message EventUpdate
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ EventUpdate.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.updateTime = null;
+ object.title = "";
+ object.description = "";
+ object.symptom = "";
+ object.workaround = "";
+ }
+ if (message.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ if (message.title != null && message.hasOwnProperty("title"))
+ object.title = message.title;
+ if (message.description != null && message.hasOwnProperty("description"))
+ object.description = message.description;
+ if (message.symptom != null && message.hasOwnProperty("symptom"))
+ object.symptom = message.symptom;
+ if (message.workaround != null && message.hasOwnProperty("workaround"))
+ object.workaround = message.workaround;
+ return object;
+ };
+
+ /**
+ * Converts this EventUpdate to JSON.
+ * @function toJSON
+ * @memberof google.cloud.servicehealth.v1.EventUpdate
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ EventUpdate.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for EventUpdate
+ * @function getTypeUrl
+ * @memberof google.cloud.servicehealth.v1.EventUpdate
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ EventUpdate.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.servicehealth.v1.EventUpdate";
+ };
+
+ return EventUpdate;
+ })();
+
+ v1.Location = (function() {
+
+ /**
+ * Properties of a Location.
+ * @memberof google.cloud.servicehealth.v1
+ * @interface ILocation
+ * @property {string|null} [locationName] Location locationName
+ */
+
+ /**
+ * Constructs a new Location.
+ * @memberof google.cloud.servicehealth.v1
+ * @classdesc Represents a Location.
+ * @implements ILocation
+ * @constructor
+ * @param {google.cloud.servicehealth.v1.ILocation=} [properties] Properties to set
+ */
+ function Location(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Location locationName.
+ * @member {string} locationName
+ * @memberof google.cloud.servicehealth.v1.Location
+ * @instance
+ */
+ Location.prototype.locationName = "";
+
+ /**
+ * Creates a new Location instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.servicehealth.v1.Location
+ * @static
+ * @param {google.cloud.servicehealth.v1.ILocation=} [properties] Properties to set
+ * @returns {google.cloud.servicehealth.v1.Location} Location instance
+ */
+ Location.create = function create(properties) {
+ return new Location(properties);
+ };
+
+ /**
+ * Encodes the specified Location message. Does not implicitly {@link google.cloud.servicehealth.v1.Location.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.servicehealth.v1.Location
+ * @static
+ * @param {google.cloud.servicehealth.v1.ILocation} message Location message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Location.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.locationName != null && Object.hasOwnProperty.call(message, "locationName"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.locationName);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Location message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.Location.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.servicehealth.v1.Location
+ * @static
+ * @param {google.cloud.servicehealth.v1.ILocation} message Location message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Location.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Location message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.servicehealth.v1.Location
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.servicehealth.v1.Location} Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Location.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.servicehealth.v1.Location();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.locationName = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Location message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.servicehealth.v1.Location
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.servicehealth.v1.Location} Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Location.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Location message.
+ * @function verify
+ * @memberof google.cloud.servicehealth.v1.Location
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Location.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.locationName != null && message.hasOwnProperty("locationName"))
+ if (!$util.isString(message.locationName))
+ return "locationName: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a Location message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.servicehealth.v1.Location
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.servicehealth.v1.Location} Location
+ */
+ Location.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.servicehealth.v1.Location)
+ return object;
+ var message = new $root.google.cloud.servicehealth.v1.Location();
+ if (object.locationName != null)
+ message.locationName = String(object.locationName);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Location message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.servicehealth.v1.Location
+ * @static
+ * @param {google.cloud.servicehealth.v1.Location} message Location
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Location.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.locationName = "";
+ if (message.locationName != null && message.hasOwnProperty("locationName"))
+ object.locationName = message.locationName;
+ return object;
+ };
+
+ /**
+ * Converts this Location to JSON.
+ * @function toJSON
+ * @memberof google.cloud.servicehealth.v1.Location
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Location.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Location
+ * @function getTypeUrl
+ * @memberof google.cloud.servicehealth.v1.Location
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Location.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.servicehealth.v1.Location";
+ };
+
+ return Location;
+ })();
+
+ v1.Product = (function() {
+
+ /**
+ * Properties of a Product.
+ * @memberof google.cloud.servicehealth.v1
+ * @interface IProduct
+ * @property {string|null} [productName] Product productName
+ * @property {string|null} [id] Product id
+ */
+
+ /**
+ * Constructs a new Product.
+ * @memberof google.cloud.servicehealth.v1
+ * @classdesc Represents a Product.
+ * @implements IProduct
+ * @constructor
+ * @param {google.cloud.servicehealth.v1.IProduct=} [properties] Properties to set
+ */
+ function Product(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Product productName.
+ * @member {string} productName
+ * @memberof google.cloud.servicehealth.v1.Product
+ * @instance
+ */
+ Product.prototype.productName = "";
+
+ /**
+ * Product id.
+ * @member {string} id
+ * @memberof google.cloud.servicehealth.v1.Product
+ * @instance
+ */
+ Product.prototype.id = "";
+
+ /**
+ * Creates a new Product instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.servicehealth.v1.Product
+ * @static
+ * @param {google.cloud.servicehealth.v1.IProduct=} [properties] Properties to set
+ * @returns {google.cloud.servicehealth.v1.Product} Product instance
+ */
+ Product.create = function create(properties) {
+ return new Product(properties);
+ };
+
+ /**
+ * Encodes the specified Product message. Does not implicitly {@link google.cloud.servicehealth.v1.Product.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.servicehealth.v1.Product
+ * @static
+ * @param {google.cloud.servicehealth.v1.IProduct} message Product message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Product.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.productName != null && Object.hasOwnProperty.call(message, "productName"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.productName);
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.id);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Product message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.Product.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.servicehealth.v1.Product
+ * @static
+ * @param {google.cloud.servicehealth.v1.IProduct} message Product message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Product.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Product message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.servicehealth.v1.Product
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.servicehealth.v1.Product} Product
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Product.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.servicehealth.v1.Product();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.productName = reader.string();
+ break;
+ }
+ case 2: {
+ message.id = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Product message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.servicehealth.v1.Product
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.servicehealth.v1.Product} Product
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Product.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Product message.
+ * @function verify
+ * @memberof google.cloud.servicehealth.v1.Product
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Product.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.productName != null && message.hasOwnProperty("productName"))
+ if (!$util.isString(message.productName))
+ return "productName: string expected";
+ if (message.id != null && message.hasOwnProperty("id"))
+ if (!$util.isString(message.id))
+ return "id: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a Product message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.servicehealth.v1.Product
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.servicehealth.v1.Product} Product
+ */
+ Product.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.servicehealth.v1.Product)
+ return object;
+ var message = new $root.google.cloud.servicehealth.v1.Product();
+ if (object.productName != null)
+ message.productName = String(object.productName);
+ if (object.id != null)
+ message.id = String(object.id);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Product message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.servicehealth.v1.Product
+ * @static
+ * @param {google.cloud.servicehealth.v1.Product} message Product
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Product.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.productName = "";
+ object.id = "";
+ }
+ if (message.productName != null && message.hasOwnProperty("productName"))
+ object.productName = message.productName;
+ if (message.id != null && message.hasOwnProperty("id"))
+ object.id = message.id;
+ return object;
+ };
+
+ /**
+ * Converts this Product to JSON.
+ * @function toJSON
+ * @memberof google.cloud.servicehealth.v1.Product
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Product.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Product
+ * @function getTypeUrl
+ * @memberof google.cloud.servicehealth.v1.Product
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Product.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.servicehealth.v1.Product";
+ };
+
+ return Product;
+ })();
+
+ v1.EventImpact = (function() {
+
+ /**
+ * Properties of an EventImpact.
+ * @memberof google.cloud.servicehealth.v1
+ * @interface IEventImpact
+ * @property {google.cloud.servicehealth.v1.IProduct|null} [product] EventImpact product
+ * @property {google.cloud.servicehealth.v1.ILocation|null} [location] EventImpact location
+ */
+
+ /**
+ * Constructs a new EventImpact.
+ * @memberof google.cloud.servicehealth.v1
+ * @classdesc Represents an EventImpact.
+ * @implements IEventImpact
+ * @constructor
+ * @param {google.cloud.servicehealth.v1.IEventImpact=} [properties] Properties to set
+ */
+ function EventImpact(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * EventImpact product.
+ * @member {google.cloud.servicehealth.v1.IProduct|null|undefined} product
+ * @memberof google.cloud.servicehealth.v1.EventImpact
+ * @instance
+ */
+ EventImpact.prototype.product = null;
+
+ /**
+ * EventImpact location.
+ * @member {google.cloud.servicehealth.v1.ILocation|null|undefined} location
+ * @memberof google.cloud.servicehealth.v1.EventImpact
+ * @instance
+ */
+ EventImpact.prototype.location = null;
+
+ /**
+ * Creates a new EventImpact instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.servicehealth.v1.EventImpact
+ * @static
+ * @param {google.cloud.servicehealth.v1.IEventImpact=} [properties] Properties to set
+ * @returns {google.cloud.servicehealth.v1.EventImpact} EventImpact instance
+ */
+ EventImpact.create = function create(properties) {
+ return new EventImpact(properties);
+ };
+
+ /**
+ * Encodes the specified EventImpact message. Does not implicitly {@link google.cloud.servicehealth.v1.EventImpact.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.servicehealth.v1.EventImpact
+ * @static
+ * @param {google.cloud.servicehealth.v1.IEventImpact} message EventImpact message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EventImpact.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.product != null && Object.hasOwnProperty.call(message, "product"))
+ $root.google.cloud.servicehealth.v1.Product.encode(message.product, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.location != null && Object.hasOwnProperty.call(message, "location"))
+ $root.google.cloud.servicehealth.v1.Location.encode(message.location, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified EventImpact message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.EventImpact.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.servicehealth.v1.EventImpact
+ * @static
+ * @param {google.cloud.servicehealth.v1.IEventImpact} message EventImpact message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ EventImpact.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an EventImpact message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.servicehealth.v1.EventImpact
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.servicehealth.v1.EventImpact} EventImpact
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EventImpact.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.servicehealth.v1.EventImpact();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.product = $root.google.cloud.servicehealth.v1.Product.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.location = $root.google.cloud.servicehealth.v1.Location.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an EventImpact message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.servicehealth.v1.EventImpact
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.servicehealth.v1.EventImpact} EventImpact
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ EventImpact.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an EventImpact message.
+ * @function verify
+ * @memberof google.cloud.servicehealth.v1.EventImpact
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ EventImpact.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.product != null && message.hasOwnProperty("product")) {
+ var error = $root.google.cloud.servicehealth.v1.Product.verify(message.product);
+ if (error)
+ return "product." + error;
+ }
+ if (message.location != null && message.hasOwnProperty("location")) {
+ var error = $root.google.cloud.servicehealth.v1.Location.verify(message.location);
+ if (error)
+ return "location." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an EventImpact message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.servicehealth.v1.EventImpact
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.servicehealth.v1.EventImpact} EventImpact
+ */
+ EventImpact.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.servicehealth.v1.EventImpact)
+ return object;
+ var message = new $root.google.cloud.servicehealth.v1.EventImpact();
+ if (object.product != null) {
+ if (typeof object.product !== "object")
+ throw TypeError(".google.cloud.servicehealth.v1.EventImpact.product: object expected");
+ message.product = $root.google.cloud.servicehealth.v1.Product.fromObject(object.product);
+ }
+ if (object.location != null) {
+ if (typeof object.location !== "object")
+ throw TypeError(".google.cloud.servicehealth.v1.EventImpact.location: object expected");
+ message.location = $root.google.cloud.servicehealth.v1.Location.fromObject(object.location);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an EventImpact message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.servicehealth.v1.EventImpact
+ * @static
+ * @param {google.cloud.servicehealth.v1.EventImpact} message EventImpact
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ EventImpact.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.product = null;
+ object.location = null;
+ }
+ if (message.product != null && message.hasOwnProperty("product"))
+ object.product = $root.google.cloud.servicehealth.v1.Product.toObject(message.product, options);
+ if (message.location != null && message.hasOwnProperty("location"))
+ object.location = $root.google.cloud.servicehealth.v1.Location.toObject(message.location, options);
+ return object;
+ };
+
+ /**
+ * Converts this EventImpact to JSON.
+ * @function toJSON
+ * @memberof google.cloud.servicehealth.v1.EventImpact
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ EventImpact.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for EventImpact
+ * @function getTypeUrl
+ * @memberof google.cloud.servicehealth.v1.EventImpact
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ EventImpact.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.servicehealth.v1.EventImpact";
+ };
+
+ return EventImpact;
+ })();
+
+ v1.OrganizationImpact = (function() {
+
+ /**
+ * Properties of an OrganizationImpact.
+ * @memberof google.cloud.servicehealth.v1
+ * @interface IOrganizationImpact
+ * @property {string|null} [name] OrganizationImpact name
+ * @property {Array.|null} [events] OrganizationImpact events
+ * @property {google.cloud.servicehealth.v1.IAsset|null} [asset] OrganizationImpact asset
+ * @property {google.protobuf.ITimestamp|null} [updateTime] OrganizationImpact updateTime
+ */
+
+ /**
+ * Constructs a new OrganizationImpact.
+ * @memberof google.cloud.servicehealth.v1
+ * @classdesc Represents an OrganizationImpact.
+ * @implements IOrganizationImpact
+ * @constructor
+ * @param {google.cloud.servicehealth.v1.IOrganizationImpact=} [properties] Properties to set
+ */
+ function OrganizationImpact(properties) {
+ this.events = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * OrganizationImpact name.
+ * @member {string} name
+ * @memberof google.cloud.servicehealth.v1.OrganizationImpact
+ * @instance
+ */
+ OrganizationImpact.prototype.name = "";
+
+ /**
+ * OrganizationImpact events.
+ * @member {Array.} events
+ * @memberof google.cloud.servicehealth.v1.OrganizationImpact
+ * @instance
+ */
+ OrganizationImpact.prototype.events = $util.emptyArray;
+
+ /**
+ * OrganizationImpact asset.
+ * @member {google.cloud.servicehealth.v1.IAsset|null|undefined} asset
+ * @memberof google.cloud.servicehealth.v1.OrganizationImpact
+ * @instance
+ */
+ OrganizationImpact.prototype.asset = null;
+
+ /**
+ * OrganizationImpact updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.servicehealth.v1.OrganizationImpact
+ * @instance
+ */
+ OrganizationImpact.prototype.updateTime = null;
+
+ /**
+ * Creates a new OrganizationImpact instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.servicehealth.v1.OrganizationImpact
+ * @static
+ * @param {google.cloud.servicehealth.v1.IOrganizationImpact=} [properties] Properties to set
+ * @returns {google.cloud.servicehealth.v1.OrganizationImpact} OrganizationImpact instance
+ */
+ OrganizationImpact.create = function create(properties) {
+ return new OrganizationImpact(properties);
+ };
+
+ /**
+ * Encodes the specified OrganizationImpact message. Does not implicitly {@link google.cloud.servicehealth.v1.OrganizationImpact.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.servicehealth.v1.OrganizationImpact
+ * @static
+ * @param {google.cloud.servicehealth.v1.IOrganizationImpact} message OrganizationImpact message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OrganizationImpact.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.events != null && message.events.length)
+ for (var i = 0; i < message.events.length; ++i)
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.events[i]);
+ if (message.asset != null && Object.hasOwnProperty.call(message, "asset"))
+ $root.google.cloud.servicehealth.v1.Asset.encode(message.asset, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified OrganizationImpact message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.OrganizationImpact.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.servicehealth.v1.OrganizationImpact
+ * @static
+ * @param {google.cloud.servicehealth.v1.IOrganizationImpact} message OrganizationImpact message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OrganizationImpact.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an OrganizationImpact message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.servicehealth.v1.OrganizationImpact
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.servicehealth.v1.OrganizationImpact} OrganizationImpact
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OrganizationImpact.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.servicehealth.v1.OrganizationImpact();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ if (!(message.events && message.events.length))
+ message.events = [];
+ message.events.push(reader.string());
+ break;
+ }
+ case 3: {
+ message.asset = $root.google.cloud.servicehealth.v1.Asset.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an OrganizationImpact message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.servicehealth.v1.OrganizationImpact
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.servicehealth.v1.OrganizationImpact} OrganizationImpact
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OrganizationImpact.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an OrganizationImpact message.
+ * @function verify
+ * @memberof google.cloud.servicehealth.v1.OrganizationImpact
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ OrganizationImpact.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.events != null && message.hasOwnProperty("events")) {
+ if (!Array.isArray(message.events))
+ return "events: array expected";
+ for (var i = 0; i < message.events.length; ++i)
+ if (!$util.isString(message.events[i]))
+ return "events: string[] expected";
+ }
+ if (message.asset != null && message.hasOwnProperty("asset")) {
+ var error = $root.google.cloud.servicehealth.v1.Asset.verify(message.asset);
+ if (error)
+ return "asset." + error;
+ }
+ if (message.updateTime != null && message.hasOwnProperty("updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime);
+ if (error)
+ return "updateTime." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an OrganizationImpact message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.servicehealth.v1.OrganizationImpact
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.servicehealth.v1.OrganizationImpact} OrganizationImpact
+ */
+ OrganizationImpact.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.servicehealth.v1.OrganizationImpact)
+ return object;
+ var message = new $root.google.cloud.servicehealth.v1.OrganizationImpact();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.events) {
+ if (!Array.isArray(object.events))
+ throw TypeError(".google.cloud.servicehealth.v1.OrganizationImpact.events: array expected");
+ message.events = [];
+ for (var i = 0; i < object.events.length; ++i)
+ message.events[i] = String(object.events[i]);
+ }
+ if (object.asset != null) {
+ if (typeof object.asset !== "object")
+ throw TypeError(".google.cloud.servicehealth.v1.OrganizationImpact.asset: object expected");
+ message.asset = $root.google.cloud.servicehealth.v1.Asset.fromObject(object.asset);
+ }
+ if (object.updateTime != null) {
+ if (typeof object.updateTime !== "object")
+ throw TypeError(".google.cloud.servicehealth.v1.OrganizationImpact.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an OrganizationImpact message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.servicehealth.v1.OrganizationImpact
+ * @static
+ * @param {google.cloud.servicehealth.v1.OrganizationImpact} message OrganizationImpact
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ OrganizationImpact.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.events = [];
+ if (options.defaults) {
+ object.name = "";
+ object.asset = null;
+ object.updateTime = null;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.events && message.events.length) {
+ object.events = [];
+ for (var j = 0; j < message.events.length; ++j)
+ object.events[j] = message.events[j];
+ }
+ if (message.asset != null && message.hasOwnProperty("asset"))
+ object.asset = $root.google.cloud.servicehealth.v1.Asset.toObject(message.asset, options);
+ if (message.updateTime != null && message.hasOwnProperty("updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options);
+ return object;
+ };
+
+ /**
+ * Converts this OrganizationImpact to JSON.
+ * @function toJSON
+ * @memberof google.cloud.servicehealth.v1.OrganizationImpact
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ OrganizationImpact.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for OrganizationImpact
+ * @function getTypeUrl
+ * @memberof google.cloud.servicehealth.v1.OrganizationImpact
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ OrganizationImpact.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.servicehealth.v1.OrganizationImpact";
+ };
+
+ return OrganizationImpact;
+ })();
+
+ v1.Asset = (function() {
+
+ /**
+ * Properties of an Asset.
+ * @memberof google.cloud.servicehealth.v1
+ * @interface IAsset
+ * @property {string|null} [assetName] Asset assetName
+ * @property {string|null} [assetType] Asset assetType
+ */
+
+ /**
+ * Constructs a new Asset.
+ * @memberof google.cloud.servicehealth.v1
+ * @classdesc Represents an Asset.
+ * @implements IAsset
+ * @constructor
+ * @param {google.cloud.servicehealth.v1.IAsset=} [properties] Properties to set
+ */
+ function Asset(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Asset assetName.
+ * @member {string} assetName
+ * @memberof google.cloud.servicehealth.v1.Asset
+ * @instance
+ */
+ Asset.prototype.assetName = "";
+
+ /**
+ * Asset assetType.
+ * @member {string} assetType
+ * @memberof google.cloud.servicehealth.v1.Asset
+ * @instance
+ */
+ Asset.prototype.assetType = "";
+
+ /**
+ * Creates a new Asset instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.servicehealth.v1.Asset
+ * @static
+ * @param {google.cloud.servicehealth.v1.IAsset=} [properties] Properties to set
+ * @returns {google.cloud.servicehealth.v1.Asset} Asset instance
+ */
+ Asset.create = function create(properties) {
+ return new Asset(properties);
+ };
+
+ /**
+ * Encodes the specified Asset message. Does not implicitly {@link google.cloud.servicehealth.v1.Asset.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.servicehealth.v1.Asset
+ * @static
+ * @param {google.cloud.servicehealth.v1.IAsset} message Asset message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Asset.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.assetName != null && Object.hasOwnProperty.call(message, "assetName"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.assetName);
+ if (message.assetType != null && Object.hasOwnProperty.call(message, "assetType"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.assetType);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Asset message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.Asset.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.servicehealth.v1.Asset
+ * @static
+ * @param {google.cloud.servicehealth.v1.IAsset} message Asset message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Asset.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an Asset message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.servicehealth.v1.Asset
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.servicehealth.v1.Asset} Asset
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Asset.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.servicehealth.v1.Asset();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.assetName = reader.string();
+ break;
+ }
+ case 2: {
+ message.assetType = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Asset message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.servicehealth.v1.Asset
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.servicehealth.v1.Asset} Asset
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Asset.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Asset message.
+ * @function verify
+ * @memberof google.cloud.servicehealth.v1.Asset
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Asset.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.assetName != null && message.hasOwnProperty("assetName"))
+ if (!$util.isString(message.assetName))
+ return "assetName: string expected";
+ if (message.assetType != null && message.hasOwnProperty("assetType"))
+ if (!$util.isString(message.assetType))
+ return "assetType: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an Asset message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.servicehealth.v1.Asset
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.servicehealth.v1.Asset} Asset
+ */
+ Asset.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.servicehealth.v1.Asset)
+ return object;
+ var message = new $root.google.cloud.servicehealth.v1.Asset();
+ if (object.assetName != null)
+ message.assetName = String(object.assetName);
+ if (object.assetType != null)
+ message.assetType = String(object.assetType);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Asset message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.servicehealth.v1.Asset
+ * @static
+ * @param {google.cloud.servicehealth.v1.Asset} message Asset
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Asset.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.assetName = "";
+ object.assetType = "";
+ }
+ if (message.assetName != null && message.hasOwnProperty("assetName"))
+ object.assetName = message.assetName;
+ if (message.assetType != null && message.hasOwnProperty("assetType"))
+ object.assetType = message.assetType;
+ return object;
+ };
+
+ /**
+ * Converts this Asset to JSON.
+ * @function toJSON
+ * @memberof google.cloud.servicehealth.v1.Asset
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Asset.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Asset
+ * @function getTypeUrl
+ * @memberof google.cloud.servicehealth.v1.Asset
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Asset.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.servicehealth.v1.Asset";
+ };
+
+ return Asset;
+ })();
+
+ v1.ListEventsRequest = (function() {
+
+ /**
+ * Properties of a ListEventsRequest.
+ * @memberof google.cloud.servicehealth.v1
+ * @interface IListEventsRequest
+ * @property {string|null} [parent] ListEventsRequest parent
+ * @property {number|null} [pageSize] ListEventsRequest pageSize
+ * @property {string|null} [pageToken] ListEventsRequest pageToken
+ * @property {string|null} [filter] ListEventsRequest filter
+ * @property {google.cloud.servicehealth.v1.EventView|null} [view] ListEventsRequest view
+ */
+
+ /**
+ * Constructs a new ListEventsRequest.
+ * @memberof google.cloud.servicehealth.v1
+ * @classdesc Represents a ListEventsRequest.
+ * @implements IListEventsRequest
+ * @constructor
+ * @param {google.cloud.servicehealth.v1.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)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ListEventsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.servicehealth.v1.ListEventsRequest
+ * @instance
+ */
+ ListEventsRequest.prototype.parent = "";
+
+ /**
+ * ListEventsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.servicehealth.v1.ListEventsRequest
+ * @instance
+ */
+ ListEventsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListEventsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.servicehealth.v1.ListEventsRequest
+ * @instance
+ */
+ ListEventsRequest.prototype.pageToken = "";
+
+ /**
+ * ListEventsRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.servicehealth.v1.ListEventsRequest
+ * @instance
+ */
+ ListEventsRequest.prototype.filter = "";
+
+ /**
+ * ListEventsRequest view.
+ * @member {google.cloud.servicehealth.v1.EventView} view
+ * @memberof google.cloud.servicehealth.v1.ListEventsRequest
+ * @instance
+ */
+ ListEventsRequest.prototype.view = 0;
+
+ /**
+ * Creates a new ListEventsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.servicehealth.v1.ListEventsRequest
+ * @static
+ * @param {google.cloud.servicehealth.v1.IListEventsRequest=} [properties] Properties to set
+ * @returns {google.cloud.servicehealth.v1.ListEventsRequest} ListEventsRequest instance
+ */
+ ListEventsRequest.create = function create(properties) {
+ return new ListEventsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListEventsRequest message. Does not implicitly {@link google.cloud.servicehealth.v1.ListEventsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.servicehealth.v1.ListEventsRequest
+ * @static
+ * @param {google.cloud.servicehealth.v1.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) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken);
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter);
+ if (message.view != null && Object.hasOwnProperty.call(message, "view"))
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.view);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListEventsRequest message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.ListEventsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.servicehealth.v1.ListEventsRequest
+ * @static
+ * @param {google.cloud.servicehealth.v1.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).ldelim();
+ };
+
+ /**
+ * Decodes a ListEventsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.servicehealth.v1.ListEventsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.servicehealth.v1.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) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.servicehealth.v1.ListEventsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 4: {
+ message.filter = reader.string();
+ break;
+ }
+ case 6: {
+ message.view = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListEventsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.servicehealth.v1.ListEventsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.servicehealth.v1.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.cloud.servicehealth.v1.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) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ if (!$util.isString(message.filter))
+ return "filter: string expected";
+ if (message.view != null && message.hasOwnProperty("view"))
+ switch (message.view) {
+ default:
+ return "view: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ListEventsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.servicehealth.v1.ListEventsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.servicehealth.v1.ListEventsRequest} ListEventsRequest
+ */
+ ListEventsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.servicehealth.v1.ListEventsRequest)
+ return object;
+ var message = new $root.google.cloud.servicehealth.v1.ListEventsRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ if (object.filter != null)
+ message.filter = String(object.filter);
+ switch (object.view) {
+ default:
+ if (typeof object.view === "number") {
+ message.view = object.view;
+ break;
+ }
+ break;
+ case "EVENT_VIEW_UNSPECIFIED":
+ case 0:
+ message.view = 0;
+ break;
+ case "EVENT_VIEW_BASIC":
+ case 1:
+ message.view = 1;
+ break;
+ case "EVENT_VIEW_FULL":
+ case 2:
+ message.view = 2;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListEventsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.servicehealth.v1.ListEventsRequest
+ * @static
+ * @param {google.cloud.servicehealth.v1.ListEventsRequest} message ListEventsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListEventsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.filter = "";
+ object.view = options.enums === String ? "EVENT_VIEW_UNSPECIFIED" : 0;
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ object.filter = message.filter;
+ if (message.view != null && message.hasOwnProperty("view"))
+ object.view = options.enums === String ? $root.google.cloud.servicehealth.v1.EventView[message.view] === undefined ? message.view : $root.google.cloud.servicehealth.v1.EventView[message.view] : message.view;
+ return object;
+ };
+
+ /**
+ * Converts this ListEventsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.servicehealth.v1.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.cloud.servicehealth.v1.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.cloud.servicehealth.v1.ListEventsRequest";
+ };
+
+ return ListEventsRequest;
+ })();
+
+ v1.ListEventsResponse = (function() {
+
+ /**
+ * Properties of a ListEventsResponse.
+ * @memberof google.cloud.servicehealth.v1
+ * @interface IListEventsResponse
+ * @property {Array.|null} [events] ListEventsResponse events
+ * @property {string|null} [nextPageToken] ListEventsResponse nextPageToken
+ * @property {Array.|null} [unreachable] ListEventsResponse unreachable
+ */
+
+ /**
+ * Constructs a new ListEventsResponse.
+ * @memberof google.cloud.servicehealth.v1
+ * @classdesc Represents a ListEventsResponse.
+ * @implements IListEventsResponse
+ * @constructor
+ * @param {google.cloud.servicehealth.v1.IListEventsResponse=} [properties] Properties to set
+ */
+ function ListEventsResponse(properties) {
+ this.events = [];
+ this.unreachable = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ListEventsResponse events.
+ * @member {Array.} events
+ * @memberof google.cloud.servicehealth.v1.ListEventsResponse
+ * @instance
+ */
+ ListEventsResponse.prototype.events = $util.emptyArray;
+
+ /**
+ * ListEventsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.servicehealth.v1.ListEventsResponse
+ * @instance
+ */
+ ListEventsResponse.prototype.nextPageToken = "";
+
+ /**
+ * ListEventsResponse unreachable.
+ * @member {Array.} unreachable
+ * @memberof google.cloud.servicehealth.v1.ListEventsResponse
+ * @instance
+ */
+ ListEventsResponse.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new ListEventsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.servicehealth.v1.ListEventsResponse
+ * @static
+ * @param {google.cloud.servicehealth.v1.IListEventsResponse=} [properties] Properties to set
+ * @returns {google.cloud.servicehealth.v1.ListEventsResponse} ListEventsResponse instance
+ */
+ ListEventsResponse.create = function create(properties) {
+ return new ListEventsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListEventsResponse message. Does not implicitly {@link google.cloud.servicehealth.v1.ListEventsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.servicehealth.v1.ListEventsResponse
+ * @static
+ * @param {google.cloud.servicehealth.v1.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) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.events != null && message.events.length)
+ for (var i = 0; i < message.events.length; ++i)
+ $root.google.cloud.servicehealth.v1.Event.encode(message.events[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ if (message.unreachable != null && message.unreachable.length)
+ for (var i = 0; i < message.unreachable.length; ++i)
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListEventsResponse message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.ListEventsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.servicehealth.v1.ListEventsResponse
+ * @static
+ * @param {google.cloud.servicehealth.v1.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).ldelim();
+ };
+
+ /**
+ * Decodes a ListEventsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.servicehealth.v1.ListEventsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.servicehealth.v1.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) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.servicehealth.v1.ListEventsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.events && message.events.length))
+ message.events = [];
+ message.events.push($root.google.cloud.servicehealth.v1.Event.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ case 3: {
+ if (!(message.unreachable && message.unreachable.length))
+ message.unreachable = [];
+ message.unreachable.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListEventsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.servicehealth.v1.ListEventsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.servicehealth.v1.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.cloud.servicehealth.v1.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) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.events != null && message.hasOwnProperty("events")) {
+ if (!Array.isArray(message.events))
+ return "events: array expected";
+ for (var i = 0; i < message.events.length; ++i) {
+ var error = $root.google.cloud.servicehealth.v1.Event.verify(message.events[i]);
+ if (error)
+ return "events." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ if (message.unreachable != null && message.hasOwnProperty("unreachable")) {
+ if (!Array.isArray(message.unreachable))
+ return "unreachable: array expected";
+ for (var i = 0; i < message.unreachable.length; ++i)
+ if (!$util.isString(message.unreachable[i]))
+ return "unreachable: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ListEventsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.servicehealth.v1.ListEventsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.servicehealth.v1.ListEventsResponse} ListEventsResponse
+ */
+ ListEventsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.servicehealth.v1.ListEventsResponse)
+ return object;
+ var message = new $root.google.cloud.servicehealth.v1.ListEventsResponse();
+ if (object.events) {
+ if (!Array.isArray(object.events))
+ throw TypeError(".google.cloud.servicehealth.v1.ListEventsResponse.events: array expected");
+ message.events = [];
+ for (var i = 0; i < object.events.length; ++i) {
+ if (typeof object.events[i] !== "object")
+ throw TypeError(".google.cloud.servicehealth.v1.ListEventsResponse.events: object expected");
+ message.events[i] = $root.google.cloud.servicehealth.v1.Event.fromObject(object.events[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.unreachable) {
+ if (!Array.isArray(object.unreachable))
+ throw TypeError(".google.cloud.servicehealth.v1.ListEventsResponse.unreachable: array expected");
+ message.unreachable = [];
+ for (var i = 0; i < object.unreachable.length; ++i)
+ message.unreachable[i] = String(object.unreachable[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListEventsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.servicehealth.v1.ListEventsResponse
+ * @static
+ * @param {google.cloud.servicehealth.v1.ListEventsResponse} message ListEventsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListEventsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.events = [];
+ object.unreachable = [];
+ }
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.events && message.events.length) {
+ object.events = [];
+ for (var j = 0; j < message.events.length; ++j)
+ object.events[j] = $root.google.cloud.servicehealth.v1.Event.toObject(message.events[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ if (message.unreachable && message.unreachable.length) {
+ object.unreachable = [];
+ for (var j = 0; j < message.unreachable.length; ++j)
+ object.unreachable[j] = message.unreachable[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ListEventsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.servicehealth.v1.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.cloud.servicehealth.v1.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.cloud.servicehealth.v1.ListEventsResponse";
+ };
+
+ return ListEventsResponse;
+ })();
+
+ v1.GetEventRequest = (function() {
+
+ /**
+ * Properties of a GetEventRequest.
+ * @memberof google.cloud.servicehealth.v1
+ * @interface IGetEventRequest
+ * @property {string|null} [name] GetEventRequest name
+ */
+
+ /**
+ * Constructs a new GetEventRequest.
+ * @memberof google.cloud.servicehealth.v1
+ * @classdesc Represents a GetEventRequest.
+ * @implements IGetEventRequest
+ * @constructor
+ * @param {google.cloud.servicehealth.v1.IGetEventRequest=} [properties] Properties to set
+ */
+ function GetEventRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * GetEventRequest name.
+ * @member {string} name
+ * @memberof google.cloud.servicehealth.v1.GetEventRequest
+ * @instance
+ */
+ GetEventRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetEventRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.servicehealth.v1.GetEventRequest
+ * @static
+ * @param {google.cloud.servicehealth.v1.IGetEventRequest=} [properties] Properties to set
+ * @returns {google.cloud.servicehealth.v1.GetEventRequest} GetEventRequest instance
+ */
+ GetEventRequest.create = function create(properties) {
+ return new GetEventRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetEventRequest message. Does not implicitly {@link google.cloud.servicehealth.v1.GetEventRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.servicehealth.v1.GetEventRequest
+ * @static
+ * @param {google.cloud.servicehealth.v1.IGetEventRequest} message GetEventRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetEventRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetEventRequest message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.GetEventRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.servicehealth.v1.GetEventRequest
+ * @static
+ * @param {google.cloud.servicehealth.v1.IGetEventRequest} message GetEventRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetEventRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetEventRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.servicehealth.v1.GetEventRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.servicehealth.v1.GetEventRequest} GetEventRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetEventRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.servicehealth.v1.GetEventRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetEventRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.servicehealth.v1.GetEventRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.servicehealth.v1.GetEventRequest} GetEventRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetEventRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetEventRequest message.
+ * @function verify
+ * @memberof google.cloud.servicehealth.v1.GetEventRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetEventRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GetEventRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.servicehealth.v1.GetEventRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.servicehealth.v1.GetEventRequest} GetEventRequest
+ */
+ GetEventRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.servicehealth.v1.GetEventRequest)
+ return object;
+ var message = new $root.google.cloud.servicehealth.v1.GetEventRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetEventRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.servicehealth.v1.GetEventRequest
+ * @static
+ * @param {google.cloud.servicehealth.v1.GetEventRequest} message GetEventRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetEventRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this GetEventRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.servicehealth.v1.GetEventRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetEventRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetEventRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.servicehealth.v1.GetEventRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetEventRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.servicehealth.v1.GetEventRequest";
+ };
+
+ return GetEventRequest;
+ })();
+
+ v1.ListOrganizationEventsRequest = (function() {
+
+ /**
+ * Properties of a ListOrganizationEventsRequest.
+ * @memberof google.cloud.servicehealth.v1
+ * @interface IListOrganizationEventsRequest
+ * @property {string|null} [parent] ListOrganizationEventsRequest parent
+ * @property {number|null} [pageSize] ListOrganizationEventsRequest pageSize
+ * @property {string|null} [pageToken] ListOrganizationEventsRequest pageToken
+ * @property {string|null} [filter] ListOrganizationEventsRequest filter
+ * @property {google.cloud.servicehealth.v1.OrganizationEventView|null} [view] ListOrganizationEventsRequest view
+ */
+
+ /**
+ * Constructs a new ListOrganizationEventsRequest.
+ * @memberof google.cloud.servicehealth.v1
+ * @classdesc Represents a ListOrganizationEventsRequest.
+ * @implements IListOrganizationEventsRequest
+ * @constructor
+ * @param {google.cloud.servicehealth.v1.IListOrganizationEventsRequest=} [properties] Properties to set
+ */
+ function ListOrganizationEventsRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ListOrganizationEventsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationEventsRequest
+ * @instance
+ */
+ ListOrganizationEventsRequest.prototype.parent = "";
+
+ /**
+ * ListOrganizationEventsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationEventsRequest
+ * @instance
+ */
+ ListOrganizationEventsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListOrganizationEventsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationEventsRequest
+ * @instance
+ */
+ ListOrganizationEventsRequest.prototype.pageToken = "";
+
+ /**
+ * ListOrganizationEventsRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationEventsRequest
+ * @instance
+ */
+ ListOrganizationEventsRequest.prototype.filter = "";
+
+ /**
+ * ListOrganizationEventsRequest view.
+ * @member {google.cloud.servicehealth.v1.OrganizationEventView} view
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationEventsRequest
+ * @instance
+ */
+ ListOrganizationEventsRequest.prototype.view = 0;
+
+ /**
+ * Creates a new ListOrganizationEventsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationEventsRequest
+ * @static
+ * @param {google.cloud.servicehealth.v1.IListOrganizationEventsRequest=} [properties] Properties to set
+ * @returns {google.cloud.servicehealth.v1.ListOrganizationEventsRequest} ListOrganizationEventsRequest instance
+ */
+ ListOrganizationEventsRequest.create = function create(properties) {
+ return new ListOrganizationEventsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListOrganizationEventsRequest message. Does not implicitly {@link google.cloud.servicehealth.v1.ListOrganizationEventsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationEventsRequest
+ * @static
+ * @param {google.cloud.servicehealth.v1.IListOrganizationEventsRequest} message ListOrganizationEventsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListOrganizationEventsRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken);
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter);
+ if (message.view != null && Object.hasOwnProperty.call(message, "view"))
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.view);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListOrganizationEventsRequest message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.ListOrganizationEventsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationEventsRequest
+ * @static
+ * @param {google.cloud.servicehealth.v1.IListOrganizationEventsRequest} message ListOrganizationEventsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListOrganizationEventsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListOrganizationEventsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationEventsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.servicehealth.v1.ListOrganizationEventsRequest} ListOrganizationEventsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListOrganizationEventsRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.servicehealth.v1.ListOrganizationEventsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 4: {
+ message.filter = reader.string();
+ break;
+ }
+ case 6: {
+ message.view = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListOrganizationEventsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationEventsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.servicehealth.v1.ListOrganizationEventsRequest} ListOrganizationEventsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListOrganizationEventsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListOrganizationEventsRequest message.
+ * @function verify
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationEventsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListOrganizationEventsRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ if (!$util.isString(message.filter))
+ return "filter: string expected";
+ if (message.view != null && message.hasOwnProperty("view"))
+ switch (message.view) {
+ default:
+ return "view: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ListOrganizationEventsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationEventsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.servicehealth.v1.ListOrganizationEventsRequest} ListOrganizationEventsRequest
+ */
+ ListOrganizationEventsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.servicehealth.v1.ListOrganizationEventsRequest)
+ return object;
+ var message = new $root.google.cloud.servicehealth.v1.ListOrganizationEventsRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ if (object.filter != null)
+ message.filter = String(object.filter);
+ switch (object.view) {
+ default:
+ if (typeof object.view === "number") {
+ message.view = object.view;
+ break;
+ }
+ break;
+ case "ORGANIZATION_EVENT_VIEW_UNSPECIFIED":
+ case 0:
+ message.view = 0;
+ break;
+ case "ORGANIZATION_EVENT_VIEW_BASIC":
+ case 1:
+ message.view = 1;
+ break;
+ case "ORGANIZATION_EVENT_VIEW_FULL":
+ case 2:
+ message.view = 2;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListOrganizationEventsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationEventsRequest
+ * @static
+ * @param {google.cloud.servicehealth.v1.ListOrganizationEventsRequest} message ListOrganizationEventsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListOrganizationEventsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.filter = "";
+ object.view = options.enums === String ? "ORGANIZATION_EVENT_VIEW_UNSPECIFIED" : 0;
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ object.filter = message.filter;
+ if (message.view != null && message.hasOwnProperty("view"))
+ object.view = options.enums === String ? $root.google.cloud.servicehealth.v1.OrganizationEventView[message.view] === undefined ? message.view : $root.google.cloud.servicehealth.v1.OrganizationEventView[message.view] : message.view;
+ return object;
+ };
+
+ /**
+ * Converts this ListOrganizationEventsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationEventsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListOrganizationEventsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListOrganizationEventsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationEventsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListOrganizationEventsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.servicehealth.v1.ListOrganizationEventsRequest";
+ };
+
+ return ListOrganizationEventsRequest;
+ })();
+
+ v1.ListOrganizationEventsResponse = (function() {
+
+ /**
+ * Properties of a ListOrganizationEventsResponse.
+ * @memberof google.cloud.servicehealth.v1
+ * @interface IListOrganizationEventsResponse
+ * @property {Array.|null} [organizationEvents] ListOrganizationEventsResponse organizationEvents
+ * @property {string|null} [nextPageToken] ListOrganizationEventsResponse nextPageToken
+ * @property {Array.|null} [unreachable] ListOrganizationEventsResponse unreachable
+ */
+
+ /**
+ * Constructs a new ListOrganizationEventsResponse.
+ * @memberof google.cloud.servicehealth.v1
+ * @classdesc Represents a ListOrganizationEventsResponse.
+ * @implements IListOrganizationEventsResponse
+ * @constructor
+ * @param {google.cloud.servicehealth.v1.IListOrganizationEventsResponse=} [properties] Properties to set
+ */
+ function ListOrganizationEventsResponse(properties) {
+ this.organizationEvents = [];
+ this.unreachable = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ListOrganizationEventsResponse organizationEvents.
+ * @member {Array.} organizationEvents
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationEventsResponse
+ * @instance
+ */
+ ListOrganizationEventsResponse.prototype.organizationEvents = $util.emptyArray;
+
+ /**
+ * ListOrganizationEventsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationEventsResponse
+ * @instance
+ */
+ ListOrganizationEventsResponse.prototype.nextPageToken = "";
+
+ /**
+ * ListOrganizationEventsResponse unreachable.
+ * @member {Array.} unreachable
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationEventsResponse
+ * @instance
+ */
+ ListOrganizationEventsResponse.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new ListOrganizationEventsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationEventsResponse
+ * @static
+ * @param {google.cloud.servicehealth.v1.IListOrganizationEventsResponse=} [properties] Properties to set
+ * @returns {google.cloud.servicehealth.v1.ListOrganizationEventsResponse} ListOrganizationEventsResponse instance
+ */
+ ListOrganizationEventsResponse.create = function create(properties) {
+ return new ListOrganizationEventsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListOrganizationEventsResponse message. Does not implicitly {@link google.cloud.servicehealth.v1.ListOrganizationEventsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationEventsResponse
+ * @static
+ * @param {google.cloud.servicehealth.v1.IListOrganizationEventsResponse} message ListOrganizationEventsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListOrganizationEventsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.organizationEvents != null && message.organizationEvents.length)
+ for (var i = 0; i < message.organizationEvents.length; ++i)
+ $root.google.cloud.servicehealth.v1.OrganizationEvent.encode(message.organizationEvents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ if (message.unreachable != null && message.unreachable.length)
+ for (var i = 0; i < message.unreachable.length; ++i)
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListOrganizationEventsResponse message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.ListOrganizationEventsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationEventsResponse
+ * @static
+ * @param {google.cloud.servicehealth.v1.IListOrganizationEventsResponse} message ListOrganizationEventsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListOrganizationEventsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListOrganizationEventsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationEventsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.servicehealth.v1.ListOrganizationEventsResponse} ListOrganizationEventsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListOrganizationEventsResponse.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.servicehealth.v1.ListOrganizationEventsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.organizationEvents && message.organizationEvents.length))
+ message.organizationEvents = [];
+ message.organizationEvents.push($root.google.cloud.servicehealth.v1.OrganizationEvent.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ case 3: {
+ if (!(message.unreachable && message.unreachable.length))
+ message.unreachable = [];
+ message.unreachable.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListOrganizationEventsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationEventsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.servicehealth.v1.ListOrganizationEventsResponse} ListOrganizationEventsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListOrganizationEventsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListOrganizationEventsResponse message.
+ * @function verify
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationEventsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListOrganizationEventsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.organizationEvents != null && message.hasOwnProperty("organizationEvents")) {
+ if (!Array.isArray(message.organizationEvents))
+ return "organizationEvents: array expected";
+ for (var i = 0; i < message.organizationEvents.length; ++i) {
+ var error = $root.google.cloud.servicehealth.v1.OrganizationEvent.verify(message.organizationEvents[i]);
+ if (error)
+ return "organizationEvents." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ if (message.unreachable != null && message.hasOwnProperty("unreachable")) {
+ if (!Array.isArray(message.unreachable))
+ return "unreachable: array expected";
+ for (var i = 0; i < message.unreachable.length; ++i)
+ if (!$util.isString(message.unreachable[i]))
+ return "unreachable: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ListOrganizationEventsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationEventsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.servicehealth.v1.ListOrganizationEventsResponse} ListOrganizationEventsResponse
+ */
+ ListOrganizationEventsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.servicehealth.v1.ListOrganizationEventsResponse)
+ return object;
+ var message = new $root.google.cloud.servicehealth.v1.ListOrganizationEventsResponse();
+ if (object.organizationEvents) {
+ if (!Array.isArray(object.organizationEvents))
+ throw TypeError(".google.cloud.servicehealth.v1.ListOrganizationEventsResponse.organizationEvents: array expected");
+ message.organizationEvents = [];
+ for (var i = 0; i < object.organizationEvents.length; ++i) {
+ if (typeof object.organizationEvents[i] !== "object")
+ throw TypeError(".google.cloud.servicehealth.v1.ListOrganizationEventsResponse.organizationEvents: object expected");
+ message.organizationEvents[i] = $root.google.cloud.servicehealth.v1.OrganizationEvent.fromObject(object.organizationEvents[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.unreachable) {
+ if (!Array.isArray(object.unreachable))
+ throw TypeError(".google.cloud.servicehealth.v1.ListOrganizationEventsResponse.unreachable: array expected");
+ message.unreachable = [];
+ for (var i = 0; i < object.unreachable.length; ++i)
+ message.unreachable[i] = String(object.unreachable[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListOrganizationEventsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationEventsResponse
+ * @static
+ * @param {google.cloud.servicehealth.v1.ListOrganizationEventsResponse} message ListOrganizationEventsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListOrganizationEventsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.organizationEvents = [];
+ object.unreachable = [];
+ }
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.organizationEvents && message.organizationEvents.length) {
+ object.organizationEvents = [];
+ for (var j = 0; j < message.organizationEvents.length; ++j)
+ object.organizationEvents[j] = $root.google.cloud.servicehealth.v1.OrganizationEvent.toObject(message.organizationEvents[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ if (message.unreachable && message.unreachable.length) {
+ object.unreachable = [];
+ for (var j = 0; j < message.unreachable.length; ++j)
+ object.unreachable[j] = message.unreachable[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ListOrganizationEventsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationEventsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListOrganizationEventsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListOrganizationEventsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationEventsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListOrganizationEventsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.servicehealth.v1.ListOrganizationEventsResponse";
+ };
+
+ return ListOrganizationEventsResponse;
+ })();
+
+ v1.GetOrganizationEventRequest = (function() {
+
+ /**
+ * Properties of a GetOrganizationEventRequest.
+ * @memberof google.cloud.servicehealth.v1
+ * @interface IGetOrganizationEventRequest
+ * @property {string|null} [name] GetOrganizationEventRequest name
+ */
+
+ /**
+ * Constructs a new GetOrganizationEventRequest.
+ * @memberof google.cloud.servicehealth.v1
+ * @classdesc Represents a GetOrganizationEventRequest.
+ * @implements IGetOrganizationEventRequest
+ * @constructor
+ * @param {google.cloud.servicehealth.v1.IGetOrganizationEventRequest=} [properties] Properties to set
+ */
+ function GetOrganizationEventRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * GetOrganizationEventRequest name.
+ * @member {string} name
+ * @memberof google.cloud.servicehealth.v1.GetOrganizationEventRequest
+ * @instance
+ */
+ GetOrganizationEventRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetOrganizationEventRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.servicehealth.v1.GetOrganizationEventRequest
+ * @static
+ * @param {google.cloud.servicehealth.v1.IGetOrganizationEventRequest=} [properties] Properties to set
+ * @returns {google.cloud.servicehealth.v1.GetOrganizationEventRequest} GetOrganizationEventRequest instance
+ */
+ GetOrganizationEventRequest.create = function create(properties) {
+ return new GetOrganizationEventRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetOrganizationEventRequest message. Does not implicitly {@link google.cloud.servicehealth.v1.GetOrganizationEventRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.servicehealth.v1.GetOrganizationEventRequest
+ * @static
+ * @param {google.cloud.servicehealth.v1.IGetOrganizationEventRequest} message GetOrganizationEventRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetOrganizationEventRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetOrganizationEventRequest message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.GetOrganizationEventRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.servicehealth.v1.GetOrganizationEventRequest
+ * @static
+ * @param {google.cloud.servicehealth.v1.IGetOrganizationEventRequest} message GetOrganizationEventRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetOrganizationEventRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetOrganizationEventRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.servicehealth.v1.GetOrganizationEventRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.servicehealth.v1.GetOrganizationEventRequest} GetOrganizationEventRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetOrganizationEventRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.servicehealth.v1.GetOrganizationEventRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetOrganizationEventRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.servicehealth.v1.GetOrganizationEventRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.servicehealth.v1.GetOrganizationEventRequest} GetOrganizationEventRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetOrganizationEventRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetOrganizationEventRequest message.
+ * @function verify
+ * @memberof google.cloud.servicehealth.v1.GetOrganizationEventRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetOrganizationEventRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GetOrganizationEventRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.servicehealth.v1.GetOrganizationEventRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.servicehealth.v1.GetOrganizationEventRequest} GetOrganizationEventRequest
+ */
+ GetOrganizationEventRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.servicehealth.v1.GetOrganizationEventRequest)
+ return object;
+ var message = new $root.google.cloud.servicehealth.v1.GetOrganizationEventRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetOrganizationEventRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.servicehealth.v1.GetOrganizationEventRequest
+ * @static
+ * @param {google.cloud.servicehealth.v1.GetOrganizationEventRequest} message GetOrganizationEventRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetOrganizationEventRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this GetOrganizationEventRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.servicehealth.v1.GetOrganizationEventRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetOrganizationEventRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetOrganizationEventRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.servicehealth.v1.GetOrganizationEventRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetOrganizationEventRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.servicehealth.v1.GetOrganizationEventRequest";
+ };
+
+ return GetOrganizationEventRequest;
+ })();
+
+ v1.ListOrganizationImpactsRequest = (function() {
+
+ /**
+ * Properties of a ListOrganizationImpactsRequest.
+ * @memberof google.cloud.servicehealth.v1
+ * @interface IListOrganizationImpactsRequest
+ * @property {string|null} [parent] ListOrganizationImpactsRequest parent
+ * @property {number|null} [pageSize] ListOrganizationImpactsRequest pageSize
+ * @property {string|null} [pageToken] ListOrganizationImpactsRequest pageToken
+ * @property {string|null} [filter] ListOrganizationImpactsRequest filter
+ */
+
+ /**
+ * Constructs a new ListOrganizationImpactsRequest.
+ * @memberof google.cloud.servicehealth.v1
+ * @classdesc Represents a ListOrganizationImpactsRequest.
+ * @implements IListOrganizationImpactsRequest
+ * @constructor
+ * @param {google.cloud.servicehealth.v1.IListOrganizationImpactsRequest=} [properties] Properties to set
+ */
+ function ListOrganizationImpactsRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ListOrganizationImpactsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationImpactsRequest
+ * @instance
+ */
+ ListOrganizationImpactsRequest.prototype.parent = "";
+
+ /**
+ * ListOrganizationImpactsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationImpactsRequest
+ * @instance
+ */
+ ListOrganizationImpactsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListOrganizationImpactsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationImpactsRequest
+ * @instance
+ */
+ ListOrganizationImpactsRequest.prototype.pageToken = "";
+
+ /**
+ * ListOrganizationImpactsRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationImpactsRequest
+ * @instance
+ */
+ ListOrganizationImpactsRequest.prototype.filter = "";
+
+ /**
+ * Creates a new ListOrganizationImpactsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationImpactsRequest
+ * @static
+ * @param {google.cloud.servicehealth.v1.IListOrganizationImpactsRequest=} [properties] Properties to set
+ * @returns {google.cloud.servicehealth.v1.ListOrganizationImpactsRequest} ListOrganizationImpactsRequest instance
+ */
+ ListOrganizationImpactsRequest.create = function create(properties) {
+ return new ListOrganizationImpactsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListOrganizationImpactsRequest message. Does not implicitly {@link google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationImpactsRequest
+ * @static
+ * @param {google.cloud.servicehealth.v1.IListOrganizationImpactsRequest} message ListOrganizationImpactsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListOrganizationImpactsRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken);
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListOrganizationImpactsRequest message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.ListOrganizationImpactsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationImpactsRequest
+ * @static
+ * @param {google.cloud.servicehealth.v1.IListOrganizationImpactsRequest} message ListOrganizationImpactsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListOrganizationImpactsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListOrganizationImpactsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationImpactsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.servicehealth.v1.ListOrganizationImpactsRequest} ListOrganizationImpactsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListOrganizationImpactsRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 4: {
+ message.filter = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListOrganizationImpactsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationImpactsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.servicehealth.v1.ListOrganizationImpactsRequest} ListOrganizationImpactsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListOrganizationImpactsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListOrganizationImpactsRequest message.
+ * @function verify
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationImpactsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListOrganizationImpactsRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ if (!$util.isString(message.filter))
+ return "filter: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListOrganizationImpactsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationImpactsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.servicehealth.v1.ListOrganizationImpactsRequest} ListOrganizationImpactsRequest
+ */
+ ListOrganizationImpactsRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest)
+ return object;
+ var message = new $root.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ if (object.filter != null)
+ message.filter = String(object.filter);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListOrganizationImpactsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationImpactsRequest
+ * @static
+ * @param {google.cloud.servicehealth.v1.ListOrganizationImpactsRequest} message ListOrganizationImpactsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListOrganizationImpactsRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.filter = "";
+ }
+ if (message.parent != null && message.hasOwnProperty("parent"))
+ object.parent = message.parent;
+ if (message.pageSize != null && message.hasOwnProperty("pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && message.hasOwnProperty("pageToken"))
+ object.pageToken = message.pageToken;
+ if (message.filter != null && message.hasOwnProperty("filter"))
+ object.filter = message.filter;
+ return object;
+ };
+
+ /**
+ * Converts this ListOrganizationImpactsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationImpactsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListOrganizationImpactsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListOrganizationImpactsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationImpactsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListOrganizationImpactsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.servicehealth.v1.ListOrganizationImpactsRequest";
+ };
+
+ return ListOrganizationImpactsRequest;
+ })();
+
+ v1.ListOrganizationImpactsResponse = (function() {
+
+ /**
+ * Properties of a ListOrganizationImpactsResponse.
+ * @memberof google.cloud.servicehealth.v1
+ * @interface IListOrganizationImpactsResponse
+ * @property {Array.|null} [organizationImpacts] ListOrganizationImpactsResponse organizationImpacts
+ * @property {string|null} [nextPageToken] ListOrganizationImpactsResponse nextPageToken
+ * @property {Array.|null} [unreachable] ListOrganizationImpactsResponse unreachable
+ */
+
+ /**
+ * Constructs a new ListOrganizationImpactsResponse.
+ * @memberof google.cloud.servicehealth.v1
+ * @classdesc Represents a ListOrganizationImpactsResponse.
+ * @implements IListOrganizationImpactsResponse
+ * @constructor
+ * @param {google.cloud.servicehealth.v1.IListOrganizationImpactsResponse=} [properties] Properties to set
+ */
+ function ListOrganizationImpactsResponse(properties) {
+ this.organizationImpacts = [];
+ this.unreachable = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ListOrganizationImpactsResponse organizationImpacts.
+ * @member {Array.} organizationImpacts
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationImpactsResponse
+ * @instance
+ */
+ ListOrganizationImpactsResponse.prototype.organizationImpacts = $util.emptyArray;
+
+ /**
+ * ListOrganizationImpactsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationImpactsResponse
+ * @instance
+ */
+ ListOrganizationImpactsResponse.prototype.nextPageToken = "";
+
+ /**
+ * ListOrganizationImpactsResponse unreachable.
+ * @member {Array.} unreachable
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationImpactsResponse
+ * @instance
+ */
+ ListOrganizationImpactsResponse.prototype.unreachable = $util.emptyArray;
+
+ /**
+ * Creates a new ListOrganizationImpactsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationImpactsResponse
+ * @static
+ * @param {google.cloud.servicehealth.v1.IListOrganizationImpactsResponse=} [properties] Properties to set
+ * @returns {google.cloud.servicehealth.v1.ListOrganizationImpactsResponse} ListOrganizationImpactsResponse instance
+ */
+ ListOrganizationImpactsResponse.create = function create(properties) {
+ return new ListOrganizationImpactsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListOrganizationImpactsResponse message. Does not implicitly {@link google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationImpactsResponse
+ * @static
+ * @param {google.cloud.servicehealth.v1.IListOrganizationImpactsResponse} message ListOrganizationImpactsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListOrganizationImpactsResponse.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.organizationImpacts != null && message.organizationImpacts.length)
+ for (var i = 0; i < message.organizationImpacts.length; ++i)
+ $root.google.cloud.servicehealth.v1.OrganizationImpact.encode(message.organizationImpacts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ if (message.unreachable != null && message.unreachable.length)
+ for (var i = 0; i < message.unreachable.length; ++i)
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.unreachable[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListOrganizationImpactsResponse message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationImpactsResponse
+ * @static
+ * @param {google.cloud.servicehealth.v1.IListOrganizationImpactsResponse} message ListOrganizationImpactsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListOrganizationImpactsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListOrganizationImpactsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationImpactsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.servicehealth.v1.ListOrganizationImpactsResponse} ListOrganizationImpactsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListOrganizationImpactsResponse.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.organizationImpacts && message.organizationImpacts.length))
+ message.organizationImpacts = [];
+ message.organizationImpacts.push($root.google.cloud.servicehealth.v1.OrganizationImpact.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ case 3: {
+ if (!(message.unreachable && message.unreachable.length))
+ message.unreachable = [];
+ message.unreachable.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListOrganizationImpactsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationImpactsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.servicehealth.v1.ListOrganizationImpactsResponse} ListOrganizationImpactsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListOrganizationImpactsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListOrganizationImpactsResponse message.
+ * @function verify
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationImpactsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListOrganizationImpactsResponse.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.organizationImpacts != null && message.hasOwnProperty("organizationImpacts")) {
+ if (!Array.isArray(message.organizationImpacts))
+ return "organizationImpacts: array expected";
+ for (var i = 0; i < message.organizationImpacts.length; ++i) {
+ var error = $root.google.cloud.servicehealth.v1.OrganizationImpact.verify(message.organizationImpacts[i]);
+ if (error)
+ return "organizationImpacts." + error;
+ }
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ if (message.unreachable != null && message.hasOwnProperty("unreachable")) {
+ if (!Array.isArray(message.unreachable))
+ return "unreachable: array expected";
+ for (var i = 0; i < message.unreachable.length; ++i)
+ if (!$util.isString(message.unreachable[i]))
+ return "unreachable: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ListOrganizationImpactsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationImpactsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.servicehealth.v1.ListOrganizationImpactsResponse} ListOrganizationImpactsResponse
+ */
+ ListOrganizationImpactsResponse.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse)
+ return object;
+ var message = new $root.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse();
+ if (object.organizationImpacts) {
+ if (!Array.isArray(object.organizationImpacts))
+ throw TypeError(".google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.organizationImpacts: array expected");
+ message.organizationImpacts = [];
+ for (var i = 0; i < object.organizationImpacts.length; ++i) {
+ if (typeof object.organizationImpacts[i] !== "object")
+ throw TypeError(".google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.organizationImpacts: object expected");
+ message.organizationImpacts[i] = $root.google.cloud.servicehealth.v1.OrganizationImpact.fromObject(object.organizationImpacts[i]);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ if (object.unreachable) {
+ if (!Array.isArray(object.unreachable))
+ throw TypeError(".google.cloud.servicehealth.v1.ListOrganizationImpactsResponse.unreachable: array expected");
+ message.unreachable = [];
+ for (var i = 0; i < object.unreachable.length; ++i)
+ message.unreachable[i] = String(object.unreachable[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListOrganizationImpactsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationImpactsResponse
+ * @static
+ * @param {google.cloud.servicehealth.v1.ListOrganizationImpactsResponse} message ListOrganizationImpactsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListOrganizationImpactsResponse.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.organizationImpacts = [];
+ object.unreachable = [];
+ }
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.organizationImpacts && message.organizationImpacts.length) {
+ object.organizationImpacts = [];
+ for (var j = 0; j < message.organizationImpacts.length; ++j)
+ object.organizationImpacts[j] = $root.google.cloud.servicehealth.v1.OrganizationImpact.toObject(message.organizationImpacts[j], options);
+ }
+ if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ if (message.unreachable && message.unreachable.length) {
+ object.unreachable = [];
+ for (var j = 0; j < message.unreachable.length; ++j)
+ object.unreachable[j] = message.unreachable[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this ListOrganizationImpactsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationImpactsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListOrganizationImpactsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListOrganizationImpactsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.servicehealth.v1.ListOrganizationImpactsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListOrganizationImpactsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.servicehealth.v1.ListOrganizationImpactsResponse";
+ };
+
+ return ListOrganizationImpactsResponse;
+ })();
+
+ v1.GetOrganizationImpactRequest = (function() {
+
+ /**
+ * Properties of a GetOrganizationImpactRequest.
+ * @memberof google.cloud.servicehealth.v1
+ * @interface IGetOrganizationImpactRequest
+ * @property {string|null} [name] GetOrganizationImpactRequest name
+ */
+
+ /**
+ * Constructs a new GetOrganizationImpactRequest.
+ * @memberof google.cloud.servicehealth.v1
+ * @classdesc Represents a GetOrganizationImpactRequest.
+ * @implements IGetOrganizationImpactRequest
+ * @constructor
+ * @param {google.cloud.servicehealth.v1.IGetOrganizationImpactRequest=} [properties] Properties to set
+ */
+ function GetOrganizationImpactRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * GetOrganizationImpactRequest name.
+ * @member {string} name
+ * @memberof google.cloud.servicehealth.v1.GetOrganizationImpactRequest
+ * @instance
+ */
+ GetOrganizationImpactRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetOrganizationImpactRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.servicehealth.v1.GetOrganizationImpactRequest
+ * @static
+ * @param {google.cloud.servicehealth.v1.IGetOrganizationImpactRequest=} [properties] Properties to set
+ * @returns {google.cloud.servicehealth.v1.GetOrganizationImpactRequest} GetOrganizationImpactRequest instance
+ */
+ GetOrganizationImpactRequest.create = function create(properties) {
+ return new GetOrganizationImpactRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetOrganizationImpactRequest message. Does not implicitly {@link google.cloud.servicehealth.v1.GetOrganizationImpactRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.servicehealth.v1.GetOrganizationImpactRequest
+ * @static
+ * @param {google.cloud.servicehealth.v1.IGetOrganizationImpactRequest} message GetOrganizationImpactRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetOrganizationImpactRequest.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetOrganizationImpactRequest message, length delimited. Does not implicitly {@link google.cloud.servicehealth.v1.GetOrganizationImpactRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.servicehealth.v1.GetOrganizationImpactRequest
+ * @static
+ * @param {google.cloud.servicehealth.v1.IGetOrganizationImpactRequest} message GetOrganizationImpactRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetOrganizationImpactRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetOrganizationImpactRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.servicehealth.v1.GetOrganizationImpactRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.servicehealth.v1.GetOrganizationImpactRequest} GetOrganizationImpactRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetOrganizationImpactRequest.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.servicehealth.v1.GetOrganizationImpactRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetOrganizationImpactRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.servicehealth.v1.GetOrganizationImpactRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.servicehealth.v1.GetOrganizationImpactRequest} GetOrganizationImpactRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetOrganizationImpactRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetOrganizationImpactRequest message.
+ * @function verify
+ * @memberof google.cloud.servicehealth.v1.GetOrganizationImpactRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetOrganizationImpactRequest.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GetOrganizationImpactRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.servicehealth.v1.GetOrganizationImpactRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.servicehealth.v1.GetOrganizationImpactRequest} GetOrganizationImpactRequest
+ */
+ GetOrganizationImpactRequest.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.servicehealth.v1.GetOrganizationImpactRequest)
+ return object;
+ var message = new $root.google.cloud.servicehealth.v1.GetOrganizationImpactRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetOrganizationImpactRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.servicehealth.v1.GetOrganizationImpactRequest
+ * @static
+ * @param {google.cloud.servicehealth.v1.GetOrganizationImpactRequest} message GetOrganizationImpactRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetOrganizationImpactRequest.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this GetOrganizationImpactRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.servicehealth.v1.GetOrganizationImpactRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetOrganizationImpactRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetOrganizationImpactRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.servicehealth.v1.GetOrganizationImpactRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetOrganizationImpactRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.servicehealth.v1.GetOrganizationImpactRequest";
+ };
+
+ return GetOrganizationImpactRequest;
+ })();
+
+ /**
+ * EventView enum.
+ * @name google.cloud.servicehealth.v1.EventView
+ * @enum {number}
+ * @property {number} EVENT_VIEW_UNSPECIFIED=0 EVENT_VIEW_UNSPECIFIED value
+ * @property {number} EVENT_VIEW_BASIC=1 EVENT_VIEW_BASIC value
+ * @property {number} EVENT_VIEW_FULL=2 EVENT_VIEW_FULL value
+ */
+ v1.EventView = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "EVENT_VIEW_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "EVENT_VIEW_BASIC"] = 1;
+ values[valuesById[2] = "EVENT_VIEW_FULL"] = 2;
+ return values;
+ })();
+
+ /**
+ * OrganizationEventView enum.
+ * @name google.cloud.servicehealth.v1.OrganizationEventView
+ * @enum {number}
+ * @property {number} ORGANIZATION_EVENT_VIEW_UNSPECIFIED=0 ORGANIZATION_EVENT_VIEW_UNSPECIFIED value
+ * @property {number} ORGANIZATION_EVENT_VIEW_BASIC=1 ORGANIZATION_EVENT_VIEW_BASIC value
+ * @property {number} ORGANIZATION_EVENT_VIEW_FULL=2 ORGANIZATION_EVENT_VIEW_FULL value
+ */
+ v1.OrganizationEventView = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "ORGANIZATION_EVENT_VIEW_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "ORGANIZATION_EVENT_VIEW_BASIC"] = 1;
+ values[valuesById[2] = "ORGANIZATION_EVENT_VIEW_FULL"] = 2;
+ return values;
+ })();
+
+ v1.ServiceHealth = (function() {
+
+ /**
+ * Constructs a new ServiceHealth service.
+ * @memberof google.cloud.servicehealth.v1
+ * @classdesc Represents a ServiceHealth
+ * @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 ServiceHealth(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (ServiceHealth.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ServiceHealth;
+
+ /**
+ * Creates new ServiceHealth service using the specified rpc implementation.
+ * @function create
+ * @memberof google.cloud.servicehealth.v1.ServiceHealth
+ * @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 {ServiceHealth} RPC service. Useful where requests and/or responses are streamed.
+ */
+ ServiceHealth.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.cloud.servicehealth.v1.ServiceHealth|listEvents}.
+ * @memberof google.cloud.servicehealth.v1.ServiceHealth
+ * @typedef ListEventsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.servicehealth.v1.ListEventsResponse} [response] ListEventsResponse
+ */
+
+ /**
+ * Calls ListEvents.
+ * @function listEvents
+ * @memberof google.cloud.servicehealth.v1.ServiceHealth
+ * @instance
+ * @param {google.cloud.servicehealth.v1.IListEventsRequest} request ListEventsRequest message or plain object
+ * @param {google.cloud.servicehealth.v1.ServiceHealth.ListEventsCallback} callback Node-style callback called with the error, if any, and ListEventsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ServiceHealth.prototype.listEvents = function listEvents(request, callback) {
+ return this.rpcCall(listEvents, $root.google.cloud.servicehealth.v1.ListEventsRequest, $root.google.cloud.servicehealth.v1.ListEventsResponse, request, callback);
+ }, "name", { value: "ListEvents" });
+
+ /**
+ * Calls ListEvents.
+ * @function listEvents
+ * @memberof google.cloud.servicehealth.v1.ServiceHealth
+ * @instance
+ * @param {google.cloud.servicehealth.v1.IListEventsRequest} request ListEventsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.servicehealth.v1.ServiceHealth|getEvent}.
+ * @memberof google.cloud.servicehealth.v1.ServiceHealth
+ * @typedef GetEventCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.servicehealth.v1.Event} [response] Event
+ */
+
+ /**
+ * Calls GetEvent.
+ * @function getEvent
+ * @memberof google.cloud.servicehealth.v1.ServiceHealth
+ * @instance
+ * @param {google.cloud.servicehealth.v1.IGetEventRequest} request GetEventRequest message or plain object
+ * @param {google.cloud.servicehealth.v1.ServiceHealth.GetEventCallback} callback Node-style callback called with the error, if any, and Event
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ServiceHealth.prototype.getEvent = function getEvent(request, callback) {
+ return this.rpcCall(getEvent, $root.google.cloud.servicehealth.v1.GetEventRequest, $root.google.cloud.servicehealth.v1.Event, request, callback);
+ }, "name", { value: "GetEvent" });
+
+ /**
+ * Calls GetEvent.
+ * @function getEvent
+ * @memberof google.cloud.servicehealth.v1.ServiceHealth
+ * @instance
+ * @param {google.cloud.servicehealth.v1.IGetEventRequest} request GetEventRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.servicehealth.v1.ServiceHealth|listOrganizationEvents}.
+ * @memberof google.cloud.servicehealth.v1.ServiceHealth
+ * @typedef ListOrganizationEventsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.servicehealth.v1.ListOrganizationEventsResponse} [response] ListOrganizationEventsResponse
+ */
+
+ /**
+ * Calls ListOrganizationEvents.
+ * @function listOrganizationEvents
+ * @memberof google.cloud.servicehealth.v1.ServiceHealth
+ * @instance
+ * @param {google.cloud.servicehealth.v1.IListOrganizationEventsRequest} request ListOrganizationEventsRequest message or plain object
+ * @param {google.cloud.servicehealth.v1.ServiceHealth.ListOrganizationEventsCallback} callback Node-style callback called with the error, if any, and ListOrganizationEventsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ServiceHealth.prototype.listOrganizationEvents = function listOrganizationEvents(request, callback) {
+ return this.rpcCall(listOrganizationEvents, $root.google.cloud.servicehealth.v1.ListOrganizationEventsRequest, $root.google.cloud.servicehealth.v1.ListOrganizationEventsResponse, request, callback);
+ }, "name", { value: "ListOrganizationEvents" });
+
+ /**
+ * Calls ListOrganizationEvents.
+ * @function listOrganizationEvents
+ * @memberof google.cloud.servicehealth.v1.ServiceHealth
+ * @instance
+ * @param {google.cloud.servicehealth.v1.IListOrganizationEventsRequest} request ListOrganizationEventsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.servicehealth.v1.ServiceHealth|getOrganizationEvent}.
+ * @memberof google.cloud.servicehealth.v1.ServiceHealth
+ * @typedef GetOrganizationEventCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.servicehealth.v1.OrganizationEvent} [response] OrganizationEvent
+ */
+
+ /**
+ * Calls GetOrganizationEvent.
+ * @function getOrganizationEvent
+ * @memberof google.cloud.servicehealth.v1.ServiceHealth
+ * @instance
+ * @param {google.cloud.servicehealth.v1.IGetOrganizationEventRequest} request GetOrganizationEventRequest message or plain object
+ * @param {google.cloud.servicehealth.v1.ServiceHealth.GetOrganizationEventCallback} callback Node-style callback called with the error, if any, and OrganizationEvent
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ServiceHealth.prototype.getOrganizationEvent = function getOrganizationEvent(request, callback) {
+ return this.rpcCall(getOrganizationEvent, $root.google.cloud.servicehealth.v1.GetOrganizationEventRequest, $root.google.cloud.servicehealth.v1.OrganizationEvent, request, callback);
+ }, "name", { value: "GetOrganizationEvent" });
+
+ /**
+ * Calls GetOrganizationEvent.
+ * @function getOrganizationEvent
+ * @memberof google.cloud.servicehealth.v1.ServiceHealth
+ * @instance
+ * @param {google.cloud.servicehealth.v1.IGetOrganizationEventRequest} request GetOrganizationEventRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.servicehealth.v1.ServiceHealth|listOrganizationImpacts}.
+ * @memberof google.cloud.servicehealth.v1.ServiceHealth
+ * @typedef ListOrganizationImpactsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.servicehealth.v1.ListOrganizationImpactsResponse} [response] ListOrganizationImpactsResponse
+ */
+
+ /**
+ * Calls ListOrganizationImpacts.
+ * @function listOrganizationImpacts
+ * @memberof google.cloud.servicehealth.v1.ServiceHealth
+ * @instance
+ * @param {google.cloud.servicehealth.v1.IListOrganizationImpactsRequest} request ListOrganizationImpactsRequest message or plain object
+ * @param {google.cloud.servicehealth.v1.ServiceHealth.ListOrganizationImpactsCallback} callback Node-style callback called with the error, if any, and ListOrganizationImpactsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ServiceHealth.prototype.listOrganizationImpacts = function listOrganizationImpacts(request, callback) {
+ return this.rpcCall(listOrganizationImpacts, $root.google.cloud.servicehealth.v1.ListOrganizationImpactsRequest, $root.google.cloud.servicehealth.v1.ListOrganizationImpactsResponse, request, callback);
+ }, "name", { value: "ListOrganizationImpacts" });
+
+ /**
+ * Calls ListOrganizationImpacts.
+ * @function listOrganizationImpacts
+ * @memberof google.cloud.servicehealth.v1.ServiceHealth
+ * @instance
+ * @param {google.cloud.servicehealth.v1.IListOrganizationImpactsRequest} request ListOrganizationImpactsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.servicehealth.v1.ServiceHealth|getOrganizationImpact}.
+ * @memberof google.cloud.servicehealth.v1.ServiceHealth
+ * @typedef GetOrganizationImpactCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.servicehealth.v1.OrganizationImpact} [response] OrganizationImpact
+ */
+
+ /**
+ * Calls GetOrganizationImpact.
+ * @function getOrganizationImpact
+ * @memberof google.cloud.servicehealth.v1.ServiceHealth
+ * @instance
+ * @param {google.cloud.servicehealth.v1.IGetOrganizationImpactRequest} request GetOrganizationImpactRequest message or plain object
+ * @param {google.cloud.servicehealth.v1.ServiceHealth.GetOrganizationImpactCallback} callback Node-style callback called with the error, if any, and OrganizationImpact
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(ServiceHealth.prototype.getOrganizationImpact = function getOrganizationImpact(request, callback) {
+ return this.rpcCall(getOrganizationImpact, $root.google.cloud.servicehealth.v1.GetOrganizationImpactRequest, $root.google.cloud.servicehealth.v1.OrganizationImpact, request, callback);
+ }, "name", { value: "GetOrganizationImpact" });
+
+ /**
+ * Calls GetOrganizationImpact.
+ * @function getOrganizationImpact
+ * @memberof google.cloud.servicehealth.v1.ServiceHealth
+ * @instance
+ * @param {google.cloud.servicehealth.v1.IGetOrganizationImpactRequest} request GetOrganizationImpactRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return ServiceHealth;
+ })();
+
+ return v1;
+ })();
+
+ return servicehealth;
+ })();
+
+ return cloud;
+ })();
+
+ google.api = (function() {
+
+ /**
+ * Namespace api.
+ * @memberof google
+ * @namespace
+ */
+ var api = {};
+
+ /**
+ * FieldBehavior enum.
+ * @name google.api.FieldBehavior
+ * @enum {number}
+ * @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value
+ * @property {number} OPTIONAL=1 OPTIONAL value
+ * @property {number} REQUIRED=2 REQUIRED value
+ * @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value
+ * @property {number} INPUT_ONLY=4 INPUT_ONLY value
+ * @property {number} IMMUTABLE=5 IMMUTABLE value
+ * @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;
+ })();
+
+ 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)
+ 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) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
+ if (message.pattern != null && message.pattern.length)
+ for (var i = 0; i < message.pattern.length; ++i)
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.pattern[i]);
+ if (message.nameField != null && Object.hasOwnProperty.call(message, "nameField"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.nameField);
+ if (message.history != null && Object.hasOwnProperty.call(message, "history"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.history);
+ if (message.plural != null && Object.hasOwnProperty.call(message, "plural"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.plural);
+ if (message.singular != null && Object.hasOwnProperty.call(message, "singular"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.singular);
+ 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).ldelim();
+ };
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.ResourceDescriptor
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.ResourceDescriptor} ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ResourceDescriptor.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceDescriptor();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.type = reader.string();
+ break;
+ }
+ case 2: {
+ if (!(message.pattern && message.pattern.length))
+ message.pattern = [];
+ message.pattern.push(reader.string());
+ break;
+ }
+ case 3: {
+ message.nameField = reader.string();
+ break;
+ }
+ case 4: {
+ message.history = reader.int32();
+ break;
+ }
+ case 5: {
+ message.plural = reader.string();
+ break;
+ }
+ case 6: {
+ message.singular = reader.string();
+ break;
+ }
+ case 10: {
+ if (!(message.style && message.style.length))
+ message.style = [];
+ if ((tag & 7) === 2) {
+ var end2 = reader.uint32() + reader.pos;
+ while (reader.pos < end2)
+ message.style.push(reader.int32());
+ } else
+ message.style.push(reader.int32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.ResourceDescriptor
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.ResourceDescriptor} ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ResourceDescriptor.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ResourceDescriptor message.
+ * @function verify
+ * @memberof google.api.ResourceDescriptor
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ResourceDescriptor.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.type != null && message.hasOwnProperty("type"))
+ if (!$util.isString(message.type))
+ return "type: string expected";
+ if (message.pattern != null && message.hasOwnProperty("pattern")) {
+ if (!Array.isArray(message.pattern))
+ return "pattern: array expected";
+ for (var i = 0; i < message.pattern.length; ++i)
+ if (!$util.isString(message.pattern[i]))
+ return "pattern: string[] expected";
+ }
+ if (message.nameField != null && message.hasOwnProperty("nameField"))
+ if (!$util.isString(message.nameField))
+ return "nameField: string expected";
+ if (message.history != null && message.hasOwnProperty("history"))
+ switch (message.history) {
+ default:
+ return "history: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.plural != null && message.hasOwnProperty("plural"))
+ if (!$util.isString(message.plural))
+ return "plural: string expected";
+ if (message.singular != null && message.hasOwnProperty("singular"))
+ if (!$util.isString(message.singular))
+ return "singular: string expected";
+ if (message.style != null && message.hasOwnProperty("style")) {
+ if (!Array.isArray(message.style))
+ return "style: array expected";
+ for (var i = 0; i < message.style.length; ++i)
+ switch (message.style[i]) {
+ default:
+ return "style: enum value[] expected";
+ case 0:
+ case 1:
+ break;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.ResourceDescriptor
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.ResourceDescriptor} ResourceDescriptor
+ */
+ ResourceDescriptor.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.ResourceDescriptor)
+ return object;
+ var message = new $root.google.api.ResourceDescriptor();
+ if (object.type != null)
+ message.type = String(object.type);
+ if (object.pattern) {
+ if (!Array.isArray(object.pattern))
+ throw TypeError(".google.api.ResourceDescriptor.pattern: array expected");
+ message.pattern = [];
+ for (var i = 0; i < object.pattern.length; ++i)
+ message.pattern[i] = String(object.pattern[i]);
+ }
+ if (object.nameField != null)
+ message.nameField = String(object.nameField);
+ switch (object.history) {
+ 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) {
+ if (!options)
+ options = {};
+ 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 && message.hasOwnProperty("type"))
+ object.type = message.type;
+ if (message.pattern && message.pattern.length) {
+ object.pattern = [];
+ for (var j = 0; j < message.pattern.length; ++j)
+ object.pattern[j] = message.pattern[j];
+ }
+ if (message.nameField != null && message.hasOwnProperty("nameField"))
+ object.nameField = message.nameField;
+ if (message.history != null && message.hasOwnProperty("history"))
+ object.history = options.enums === String ? $root.google.api.ResourceDescriptor.History[message.history] === undefined ? message.history : $root.google.api.ResourceDescriptor.History[message.history] : message.history;
+ if (message.plural != null && message.hasOwnProperty("plural"))
+ object.plural = message.plural;
+ if (message.singular != null && message.hasOwnProperty("singular"))
+ 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)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ResourceReference type.
+ * @member {string} type
+ * @memberof google.api.ResourceReference
+ * @instance
+ */
+ ResourceReference.prototype.type = "";
+
+ /**
+ * ResourceReference childType.
+ * @member {string} childType
+ * @memberof google.api.ResourceReference
+ * @instance
+ */
+ ResourceReference.prototype.childType = "";
+
+ /**
+ * Creates a new ResourceReference instance using the specified properties.
+ * @function create
+ * @memberof google.api.ResourceReference
+ * @static
+ * @param {google.api.IResourceReference=} [properties] Properties to set
+ * @returns {google.api.ResourceReference} ResourceReference instance
+ */
+ ResourceReference.create = function create(properties) {
+ return new ResourceReference(properties);
+ };
+
+ /**
+ * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.ResourceReference
+ * @static
+ * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ResourceReference.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
+ if (message.childType != null && Object.hasOwnProperty.call(message, "childType"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.childType);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.ResourceReference
+ * @static
+ * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ResourceReference.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.ResourceReference
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.ResourceReference} ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ResourceReference.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ResourceReference();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.type = reader.string();
+ break;
+ }
+ case 2: {
+ message.childType = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.ResourceReference
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.ResourceReference} ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ResourceReference.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ResourceReference message.
+ * @function verify
+ * @memberof google.api.ResourceReference
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ResourceReference.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.type != null && message.hasOwnProperty("type"))
+ if (!$util.isString(message.type))
+ return "type: string expected";
+ if (message.childType != null && message.hasOwnProperty("childType"))
+ if (!$util.isString(message.childType))
+ return "childType: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.ResourceReference
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.ResourceReference} ResourceReference
+ */
+ ResourceReference.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.ResourceReference)
+ return object;
+ var message = new $root.google.api.ResourceReference();
+ if (object.type != null)
+ message.type = String(object.type);
+ if (object.childType != null)
+ message.childType = String(object.childType);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.ResourceReference
+ * @static
+ * @param {google.api.ResourceReference} message ResourceReference
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ResourceReference.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.type = "";
+ object.childType = "";
+ }
+ if (message.type != null && message.hasOwnProperty("type"))
+ object.type = message.type;
+ if (message.childType != null && message.hasOwnProperty("childType"))
+ object.childType = message.childType;
+ return object;
+ };
+
+ /**
+ * Converts this ResourceReference to JSON.
+ * @function toJSON
+ * @memberof google.api.ResourceReference
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ResourceReference.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * 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)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Http rules.
+ * @member {Array.} rules
+ * @memberof google.api.Http
+ * @instance
+ */
+ Http.prototype.rules = $util.emptyArray;
+
+ /**
+ * Http fullyDecodeReservedExpansion.
+ * @member {boolean} fullyDecodeReservedExpansion
+ * @memberof google.api.Http
+ * @instance
+ */
+ Http.prototype.fullyDecodeReservedExpansion = false;
+
+ /**
+ * Creates a new Http instance using the specified properties.
+ * @function create
+ * @memberof google.api.Http
+ * @static
+ * @param {google.api.IHttp=} [properties] Properties to set
+ * @returns {google.api.Http} Http instance
+ */
+ Http.create = function create(properties) {
+ return new Http(properties);
+ };
+
+ /**
+ * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.Http
+ * @static
+ * @param {google.api.IHttp} message Http message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Http.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.rules != null && message.rules.length)
+ for (var i = 0; i < message.rules.length; ++i)
+ $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ if (message.fullyDecodeReservedExpansion != null && Object.hasOwnProperty.call(message, "fullyDecodeReservedExpansion"))
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fullyDecodeReservedExpansion);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.Http
+ * @static
+ * @param {google.api.IHttp} message Http message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Http.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a Http message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.Http
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.Http} Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Http.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Http();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.rules && message.rules.length))
+ message.rules = [];
+ message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32()));
+ break;
+ }
+ case 2: {
+ message.fullyDecodeReservedExpansion = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Http message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.Http
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.Http} Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Http.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Http message.
+ * @function verify
+ * @memberof google.api.Http
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Http.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.rules != null && message.hasOwnProperty("rules")) {
+ if (!Array.isArray(message.rules))
+ return "rules: array expected";
+ for (var i = 0; i < message.rules.length; ++i) {
+ var error = $root.google.api.HttpRule.verify(message.rules[i]);
+ if (error)
+ return "rules." + error;
+ }
+ }
+ if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion"))
+ if (typeof message.fullyDecodeReservedExpansion !== "boolean")
+ return "fullyDecodeReservedExpansion: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates a Http message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.Http
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.Http} Http
+ */
+ Http.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.Http)
+ return object;
+ var message = new $root.google.api.Http();
+ if (object.rules) {
+ if (!Array.isArray(object.rules))
+ throw TypeError(".google.api.Http.rules: array expected");
+ message.rules = [];
+ for (var i = 0; i < object.rules.length; ++i) {
+ if (typeof object.rules[i] !== "object")
+ throw TypeError(".google.api.Http.rules: object expected");
+ message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i]);
+ }
+ }
+ if (object.fullyDecodeReservedExpansion != null)
+ message.fullyDecodeReservedExpansion = Boolean(object.fullyDecodeReservedExpansion);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Http message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.Http
+ * @static
+ * @param {google.api.Http} message Http
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Http.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.rules = [];
+ if (options.defaults)
+ object.fullyDecodeReservedExpansion = false;
+ if (message.rules && message.rules.length) {
+ object.rules = [];
+ for (var j = 0; j < message.rules.length; ++j)
+ object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options);
+ }
+ if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion"))
+ object.fullyDecodeReservedExpansion = message.fullyDecodeReservedExpansion;
+ return object;
+ };
+
+ /**
+ * Converts this Http to JSON.
+ * @function toJSON
+ * @memberof google.api.Http
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Http.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * 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)
+ 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) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.selector != null && Object.hasOwnProperty.call(message, "selector"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector);
+ if (message.get != null && Object.hasOwnProperty.call(message, "get"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.get);
+ if (message.put != null && Object.hasOwnProperty.call(message, "put"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.put);
+ if (message.post != null && Object.hasOwnProperty.call(message, "post"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.post);
+ if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]);
+ if (message.patch != null && Object.hasOwnProperty.call(message, "patch"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch);
+ if (message.body != null && Object.hasOwnProperty.call(message, "body"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.body);
+ if (message.custom != null && Object.hasOwnProperty.call(message, "custom"))
+ $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ if (message.additionalBindings != null && message.additionalBindings.length)
+ for (var i = 0; i < message.additionalBindings.length; ++i)
+ $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
+ if (message.responseBody != null && Object.hasOwnProperty.call(message, "responseBody"))
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.responseBody);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {google.api.IHttpRule} message HttpRule message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ HttpRule.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.HttpRule} HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ HttpRule.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.HttpRule();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.selector = reader.string();
+ break;
+ }
+ case 2: {
+ message.get = reader.string();
+ break;
+ }
+ case 3: {
+ message.put = reader.string();
+ break;
+ }
+ case 4: {
+ message.post = reader.string();
+ break;
+ }
+ case 5: {
+ message["delete"] = reader.string();
+ break;
+ }
+ case 6: {
+ message.patch = reader.string();
+ break;
+ }
+ case 8: {
+ message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32());
+ break;
+ }
+ case 7: {
+ message.body = reader.string();
+ break;
+ }
+ case 12: {
+ message.responseBody = reader.string();
+ break;
+ }
+ case 11: {
+ if (!(message.additionalBindings && message.additionalBindings.length))
+ message.additionalBindings = [];
+ message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.HttpRule} HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ HttpRule.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a HttpRule message.
+ * @function verify
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ HttpRule.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ var properties = {};
+ if (message.selector != null && message.hasOwnProperty("selector"))
+ if (!$util.isString(message.selector))
+ return "selector: string expected";
+ if (message.get != null && message.hasOwnProperty("get")) {
+ properties.pattern = 1;
+ if (!$util.isString(message.get))
+ return "get: string expected";
+ }
+ if (message.put != null && message.hasOwnProperty("put")) {
+ if (properties.pattern === 1)
+ return "pattern: multiple values";
+ properties.pattern = 1;
+ if (!$util.isString(message.put))
+ return "put: string expected";
+ }
+ if (message.post != null && message.hasOwnProperty("post")) {
+ if (properties.pattern === 1)
+ return "pattern: multiple values";
+ properties.pattern = 1;
+ if (!$util.isString(message.post))
+ return "post: string expected";
+ }
+ if (message["delete"] != null && message.hasOwnProperty("delete")) {
+ if (properties.pattern === 1)
+ return "pattern: multiple values";
+ properties.pattern = 1;
+ if (!$util.isString(message["delete"]))
+ return "delete: string expected";
+ }
+ if (message.patch != null && message.hasOwnProperty("patch")) {
+ if (properties.pattern === 1)
+ return "pattern: multiple values";
+ properties.pattern = 1;
+ if (!$util.isString(message.patch))
+ return "patch: string expected";
+ }
+ if (message.custom != null && message.hasOwnProperty("custom")) {
+ if (properties.pattern === 1)
+ return "pattern: multiple values";
+ properties.pattern = 1;
+ {
+ var error = $root.google.api.CustomHttpPattern.verify(message.custom);
+ if (error)
+ return "custom." + error;
+ }
+ }
+ if (message.body != null && message.hasOwnProperty("body"))
+ if (!$util.isString(message.body))
+ return "body: string expected";
+ if (message.responseBody != null && message.hasOwnProperty("responseBody"))
+ if (!$util.isString(message.responseBody))
+ return "responseBody: string expected";
+ if (message.additionalBindings != null && message.hasOwnProperty("additionalBindings")) {
+ if (!Array.isArray(message.additionalBindings))
+ return "additionalBindings: array expected";
+ for (var i = 0; i < message.additionalBindings.length; ++i) {
+ var error = $root.google.api.HttpRule.verify(message.additionalBindings[i]);
+ if (error)
+ return "additionalBindings." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.HttpRule} HttpRule
+ */
+ HttpRule.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.HttpRule)
+ return object;
+ var message = new $root.google.api.HttpRule();
+ if (object.selector != null)
+ message.selector = String(object.selector);
+ if (object.get != null)
+ message.get = String(object.get);
+ if (object.put != null)
+ message.put = String(object.put);
+ if (object.post != null)
+ message.post = String(object.post);
+ if (object["delete"] != null)
+ message["delete"] = String(object["delete"]);
+ if (object.patch != null)
+ message.patch = String(object.patch);
+ if (object.custom != null) {
+ if (typeof object.custom !== "object")
+ throw TypeError(".google.api.HttpRule.custom: object expected");
+ message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom);
+ }
+ if (object.body != null)
+ message.body = String(object.body);
+ if (object.responseBody != null)
+ message.responseBody = String(object.responseBody);
+ if (object.additionalBindings) {
+ if (!Array.isArray(object.additionalBindings))
+ throw TypeError(".google.api.HttpRule.additionalBindings: array expected");
+ message.additionalBindings = [];
+ for (var i = 0; i < object.additionalBindings.length; ++i) {
+ if (typeof object.additionalBindings[i] !== "object")
+ throw TypeError(".google.api.HttpRule.additionalBindings: object expected");
+ message.additionalBindings[i] = $root.google.api.HttpRule.fromObject(object.additionalBindings[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.HttpRule
+ * @static
+ * @param {google.api.HttpRule} message HttpRule
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ HttpRule.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.additionalBindings = [];
+ if (options.defaults) {
+ object.selector = "";
+ object.body = "";
+ object.responseBody = "";
+ }
+ if (message.selector != null && message.hasOwnProperty("selector"))
+ object.selector = message.selector;
+ if (message.get != null && message.hasOwnProperty("get")) {
+ object.get = message.get;
+ if (options.oneofs)
+ object.pattern = "get";
+ }
+ if (message.put != null && message.hasOwnProperty("put")) {
+ object.put = message.put;
+ if (options.oneofs)
+ object.pattern = "put";
+ }
+ if (message.post != null && message.hasOwnProperty("post")) {
+ object.post = message.post;
+ if (options.oneofs)
+ object.pattern = "post";
+ }
+ if (message["delete"] != null && message.hasOwnProperty("delete")) {
+ object["delete"] = message["delete"];
+ if (options.oneofs)
+ object.pattern = "delete";
+ }
+ if (message.patch != null && message.hasOwnProperty("patch")) {
+ object.patch = message.patch;
+ if (options.oneofs)
+ object.pattern = "patch";
+ }
+ if (message.body != null && message.hasOwnProperty("body"))
+ object.body = message.body;
+ if (message.custom != null && message.hasOwnProperty("custom")) {
+ object.custom = $root.google.api.CustomHttpPattern.toObject(message.custom, options);
+ if (options.oneofs)
+ object.pattern = "custom";
+ }
+ if (message.additionalBindings && message.additionalBindings.length) {
+ object.additionalBindings = [];
+ for (var j = 0; j < message.additionalBindings.length; ++j)
+ object.additionalBindings[j] = $root.google.api.HttpRule.toObject(message.additionalBindings[j], options);
+ }
+ if (message.responseBody != null && message.hasOwnProperty("responseBody"))
+ object.responseBody = message.responseBody;
+ return object;
+ };
+
+ /**
+ * Converts this HttpRule to JSON.
+ * @function toJSON
+ * @memberof google.api.HttpRule
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ HttpRule.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * 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)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * CustomHttpPattern kind.
+ * @member {string} kind
+ * @memberof google.api.CustomHttpPattern
+ * @instance
+ */
+ CustomHttpPattern.prototype.kind = "";
+
+ /**
+ * CustomHttpPattern path.
+ * @member {string} path
+ * @memberof google.api.CustomHttpPattern
+ * @instance
+ */
+ CustomHttpPattern.prototype.path = "";
+
+ /**
+ * Creates a new CustomHttpPattern instance using the specified properties.
+ * @function create
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {google.api.ICustomHttpPattern=} [properties] Properties to set
+ * @returns {google.api.CustomHttpPattern} CustomHttpPattern instance
+ */
+ CustomHttpPattern.create = function create(properties) {
+ return new CustomHttpPattern(properties);
+ };
+
+ /**
+ * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @function encode
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CustomHttpPattern.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.kind != null && Object.hasOwnProperty.call(message, "kind"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind);
+ if (message.path != null && Object.hasOwnProperty.call(message, "path"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.path);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CustomHttpPattern.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.api.CustomHttpPattern} CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CustomHttpPattern.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CustomHttpPattern();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.kind = reader.string();
+ break;
+ }
+ case 2: {
+ message.path = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.api.CustomHttpPattern} CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CustomHttpPattern.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CustomHttpPattern message.
+ * @function verify
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CustomHttpPattern.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.kind != null && message.hasOwnProperty("kind"))
+ if (!$util.isString(message.kind))
+ return "kind: string expected";
+ if (message.path != null && message.hasOwnProperty("path"))
+ if (!$util.isString(message.path))
+ return "path: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.api.CustomHttpPattern} CustomHttpPattern
+ */
+ CustomHttpPattern.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.api.CustomHttpPattern)
+ return object;
+ var message = new $root.google.api.CustomHttpPattern();
+ if (object.kind != null)
+ message.kind = String(object.kind);
+ if (object.path != null)
+ message.path = String(object.path);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.api.CustomHttpPattern
+ * @static
+ * @param {google.api.CustomHttpPattern} message CustomHttpPattern
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CustomHttpPattern.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.kind = "";
+ object.path = "";
+ }
+ if (message.kind != null && message.hasOwnProperty("kind"))
+ object.kind = message.kind;
+ if (message.path != null && message.hasOwnProperty("path"))
+ object.path = message.path;
+ return object;
+ };
+
+ /**
+ * Converts this CustomHttpPattern to JSON.
+ * @function toJSON
+ * @memberof google.api.CustomHttpPattern
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CustomHttpPattern.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * 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
+ */
+
+ /**
+ * 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)
+ 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;
+
+ /**
+ * 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) {
+ if (!writer)
+ writer = $Writer.create();
+ 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();
+ }
+ 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).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) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CommonLanguageSettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ 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;
+ }
+ default:
+ reader.skipType(tag & 7);
+ 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) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
+ if (!$util.isString(message.referenceDocsUri))
+ return "referenceDocsUri: string expected";
+ if (message.destinations != null && message.hasOwnProperty("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;
+ }
+ }
+ 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) {
+ if (object instanceof $root.google.api.CommonLanguageSettings)
+ return object;
+ 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;
+ }
+ }
+ 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) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.destinations = [];
+ if (options.defaults)
+ object.referenceDocsUri = "";
+ if (message.referenceDocsUri != null && message.hasOwnProperty("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];
+ }
+ 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)
+ 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) {
+ if (!writer)
+ writer = $Writer.create();
+ 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()).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()).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()).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()).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()).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()).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()).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()).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).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) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ClientLibrarySettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ 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());
+ break;
+ }
+ case 22: {
+ message.cppSettings = $root.google.api.CppSettings.decode(reader, reader.uint32());
+ break;
+ }
+ case 23: {
+ message.phpSettings = $root.google.api.PhpSettings.decode(reader, reader.uint32());
+ break;
+ }
+ case 24: {
+ message.pythonSettings = $root.google.api.PythonSettings.decode(reader, reader.uint32());
+ break;
+ }
+ case 25: {
+ message.nodeSettings = $root.google.api.NodeSettings.decode(reader, reader.uint32());
+ break;
+ }
+ case 26: {
+ message.dotnetSettings = $root.google.api.DotnetSettings.decode(reader, reader.uint32());
+ break;
+ }
+ case 27: {
+ message.rubySettings = $root.google.api.RubySettings.decode(reader, reader.uint32());
+ break;
+ }
+ case 28: {
+ message.goSettings = $root.google.api.GoSettings.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ 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) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.version != null && message.hasOwnProperty("version"))
+ if (!$util.isString(message.version))
+ return "version: string expected";
+ if (message.launchStage != null && message.hasOwnProperty("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 && message.hasOwnProperty("restNumericEnums"))
+ if (typeof message.restNumericEnums !== "boolean")
+ return "restNumericEnums: boolean expected";
+ if (message.javaSettings != null && message.hasOwnProperty("javaSettings")) {
+ var error = $root.google.api.JavaSettings.verify(message.javaSettings);
+ if (error)
+ return "javaSettings." + error;
+ }
+ if (message.cppSettings != null && message.hasOwnProperty("cppSettings")) {
+ var error = $root.google.api.CppSettings.verify(message.cppSettings);
+ if (error)
+ return "cppSettings." + error;
+ }
+ if (message.phpSettings != null && message.hasOwnProperty("phpSettings")) {
+ var error = $root.google.api.PhpSettings.verify(message.phpSettings);
+ if (error)
+ return "phpSettings." + error;
+ }
+ if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings")) {
+ var error = $root.google.api.PythonSettings.verify(message.pythonSettings);
+ if (error)
+ return "pythonSettings." + error;
+ }
+ if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings")) {
+ var error = $root.google.api.NodeSettings.verify(message.nodeSettings);
+ if (error)
+ return "nodeSettings." + error;
+ }
+ if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings")) {
+ var error = $root.google.api.DotnetSettings.verify(message.dotnetSettings);
+ if (error)
+ return "dotnetSettings." + error;
+ }
+ if (message.rubySettings != null && message.hasOwnProperty("rubySettings")) {
+ var error = $root.google.api.RubySettings.verify(message.rubySettings);
+ if (error)
+ return "rubySettings." + error;
+ }
+ if (message.goSettings != null && message.hasOwnProperty("goSettings")) {
+ var error = $root.google.api.GoSettings.verify(message.goSettings);
+ 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) {
+ if (object instanceof $root.google.api.ClientLibrarySettings)
+ return object;
+ 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 (typeof object.javaSettings !== "object")
+ throw TypeError(".google.api.ClientLibrarySettings.javaSettings: object expected");
+ message.javaSettings = $root.google.api.JavaSettings.fromObject(object.javaSettings);
+ }
+ if (object.cppSettings != null) {
+ if (typeof object.cppSettings !== "object")
+ throw TypeError(".google.api.ClientLibrarySettings.cppSettings: object expected");
+ message.cppSettings = $root.google.api.CppSettings.fromObject(object.cppSettings);
+ }
+ if (object.phpSettings != null) {
+ if (typeof object.phpSettings !== "object")
+ throw TypeError(".google.api.ClientLibrarySettings.phpSettings: object expected");
+ message.phpSettings = $root.google.api.PhpSettings.fromObject(object.phpSettings);
+ }
+ if (object.pythonSettings != null) {
+ if (typeof object.pythonSettings !== "object")
+ throw TypeError(".google.api.ClientLibrarySettings.pythonSettings: object expected");
+ message.pythonSettings = $root.google.api.PythonSettings.fromObject(object.pythonSettings);
+ }
+ if (object.nodeSettings != null) {
+ if (typeof object.nodeSettings !== "object")
+ throw TypeError(".google.api.ClientLibrarySettings.nodeSettings: object expected");
+ message.nodeSettings = $root.google.api.NodeSettings.fromObject(object.nodeSettings);
+ }
+ if (object.dotnetSettings != null) {
+ if (typeof object.dotnetSettings !== "object")
+ throw TypeError(".google.api.ClientLibrarySettings.dotnetSettings: object expected");
+ message.dotnetSettings = $root.google.api.DotnetSettings.fromObject(object.dotnetSettings);
+ }
+ if (object.rubySettings != null) {
+ if (typeof object.rubySettings !== "object")
+ throw TypeError(".google.api.ClientLibrarySettings.rubySettings: object expected");
+ message.rubySettings = $root.google.api.RubySettings.fromObject(object.rubySettings);
+ }
+ if (object.goSettings != null) {
+ if (typeof object.goSettings !== "object")
+ throw TypeError(".google.api.ClientLibrarySettings.goSettings: object expected");
+ message.goSettings = $root.google.api.GoSettings.fromObject(object.goSettings);
+ }
+ 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) {
+ if (!options)
+ options = {};
+ 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 && message.hasOwnProperty("version"))
+ object.version = message.version;
+ if (message.launchStage != null && message.hasOwnProperty("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 && message.hasOwnProperty("restNumericEnums"))
+ object.restNumericEnums = message.restNumericEnums;
+ if (message.javaSettings != null && message.hasOwnProperty("javaSettings"))
+ object.javaSettings = $root.google.api.JavaSettings.toObject(message.javaSettings, options);
+ if (message.cppSettings != null && message.hasOwnProperty("cppSettings"))
+ object.cppSettings = $root.google.api.CppSettings.toObject(message.cppSettings, options);
+ if (message.phpSettings != null && message.hasOwnProperty("phpSettings"))
+ object.phpSettings = $root.google.api.PhpSettings.toObject(message.phpSettings, options);
+ if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings"))
+ object.pythonSettings = $root.google.api.PythonSettings.toObject(message.pythonSettings, options);
+ if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings"))
+ object.nodeSettings = $root.google.api.NodeSettings.toObject(message.nodeSettings, options);
+ if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings"))
+ object.dotnetSettings = $root.google.api.DotnetSettings.toObject(message.dotnetSettings, options);
+ if (message.rubySettings != null && message.hasOwnProperty("rubySettings"))
+ object.rubySettings = $root.google.api.RubySettings.toObject(message.rubySettings, options);
+ if (message.goSettings != null && message.hasOwnProperty("goSettings"))
+ object.goSettings = $root.google.api.GoSettings.toObject(message.goSettings, options);
+ 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)
+ 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) {
+ if (!writer)
+ writer = $Writer.create();
+ 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()).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()).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).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) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Publishing();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 2: {
+ if (!(message.methodSettings && message.methodSettings.length))
+ message.methodSettings = [];
+ message.methodSettings.push($root.google.api.MethodSettings.decode(reader, reader.uint32()));
+ 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()));
+ break;
+ }
+ case 110: {
+ message.protoReferenceDocumentationUri = reader.string();
+ break;
+ }
+ case 111: {
+ message.restReferenceDocumentationUri = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ 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) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.methodSettings != null && message.hasOwnProperty("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]);
+ if (error)
+ return "methodSettings." + error;
+ }
+ }
+ if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri"))
+ if (!$util.isString(message.newIssueUri))
+ return "newIssueUri: string expected";
+ if (message.documentationUri != null && message.hasOwnProperty("documentationUri"))
+ if (!$util.isString(message.documentationUri))
+ return "documentationUri: string expected";
+ if (message.apiShortName != null && message.hasOwnProperty("apiShortName"))
+ if (!$util.isString(message.apiShortName))
+ return "apiShortName: string expected";
+ if (message.githubLabel != null && message.hasOwnProperty("githubLabel"))
+ if (!$util.isString(message.githubLabel))
+ return "githubLabel: string expected";
+ if (message.codeownerGithubTeams != null && message.hasOwnProperty("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 && message.hasOwnProperty("docTagPrefix"))
+ if (!$util.isString(message.docTagPrefix))
+ return "docTagPrefix: string expected";
+ if (message.organization != null && message.hasOwnProperty("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 && message.hasOwnProperty("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]);
+ if (error)
+ return "librarySettings." + error;
+ }
+ }
+ if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri"))
+ if (!$util.isString(message.protoReferenceDocumentationUri))
+ return "protoReferenceDocumentationUri: string expected";
+ if (message.restReferenceDocumentationUri != null && message.hasOwnProperty("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) {
+ if (object instanceof $root.google.api.Publishing)
+ return object;
+ 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 (typeof object.methodSettings[i] !== "object")
+ throw TypeError(".google.api.Publishing.methodSettings: object expected");
+ message.methodSettings[i] = $root.google.api.MethodSettings.fromObject(object.methodSettings[i]);
+ }
+ }
+ 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 (typeof object.librarySettings[i] !== "object")
+ throw TypeError(".google.api.Publishing.librarySettings: object expected");
+ message.librarySettings[i] = $root.google.api.ClientLibrarySettings.fromObject(object.librarySettings[i]);
+ }
+ }
+ 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) {
+ if (!options)
+ options = {};
+ 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);
+ }
+ if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri"))
+ object.newIssueUri = message.newIssueUri;
+ if (message.documentationUri != null && message.hasOwnProperty("documentationUri"))
+ object.documentationUri = message.documentationUri;
+ if (message.apiShortName != null && message.hasOwnProperty("apiShortName"))
+ object.apiShortName = message.apiShortName;
+ if (message.githubLabel != null && message.hasOwnProperty("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 && message.hasOwnProperty("docTagPrefix"))
+ object.docTagPrefix = message.docTagPrefix;
+ if (message.organization != null && message.hasOwnProperty("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);
+ }
+ if (message.protoReferenceDocumentationUri != null && message.hasOwnProperty("protoReferenceDocumentationUri"))
+ object.protoReferenceDocumentationUri = message.protoReferenceDocumentationUri;
+ if (message.restReferenceDocumentationUri != null && message.hasOwnProperty("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)
+ 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) {
+ if (!writer)
+ writer = $Writer.create();
+ 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()).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).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) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ 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();
+ 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);
+ break;
+ }
+ }
+ message.serviceClassNames[key] = value;
+ break;
+ }
+ case 3: {
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ 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) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage"))
+ if (!$util.isString(message.libraryPackage))
+ return "libraryPackage: string expected";
+ if (message.serviceClassNames != null && message.hasOwnProperty("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 && message.hasOwnProperty("common")) {
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
+ 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) {
+ if (object instanceof $root.google.api.JavaSettings)
+ return object;
+ var message = new $root.google.api.JavaSettings();
+ if (object.libraryPackage != null)
+ message.libraryPackage = String(object.libraryPackage);
+ if (object.serviceClassNames) {
+ if (typeof object.serviceClassNames !== "object")
+ throw TypeError(".google.api.JavaSettings.serviceClassNames: object expected");
+ message.serviceClassNames = {};
+ for (var keys = Object.keys(object.serviceClassNames), i = 0; i < keys.length; ++i)
+ message.serviceClassNames[keys[i]] = String(object.serviceClassNames[keys[i]]);
+ }
+ if (object.common != null) {
+ if (typeof object.common !== "object")
+ throw TypeError(".google.api.JavaSettings.common: object expected");
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
+ }
+ 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) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.objects || options.defaults)
+ object.serviceClassNames = {};
+ if (options.defaults) {
+ object.libraryPackage = "";
+ object.common = null;
+ }
+ if (message.libraryPackage != null && message.hasOwnProperty("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)
+ object.serviceClassNames[keys2[j]] = message.serviceClassNames[keys2[j]];
+ }
+ if (message.common != null && message.hasOwnProperty("common"))
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
+ 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)
+ 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) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).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).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) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CppSettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ 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) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.common != null && message.hasOwnProperty("common")) {
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
+ 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) {
+ if (object instanceof $root.google.api.CppSettings)
+ return object;
+ var message = new $root.google.api.CppSettings();
+ if (object.common != null) {
+ if (typeof object.common !== "object")
+ throw TypeError(".google.api.CppSettings.common: object expected");
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
+ }
+ 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) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.common = null;
+ if (message.common != null && message.hasOwnProperty("common"))
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
+ 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)
+ 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) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).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).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) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PhpSettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ 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) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.common != null && message.hasOwnProperty("common")) {
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
+ 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) {
+ if (object instanceof $root.google.api.PhpSettings)
+ return object;
+ var message = new $root.google.api.PhpSettings();
+ if (object.common != null) {
+ if (typeof object.common !== "object")
+ throw TypeError(".google.api.PhpSettings.common: object expected");
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
+ }
+ 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) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.common = null;
+ if (message.common != null && message.hasOwnProperty("common"))
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
+ 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
+ */
+
+ /**
+ * 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)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * PythonSettings common.
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
+ * @memberof google.api.PythonSettings
+ * @instance
+ */
+ PythonSettings.prototype.common = 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) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).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).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) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PythonSettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ 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) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.common != null && message.hasOwnProperty("common")) {
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
+ if (error)
+ return "common." + 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) {
+ if (object instanceof $root.google.api.PythonSettings)
+ return object;
+ var message = new $root.google.api.PythonSettings();
+ if (object.common != null) {
+ if (typeof object.common !== "object")
+ throw TypeError(".google.api.PythonSettings.common: object expected");
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
+ }
+ 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) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.common = null;
+ if (message.common != null && message.hasOwnProperty("common"))
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
+ 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";
+ };
+
+ 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)
+ 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) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).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).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) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.NodeSettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ 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) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.common != null && message.hasOwnProperty("common")) {
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
+ 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) {
+ if (object instanceof $root.google.api.NodeSettings)
+ return object;
+ var message = new $root.google.api.NodeSettings();
+ if (object.common != null) {
+ if (typeof object.common !== "object")
+ throw TypeError(".google.api.NodeSettings.common: object expected");
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
+ }
+ 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) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.common = null;
+ if (message.common != null && message.hasOwnProperty("common"))
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
+ 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)
+ 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) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).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).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) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ 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();
+ switch (tag >>> 3) {
+ case 1: {
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
+ 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);
+ break;
+ }
+ }
+ 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);
+ break;
+ }
+ }
+ 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);
+ 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) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.common != null && message.hasOwnProperty("common")) {
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
+ if (error)
+ return "common." + error;
+ }
+ if (message.renamedServices != null && message.hasOwnProperty("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 && message.hasOwnProperty("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 && message.hasOwnProperty("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 && message.hasOwnProperty("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 && message.hasOwnProperty("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) {
+ if (object instanceof $root.google.api.DotnetSettings)
+ return object;
+ var message = new $root.google.api.DotnetSettings();
+ if (object.common != null) {
+ if (typeof object.common !== "object")
+ throw TypeError(".google.api.DotnetSettings.common: object expected");
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
+ }
+ if (object.renamedServices) {
+ if (typeof object.renamedServices !== "object")
+ throw TypeError(".google.api.DotnetSettings.renamedServices: object expected");
+ message.renamedServices = {};
+ for (var keys = Object.keys(object.renamedServices), i = 0; i < keys.length; ++i)
+ message.renamedServices[keys[i]] = String(object.renamedServices[keys[i]]);
+ }
+ if (object.renamedResources) {
+ if (typeof object.renamedResources !== "object")
+ throw TypeError(".google.api.DotnetSettings.renamedResources: object expected");
+ message.renamedResources = {};
+ for (var keys = Object.keys(object.renamedResources), i = 0; i < keys.length; ++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) {
+ if (!options)
+ options = {};
+ 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 && message.hasOwnProperty("common"))
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
+ var keys2;
+ if (message.renamedServices && (keys2 = Object.keys(message.renamedServices)).length) {
+ object.renamedServices = {};
+ for (var j = 0; j < keys2.length; ++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)
+ 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)
+ 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) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).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).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) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.RubySettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ 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) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.common != null && message.hasOwnProperty("common")) {
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
+ 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) {
+ if (object instanceof $root.google.api.RubySettings)
+ return object;
+ var message = new $root.google.api.RubySettings();
+ if (object.common != null) {
+ if (typeof object.common !== "object")
+ throw TypeError(".google.api.RubySettings.common: object expected");
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
+ }
+ 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) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.common = null;
+ if (message.common != null && message.hasOwnProperty("common"))
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
+ 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
+ */
+
+ /**
+ * 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) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * GoSettings common.
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
+ * @memberof google.api.GoSettings
+ * @instance
+ */
+ GoSettings.prototype.common = null;
+
+ /**
+ * 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) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).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).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) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ 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) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.common != null && message.hasOwnProperty("common")) {
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
+ if (error)
+ return "common." + error;
+ }
+ 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) {
+ if (object instanceof $root.google.api.GoSettings)
+ return object;
+ var message = new $root.google.api.GoSettings();
+ if (object.common != null) {
+ if (typeof object.common !== "object")
+ throw TypeError(".google.api.GoSettings.common: object expected");
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
+ }
+ 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) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults)
+ object.common = null;
+ if (message.common != null && message.hasOwnProperty("common"))
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
+ 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)
+ 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) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.selector != null && Object.hasOwnProperty.call(message, "selector"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector);
+ if (message.longRunning != null && Object.hasOwnProperty.call(message, "longRunning"))
+ $root.google.api.MethodSettings.LongRunning.encode(message.longRunning, writer.uint32(/* id 2, wireType 2 =*/18).fork()).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).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) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.selector = reader.string();
+ break;
+ }
+ case 2: {
+ message.longRunning = $root.google.api.MethodSettings.LongRunning.decode(reader, reader.uint32());
+ break;
+ }
+ case 3: {
+ if (!(message.autoPopulatedFields && message.autoPopulatedFields.length))
+ message.autoPopulatedFields = [];
+ message.autoPopulatedFields.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ 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) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.selector != null && message.hasOwnProperty("selector"))
+ if (!$util.isString(message.selector))
+ return "selector: string expected";
+ if (message.longRunning != null && message.hasOwnProperty("longRunning")) {
+ var error = $root.google.api.MethodSettings.LongRunning.verify(message.longRunning);
+ if (error)
+ return "longRunning." + error;
+ }
+ if (message.autoPopulatedFields != null && message.hasOwnProperty("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) {
+ if (object instanceof $root.google.api.MethodSettings)
+ return object;
+ var message = new $root.google.api.MethodSettings();
+ if (object.selector != null)
+ message.selector = String(object.selector);
+ if (object.longRunning != null) {
+ if (typeof object.longRunning !== "object")
+ throw TypeError(".google.api.MethodSettings.longRunning: object expected");
+ message.longRunning = $root.google.api.MethodSettings.LongRunning.fromObject(object.longRunning);
+ }
+ 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) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.autoPopulatedFields = [];
+ if (options.defaults) {
+ object.selector = "";
+ object.longRunning = null;
+ }
+ if (message.selector != null && message.hasOwnProperty("selector"))
+ object.selector = message.selector;
+ if (message.longRunning != null && message.hasOwnProperty("longRunning"))
+ object.longRunning = $root.google.api.MethodSettings.LongRunning.toObject(message.longRunning, options);
+ 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)
+ 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) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.initialPollDelay != null && Object.hasOwnProperty.call(message, "initialPollDelay"))
+ $root.google.protobuf.Duration.encode(message.initialPollDelay, writer.uint32(/* id 1, wireType 2 =*/10).fork()).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()).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()).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).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) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings.LongRunning();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.initialPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32());
+ break;
+ }
+ case 2: {
+ message.pollDelayMultiplier = reader.float();
+ break;
+ }
+ case 3: {
+ message.maxPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32());
+ break;
+ }
+ case 4: {
+ message.totalPollTimeout = $root.google.protobuf.Duration.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ 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) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.initialPollDelay != null && message.hasOwnProperty("initialPollDelay")) {
+ var error = $root.google.protobuf.Duration.verify(message.initialPollDelay);
+ if (error)
+ return "initialPollDelay." + error;
+ }
+ if (message.pollDelayMultiplier != null && message.hasOwnProperty("pollDelayMultiplier"))
+ if (typeof message.pollDelayMultiplier !== "number")
+ return "pollDelayMultiplier: number expected";
+ if (message.maxPollDelay != null && message.hasOwnProperty("maxPollDelay")) {
+ var error = $root.google.protobuf.Duration.verify(message.maxPollDelay);
+ if (error)
+ return "maxPollDelay." + error;
+ }
+ if (message.totalPollTimeout != null && message.hasOwnProperty("totalPollTimeout")) {
+ var error = $root.google.protobuf.Duration.verify(message.totalPollTimeout);
+ 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) {
+ if (object instanceof $root.google.api.MethodSettings.LongRunning)
+ return object;
+ var message = new $root.google.api.MethodSettings.LongRunning();
+ if (object.initialPollDelay != null) {
+ if (typeof object.initialPollDelay !== "object")
+ throw TypeError(".google.api.MethodSettings.LongRunning.initialPollDelay: object expected");
+ message.initialPollDelay = $root.google.protobuf.Duration.fromObject(object.initialPollDelay);
+ }
+ if (object.pollDelayMultiplier != null)
+ message.pollDelayMultiplier = Number(object.pollDelayMultiplier);
+ if (object.maxPollDelay != null) {
+ if (typeof object.maxPollDelay !== "object")
+ throw TypeError(".google.api.MethodSettings.LongRunning.maxPollDelay: object expected");
+ message.maxPollDelay = $root.google.protobuf.Duration.fromObject(object.maxPollDelay);
+ }
+ if (object.totalPollTimeout != null) {
+ if (typeof object.totalPollTimeout !== "object")
+ throw TypeError(".google.api.MethodSettings.LongRunning.totalPollTimeout: object expected");
+ message.totalPollTimeout = $root.google.protobuf.Duration.fromObject(object.totalPollTimeout);
+ }
+ 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) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.initialPollDelay = null;
+ object.pollDelayMultiplier = 0;
+ object.maxPollDelay = null;
+ object.totalPollTimeout = null;
+ }
+ if (message.initialPollDelay != null && message.hasOwnProperty("initialPollDelay"))
+ object.initialPollDelay = $root.google.protobuf.Duration.toObject(message.initialPollDelay, options);
+ if (message.pollDelayMultiplier != null && message.hasOwnProperty("pollDelayMultiplier"))
+ object.pollDelayMultiplier = options.json && !isFinite(message.pollDelayMultiplier) ? String(message.pollDelayMultiplier) : message.pollDelayMultiplier;
+ if (message.maxPollDelay != null && message.hasOwnProperty("maxPollDelay"))
+ object.maxPollDelay = $root.google.protobuf.Duration.toObject(message.maxPollDelay, options);
+ if (message.totalPollTimeout != null && message.hasOwnProperty("totalPollTimeout"))
+ object.totalPollTimeout = $root.google.protobuf.Duration.toObject(message.totalPollTimeout, options);
+ 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;
+ })();
+
+ /**
+ * 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;
+ })();
+
+ return api;
+ })();
+
+ google.protobuf = (function() {
+
+ /**
+ * Namespace protobuf.
+ * @memberof google
+ * @namespace
+ */
+ var protobuf = {};
+
+ protobuf.FileDescriptorSet = (function() {
+
+ /**
+ * Properties of a FileDescriptorSet.
+ * @memberof google.protobuf
+ * @interface IFileDescriptorSet
+ * @property {Array.|null} [file] FileDescriptorSet file
+ */
+
+ /**
+ * Constructs a new FileDescriptorSet.
+ * @memberof google.protobuf
+ * @classdesc Represents a FileDescriptorSet.
+ * @implements IFileDescriptorSet
+ * @constructor
+ * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set
+ */
+ function FileDescriptorSet(properties) {
+ this.file = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * FileDescriptorSet file.
+ * @member {Array.} file
+ * @memberof google.protobuf.FileDescriptorSet
+ * @instance
+ */
+ FileDescriptorSet.prototype.file = $util.emptyArray;
+
+ /**
+ * Creates a new FileDescriptorSet instance using the specified properties.
+ * @function create
+ * @memberof google.protobuf.FileDescriptorSet
+ * @static
+ * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set
+ * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet instance
+ */
+ FileDescriptorSet.create = function create(properties) {
+ return new FileDescriptorSet(properties);
+ };
+
+ /**
+ * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @function encode
+ * @memberof google.protobuf.FileDescriptorSet
+ * @static
+ * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FileDescriptorSet.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.file != null && message.file.length)
+ for (var i = 0; i < message.file.length; ++i)
+ $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.protobuf.FileDescriptorSet
+ * @static
+ * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FileDescriptorSet.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.protobuf.FileDescriptorSet
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FileDescriptorSet.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorSet();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.file && message.file.length))
+ message.file = [];
+ message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32()));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.protobuf.FileDescriptorSet
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FileDescriptorSet.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a FileDescriptorSet message.
+ * @function verify
+ * @memberof google.protobuf.FileDescriptorSet
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ FileDescriptorSet.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.file != null && message.hasOwnProperty("file")) {
+ if (!Array.isArray(message.file))
+ return "file: array expected";
+ for (var i = 0; i < message.file.length; ++i) {
+ var error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i]);
+ if (error)
+ return "file." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.protobuf.FileDescriptorSet
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet
+ */
+ FileDescriptorSet.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.protobuf.FileDescriptorSet)
+ return object;
+ var message = new $root.google.protobuf.FileDescriptorSet();
+ if (object.file) {
+ if (!Array.isArray(object.file))
+ throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected");
+ message.file = [];
+ for (var i = 0; i < object.file.length; ++i) {
+ if (typeof object.file[i] !== "object")
+ throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected");
+ message.file[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.file[i]);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.protobuf.FileDescriptorSet
+ * @static
+ * @param {google.protobuf.FileDescriptorSet} message FileDescriptorSet
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ FileDescriptorSet.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.file = [];
+ if (message.file && message.file.length) {
+ object.file = [];
+ for (var j = 0; j < message.file.length; ++j)
+ object.file[j] = $root.google.protobuf.FileDescriptorProto.toObject(message.file[j], options);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this FileDescriptorSet to JSON.
+ * @function toJSON
+ * @memberof google.protobuf.FileDescriptorSet
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ FileDescriptorSet.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * 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_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[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} [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.messageType = [];
+ this.enumType = [];
+ this.service = [];
+ this.extension = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * FileDescriptorProto name.
+ * @member {string} name
+ * @memberof google.protobuf.FileDescriptorProto
+ * @instance
+ */
+ FileDescriptorProto.prototype.name = "";
+
+ /**
+ * FileDescriptorProto package.
+ * @member {string} package
+ * @memberof google.protobuf.FileDescriptorProto
+ * @instance
+ */
+ FileDescriptorProto.prototype["package"] = "";
+
+ /**
+ * FileDescriptorProto dependency.
+ * @member {Array.} dependency
+ * @memberof google.protobuf.FileDescriptorProto
+ * @instance
+ */
+ FileDescriptorProto.prototype.dependency = $util.emptyArray;
+
+ /**
+ * FileDescriptorProto publicDependency.
+ * @member {Array.} publicDependency
+ * @memberof google.protobuf.FileDescriptorProto
+ * @instance
+ */
+ FileDescriptorProto.prototype.publicDependency = $util.emptyArray;
+
+ /**
+ * FileDescriptorProto weakDependency.
+ * @member {Array.} weakDependency
+ * @memberof google.protobuf.FileDescriptorProto
+ * @instance
+ */
+ FileDescriptorProto.prototype.weakDependency = $util.emptyArray;
+
+ /**
+ * FileDescriptorProto messageType.
+ * @member {Array.} messageType
+ * @memberof google.protobuf.FileDescriptorProto
+ * @instance
+ */
+ FileDescriptorProto.prototype.messageType = $util.emptyArray;
+
+ /**
+ * FileDescriptorProto enumType.
+ * @member {Array.} enumType
+ * @memberof google.protobuf.FileDescriptorProto
+ * @instance
+ */
+ FileDescriptorProto.prototype.enumType = $util.emptyArray;
+
+ /**
+ * FileDescriptorProto service.
+ * @member {Array.} service
+ * @memberof google.protobuf.FileDescriptorProto
+ * @instance
+ */
+ FileDescriptorProto.prototype.service = $util.emptyArray;
+
+ /**
+ * FileDescriptorProto extension.
+ * @member {Array.} extension
+ * @memberof google.protobuf.FileDescriptorProto
+ * @instance
+ */
+ FileDescriptorProto.prototype.extension = $util.emptyArray;
+
+ /**
+ * FileDescriptorProto options.
+ * @member {google.protobuf.IFileOptions|null|undefined} options
+ * @memberof google.protobuf.FileDescriptorProto
+ * @instance
+ */
+ FileDescriptorProto.prototype.options = null;
+
+ /**
+ * FileDescriptorProto sourceCodeInfo.
+ * @member {google.protobuf.ISourceCodeInfo|null|undefined} sourceCodeInfo
+ * @memberof google.protobuf.FileDescriptorProto
+ * @instance
+ */
+ FileDescriptorProto.prototype.sourceCodeInfo = null;
+
+ /**
+ * FileDescriptorProto syntax.
+ * @member {string} syntax
+ * @memberof google.protobuf.FileDescriptorProto
+ * @instance
+ */
+ FileDescriptorProto.prototype.syntax = "";
+
+ /**
+ * 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) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message["package"] != null && Object.hasOwnProperty.call(message, "package"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]);
+ if (message.dependency != null && message.dependency.length)
+ for (var i = 0; i < message.dependency.length; ++i)
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.dependency[i]);
+ if (message.messageType != null && message.messageType.length)
+ for (var i = 0; i < message.messageType.length; ++i)
+ $root.google.protobuf.DescriptorProto.encode(message.messageType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.enumType != null && message.enumType.length)
+ for (var i = 0; i < message.enumType.length; ++i)
+ $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.service != null && message.service.length)
+ for (var i = 0; i < message.service.length; ++i)
+ $root.google.protobuf.ServiceDescriptorProto.encode(message.service[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.extension != null && message.extension.length)
+ for (var i = 0; i < message.extension.length; ++i)
+ $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ if (message.options != null && Object.hasOwnProperty.call(message, "options"))
+ $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ if (message.sourceCodeInfo != null && Object.hasOwnProperty.call(message, "sourceCodeInfo"))
+ $root.google.protobuf.SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
+ if (message.publicDependency != null && message.publicDependency.length)
+ for (var i = 0; i < message.publicDependency.length; ++i)
+ writer.uint32(/* id 10, wireType 0 =*/80).int32(message.publicDependency[i]);
+ if (message.weakDependency != null && message.weakDependency.length)
+ for (var i = 0; i < message.weakDependency.length; ++i)
+ writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weakDependency[i]);
+ if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax"))
+ writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax);
+ if (message.edition != null && Object.hasOwnProperty.call(message, "edition"))
+ writer.uint32(/* id 14, wireType 0 =*/112).int32(message.edition);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.protobuf.FileDescriptorProto
+ * @static
+ * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FileDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.protobuf.FileDescriptorProto
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FileDescriptorProto.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorProto();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message["package"] = reader.string();
+ break;
+ }
+ case 3: {
+ if (!(message.dependency && message.dependency.length))
+ message.dependency = [];
+ message.dependency.push(reader.string());
+ break;
+ }
+ case 10: {
+ if (!(message.publicDependency && message.publicDependency.length))
+ message.publicDependency = [];
+ if ((tag & 7) === 2) {
+ var end2 = reader.uint32() + reader.pos;
+ while (reader.pos < end2)
+ message.publicDependency.push(reader.int32());
+ } else
+ message.publicDependency.push(reader.int32());
+ break;
+ }
+ case 11: {
+ if (!(message.weakDependency && message.weakDependency.length))
+ message.weakDependency = [];
+ if ((tag & 7) === 2) {
+ var end2 = reader.uint32() + reader.pos;
+ while (reader.pos < end2)
+ message.weakDependency.push(reader.int32());
+ } else
+ message.weakDependency.push(reader.int32());
+ break;
+ }
+ case 4: {
+ if (!(message.messageType && message.messageType.length))
+ message.messageType = [];
+ message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32()));
+ break;
+ }
+ case 5: {
+ if (!(message.enumType && message.enumType.length))
+ message.enumType = [];
+ message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32()));
+ break;
+ }
+ case 6: {
+ if (!(message.service && message.service.length))
+ message.service = [];
+ message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32()));
+ break;
+ }
+ case 7: {
+ if (!(message.extension && message.extension.length))
+ message.extension = [];
+ message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32()));
+ break;
+ }
+ case 8: {
+ message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32());
+ break;
+ }
+ case 9: {
+ message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32());
+ break;
+ }
+ case 12: {
+ message.syntax = reader.string();
+ break;
+ }
+ case 14: {
+ message.edition = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.protobuf.FileDescriptorProto
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FileDescriptorProto.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a FileDescriptorProto message.
+ * @function verify
+ * @memberof google.protobuf.FileDescriptorProto
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ FileDescriptorProto.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message["package"] != null && message.hasOwnProperty("package"))
+ if (!$util.isString(message["package"]))
+ return "package: string expected";
+ if (message.dependency != null && message.hasOwnProperty("dependency")) {
+ if (!Array.isArray(message.dependency))
+ return "dependency: array expected";
+ for (var i = 0; i < message.dependency.length; ++i)
+ if (!$util.isString(message.dependency[i]))
+ return "dependency: string[] expected";
+ }
+ if (message.publicDependency != null && message.hasOwnProperty("publicDependency")) {
+ if (!Array.isArray(message.publicDependency))
+ return "publicDependency: array expected";
+ for (var i = 0; i < message.publicDependency.length; ++i)
+ if (!$util.isInteger(message.publicDependency[i]))
+ return "publicDependency: integer[] expected";
+ }
+ if (message.weakDependency != null && message.hasOwnProperty("weakDependency")) {
+ if (!Array.isArray(message.weakDependency))
+ return "weakDependency: array expected";
+ for (var i = 0; i < message.weakDependency.length; ++i)
+ if (!$util.isInteger(message.weakDependency[i]))
+ return "weakDependency: integer[] expected";
+ }
+ if (message.messageType != null && message.hasOwnProperty("messageType")) {
+ if (!Array.isArray(message.messageType))
+ return "messageType: array expected";
+ for (var i = 0; i < message.messageType.length; ++i) {
+ var error = $root.google.protobuf.DescriptorProto.verify(message.messageType[i]);
+ if (error)
+ return "messageType." + error;
+ }
+ }
+ if (message.enumType != null && message.hasOwnProperty("enumType")) {
+ if (!Array.isArray(message.enumType))
+ return "enumType: array expected";
+ for (var i = 0; i < message.enumType.length; ++i) {
+ var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]);
+ if (error)
+ return "enumType." + error;
+ }
+ }
+ if (message.service != null && message.hasOwnProperty("service")) {
+ if (!Array.isArray(message.service))
+ return "service: array expected";
+ for (var i = 0; i < message.service.length; ++i) {
+ var error = $root.google.protobuf.ServiceDescriptorProto.verify(message.service[i]);
+ if (error)
+ return "service." + error;
+ }
+ }
+ if (message.extension != null && message.hasOwnProperty("extension")) {
+ if (!Array.isArray(message.extension))
+ return "extension: array expected";
+ for (var i = 0; i < message.extension.length; ++i) {
+ var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]);
+ if (error)
+ return "extension." + error;
+ }
+ }
+ if (message.options != null && message.hasOwnProperty("options")) {
+ var error = $root.google.protobuf.FileOptions.verify(message.options);
+ if (error)
+ return "options." + error;
+ }
+ if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) {
+ var error = $root.google.protobuf.SourceCodeInfo.verify(message.sourceCodeInfo);
+ if (error)
+ return "sourceCodeInfo." + error;
+ }
+ if (message.syntax != null && message.hasOwnProperty("syntax"))
+ if (!$util.isString(message.syntax))
+ return "syntax: string expected";
+ if (message.edition != null && message.hasOwnProperty("edition"))
+ switch (message.edition) {
+ default:
+ return "edition: enum value expected";
+ case 0:
+ 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) {
+ if (object instanceof $root.google.protobuf.FileDescriptorProto)
+ return object;
+ var message = new $root.google.protobuf.FileDescriptorProto();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object["package"] != null)
+ message["package"] = String(object["package"]);
+ if (object.dependency) {
+ if (!Array.isArray(object.dependency))
+ throw TypeError(".google.protobuf.FileDescriptorProto.dependency: array expected");
+ message.dependency = [];
+ for (var i = 0; i < object.dependency.length; ++i)
+ message.dependency[i] = String(object.dependency[i]);
+ }
+ if (object.publicDependency) {
+ if (!Array.isArray(object.publicDependency))
+ throw TypeError(".google.protobuf.FileDescriptorProto.publicDependency: array expected");
+ message.publicDependency = [];
+ for (var i = 0; i < object.publicDependency.length; ++i)
+ message.publicDependency[i] = object.publicDependency[i] | 0;
+ }
+ if (object.weakDependency) {
+ if (!Array.isArray(object.weakDependency))
+ throw TypeError(".google.protobuf.FileDescriptorProto.weakDependency: array expected");
+ message.weakDependency = [];
+ for (var i = 0; i < object.weakDependency.length; ++i)
+ message.weakDependency[i] = object.weakDependency[i] | 0;
+ }
+ if (object.messageType) {
+ if (!Array.isArray(object.messageType))
+ throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected");
+ message.messageType = [];
+ for (var i = 0; i < object.messageType.length; ++i) {
+ if (typeof object.messageType[i] !== "object")
+ throw TypeError(".google.protobuf.FileDescriptorProto.messageType: object expected");
+ message.messageType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.messageType[i]);
+ }
+ }
+ if (object.enumType) {
+ if (!Array.isArray(object.enumType))
+ throw TypeError(".google.protobuf.FileDescriptorProto.enumType: array expected");
+ message.enumType = [];
+ for (var i = 0; i < object.enumType.length; ++i) {
+ if (typeof object.enumType[i] !== "object")
+ throw TypeError(".google.protobuf.FileDescriptorProto.enumType: object expected");
+ message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]);
+ }
+ }
+ if (object.service) {
+ if (!Array.isArray(object.service))
+ throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected");
+ message.service = [];
+ for (var i = 0; i < object.service.length; ++i) {
+ if (typeof object.service[i] !== "object")
+ throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected");
+ message.service[i] = $root.google.protobuf.ServiceDescriptorProto.fromObject(object.service[i]);
+ }
+ }
+ if (object.extension) {
+ if (!Array.isArray(object.extension))
+ throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected");
+ message.extension = [];
+ for (var i = 0; i < object.extension.length; ++i) {
+ if (typeof object.extension[i] !== "object")
+ throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected");
+ message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]);
+ }
+ }
+ if (object.options != null) {
+ if (typeof object.options !== "object")
+ throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected");
+ message.options = $root.google.protobuf.FileOptions.fromObject(object.options);
+ }
+ if (object.sourceCodeInfo != null) {
+ if (typeof object.sourceCodeInfo !== "object")
+ throw TypeError(".google.protobuf.FileDescriptorProto.sourceCodeInfo: object expected");
+ message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.fromObject(object.sourceCodeInfo);
+ }
+ if (object.syntax != null)
+ message.syntax = String(object.syntax);
+ 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_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) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.dependency = [];
+ object.messageType = [];
+ object.enumType = [];
+ object.service = [];
+ object.extension = [];
+ object.publicDependency = [];
+ object.weakDependency = [];
+ }
+ if (options.defaults) {
+ object.name = "";
+ object["package"] = "";
+ object.options = null;
+ object.sourceCodeInfo = null;
+ object.syntax = "";
+ object.edition = options.enums === String ? "EDITION_UNKNOWN" : 0;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message["package"] != null && message.hasOwnProperty("package"))
+ object["package"] = message["package"];
+ if (message.dependency && message.dependency.length) {
+ object.dependency = [];
+ for (var j = 0; j < message.dependency.length; ++j)
+ object.dependency[j] = message.dependency[j];
+ }
+ if (message.messageType && message.messageType.length) {
+ object.messageType = [];
+ for (var j = 0; j < message.messageType.length; ++j)
+ object.messageType[j] = $root.google.protobuf.DescriptorProto.toObject(message.messageType[j], options);
+ }
+ if (message.enumType && message.enumType.length) {
+ object.enumType = [];
+ for (var j = 0; j < message.enumType.length; ++j)
+ object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options);
+ }
+ if (message.service && message.service.length) {
+ object.service = [];
+ for (var j = 0; j < message.service.length; ++j)
+ object.service[j] = $root.google.protobuf.ServiceDescriptorProto.toObject(message.service[j], options);
+ }
+ if (message.extension && message.extension.length) {
+ object.extension = [];
+ for (var j = 0; j < message.extension.length; ++j)
+ object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options);
+ }
+ if (message.options != null && message.hasOwnProperty("options"))
+ object.options = $root.google.protobuf.FileOptions.toObject(message.options, options);
+ if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo"))
+ object.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.toObject(message.sourceCodeInfo, options);
+ if (message.publicDependency && message.publicDependency.length) {
+ object.publicDependency = [];
+ for (var j = 0; j < message.publicDependency.length; ++j)
+ object.publicDependency[j] = message.publicDependency[j];
+ }
+ if (message.weakDependency && message.weakDependency.length) {
+ object.weakDependency = [];
+ for (var j = 0; j < message.weakDependency.length; ++j)
+ object.weakDependency[j] = message.weakDependency[j];
+ }
+ if (message.syntax != null && message.hasOwnProperty("syntax"))
+ object.syntax = message.syntax;
+ if (message.edition != null && message.hasOwnProperty("edition"))
+ object.edition = options.enums === String ? $root.google.protobuf.Edition[message.edition] === undefined ? message.edition : $root.google.protobuf.Edition[message.edition] : message.edition;
+ 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.|null} [nestedType] DescriptorProto nestedType
+ * @property {Array.|null} [enumType] DescriptorProto enumType
+ * @property {Array.|null} [extensionRange] DescriptorProto extensionRange
+ * @property {Array.|null} [oneofDecl] DescriptorProto oneofDecl
+ * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options
+ * @property {Array.|null} [reservedRange] DescriptorProto reservedRange
+ * @property {Array.|null} [reservedName] DescriptorProto reservedName
+ */
+
+ /**
+ * Constructs a new DescriptorProto.
+ * @memberof google.protobuf
+ * @classdesc Represents a DescriptorProto.
+ * @implements IDescriptorProto
+ * @constructor
+ * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set
+ */
+ function DescriptorProto(properties) {
+ this.field = [];
+ this.extension = [];
+ this.nestedType = [];
+ this.enumType = [];
+ this.extensionRange = [];
+ this.oneofDecl = [];
+ this.reservedRange = [];
+ this.reservedName = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * DescriptorProto name.
+ * @member {string} name
+ * @memberof google.protobuf.DescriptorProto
+ * @instance
+ */
+ DescriptorProto.prototype.name = "";
+
+ /**
+ * DescriptorProto field.
+ * @member {Array.} field
+ * @memberof google.protobuf.DescriptorProto
+ * @instance
+ */
+ DescriptorProto.prototype.field = $util.emptyArray;
+
+ /**
+ * DescriptorProto extension.
+ * @member {Array.} extension
+ * @memberof google.protobuf.DescriptorProto
+ * @instance
+ */
+ DescriptorProto.prototype.extension = $util.emptyArray;
+
+ /**
+ * DescriptorProto nestedType.
+ * @member {Array.} nestedType
+ * @memberof google.protobuf.DescriptorProto
+ * @instance
+ */
+ DescriptorProto.prototype.nestedType = $util.emptyArray;
+
+ /**
+ * DescriptorProto enumType.
+ * @member {Array.} enumType
+ * @memberof google.protobuf.DescriptorProto
+ * @instance
+ */
+ DescriptorProto.prototype.enumType = $util.emptyArray;
+
+ /**
+ * DescriptorProto extensionRange.
+ * @member {Array.} extensionRange
+ * @memberof google.protobuf.DescriptorProto
+ * @instance
+ */
+ DescriptorProto.prototype.extensionRange = $util.emptyArray;
+
+ /**
+ * DescriptorProto oneofDecl.
+ * @member {Array.} oneofDecl
+ * @memberof google.protobuf.DescriptorProto
+ * @instance
+ */
+ DescriptorProto.prototype.oneofDecl = $util.emptyArray;
+
+ /**
+ * DescriptorProto options.
+ * @member {google.protobuf.IMessageOptions|null|undefined} options
+ * @memberof google.protobuf.DescriptorProto
+ * @instance
+ */
+ DescriptorProto.prototype.options = null;
+
+ /**
+ * DescriptorProto reservedRange.
+ * @member {Array.} reservedRange
+ * @memberof google.protobuf.DescriptorProto
+ * @instance
+ */
+ DescriptorProto.prototype.reservedRange = $util.emptyArray;
+
+ /**
+ * DescriptorProto reservedName.
+ * @member {Array.} reservedName
+ * @memberof google.protobuf.DescriptorProto
+ * @instance
+ */
+ DescriptorProto.prototype.reservedName = $util.emptyArray;
+
+ /**
+ * Creates a new DescriptorProto instance using the specified properties.
+ * @function create
+ * @memberof google.protobuf.DescriptorProto
+ * @static
+ * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set
+ * @returns {google.protobuf.DescriptorProto} DescriptorProto instance
+ */
+ DescriptorProto.create = function create(properties) {
+ return new DescriptorProto(properties);
+ };
+
+ /**
+ * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @function encode
+ * @memberof google.protobuf.DescriptorProto
+ * @static
+ * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DescriptorProto.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.field != null && message.field.length)
+ for (var i = 0; i < message.field.length; ++i)
+ $root.google.protobuf.FieldDescriptorProto.encode(message.field[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
+ if (message.nestedType != null && message.nestedType.length)
+ for (var i = 0; i < message.nestedType.length; ++i)
+ $root.google.protobuf.DescriptorProto.encode(message.nestedType[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ if (message.enumType != null && message.enumType.length)
+ for (var i = 0; i < message.enumType.length; ++i)
+ $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
+ if (message.extensionRange != null && message.extensionRange.length)
+ for (var i = 0; i < message.extensionRange.length; ++i)
+ $root.google.protobuf.DescriptorProto.ExtensionRange.encode(message.extensionRange[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
+ if (message.extension != null && message.extension.length)
+ for (var i = 0; i < message.extension.length; ++i)
+ $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
+ if (message.options != null && Object.hasOwnProperty.call(message, "options"))
+ $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
+ if (message.oneofDecl != null && message.oneofDecl.length)
+ for (var i = 0; i < message.oneofDecl.length; ++i)
+ $root.google.protobuf.OneofDescriptorProto.encode(message.oneofDecl[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
+ if (message.reservedRange != null && message.reservedRange.length)
+ for (var i = 0; i < message.reservedRange.length; ++i)
+ $root.google.protobuf.DescriptorProto.ReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
+ if (message.reservedName != null && message.reservedName.length)
+ for (var i = 0; i < message.reservedName.length; ++i)
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.protobuf.DescriptorProto
+ * @static
+ * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DescriptorProto.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.protobuf.DescriptorProto
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.protobuf.DescriptorProto} DescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DescriptorProto.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ if (!(message.field && message.field.length))
+ message.field = [];
+ message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32()));
+ break;
+ }
+ case 6: {
+ if (!(message.extension && message.extension.length))
+ message.extension = [];
+ message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32()));
+ break;
+ }
+ case 3: {
+ if (!(message.nestedType && message.nestedType.length))
+ message.nestedType = [];
+ message.nestedType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32()));
+ break;
+ }
+ case 4: {
+ if (!(message.enumType && message.enumType.length))
+ message.enumType = [];
+ message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32()));
+ break;
+ }
+ case 5: {
+ if (!(message.extensionRange && message.extensionRange.length))
+ message.extensionRange = [];
+ message.extensionRange.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32()));
+ break;
+ }
+ case 8: {
+ if (!(message.oneofDecl && message.oneofDecl.length))
+ message.oneofDecl = [];
+ message.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32()));
+ break;
+ }
+ case 7: {
+ message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32());
+ break;
+ }
+ case 9: {
+ if (!(message.reservedRange && message.reservedRange.length))
+ message.reservedRange = [];
+ message.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32()));
+ break;
+ }
+ case 10: {
+ if (!(message.reservedName && message.reservedName.length))
+ message.reservedName = [];
+ message.reservedName.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.protobuf.DescriptorProto
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.protobuf.DescriptorProto} DescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DescriptorProto.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DescriptorProto message.
+ * @function verify
+ * @memberof google.protobuf.DescriptorProto
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DescriptorProto.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.name != null && message.hasOwnProperty("name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.field != null && message.hasOwnProperty("field")) {
+ if (!Array.isArray(message.field))
+ return "field: array expected";
+ for (var i = 0; i < message.field.length; ++i) {
+ var error = $root.google.protobuf.FieldDescriptorProto.verify(message.field[i]);
+ if (error)
+ return "field." + error;
+ }
+ }
+ if (message.extension != null && message.hasOwnProperty("extension")) {
+ if (!Array.isArray(message.extension))
+ return "extension: array expected";
+ for (var i = 0; i < message.extension.length; ++i) {
+ var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]);
+ if (error)
+ return "extension." + error;
+ }
+ }
+ if (message.nestedType != null && message.hasOwnProperty("nestedType")) {
+ if (!Array.isArray(message.nestedType))
+ return "nestedType: array expected";
+ for (var i = 0; i < message.nestedType.length; ++i) {
+ var error = $root.google.protobuf.DescriptorProto.verify(message.nestedType[i]);
+ if (error)
+ return "nestedType." + error;
+ }
+ }
+ if (message.enumType != null && message.hasOwnProperty("enumType")) {
+ if (!Array.isArray(message.enumType))
+ return "enumType: array expected";
+ for (var i = 0; i < message.enumType.length; ++i) {
+ var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]);
+ if (error)
+ return "enumType." + error;
+ }
+ }
+ if (message.extensionRange != null && message.hasOwnProperty("extensionRange")) {
+ if (!Array.isArray(message.extensionRange))
+ return "extensionRange: array expected";
+ for (var i = 0; i < message.extensionRange.length; ++i) {
+ var error = $root.google.protobuf.DescriptorProto.ExtensionRange.verify(message.extensionRange[i]);
+ if (error)
+ return "extensionRange." + error;
+ }
+ }
+ if (message.oneofDecl != null && message.hasOwnProperty("oneofDecl")) {
+ if (!Array.isArray(message.oneofDecl))
+ return "oneofDecl: array expected";
+ for (var i = 0; i < message.oneofDecl.length; ++i) {
+ var error = $root.google.protobuf.OneofDescriptorProto.verify(message.oneofDecl[i]);
+ if (error)
+ return "oneofDecl." + error;
+ }
+ }
+ if (message.options != null && message.hasOwnProperty("options")) {
+ var error = $root.google.protobuf.MessageOptions.verify(message.options);
+ if (error)
+ return "options." + error;
+ }
+ if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) {
+ if (!Array.isArray(message.reservedRange))
+ return "reservedRange: array expected";
+ for (var i = 0; i < message.reservedRange.length; ++i) {
+ var error = $root.google.protobuf.DescriptorProto.ReservedRange.verify(message.reservedRange[i]);
+ if (error)
+ return "reservedRange." + error;
+ }
+ }
+ if (message.reservedName != null && message.hasOwnProperty("reservedName")) {
+ if (!Array.isArray(message.reservedName))
+ return "reservedName: array expected";
+ for (var i = 0; i < message.reservedName.length; ++i)
+ if (!$util.isString(message.reservedName[i]))
+ return "reservedName: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.protobuf.DescriptorProto
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.protobuf.DescriptorProto} DescriptorProto
+ */
+ DescriptorProto.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.protobuf.DescriptorProto)
+ return object;
+ var message = new $root.google.protobuf.DescriptorProto();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.field) {
+ if (!Array.isArray(object.field))
+ throw TypeError(".google.protobuf.DescriptorProto.field: array expected");
+ message.field = [];
+ for (var i = 0; i < object.field.length; ++i) {
+ if (typeof object.field[i] !== "object")
+ throw TypeError(".google.protobuf.DescriptorProto.field: object expected");
+ message.field[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.field[i]);
+ }
+ }
+ if (object.extension) {
+ if (!Array.isArray(object.extension))
+ throw TypeError(".google.protobuf.DescriptorProto.extension: array expected");
+ message.extension = [];
+ for (var i = 0; i < object.extension.length; ++i) {
+ if (typeof object.extension[i] !== "object")
+ throw TypeError(".google.protobuf.DescriptorProto.extension: object expected");
+ message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]);
+ }
+ }
+ if (object.nestedType) {
+ if (!Array.isArray(object.nestedType))
+ throw TypeError(".google.protobuf.DescriptorProto.nestedType: array expected");
+ message.nestedType = [];
+ for (var i = 0; i < object.nestedType.length; ++i) {
+ if (typeof object.nestedType[i] !== "object")
+ throw TypeError(".google.protobuf.DescriptorProto.nestedType: object expected");
+ message.nestedType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.nestedType[i]);
+ }
+ }
+ if (object.enumType) {
+ if (!Array.isArray(object.enumType))
+ throw TypeError(".google.protobuf.DescriptorProto.enumType: array expected");
+ message.enumType = [];
+ for (var i = 0; i < object.enumType.length; ++i) {
+ if (typeof object.enumType[i] !== "object")
+ throw TypeError(".google.protobuf.DescriptorProto.enumType: object expected");
+ message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]);
+ }
+ }
+ if (object.extensionRange) {
+ if (!Array.isArray(object.extensionRange))
+ throw TypeError(".google.protobuf.DescriptorProto.extensionRange: array expected");
+ message.extensionRange = [];
+ for (var i = 0; i < object.extensionRange.length; ++i) {
+ if (typeof object.extensionRange[i] !== "object")
+ throw TypeError(".google.protobuf.DescriptorProto.extensionRange: object expected");
+ message.extensionRange[i] = $root.google.protobuf.DescriptorProto.ExtensionRange.fromObject(object.extensionRange[i]);
+ }
+ }
+ if (object.oneofDecl) {
+ if (!Array.isArray(object.oneofDecl))
+ throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: array expected");
+ message.oneofDecl = [];
+ for (var i = 0; i < object.oneofDecl.length; ++i) {
+ if (typeof object.oneofDecl[i] !== "object")
+ throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: object expected");
+ message.oneofDecl[i] = $root.google.protobuf.OneofDescriptorProto.fromObject(object.oneofDecl[i]);
+ }
+ }
+ if (object.options != null) {
+ if (typeof object.options !== "object")
+ throw TypeError(".google.protobuf.DescriptorProto.options: object expected");
+ message.options = $root.google.protobuf.MessageOptions.fromObject(object.options);
+ }
+ if (object.reservedRange) {
+ if (!Array.isArray(object.reservedRange))
+ throw TypeError(".google.protobuf.DescriptorProto.reservedRange: array expected");
+ message.reservedRange = [];
+ for (var i = 0; i < object.reservedRange.length; ++i) {
+ if (typeof object.reservedRange[i] !== "object")
+ throw TypeError(".google.protobuf.DescriptorProto.reservedRange: object expected");
+ message.reservedRange[i] = $root.google.protobuf.DescriptorProto.ReservedRange.fromObject(object.reservedRange[i]);
+ }
+ }
+ if (object.reservedName) {
+ if (!Array.isArray(object.reservedName))
+ throw TypeError(".google.protobuf.DescriptorProto.reservedName: array expected");
+ message.reservedName = [];
+ for (var i = 0; i < object.reservedName.length; ++i)
+ message.reservedName[i] = String(object.reservedName[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.protobuf.DescriptorProto
+ * @static
+ * @param {google.protobuf.DescriptorProto} message DescriptorProto
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DescriptorProto.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.field = [];
+ object.nestedType = [];
+ object.enumType = [];
+ object.extensionRange = [];
+ object.extension = [];
+ object.oneofDecl = [];
+ object.reservedRange = [];
+ object.reservedName = [];
+ }
+ if (options.defaults) {
+ object.name = "";
+ object.options = null;
+ }
+ if (message.name != null && message.hasOwnProperty("name"))
+ object.name = message.name;
+ if (message.field && message.field.length) {
+ object.field = [];
+ for (var j = 0; j < message.field.length; ++j)
+ object.field[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.field[j], options);
+ }
+ if (message.nestedType && message.nestedType.length) {
+ object.nestedType = [];
+ for (var j = 0; j < message.nestedType.length; ++j)
+ object.nestedType[j] = $root.google.protobuf.DescriptorProto.toObject(message.nestedType[j], options);
+ }
+ if (message.enumType && message.enumType.length) {
+ object.enumType = [];
+ for (var j = 0; j < message.enumType.length; ++j)
+ object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options);
+ }
+ if (message.extensionRange && message.extensionRange.length) {
+ object.extensionRange = [];
+ for (var j = 0; j < message.extensionRange.length; ++j)
+ object.extensionRange[j] = $root.google.protobuf.DescriptorProto.ExtensionRange.toObject(message.extensionRange[j], options);
+ }
+ if (message.extension && message.extension.length) {
+ object.extension = [];
+ for (var j = 0; j < message.extension.length; ++j)
+ object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options);
+ }
+ if (message.options != null && message.hasOwnProperty("options"))
+ object.options = $root.google.protobuf.MessageOptions.toObject(message.options, options);
+ if (message.oneofDecl && message.oneofDecl.length) {
+ object.oneofDecl = [];
+ for (var j = 0; j < message.oneofDecl.length; ++j)
+ object.oneofDecl[j] = $root.google.protobuf.OneofDescriptorProto.toObject(message.oneofDecl[j], options);
+ }
+ if (message.reservedRange && message.reservedRange.length) {
+ object.reservedRange = [];
+ for (var j = 0; j < message.reservedRange.length; ++j)
+ object.reservedRange[j] = $root.google.protobuf.DescriptorProto.ReservedRange.toObject(message.reservedRange[j], options);
+ }
+ if (message.reservedName && message.reservedName.length) {
+ object.reservedName = [];
+ for (var j = 0; j < message.reservedName.length; ++j)
+ object.reservedName[j] = message.reservedName[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this DescriptorProto to JSON.
+ * @function toJSON
+ * @memberof google.protobuf.DescriptorProto
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DescriptorProto.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DescriptorProto
+ * @function getTypeUrl
+ * @memberof google.protobuf.DescriptorProto
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.protobuf.DescriptorProto";
+ };
+
+ DescriptorProto.ExtensionRange = (function() {
+
+ /**
+ * Properties of an ExtensionRange.
+ * @memberof google.protobuf.DescriptorProto
+ * @interface IExtensionRange
+ * @property {number|null} [start] ExtensionRange start
+ * @property {number|null} [end] ExtensionRange end
+ * @property {google.protobuf.IExtensionRangeOptions|null} [options] ExtensionRange options
+ */
+
+ /**
+ * Constructs a new ExtensionRange.
+ * @memberof google.protobuf.DescriptorProto
+ * @classdesc Represents an ExtensionRange.
+ * @implements IExtensionRange
+ * @constructor
+ * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set
+ */
+ function ExtensionRange(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ExtensionRange start.
+ * @member {number} start
+ * @memberof google.protobuf.DescriptorProto.ExtensionRange
+ * @instance
+ */
+ ExtensionRange.prototype.start = 0;
+
+ /**
+ * ExtensionRange end.
+ * @member {number} end
+ * @memberof google.protobuf.DescriptorProto.ExtensionRange
+ * @instance
+ */
+ ExtensionRange.prototype.end = 0;
+
+ /**
+ * ExtensionRange options.
+ * @member {google.protobuf.IExtensionRangeOptions|null|undefined} options
+ * @memberof google.protobuf.DescriptorProto.ExtensionRange
+ * @instance
+ */
+ ExtensionRange.prototype.options = null;
+
+ /**
+ * Creates a new ExtensionRange instance using the specified properties.
+ * @function create
+ * @memberof google.protobuf.DescriptorProto.ExtensionRange
+ * @static
+ * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set
+ * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange instance
+ */
+ ExtensionRange.create = function create(properties) {
+ return new ExtensionRange(properties);
+ };
+
+ /**
+ * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @function encode
+ * @memberof google.protobuf.DescriptorProto.ExtensionRange
+ * @static
+ * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ExtensionRange.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.start != null && Object.hasOwnProperty.call(message, "start"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start);
+ if (message.end != null && Object.hasOwnProperty.call(message, "end"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end);
+ if (message.options != null && Object.hasOwnProperty.call(message, "options"))
+ $root.google.protobuf.ExtensionRangeOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.protobuf.DescriptorProto.ExtensionRange
+ * @static
+ * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ExtensionRange.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.protobuf.DescriptorProto.ExtensionRange
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ExtensionRange.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ExtensionRange();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.start = reader.int32();
+ break;
+ }
+ case 2: {
+ message.end = reader.int32();
+ break;
+ }
+ case 3: {
+ message.options = $root.google.protobuf.ExtensionRangeOptions.decode(reader, reader.uint32());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.protobuf.DescriptorProto.ExtensionRange
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ExtensionRange.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an ExtensionRange message.
+ * @function verify
+ * @memberof google.protobuf.DescriptorProto.ExtensionRange
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ExtensionRange.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.start != null && message.hasOwnProperty("start"))
+ if (!$util.isInteger(message.start))
+ return "start: integer expected";
+ if (message.end != null && message.hasOwnProperty("end"))
+ if (!$util.isInteger(message.end))
+ return "end: integer expected";
+ if (message.options != null && message.hasOwnProperty("options")) {
+ var error = $root.google.protobuf.ExtensionRangeOptions.verify(message.options);
+ if (error)
+ return "options." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.protobuf.DescriptorProto.ExtensionRange
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange
+ */
+ ExtensionRange.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.protobuf.DescriptorProto.ExtensionRange)
+ return object;
+ var message = new $root.google.protobuf.DescriptorProto.ExtensionRange();
+ if (object.start != null)
+ message.start = object.start | 0;
+ if (object.end != null)
+ message.end = object.end | 0;
+ if (object.options != null) {
+ if (typeof object.options !== "object")
+ throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected");
+ message.options = $root.google.protobuf.ExtensionRangeOptions.fromObject(object.options);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.protobuf.DescriptorProto.ExtensionRange
+ * @static
+ * @param {google.protobuf.DescriptorProto.ExtensionRange} message ExtensionRange
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ExtensionRange.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.start = 0;
+ object.end = 0;
+ object.options = null;
+ }
+ if (message.start != null && message.hasOwnProperty("start"))
+ object.start = message.start;
+ if (message.end != null && message.hasOwnProperty("end"))
+ object.end = message.end;
+ if (message.options != null && message.hasOwnProperty("options"))
+ object.options = $root.google.protobuf.ExtensionRangeOptions.toObject(message.options, options);
+ return object;
+ };
+
+ /**
+ * Converts this ExtensionRange to JSON.
+ * @function toJSON
+ * @memberof google.protobuf.DescriptorProto.ExtensionRange
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ExtensionRange.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ExtensionRange
+ * @function getTypeUrl
+ * @memberof google.protobuf.DescriptorProto.ExtensionRange
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ExtensionRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.protobuf.DescriptorProto.ExtensionRange";
+ };
+
+ return ExtensionRange;
+ })();
+
+ DescriptorProto.ReservedRange = (function() {
+
+ /**
+ * Properties of a ReservedRange.
+ * @memberof google.protobuf.DescriptorProto
+ * @interface IReservedRange
+ * @property {number|null} [start] ReservedRange start
+ * @property {number|null} [end] ReservedRange end
+ */
+
+ /**
+ * Constructs a new ReservedRange.
+ * @memberof google.protobuf.DescriptorProto
+ * @classdesc Represents a ReservedRange.
+ * @implements IReservedRange
+ * @constructor
+ * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set
+ */
+ function ReservedRange(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ReservedRange start.
+ * @member {number} start
+ * @memberof google.protobuf.DescriptorProto.ReservedRange
+ * @instance
+ */
+ ReservedRange.prototype.start = 0;
+
+ /**
+ * ReservedRange end.
+ * @member {number} end
+ * @memberof google.protobuf.DescriptorProto.ReservedRange
+ * @instance
+ */
+ ReservedRange.prototype.end = 0;
+
+ /**
+ * Creates a new ReservedRange instance using the specified properties.
+ * @function create
+ * @memberof google.protobuf.DescriptorProto.ReservedRange
+ * @static
+ * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set
+ * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange instance
+ */
+ ReservedRange.create = function create(properties) {
+ return new ReservedRange(properties);
+ };
+
+ /**
+ * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @function encode
+ * @memberof google.protobuf.DescriptorProto.ReservedRange
+ * @static
+ * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ReservedRange.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.start != null && Object.hasOwnProperty.call(message, "start"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start);
+ if (message.end != null && Object.hasOwnProperty.call(message, "end"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.protobuf.DescriptorProto.ReservedRange
+ * @static
+ * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ReservedRange.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.protobuf.DescriptorProto.ReservedRange
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ReservedRange.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ReservedRange();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.start = reader.int32();
+ break;
+ }
+ case 2: {
+ message.end = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.protobuf.DescriptorProto.ReservedRange
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ReservedRange.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ReservedRange message.
+ * @function verify
+ * @memberof google.protobuf.DescriptorProto.ReservedRange
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ReservedRange.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.start != null && message.hasOwnProperty("start"))
+ if (!$util.isInteger(message.start))
+ return "start: integer expected";
+ if (message.end != null && message.hasOwnProperty("end"))
+ if (!$util.isInteger(message.end))
+ return "end: integer expected";
+ return null;
+ };
+
+ /**
+ * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.protobuf.DescriptorProto.ReservedRange
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange
+ */
+ ReservedRange.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.protobuf.DescriptorProto.ReservedRange)
+ return object;
+ var message = new $root.google.protobuf.DescriptorProto.ReservedRange();
+ if (object.start != null)
+ message.start = object.start | 0;
+ if (object.end != null)
+ message.end = object.end | 0;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.protobuf.DescriptorProto.ReservedRange
+ * @static
+ * @param {google.protobuf.DescriptorProto.ReservedRange} message ReservedRange
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.