diff --git a/librarian.yaml b/librarian.yaml
index 7a9e2d132c2..8d5eb1d5520 100644
--- a/librarian.yaml
+++ b/librarian.yaml
@@ -192,6 +192,10 @@ libraries:
nodejs_apis:
- omit_common_resources: true
path: google/cloud/advisorynotifications/v1
+ - name: google-cloud-agentregistry
+ apis:
+ - path: google/cloud/agentregistry/v1
+ copyright_year: "2026"
- name: google-cloud-aiplatform
version: 6.8.1
apis:
diff --git a/packages/google-cloud-agentregistry/.gitignore b/packages/google-cloud-agentregistry/.gitignore
new file mode 100644
index 00000000000..d4f03a0df2e
--- /dev/null
+++ b/packages/google-cloud-agentregistry/.gitignore
@@ -0,0 +1,14 @@
+**/*.log
+**/node_modules
+/.coverage
+/coverage
+/.nyc_output
+/docs/
+/out/
+/build/
+system-test/secrets.js
+system-test/*key.json
+*.lock
+.DS_Store
+package-lock.json
+__pycache__
diff --git a/packages/google-cloud-agentregistry/.jsdoc.js b/packages/google-cloud-agentregistry/.jsdoc.js
new file mode 100644
index 00000000000..5e59bace92c
--- /dev/null
+++ b/packages/google-cloud-agentregistry/.jsdoc.js
@@ -0,0 +1,55 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// ** This file is automatically generated by gapic-generator-typescript. **
+// ** https://github.com/googleapis/gapic-generator-typescript **
+// ** All changes to this file may be overwritten. **
+
+'use strict';
+
+module.exports = {
+ opts: {
+ readme: './README.md',
+ package: './package.json',
+ template: './node_modules/jsdoc-fresh',
+ recurse: true,
+ verbose: true,
+ destination: './docs/'
+ },
+ plugins: [
+ 'plugins/markdown',
+ 'jsdoc-region-tag'
+ ],
+ source: {
+ excludePattern: '(^|\\/|\\\\)[._]',
+ include: [
+ 'build/src',
+ 'protos'
+ ],
+ includePattern: '\\.js$'
+ },
+ templates: {
+ copyright: 'Copyright 2026 Google LLC',
+ includeDate: false,
+ sourceFiles: false,
+ systemName: '@google-cloud/agentregistry',
+ theme: 'lumen',
+ default: {
+ outputSourceFiles: false
+ }
+ },
+ markdown: {
+ idInHeadings: true
+ }
+};
diff --git a/packages/google-cloud-agentregistry/.nycrc b/packages/google-cloud-agentregistry/.nycrc
new file mode 100644
index 00000000000..81a95fc94b0
--- /dev/null
+++ b/packages/google-cloud-agentregistry/.nycrc
@@ -0,0 +1,24 @@
+{
+ "report-dir": "./.coverage",
+ "reporter": ["text", "lcov"],
+ "exclude": [
+ "**/*-test",
+ "**/.coverage",
+ "**/apis",
+ "**/benchmark",
+ "**/conformance",
+ "**/docs",
+ "**/samples",
+ "**/scripts",
+ "**/protos",
+ "**/test",
+ "**/*.d.ts",
+ ".jsdoc.js",
+ "**/.jsdoc.js",
+ "karma.conf.js",
+ "webpack-tests.config.js",
+ "webpack.config.js"
+ ],
+ "exclude-after-remap": false,
+ "all": true
+}
\ No newline at end of file
diff --git a/packages/google-cloud-agentregistry/.repo-metadata.json b/packages/google-cloud-agentregistry/.repo-metadata.json
new file mode 100644
index 00000000000..af2d8c38859
--- /dev/null
+++ b/packages/google-cloud-agentregistry/.repo-metadata.json
@@ -0,0 +1,16 @@
+{
+ "api_description": "Agent Registry is a centralized, unified catalog that lets you store,\ndiscover, and govern Model Context Protocol (MCP) servers, tools, and AI\nagents within Google Cloud.",
+ "api_id": "agentregistry.googleapis.com",
+ "api_shortname": "agentregistry",
+ "client_documentation": "https://cloud.google.com/nodejs/docs/reference/agentregistry/latest",
+ "default_version": "v1",
+ "distribution_name": "@google-cloud/agentregistry",
+ "issue_tracker": "https://issuetracker.google.com/issues/new?component=1992739",
+ "language": "nodejs",
+ "library_type": "GAPIC_AUTO",
+ "name": "agentregistry",
+ "name_pretty": "Agent Registry",
+ "product_documentation": "https://docs.cloud.google.com/agent-registry/overview",
+ "release_level": "stable",
+ "repo": "googleapis/google-cloud-node"
+}
\ No newline at end of file
diff --git a/packages/google-cloud-agentregistry/README.md b/packages/google-cloud-agentregistry/README.md
new file mode 100644
index 00000000000..3194e1cefe1
--- /dev/null
+++ b/packages/google-cloud-agentregistry/README.md
@@ -0,0 +1,108 @@
+[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
+[//]: # "The comments you see below are used to generate those parts of the template in later states."
+
+
+# [Agent Registry API: Nodejs Client][homepage]
+
+[//]: # "releaseLevel"
+
+[](https://www.npmjs.org/package/@google-cloud/agentregistry)
+
+Agent Registry API client for Node.js
+
+[//]: # "partials.introduction"
+
+A comprehensive list of changes in each version may be found in
+[the CHANGELOG][homepage_changelog].
+
+* [Agent Registry API Nodejs Client API Reference](https://cloud.google.com/nodejs/docs/reference/agentregistry/latest)
+* [Agent Registry API Documentation](https://docs.cloud.google.com/agent-registry/overview)
+
+Read more about the client libraries for Cloud APIs, including the older
+Google APIs Client Libraries, in [Client Libraries Explained][explained].
+
+[explained]: https://cloud.google.com/apis/docs/client-libraries-explained
+
+**Table of contents:**
+
+* [Quickstart](#quickstart)
+ * [Before you begin](#before-you-begin)
+ * [Installing the client library](#installing-the-client-library)
+
+* [Versioning](#versioning)
+* [Contributing](#contributing)
+* [License](#license)
+
+## Quickstart
+### Before you begin
+
+1. [Select or create a Cloud Platform project][projects].
+1. [Enable billing for your project][billing].
+1. [Enable the Agent Registry API API][enable_api].
+1. [Set up authentication][auth] so you can access the
+ API from your local workstation.
+### Installing the client library
+
+```bash
+npm install @google-cloud/agentregistry
+```
+
+[//]: # "partials.body"
+
+## Samples
+
+Samples are in the [`samples/`][homepage_samples] directory. Each sample's `README.md` has instructions for running its sample.
+
+[//]: # "samples"
+
+## Supported Node.js Versions
+
+Our client libraries follow the [Node.js release schedule](https://github.com/nodejs/release#release-schedule).
+Libraries are compatible with all current _active_ and _maintenance_ versions of
+Node.js.
+If you are using an end-of-life version of Node.js, we recommend that you update
+as soon as possible to an actively supported LTS version.
+
+Google's client libraries support legacy versions of Node.js runtimes on a
+best-efforts basis with the following warnings:
+
+* Legacy versions are not tested in continuous integration.
+* Some security patches and features cannot be backported.
+* Dependencies cannot be kept up-to-date.
+
+Client libraries targeting some end-of-life versions of Node.js are available, and
+can be installed through npm [dist-tags](https://docs.npmjs.com/cli/dist-tag).
+The dist-tags follow the naming convention `legacy-(version)`.
+For example, `npm install @google-cloud/agentregistry@legacy-8` installs client libraries
+for versions compatible with Node.js 8.
+
+## Versioning
+
+This library follows [Semantic Versioning](http://semver.org/).
+
+More Information: [Google Cloud Platform Launch Stages][launch_stages]
+
+[launch_stages]: https://cloud.google.com/terms/launch-stages
+
+## Contributing
+
+Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/CONTRIBUTING.md).
+
+Please note that this `README.md`
+and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`)
+are generated from a central template.
+
+## License
+
+Apache Version 2.0
+
+See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
+
+[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
+[projects]: https://console.cloud.google.com/project
+[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
+[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=agentregistry.googleapis.com
+[auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local
+[homepage_samples]: https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-agentregistry/samples
+[homepage_changelog]: https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-agentregistry/CHANGELOG.md
+[homepage]: https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-agentregistry
diff --git a/packages/google-cloud-agentregistry/package.json b/packages/google-cloud-agentregistry/package.json
new file mode 100644
index 00000000000..464347a94bc
--- /dev/null
+++ b/packages/google-cloud-agentregistry/package.json
@@ -0,0 +1,59 @@
+{
+ "name": "@google-cloud/agentregistry",
+ "version": "0.1.0",
+ "description": "Agentregistry client for Node.js",
+ "repository": "googleapis/nodejs-agentregistry",
+ "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 agentregistry",
+ "agentregistry",
+ "agent registry"
+ ],
+ "scripts": {
+ "clean": "gts clean",
+ "compile": "tsc -p . && cp -r protos build/ && minifyProtoJson",
+ "compile-protos": "compileProtos src",
+ "docs": "jsdoc -c .jsdoc.js",
+ "fix": "gts fix",
+ "lint": "gts check",
+ "prepare": "npm run compile-protos && npm run compile",
+ "system-test": "c8 mocha --config ../../.mocharc.cjs --no-parallel build/system-test",
+ "test": "c8 mocha --config ../../.mocharc.cjs build/test"
+ },
+ "dependencies": {
+ "google-gax": "^5.1.1-rc.1"
+ },
+ "devDependencies": {
+ "@types/mocha": "^10.0.10",
+ "@types/node": "^22.18.12",
+ "@types/sinon": "^20.0.0",
+ "c8": "^10.1.3",
+ "gapic-tools": "^1.0.3",
+ "gts": "^6.0.2",
+ "jsdoc": "^4.0.5",
+ "jsdoc-fresh": "^5.0.2",
+ "jsdoc-region-tag": "^4.0.1",
+ "long": "^5.3.1",
+ "mocha": "^11.7.4",
+ "pack-n-play": "^4.2.1",
+ "typescript": "5.8.3",
+ "sinon": "^20.0.0"
+ },
+ "engines": {
+ "node": ">=v18"
+ }
+}
diff --git a/packages/google-cloud-agentregistry/protos/google/cloud/agentregistry/v1/agent.proto b/packages/google-cloud-agentregistry/protos/google/cloud/agentregistry/v1/agent.proto
new file mode 100644
index 00000000000..c5c3081f456
--- /dev/null
+++ b/packages/google-cloud-agentregistry/protos/google/cloud/agentregistry/v1/agent.proto
@@ -0,0 +1,168 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.agentregistry.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/field_info.proto";
+import "google/api/resource.proto";
+import "google/cloud/agentregistry/v1/properties.proto";
+import "google/protobuf/struct.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.AgentRegistry.V1";
+option go_package = "cloud.google.com/go/agentregistry/apiv1/agentregistrypb;agentregistrypb";
+option java_multiple_files = true;
+option java_outer_classname = "AgentProto";
+option java_package = "com.google.cloud.agentregistry.v1";
+option php_namespace = "Google\\Cloud\\AgentRegistry\\V1";
+option ruby_package = "Google::Cloud::AgentRegistry::V1";
+
+// Represents an Agent.
+// "A2A" below refers to the Agent-to-Agent protocol.
+message Agent {
+ option (google.api.resource) = {
+ type: "agentregistry.googleapis.com/Agent"
+ pattern: "projects/{project}/locations/{location}/agents/{agent}"
+ plural: "agents"
+ singular: "agent"
+ };
+
+ // Represents the protocol of an Agent.
+ message Protocol {
+ // The type of the protocol.
+ enum Type {
+ // Unspecified type.
+ TYPE_UNSPECIFIED = 0;
+
+ // The interfaces point to an A2A Agent following the A2A
+ // specification.
+ A2A_AGENT = 1;
+
+ // Agent does not follow any standard protocol.
+ CUSTOM = 2;
+ }
+
+ // Output only. The type of the protocol.
+ Type type = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The version of the protocol, for example, the A2A Agent Card
+ // version.
+ string protocol_version = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The connection details for the Agent.
+ repeated Interface interfaces = 3
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
+ // Represents the skills of an Agent.
+ message Skill {
+ // Output only. A unique identifier for the agent's skill.
+ string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. A human-readable name for the agent's skill.
+ string name = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. A more detailed description of the skill.
+ string description = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Keywords describing the skill.
+ repeated string tags = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Example prompts or scenarios this skill can handle.
+ repeated string examples = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
+ // Full Agent Card payload, often obtained from the A2A Agent Card.
+ message Card {
+ // Represents the type of the agent card.
+ enum Type {
+ // Unspecified type.
+ TYPE_UNSPECIFIED = 0;
+
+ // Indicates that the card is an A2A Agent Card.
+ A2A_AGENT_CARD = 1;
+ }
+
+ // Output only. The type of agent card.
+ Type type = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The content of the agent card.
+ google.protobuf.Struct content = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
+ // Identifier. The resource name of an Agent.
+ // Format: `projects/{project}/locations/{location}/agents/{agent}`.
+ string name = 1 [(google.api.field_behavior) = IDENTIFIER];
+
+ // Output only. A stable, globally unique identifier for agents.
+ string agent_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The location where agent is hosted. The value is defined by
+ // the hosting environment (i.e. cloud provider).
+ string location = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The display name of the agent, often obtained from the A2A
+ // Agent Card.
+ string display_name = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The description of the Agent, often obtained from the A2A
+ // Agent Card. Empty if Agent Card has no description.
+ string description = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The version of the Agent, often obtained from the A2A Agent
+ // Card. Empty if Agent Card has no version or agent is not an A2A Agent.
+ string version = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The connection details for the Agent.
+ repeated Protocol protocols = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Skills the agent possesses, often obtained from the A2A Agent
+ // Card.
+ repeated Skill skills = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. A universally unique identifier for the Agent.
+ string uid = 10 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OUTPUT_ONLY
+ ];
+
+ // Output only. Create time.
+ google.protobuf.Timestamp create_time = 11
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Update time.
+ google.protobuf.Timestamp update_time = 12
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Attributes of the Agent.
+ // Valid values:
+ //
+ // * `agentregistry.googleapis.com/system/Framework`: {"framework":
+ // "google-adk"} - the agent framework used to develop the Agent. Example
+ // values: "google-adk", "langchain", "custom".
+ // * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
+ // "principal://..."} - the runtime identity associated with the Agent.
+ // * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
+ // - the URI of the underlying resource hosting the Agent, for
+ // example, the Reasoning Engine URI.
+ map attributes = 13
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Full Agent Card payload, when available.
+ Card card = 14 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
diff --git a/packages/google-cloud-agentregistry/protos/google/cloud/agentregistry/v1/agentregistry_service.proto b/packages/google-cloud-agentregistry/protos/google/cloud/agentregistry/v1/agentregistry_service.proto
new file mode 100644
index 00000000000..682a95bf32a
--- /dev/null
+++ b/packages/google-cloud-agentregistry/protos/google/cloud/agentregistry/v1/agentregistry_service.proto
@@ -0,0 +1,934 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.agentregistry.v1;
+
+import "google/api/annotations.proto";
+import "google/api/client.proto";
+import "google/api/field_behavior.proto";
+import "google/api/field_info.proto";
+import "google/api/resource.proto";
+import "google/cloud/agentregistry/v1/agent.proto";
+import "google/cloud/agentregistry/v1/binding.proto";
+import "google/cloud/agentregistry/v1/endpoint.proto";
+import "google/cloud/agentregistry/v1/mcp_server.proto";
+import "google/cloud/agentregistry/v1/service.proto";
+import "google/longrunning/operations.proto";
+import "google/protobuf/empty.proto";
+import "google/protobuf/field_mask.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.AgentRegistry.V1";
+option go_package = "cloud.google.com/go/agentregistry/apiv1/agentregistrypb;agentregistrypb";
+option java_multiple_files = true;
+option java_outer_classname = "AgentRegistryServiceProto";
+option java_package = "com.google.cloud.agentregistry.v1";
+option php_namespace = "Google\\Cloud\\AgentRegistry\\V1";
+option ruby_package = "Google::Cloud::AgentRegistry::V1";
+
+// Service for managing Agents, Endpoints, McpServers, Services, and Bindings.
+service AgentRegistry {
+ option (google.api.default_host) = "agentregistry.googleapis.com";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/agentregistry.read-only,"
+ "https://www.googleapis.com/auth/agentregistry.read-write,"
+ "https://www.googleapis.com/auth/cloud-platform,"
+ "https://www.googleapis.com/auth/cloud-platform.read-only";
+
+ // Lists Agents in a given project and location.
+ rpc ListAgents(ListAgentsRequest) returns (ListAgentsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/agents"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Searches Agents in a given project and location.
+ rpc SearchAgents(SearchAgentsRequest) returns (SearchAgentsResponse) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/agents:search"
+ body: "*"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets details of a single Agent.
+ rpc GetAgent(GetAgentRequest) returns (Agent) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/agents/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists Endpoints in a given project and location.
+ rpc ListEndpoints(ListEndpointsRequest) returns (ListEndpointsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/endpoints"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets details of a single Endpoint.
+ rpc GetEndpoint(GetEndpointRequest) returns (Endpoint) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/endpoints/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists McpServers in a given project and location.
+ rpc ListMcpServers(ListMcpServersRequest) returns (ListMcpServersResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/mcpServers"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Searches McpServers in a given project and location.
+ rpc SearchMcpServers(SearchMcpServersRequest)
+ returns (SearchMcpServersResponse) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/mcpServers:search"
+ body: "*"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets details of a single McpServer.
+ rpc GetMcpServer(GetMcpServerRequest) returns (McpServer) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/mcpServers/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists Services in a given project and location.
+ rpc ListServices(ListServicesRequest) returns (ListServicesResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/services"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets details of a single Service.
+ rpc GetService(GetServiceRequest) returns (Service) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/services/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a new Service in a given project and location.
+ rpc CreateService(CreateServiceRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/services"
+ body: "service"
+ };
+ option (google.api.method_signature) = "parent,service,service_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "Service"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Updates the parameters of a single Service.
+ rpc UpdateService(UpdateServiceRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1/{service.name=projects/*/locations/*/services/*}"
+ body: "service"
+ };
+ option (google.api.method_signature) = "service,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "Service"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Deletes a single Service.
+ rpc DeleteService(DeleteServiceRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/services/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Lists Bindings in a given project and location.
+ rpc ListBindings(ListBindingsRequest) returns (ListBindingsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/bindings"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Gets details of a single Binding.
+ rpc GetBinding(GetBindingRequest) returns (Binding) {
+ option (google.api.http) = {
+ get: "/v1/{name=projects/*/locations/*/bindings/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Creates a new Binding in a given project and location.
+ rpc CreateBinding(CreateBindingRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/locations/*}/bindings"
+ body: "binding"
+ };
+ option (google.api.method_signature) = "parent,binding,binding_id";
+ option (google.longrunning.operation_info) = {
+ response_type: "Binding"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Updates the parameters of a single Binding.
+ rpc UpdateBinding(UpdateBindingRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ patch: "/v1/{binding.name=projects/*/locations/*/bindings/*}"
+ body: "binding"
+ };
+ option (google.api.method_signature) = "binding,update_mask";
+ option (google.longrunning.operation_info) = {
+ response_type: "Binding"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Deletes a single Binding.
+ rpc DeleteBinding(DeleteBindingRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1/{name=projects/*/locations/*/bindings/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "OperationMetadata"
+ };
+ }
+
+ // Fetches available Bindings.
+ rpc FetchAvailableBindings(FetchAvailableBindingsRequest)
+ returns (FetchAvailableBindingsResponse) {
+ option (google.api.http) = {
+ get: "/v1/{parent=projects/*/locations/*}/bindings:fetchAvailable"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+}
+
+// Message for requesting list of Agents
+message ListAgentsRequest {
+ // Required. Parent value for ListAgentsRequest
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "agentregistry.googleapis.com/Agent"
+ }
+ ];
+
+ // Optional. Requested page size. Server may return fewer items than
+ // requested. If unspecified, server will pick an appropriate default.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A token identifying a page of results the server should return.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Filtering results
+ string filter = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Hint for how to order the results
+ string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Message for response to listing Agents
+message ListAgentsResponse {
+ // The list of Agents.
+ repeated Agent agents = 1;
+
+ // A token identifying a page of results the server should return.
+ string next_page_token = 2;
+}
+
+// Message for searching Agents
+message SearchAgentsRequest {
+ // Required. Parent value for SearchAgentsRequest. Format:
+ // `projects/{project}/locations/{location}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "agentregistry.googleapis.com/Agent"
+ }
+ ];
+
+ // Optional. Search criteria used to select the Agents to return. If no search
+ // criteria is specified then all accessible Agents will be returned.
+ //
+ // Search expressions can be used to restrict results based upon searchable
+ // fields, where the operators can be used along with the suffix wildcard
+ // symbol `*`. See
+ // [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
+ // for more details.
+ //
+ // Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`.
+ //
+ // Searchable fields:
+ //
+ // | Field | `=` | `:` | `*` | Keyword Search |
+ // |--------------------|-----|-----|-----|----------------|
+ // | agentId | Yes | Yes | Yes | Included |
+ // | name | No | Yes | Yes | Included |
+ // | displayName | No | Yes | Yes | Included |
+ // | description | No | Yes | No | Included |
+ // | skills | No | Yes | No | Included |
+ // | skills.id | No | Yes | No | Included |
+ // | skills.name | No | Yes | No | Included |
+ // | skills.description | No | Yes | No | Included |
+ // | skills.tags | No | Yes | No | Included |
+ // | skills.examples | No | Yes | No | Included |
+ //
+ // Examples:
+ //
+ // * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:reasoningEngines:1234"`
+ // to find the agent with the specified agent ID.
+ // * `name:important` to find agents whose name contains `important` as a
+ // word.
+ // * `displayName:works*` to find agents whose display name contains words
+ // that start with `works`.
+ // * `skills.tags:test` to find agents whose skills tags contain `test`.
+ // * `planner OR booking` to find agents whose metadata contains the words
+ // `planner` or `booking`.
+ string search_string = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The maximum number of search results to return per page. The page
+ // size is capped at `100`, even if a larger value is specified. A negative
+ // value will result in an `INVALID_ARGUMENT` error. If unspecified or set to
+ // `0`, a default value of `20` will be used. The server may return fewer
+ // results than requested.
+ int32 page_size = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If present, retrieve the next batch of results from the preceding
+ // call to this method. `page_token` must be the value of `next_page_token`
+ // from the previous response. The values of all other method parameters, must
+ // be identical to those in the previous call.
+ string page_token = 7 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Message for response to searching Agents
+message SearchAgentsResponse {
+ // A list of Agents that match the `search_string`.
+ repeated Agent agents = 1;
+
+ // If there are more results than those appearing in this response, then
+ // `next_page_token` is included. To get the next set of results, call this
+ // method again using the value of `next_page_token` as `page_token`.
+ string next_page_token = 2;
+}
+
+// Message for getting a Agent
+message GetAgentRequest {
+ // Required. Name of the resource
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "agentregistry.googleapis.com/Agent"
+ }
+ ];
+}
+
+// Message for requesting list of Endpoints
+message ListEndpointsRequest {
+ // Required. The project and location to list endpoints in.
+ // Expected format: `projects/{project}/locations/{location}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "agentregistry.googleapis.com/Endpoint"
+ }
+ ];
+
+ // Optional. Requested page size. Server may return fewer items than
+ // requested. If unspecified, server will pick an appropriate default.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A token identifying a page of results the server should return.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A query string used to filter the list of endpoints returned.
+ // The filter expression must follow AIP-160 syntax.
+ //
+ // Filtering is supported on the `name`, `display_name`, `description`,
+ // `version`, and `interfaces` fields.
+ //
+ // Some examples:
+ //
+ // * `name = "projects/p1/locations/l1/endpoints/e1"`
+ // * `display_name = "my-endpoint"`
+ // * `description = "my-endpoint-description"`
+ // * `version = "v1"`
+ // * `interfaces.transport = "HTTP_JSON"`
+ string filter = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Message for response to listing Endpoints
+message ListEndpointsResponse {
+ // The list of Endpoint resources matching the parent and filter criteria in
+ // the request. Each Endpoint resource follows the format:
+ // `projects/{project}/locations/{location}/endpoints/{endpoint}`.
+ repeated Endpoint endpoints = 1;
+
+ // A token identifying a page of results the server should return.
+ // Used in
+ // [page_token][google.cloud.agentregistry.v1main.ListEndpointsRequest.page_token].
+ string next_page_token = 2;
+}
+
+// Message for getting a Endpoint
+message GetEndpointRequest {
+ // Required. The name of the endpoint to retrieve.
+ // Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "agentregistry.googleapis.com/Endpoint"
+ }
+ ];
+}
+
+// Message for requesting list of McpServers
+message ListMcpServersRequest {
+ // Required. Parent value for ListMcpServersRequest. Format:
+ // `projects/{project}/locations/{location}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "agentregistry.googleapis.com/McpServer"
+ }
+ ];
+
+ // Optional. Requested page size. Server may return fewer items than
+ // requested. If unspecified, server will pick an appropriate default.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A token identifying a page of results the server should return.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Filtering results
+ string filter = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Hint for how to order the results
+ string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Message for response to listing McpServers
+message ListMcpServersResponse {
+ // The list of McpServers.
+ repeated McpServer mcp_servers = 1;
+
+ // A token identifying a page of results the server should return.
+ string next_page_token = 2;
+}
+
+// Message for searching MCP Servers
+message SearchMcpServersRequest {
+ // Required. Parent value for SearchMcpServersRequest. Format:
+ // `projects/{project}/locations/{location}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "agentregistry.googleapis.com/McpServer"
+ }
+ ];
+
+ // Optional. Search criteria used to select the MCP Servers to return. If no
+ // search criteria is specified then all accessible MCP Servers will be
+ // returned.
+ //
+ // Search expressions can be used to restrict results based upon searchable
+ // fields, where the operators can be used along with the suffix wildcard
+ // symbol `*`. See
+ // [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
+ // for more details.
+ //
+ // Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`.
+ //
+ // Searchable fields:
+ //
+ // | Field | `=` | `:` | `*` | Keyword Search |
+ // |--------------------|-----|-----|-----|----------------|
+ // | mcpServerId | Yes | Yes | Yes | Included |
+ // | name | No | Yes | Yes | Included |
+ // | displayName | No | Yes | Yes | Included |
+ //
+ // Examples:
+ //
+ // * `mcpServerId="urn:mcp:projects-123:projects:123:locations:us-central1:agentregistry:services:service-id"`
+ // to find the MCP Server with the specified MCP Server ID.
+ // * `name:important` to find MCP Servers whose name contains `important` as a
+ // word.
+ // * `displayName:works*` to find MCP Servers whose display name contains
+ // words that start with `works`.
+ // * `planner OR booking` to find MCP Servers whose metadata contains the
+ // words `planner` or `booking`.
+ // * `mcpServerId:service-id AND (displayName:planner OR
+ // displayName:booking)` to find MCP Servers whose MCP Server ID contains
+ // `service-id` and whose display name contains `planner` or
+ // `booking`.
+ string search_string = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The maximum number of search results to return per page. The page
+ // size is capped at `100`, even if a larger value is specified. A negative
+ // value will result in an `INVALID_ARGUMENT` error. If unspecified or set to
+ // `0`, a default value of `20` will be used. The server may return fewer
+ // results than requested.
+ int32 page_size = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. If present, retrieve the next batch of results from the preceding
+ // call to this method. `page_token` must be the value of `next_page_token`
+ // from the previous response. The values of all other method parameters, must
+ // be identical to those in the previous call.
+ string page_token = 7 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Message for response to searching MCP Servers
+message SearchMcpServersResponse {
+ // A list of McpServers that match the `search_string`.
+ repeated McpServer mcp_servers = 1;
+
+ // If there are more results than those appearing in this response, then
+ // `next_page_token` is included. To get the next set of results, call this
+ // method again using the value of `next_page_token` as `page_token`.
+ string next_page_token = 2;
+}
+
+// Message for getting a McpServer
+message GetMcpServerRequest {
+ // Required. Name of the resource
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "agentregistry.googleapis.com/McpServer"
+ }
+ ];
+}
+
+// Message for requesting list of Services
+message ListServicesRequest {
+ // Required. The project and location to list services in.
+ // Expected format: `projects/{project}/locations/{location}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "agentregistry.googleapis.com/Service"
+ }
+ ];
+
+ // Optional. Requested page size. Server may return fewer items than
+ // requested. If unspecified, server will pick an appropriate default.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A token identifying a page of results the server should return.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A query string used to filter the list of services returned.
+ // The filter expression must follow AIP-160 syntax.
+ //
+ // Filtering is supported on the `name`, `display_name`, `description`,
+ // and `labels` fields.
+ //
+ // Some examples:
+ //
+ // * `name = "projects/p1/locations/l1/services/s1"`
+ // * `display_name = "my-service"`
+ // * `description : "myservice description"`
+ // * `labels.env = "prod"`
+ string filter = 4 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Message for response to listing Services
+message ListServicesResponse {
+ // The list of Service resources matching the parent and filter criteria in
+ // the request. Each Service resource follows the format:
+ // `projects/{project}/locations/{location}/services/{service}`.
+ repeated Service services = 1;
+
+ // A token identifying a page of results the server should return.
+ // Used in
+ // [page_token][google.cloud.agentregistry.v1main.ListServicesRequest.page_token].
+ string next_page_token = 2;
+}
+
+// Message for getting a Service
+message GetServiceRequest {
+ // Required. The name of the Service.
+ // Format: `projects/{project}/locations/{location}/services/{service}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "agentregistry.googleapis.com/Service"
+ }
+ ];
+}
+
+// Message for creating a Service
+message CreateServiceRequest {
+ // Required. The project and location to create the Service in.
+ // Expected format: `projects/{project}/locations/{location}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "agentregistry.googleapis.com/Service"
+ }
+ ];
+
+ // Required. The ID to use for the service, which will become the final
+ // component of the service's resource name.
+ //
+ // This value should be 4-63 characters, and valid characters
+ // are `/[a-z][0-9]-/`.
+ string service_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The Service resource that is being created.
+ // Format: `projects/{project}/locations/{location}/services/{service}`.
+ Service service = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. An optional request ID to identify requests. Specify a unique
+ // request ID so that if you must retry your request, the server will know to
+ // ignore the request if it has already been completed. The server will
+ // guarantee that for at least 60 minutes since the first request.
+ //
+ // For example, consider a situation where you make an initial request and the
+ // request times out. If you make the request again with the same request
+ // ID, the server can check if original operation with the same request ID
+ // was received, and if so, will ignore the second request. This prevents
+ // clients from accidentally creating duplicate commitments.
+ //
+ // The request ID must be a valid UUID with the exception that zero UUID is
+ // not supported (00000000-0000-0000-0000-000000000000).
+ string request_id = 4 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
+
+// Message for fetching available Bindings.
+message FetchAvailableBindingsRequest {
+ // The reference of the source Agent.
+ oneof source {
+ // The identifier of the source Agent.
+ // Format:
+ //
+ // * `urn:agent:{publisher}:{namespace}:{name}`
+ string source_identifier = 2;
+ }
+
+ // The reference of the target Agent Registry resource.
+ oneof target {
+ // Optional. The identifier of the target Agent, MCP Server, or Endpoint.
+ // Format:
+ //
+ // * `urn:agent:{publisher}:{namespace}:{name}`
+ // * `urn:mcp:{publisher}:{namespace}:{name}`
+ // * `urn:endpoint:{publisher}:{namespace}:{name}`
+ string target_identifier = 3 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Required. The parent, in the format
+ // `projects/{project}/locations/{location}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "agentregistry.googleapis.com/Binding"
+ }
+ ];
+
+ // Optional. Requested page size. Server may return fewer items than
+ // requested. Page size is 500 if unspecified and is capped at `500` even if a
+ // larger value is given.
+ int32 page_size = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A token identifying a page of results the server should return.
+ string page_token = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Message for response to fetching available Bindings.
+message FetchAvailableBindingsResponse {
+ // The list of Bindings.
+ repeated Binding bindings = 1;
+
+ // A token identifying a page of results the server should return.
+ string next_page_token = 2;
+}
+
+// Message for updating a Service
+message UpdateServiceRequest {
+ // Optional. Field mask is used to specify the fields to be overwritten in the
+ // Service resource by the update.
+ // The fields specified in the update_mask are relative to the resource, not
+ // the full request. A field will be overwritten if it is in the mask. If the
+ // user does not provide a mask then all fields present in the request will be
+ // overwritten.
+ google.protobuf.FieldMask update_mask = 1
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. The Service resource that is being updated.
+ // Format: `projects/{project}/locations/{location}/services/{service}`.
+ Service service = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. An optional request ID to identify requests. Specify a unique
+ // request ID so that if you must retry your request, the server will know to
+ // ignore the request if it has already been completed. The server will
+ // guarantee that for at least 60 minutes since the first request.
+ //
+ // For example, consider a situation where you make an initial request and the
+ // request times out. If you make the request again with the same request
+ // ID, the server can check if original operation with the same request ID
+ // was received, and if so, will ignore the second request. This prevents
+ // clients from accidentally creating duplicate commitments.
+ //
+ // The request ID must be a valid UUID with the exception that zero UUID is
+ // not supported (00000000-0000-0000-0000-000000000000).
+ string request_id = 3 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
+
+// Message for deleting a Service
+message DeleteServiceRequest {
+ // Required. The name of the Service.
+ // Format: `projects/{project}/locations/{location}/services/{service}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "agentregistry.googleapis.com/Service"
+ }
+ ];
+
+ // Optional. An optional request ID to identify requests. Specify a unique
+ // request ID so that if you must retry your request, the server will know to
+ // ignore the request if it has already been completed. The server will
+ // guarantee that for at least 60 minutes after the first request.
+ //
+ // For example, consider a situation where you make an initial request and the
+ // request times out. If you make the request again with the same request
+ // ID, the server can check if original operation with the same request ID
+ // was received, and if so, will ignore the second request. This prevents
+ // clients from accidentally creating duplicate commitments.
+ //
+ // The request ID must be a valid UUID with the exception that zero UUID is
+ // not supported (00000000-0000-0000-0000-000000000000).
+ string request_id = 2 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
+
+// Represents the metadata of the long-running operation.
+message OperationMetadata {
+ // Output only. The time the operation was created.
+ google.protobuf.Timestamp create_time = 1
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The time the operation finished running.
+ google.protobuf.Timestamp end_time = 2
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Server-defined resource path for the target of the operation.
+ string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Name of the verb executed by the operation.
+ string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Human-readable status of the operation, if any.
+ string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Identifies whether the user has requested cancellation
+ // of the operation. Operations that have been cancelled successfully
+ // have
+ // [google.longrunning.Operation.error][google.longrunning.Operation.error]
+ // value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`,
+ // corresponding to `Code.CANCELLED`.
+ bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. API version used to start the operation.
+ string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
+// Message for requesting a list of Bindings.
+message ListBindingsRequest {
+ // Required. The project and location to list bindings in.
+ // Expected format: `projects/{project}/locations/{location}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "agentregistry.googleapis.com/Binding"
+ }
+ ];
+
+ // Optional. Requested page size. Server may return fewer items than
+ // requested. Page size is 500 if unspecified and is capped at `500` even if a
+ // larger value is given.
+ int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A token identifying a page of results the server should return.
+ string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. A query string used to filter the list of bindings returned.
+ // The filter expression must follow AIP-160 syntax.
+ string filter = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Hint for how to order the results
+ string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Message for response to listing Bindings
+message ListBindingsResponse {
+ // The list of Binding resources matching the parent and filter criteria in
+ // the request. Each Binding resource follows the format:
+ // `projects/{project}/locations/{location}/bindings/{binding}`.
+ repeated Binding bindings = 1;
+
+ // A token identifying a page of results the server should return.
+ // Used in
+ // [page_token][google.cloud.agentregistry.v1main.ListBindingsRequest.page_token].
+ string next_page_token = 2;
+}
+
+// Message for getting a Binding
+message GetBindingRequest {
+ // Required. The name of the Binding.
+ // Format: `projects/{project}/locations/{location}/bindings/{binding}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "agentregistry.googleapis.com/Binding"
+ }
+ ];
+}
+
+// Message for creating a Binding
+message CreateBindingRequest {
+ // Required. The project and location to create the Binding in.
+ // Expected format: `projects/{project}/locations/{location}`.
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ child_type: "agentregistry.googleapis.com/Binding"
+ }
+ ];
+
+ // Required. The ID to use for the binding, which will become the final
+ // component of the binding's resource name.
+ //
+ // This value should be 4-63 characters, and must conform to RFC-1034.
+ // Specifically, it must match the regular expression
+ // `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
+ string binding_id = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The Binding resource that is being created.
+ Binding binding = 3 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. An optional request ID to identify requests. Specify a unique
+ // request ID so that if you must retry your request, the server will know to
+ // ignore the request if it has already been completed. The server will
+ // guarantee that for at least 60 minutes since the first request.
+ //
+ // For example, consider a situation where you make an initial request and the
+ // request times out. If you make the request again with the same request
+ // ID, the server can check if original operation with the same request ID
+ // was received, and if so, will ignore the second request. This prevents
+ // clients from accidentally creating duplicate commitments.
+ //
+ // The request ID must be a valid UUID with the exception that zero UUID is
+ // not supported (00000000-0000-0000-0000-000000000000).
+ string request_id = 4 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
+
+// Message for updating a Binding
+message UpdateBindingRequest {
+ // Required. The Binding resource that is being updated.
+ Binding binding = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. Field mask is used to specify the fields to be overwritten in the
+ // Binding resource by the update.
+ // The fields specified in the update_mask are relative to the resource, not
+ // the full request. A field will be overwritten if it is in the mask. If the
+ // user does not provide a mask then all fields present in the request will be
+ // overwritten.
+ google.protobuf.FieldMask update_mask = 2
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. An optional request ID to identify requests. Specify a unique
+ // request ID so that if you must retry your request, the server will know to
+ // ignore the request if it has already been completed. The server will
+ // guarantee that for at least 60 minutes since the first request.
+ //
+ // For example, consider a situation where you make an initial request and the
+ // request times out. If you make the request again with the same request
+ // ID, the server can check if original operation with the same request ID
+ // was received, and if so, will ignore the second request. This prevents
+ // clients from accidentally creating duplicate commitments.
+ //
+ // The request ID must be a valid UUID with the exception that zero UUID is
+ // not supported (00000000-0000-0000-0000-000000000000).
+ string request_id = 3 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
+
+// Message for deleting a Binding
+message DeleteBindingRequest {
+ // Required. The name of the Binding.
+ // Format: `projects/{project}/locations/{location}/bindings/{binding}`.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "agentregistry.googleapis.com/Binding"
+ }
+ ];
+
+ // Optional. An optional request ID to identify requests. Specify a unique
+ // request ID so that if you must retry your request, the server will know to
+ // ignore the request if it has already been completed. The server will
+ // guarantee that for at least 60 minutes after the first request.
+ //
+ // For example, consider a situation where you make an initial request and the
+ // request times out. If you make the request again with the same request
+ // ID, the server can check if original operation with the same request ID
+ // was received, and if so, will ignore the second request. This prevents
+ // clients from accidentally creating duplicate commitments.
+ //
+ // The request ID must be a valid UUID with the exception that zero UUID is
+ // not supported (00000000-0000-0000-0000-000000000000).
+ string request_id = 2 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OPTIONAL
+ ];
+}
diff --git a/packages/google-cloud-agentregistry/protos/google/cloud/agentregistry/v1/binding.proto b/packages/google-cloud-agentregistry/protos/google/cloud/agentregistry/v1/binding.proto
new file mode 100644
index 00000000000..6a9ce81c331
--- /dev/null
+++ b/packages/google-cloud-agentregistry/protos/google/cloud/agentregistry/v1/binding.proto
@@ -0,0 +1,120 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.agentregistry.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.AgentRegistry.V1";
+option go_package = "cloud.google.com/go/agentregistry/apiv1/agentregistrypb;agentregistrypb";
+option java_multiple_files = true;
+option java_outer_classname = "BindingProto";
+option java_package = "com.google.cloud.agentregistry.v1";
+option php_namespace = "Google\\Cloud\\AgentRegistry\\V1";
+option ruby_package = "Google::Cloud::AgentRegistry::V1";
+
+// Represents a user-defined Binding.
+message Binding {
+ option (google.api.resource) = {
+ type: "agentregistry.googleapis.com/Binding"
+ pattern: "projects/{project}/locations/{location}/bindings/{binding}"
+ plural: "bindings"
+ singular: "binding"
+ };
+
+ // The source of the Binding.
+ message Source {
+ // The type of the source, currently only supports Agents.
+ // Potential future fields include 'tag', etc.
+ oneof source_type {
+ // The identifier of the source Agent.
+ // Format:
+ //
+ // * `urn:agent:{publisher}:{namespace}:{name}`
+ string identifier = 1;
+ }
+ }
+
+ // The target of the Binding.
+ message Target {
+ // The type of the target, currently only supports an AgentRegistry
+ // Resource.
+ // Potential future fields include 'tag', etc.
+ oneof target_type {
+ // The identifier of the target Agent, MCP Server, or Endpoint.
+ // Format:
+ //
+ // * `urn:agent:{publisher}:{namespace}:{name}`
+ // * `urn:mcp:{publisher}:{namespace}:{name}`
+ // * `urn:endpoint:{publisher}:{namespace}:{name}`
+ string identifier = 1;
+ }
+ }
+
+ // The AuthProvider of the Binding.
+ message AuthProviderBinding {
+ // Required. The resource name of the target AuthProvider.
+ // Format:
+ //
+ // * `projects/{project}/locations/{location}/authProviders/{auth_provider}`
+ string auth_provider = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The list of OAuth2 scopes of the AuthProvider.
+ repeated string scopes = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The continue URI of the AuthProvider.
+ // The URI is used to reauthenticate the user and finalize the managed OAuth
+ // flow.
+ string continue_uri = 3 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // The configuration for the Binding.
+ oneof binding {
+ // The binding for AuthProvider.
+ AuthProviderBinding auth_provider_binding = 6;
+ }
+
+ // Required. Identifier. The resource name of the Binding.
+ // Format: `projects/{project}/locations/{location}/bindings/{binding}`.
+ string name = 1 [
+ (google.api.field_behavior) = IDENTIFIER,
+ (google.api.field_behavior) = REQUIRED
+ ];
+
+ // Optional. User-defined display name for the Binding.
+ // Can have a maximum length of `63` characters.
+ string display_name = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. User-defined description of a Binding.
+ // Can have a maximum length of `2048` characters.
+ string description = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Required. The target Agent of the Binding.
+ Source source = 4 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The target Agent Registry Resource of the Binding.
+ Target target = 5 [(google.api.field_behavior) = REQUIRED];
+
+ // Output only. Timestamp when this binding was created.
+ google.protobuf.Timestamp create_time = 7
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Timestamp when this binding was last updated.
+ google.protobuf.Timestamp update_time = 8
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
diff --git a/packages/google-cloud-agentregistry/protos/google/cloud/agentregistry/v1/endpoint.proto b/packages/google-cloud-agentregistry/protos/google/cloud/agentregistry/v1/endpoint.proto
new file mode 100644
index 00000000000..29978c2197e
--- /dev/null
+++ b/packages/google-cloud-agentregistry/protos/google/cloud/agentregistry/v1/endpoint.proto
@@ -0,0 +1,75 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.agentregistry.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/agentregistry/v1/properties.proto";
+import "google/protobuf/struct.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.AgentRegistry.V1";
+option go_package = "cloud.google.com/go/agentregistry/apiv1/agentregistrypb;agentregistrypb";
+option java_multiple_files = true;
+option java_outer_classname = "EndpointProto";
+option java_package = "com.google.cloud.agentregistry.v1";
+option php_namespace = "Google\\Cloud\\AgentRegistry\\V1";
+option ruby_package = "Google::Cloud::AgentRegistry::V1";
+
+// Represents an Endpoint.
+message Endpoint {
+ option (google.api.resource) = {
+ type: "agentregistry.googleapis.com/Endpoint"
+ pattern: "projects/{project}/locations/{location}/endpoints/{endpoint}"
+ plural: "endpoints"
+ singular: "endpoint"
+ };
+
+ // Identifier. The resource name of the Endpoint.
+ // Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`.
+ string name = 1 [(google.api.field_behavior) = IDENTIFIER];
+
+ // Output only. A stable, globally unique identifier for Endpoint.
+ string endpoint_id = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Display name for the Endpoint.
+ string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Description of an Endpoint.
+ string description = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Required. The connection details for the Endpoint.
+ repeated Interface interfaces = 4 [(google.api.field_behavior) = REQUIRED];
+
+ // Output only. Create time.
+ google.protobuf.Timestamp create_time = 5
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Update time.
+ google.protobuf.Timestamp update_time = 6
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Attributes of the Endpoint.
+ //
+ // Valid values:
+ //
+ // * `agentregistry.googleapis.com/system/RuntimeReference`:
+ // {"uri": "//..."} - the URI of the underlying resource hosting the
+ // Endpoint, for example, the GKE Deployment.
+ map attributes = 7
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
diff --git a/packages/google-cloud-agentregistry/protos/google/cloud/agentregistry/v1/mcp_server.proto b/packages/google-cloud-agentregistry/protos/google/cloud/agentregistry/v1/mcp_server.proto
new file mode 100644
index 00000000000..dfea8e01504
--- /dev/null
+++ b/packages/google-cloud-agentregistry/protos/google/cloud/agentregistry/v1/mcp_server.proto
@@ -0,0 +1,120 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.agentregistry.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/agentregistry/v1/properties.proto";
+import "google/protobuf/struct.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.AgentRegistry.V1";
+option go_package = "cloud.google.com/go/agentregistry/apiv1/agentregistrypb;agentregistrypb";
+option java_multiple_files = true;
+option java_outer_classname = "McpServerProto";
+option java_package = "com.google.cloud.agentregistry.v1";
+option php_namespace = "Google\\Cloud\\AgentRegistry\\V1";
+option ruby_package = "Google::Cloud::AgentRegistry::V1";
+
+// Represents an MCP (Model Context Protocol) Server.
+message McpServer {
+ option (google.api.resource) = {
+ type: "agentregistry.googleapis.com/McpServer"
+ pattern: "projects/{project}/locations/{location}/mcpServers/{mcp_server}"
+ plural: "mcpServers"
+ singular: "mcpServer"
+ };
+
+ // Represents a single tool provided by an MCP Server.
+ message Tool {
+ // Annotations describing the characteristics and behavior of a tool or
+ // operation.
+ message Annotations {
+ // Output only. A human-readable title for the tool.
+ string title = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. If true, the tool may perform destructive updates to its
+ // environment. If false, the tool performs only additive updates. NOTE:
+ // This property is meaningful only when `read_only_hint == false`
+ // Default: true
+ bool destructive_hint = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. If true, calling the tool repeatedly with the same
+ // arguments will have no additional effect on its environment. NOTE: This
+ // property is meaningful only when `read_only_hint == false` Default:
+ // false
+ bool idempotent_hint = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. If true, this tool may interact with an "open world" of
+ // external entities. If false, the tool's domain of interaction is
+ // closed. For example, the world of a web search tool is open, whereas
+ // that of a memory tool is not. Default: true
+ bool open_world_hint = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. If true, the tool does not modify its environment.
+ // Default: false
+ bool read_only_hint = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
+ // Output only. Human-readable name of the tool.
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Description of what the tool does.
+ string description = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Annotations associated with the tool.
+ Annotations annotations = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+ }
+
+ // Identifier. The resource name of the MCP Server.
+ // Format: `projects/{project}/locations/{location}/mcpServers/{mcp_server}`.
+ string name = 1 [(google.api.field_behavior) = IDENTIFIER];
+
+ // Output only. A stable, globally unique identifier for MCP Servers.
+ string mcp_server_id = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The display name of the MCP Server.
+ string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The description of the MCP Server.
+ string description = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. The connection details for the MCP Server.
+ repeated Interface interfaces = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Tools provided by the MCP Server.
+ repeated Tool tools = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Create time.
+ google.protobuf.Timestamp create_time = 6
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Update time.
+ google.protobuf.Timestamp update_time = 7
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Attributes of the MCP Server.
+ // Valid values:
+ //
+ // * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
+ // "principal://..."} - the runtime identity associated with the MCP Server.
+ // * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
+ // - the URI of the underlying resource hosting the MCP Server, for
+ // example, the GKE Deployment.
+ map attributes = 8
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
diff --git a/packages/google-cloud-agentregistry/protos/google/cloud/agentregistry/v1/properties.proto b/packages/google-cloud-agentregistry/protos/google/cloud/agentregistry/v1/properties.proto
new file mode 100644
index 00000000000..86a0f1c1046
--- /dev/null
+++ b/packages/google-cloud-agentregistry/protos/google/cloud/agentregistry/v1/properties.proto
@@ -0,0 +1,51 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.agentregistry.v1;
+
+import "google/api/field_behavior.proto";
+
+option csharp_namespace = "Google.Cloud.AgentRegistry.V1";
+option go_package = "cloud.google.com/go/agentregistry/apiv1/agentregistrypb;agentregistrypb";
+option java_multiple_files = true;
+option java_outer_classname = "PropertiesProto";
+option java_package = "com.google.cloud.agentregistry.v1";
+option php_namespace = "Google\\Cloud\\AgentRegistry\\V1";
+option ruby_package = "Google::Cloud::AgentRegistry::V1";
+
+// Represents the connection details for an Agent or MCP Server.
+message Interface {
+ // The protocol binding of the interface.
+ enum ProtocolBinding {
+ // Unspecified transport protocol.
+ PROTOCOL_BINDING_UNSPECIFIED = 0;
+
+ // JSON-RPC specification.
+ JSONRPC = 1;
+
+ // gRPC specification.
+ GRPC = 2;
+
+ // HTTP+JSON specification.
+ HTTP_JSON = 3;
+ }
+
+ // Required. The destination URL.
+ string url = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Required. The protocol binding of the interface.
+ ProtocolBinding protocol_binding = 2 [(google.api.field_behavior) = REQUIRED];
+}
diff --git a/packages/google-cloud-agentregistry/protos/google/cloud/agentregistry/v1/service.proto b/packages/google-cloud-agentregistry/protos/google/cloud/agentregistry/v1/service.proto
new file mode 100644
index 00000000000..174bd716cda
--- /dev/null
+++ b/packages/google-cloud-agentregistry/protos/google/cloud/agentregistry/v1/service.proto
@@ -0,0 +1,154 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+syntax = "proto3";
+
+package google.cloud.agentregistry.v1;
+
+import "google/api/field_behavior.proto";
+import "google/api/resource.proto";
+import "google/cloud/agentregistry/v1/properties.proto";
+import "google/protobuf/struct.proto";
+import "google/protobuf/timestamp.proto";
+
+option csharp_namespace = "Google.Cloud.AgentRegistry.V1";
+option go_package = "cloud.google.com/go/agentregistry/apiv1/agentregistrypb;agentregistrypb";
+option java_multiple_files = true;
+option java_outer_classname = "ServiceProto";
+option java_package = "com.google.cloud.agentregistry.v1";
+option php_namespace = "Google\\Cloud\\AgentRegistry\\V1";
+option ruby_package = "Google::Cloud::AgentRegistry::V1";
+
+// Represents a user-defined Service.
+message Service {
+ option (google.api.resource) = {
+ type: "agentregistry.googleapis.com/Service"
+ pattern: "projects/{project}/locations/{location}/services/{service}"
+ plural: "services"
+ singular: "service"
+ };
+
+ // The spec of the agent.
+ message AgentSpec {
+ // The type of the agent spec.
+ enum Type {
+ // Unspecified type.
+ TYPE_UNSPECIFIED = 0;
+
+ // There is no spec for the Agent. The `content` field must be empty.
+ NO_SPEC = 1;
+
+ // The content is an A2A Agent Card following the A2A specification.
+ // The `interfaces` field must be empty.
+ A2A_AGENT_CARD = 2;
+ }
+
+ // Required. The type of the agent spec content.
+ Type type = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The content of the Agent spec in the JSON format.
+ // This payload is validated against the schema for the specified type.
+ // The content size is limited to `10KB`.
+ google.protobuf.Struct content = 2 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // The spec of the MCP Server.
+ message McpServerSpec {
+ // The type of the MCP Server spec.
+ enum Type {
+ // Unspecified type.
+ TYPE_UNSPECIFIED = 0;
+
+ // There is no spec for the MCP Server. The `content` field must be empty.
+ NO_SPEC = 1;
+
+ // The content is a MCP Tool Spec following the One MCP specification.
+ // The payload is the same as the `tools/list` response.
+ TOOL_SPEC = 2;
+ }
+
+ // Required. The type of the MCP Server spec content.
+ Type type = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The content of the MCP Server spec.
+ // This payload is validated against the schema for the specified type.
+ // The content size is limited to `10KB`.
+ google.protobuf.Struct content = 2 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // The spec of the endpoint.
+ message EndpointSpec {
+ // The type of the endpoint spec.
+ enum Type {
+ // Unspecified type.
+ TYPE_UNSPECIFIED = 0;
+
+ // There is no spec for the Endpoint. The `content` field must be empty.
+ NO_SPEC = 1;
+ }
+
+ // Required. The type of the endpoint spec content.
+ Type type = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // Optional. The content of the endpoint spec.
+ // Reserved for future use.
+ google.protobuf.Struct content = 2 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // The spec of the service. At least one of the specs must be set.
+ oneof spec {
+ // Optional. The spec of the Agent. When `agent_spec` is set, the type of
+ // the service is Agent.
+ AgentSpec agent_spec = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The spec of the MCP Server. When `mcp_server_spec` is set, the
+ // type of the service is MCP Server.
+ McpServerSpec mcp_server_spec = 6 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The spec of the Endpoint. When `endpoint_spec` is set, the type
+ // of the service is Endpoint.
+ EndpointSpec endpoint_spec = 7 [(google.api.field_behavior) = OPTIONAL];
+ }
+
+ // Identifier. The resource name of the Service.
+ // Format: `projects/{project}/locations/{location}/services/{service}`.
+ string name = 1 [(google.api.field_behavior) = IDENTIFIER];
+
+ // Optional. User-defined display name for the Service.
+ // Can have a maximum length of `63` characters.
+ string display_name = 2 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. User-defined description of an Service.
+ // Can have a maximum length of `2048` characters.
+ string description = 3 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The connection details for the Service.
+ repeated Interface interfaces = 4 [(google.api.field_behavior) = OPTIONAL];
+
+ // Output only. The resource name of the resulting Agent, MCP Server, or
+ // Endpoint. Format:
+ //
+ // * `projects/{project}/locations/{location}/mcpServers/{mcp_server}`
+ // * `projects/{project}/locations/{location}/agents/{agent}`
+ // * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+ string registry_resource = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Create time.
+ google.protobuf.Timestamp create_time = 8
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Update time.
+ google.protobuf.Timestamp update_time = 9
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
diff --git a/packages/google-cloud-agentregistry/protos/protos.d.ts b/packages/google-cloud-agentregistry/protos/protos.d.ts
new file mode 100644
index 00000000000..2f5a4526ecc
--- /dev/null
+++ b/packages/google-cloud-agentregistry/protos/protos.d.ts
@@ -0,0 +1,14481 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+import type {protobuf as $protobuf} from "google-gax";
+import Long = require("long");
+/** Namespace google. */
+export namespace google {
+
+ /** Namespace cloud. */
+ namespace cloud {
+
+ /** Namespace agentregistry. */
+ namespace agentregistry {
+
+ /** Namespace v1. */
+ namespace v1 {
+
+ /** Properties of an Agent. */
+ interface IAgent {
+
+ /** Agent name */
+ name?: (string|null);
+
+ /** Agent agentId */
+ agentId?: (string|null);
+
+ /** Agent location */
+ location?: (string|null);
+
+ /** Agent displayName */
+ displayName?: (string|null);
+
+ /** Agent description */
+ description?: (string|null);
+
+ /** Agent version */
+ version?: (string|null);
+
+ /** Agent protocols */
+ protocols?: (google.cloud.agentregistry.v1.Agent.IProtocol[]|null);
+
+ /** Agent skills */
+ skills?: (google.cloud.agentregistry.v1.Agent.ISkill[]|null);
+
+ /** Agent uid */
+ uid?: (string|null);
+
+ /** Agent createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Agent updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Agent attributes */
+ attributes?: ({ [k: string]: google.protobuf.IStruct }|null);
+
+ /** Agent card */
+ card?: (google.cloud.agentregistry.v1.Agent.ICard|null);
+ }
+
+ /** Represents an Agent. */
+ class Agent implements IAgent {
+
+ /**
+ * Constructs a new Agent.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.IAgent);
+
+ /** Agent name. */
+ public name: string;
+
+ /** Agent agentId. */
+ public agentId: string;
+
+ /** Agent location. */
+ public location: string;
+
+ /** Agent displayName. */
+ public displayName: string;
+
+ /** Agent description. */
+ public description: string;
+
+ /** Agent version. */
+ public version: string;
+
+ /** Agent protocols. */
+ public protocols: google.cloud.agentregistry.v1.Agent.IProtocol[];
+
+ /** Agent skills. */
+ public skills: google.cloud.agentregistry.v1.Agent.ISkill[];
+
+ /** Agent uid. */
+ public uid: string;
+
+ /** Agent createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Agent updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Agent attributes. */
+ public attributes: { [k: string]: google.protobuf.IStruct };
+
+ /** Agent card. */
+ public card?: (google.cloud.agentregistry.v1.Agent.ICard|null);
+
+ /**
+ * Creates a new Agent instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Agent instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.IAgent): google.cloud.agentregistry.v1.Agent;
+
+ /**
+ * Encodes the specified Agent message. Does not implicitly {@link google.cloud.agentregistry.v1.Agent.verify|verify} messages.
+ * @param message Agent message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.IAgent, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Agent message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.Agent.verify|verify} messages.
+ * @param message Agent message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.IAgent, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Agent message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Agent
+ * @throws {Error} If the payload is not 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.agentregistry.v1.Agent;
+
+ /**
+ * Decodes an Agent message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Agent
+ * @throws {Error} If the payload 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.agentregistry.v1.Agent;
+
+ /**
+ * Verifies an Agent message.
+ * @param message Plain 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 Agent message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Agent
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.Agent;
+
+ /**
+ * Creates a plain object from an Agent message. Also converts values to other types if specified.
+ * @param message Agent
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.Agent, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Agent to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Agent
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Agent {
+
+ /** Properties of a Protocol. */
+ interface IProtocol {
+
+ /** Protocol type */
+ type?: (google.cloud.agentregistry.v1.Agent.Protocol.Type|keyof typeof google.cloud.agentregistry.v1.Agent.Protocol.Type|null);
+
+ /** Protocol protocolVersion */
+ protocolVersion?: (string|null);
+
+ /** Protocol interfaces */
+ interfaces?: (google.cloud.agentregistry.v1.IInterface[]|null);
+ }
+
+ /** Represents a Protocol. */
+ class Protocol implements IProtocol {
+
+ /**
+ * Constructs a new Protocol.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.Agent.IProtocol);
+
+ /** Protocol type. */
+ public type: (google.cloud.agentregistry.v1.Agent.Protocol.Type|keyof typeof google.cloud.agentregistry.v1.Agent.Protocol.Type);
+
+ /** Protocol protocolVersion. */
+ public protocolVersion: string;
+
+ /** Protocol interfaces. */
+ public interfaces: google.cloud.agentregistry.v1.IInterface[];
+
+ /**
+ * Creates a new Protocol instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Protocol instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.Agent.IProtocol): google.cloud.agentregistry.v1.Agent.Protocol;
+
+ /**
+ * Encodes the specified Protocol message. Does not implicitly {@link google.cloud.agentregistry.v1.Agent.Protocol.verify|verify} messages.
+ * @param message Protocol message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.Agent.IProtocol, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Protocol message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.Agent.Protocol.verify|verify} messages.
+ * @param message Protocol message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.Agent.IProtocol, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Protocol message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Protocol
+ * @throws {Error} If the payload is not 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.agentregistry.v1.Agent.Protocol;
+
+ /**
+ * Decodes a Protocol message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Protocol
+ * @throws {Error} If the payload 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.agentregistry.v1.Agent.Protocol;
+
+ /**
+ * Verifies a Protocol message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Protocol message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Protocol
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.Agent.Protocol;
+
+ /**
+ * Creates a plain object from a Protocol message. Also converts values to other types if specified.
+ * @param message Protocol
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.Agent.Protocol, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Protocol to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Protocol
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Protocol {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_UNSPECIFIED = 0,
+ A2A_AGENT = 1,
+ CUSTOM = 2
+ }
+ }
+
+ /** Properties of a Skill. */
+ interface ISkill {
+
+ /** Skill id */
+ id?: (string|null);
+
+ /** Skill name */
+ name?: (string|null);
+
+ /** Skill description */
+ description?: (string|null);
+
+ /** Skill tags */
+ tags?: (string[]|null);
+
+ /** Skill examples */
+ examples?: (string[]|null);
+ }
+
+ /** Represents a Skill. */
+ class Skill implements ISkill {
+
+ /**
+ * Constructs a new Skill.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.Agent.ISkill);
+
+ /** Skill id. */
+ public id: string;
+
+ /** Skill name. */
+ public name: string;
+
+ /** Skill description. */
+ public description: string;
+
+ /** Skill tags. */
+ public tags: string[];
+
+ /** Skill examples. */
+ public examples: string[];
+
+ /**
+ * Creates a new Skill instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Skill instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.Agent.ISkill): google.cloud.agentregistry.v1.Agent.Skill;
+
+ /**
+ * Encodes the specified Skill message. Does not implicitly {@link google.cloud.agentregistry.v1.Agent.Skill.verify|verify} messages.
+ * @param message Skill message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.Agent.ISkill, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Skill message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.Agent.Skill.verify|verify} messages.
+ * @param message Skill message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.Agent.ISkill, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Skill message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Skill
+ * @throws {Error} If the payload is not 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.agentregistry.v1.Agent.Skill;
+
+ /**
+ * Decodes a Skill message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Skill
+ * @throws {Error} If the payload 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.agentregistry.v1.Agent.Skill;
+
+ /**
+ * Verifies a Skill message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Skill message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Skill
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.Agent.Skill;
+
+ /**
+ * Creates a plain object from a Skill message. Also converts values to other types if specified.
+ * @param message Skill
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.Agent.Skill, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Skill to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Skill
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Card. */
+ interface ICard {
+
+ /** Card type */
+ type?: (google.cloud.agentregistry.v1.Agent.Card.Type|keyof typeof google.cloud.agentregistry.v1.Agent.Card.Type|null);
+
+ /** Card content */
+ content?: (google.protobuf.IStruct|null);
+ }
+
+ /** Represents a Card. */
+ class Card implements ICard {
+
+ /**
+ * Constructs a new Card.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.Agent.ICard);
+
+ /** Card type. */
+ public type: (google.cloud.agentregistry.v1.Agent.Card.Type|keyof typeof google.cloud.agentregistry.v1.Agent.Card.Type);
+
+ /** Card content. */
+ public content?: (google.protobuf.IStruct|null);
+
+ /**
+ * Creates a new Card instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Card instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.Agent.ICard): google.cloud.agentregistry.v1.Agent.Card;
+
+ /**
+ * Encodes the specified Card message. Does not implicitly {@link google.cloud.agentregistry.v1.Agent.Card.verify|verify} messages.
+ * @param message Card message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.Agent.ICard, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Card message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.Agent.Card.verify|verify} messages.
+ * @param message Card message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.Agent.ICard, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Card message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Card
+ * @throws {Error} If the payload is not 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.agentregistry.v1.Agent.Card;
+
+ /**
+ * Decodes a Card message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Card
+ * @throws {Error} If the payload 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.agentregistry.v1.Agent.Card;
+
+ /**
+ * Verifies a Card message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Card message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Card
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.Agent.Card;
+
+ /**
+ * Creates a plain object from a Card message. Also converts values to other types if specified.
+ * @param message Card
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.Agent.Card, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Card to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Card
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Card {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_UNSPECIFIED = 0,
+ A2A_AGENT_CARD = 1
+ }
+ }
+ }
+
+ /** Properties of an Interface. */
+ interface IInterface {
+
+ /** Interface url */
+ url?: (string|null);
+
+ /** Interface protocolBinding */
+ protocolBinding?: (google.cloud.agentregistry.v1.Interface.ProtocolBinding|keyof typeof google.cloud.agentregistry.v1.Interface.ProtocolBinding|null);
+ }
+
+ /** Represents an Interface. */
+ class Interface implements IInterface {
+
+ /**
+ * Constructs a new Interface.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.IInterface);
+
+ /** Interface url. */
+ public url: string;
+
+ /** Interface protocolBinding. */
+ public protocolBinding: (google.cloud.agentregistry.v1.Interface.ProtocolBinding|keyof typeof google.cloud.agentregistry.v1.Interface.ProtocolBinding);
+
+ /**
+ * Creates a new Interface instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Interface instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.IInterface): google.cloud.agentregistry.v1.Interface;
+
+ /**
+ * Encodes the specified Interface message. Does not implicitly {@link google.cloud.agentregistry.v1.Interface.verify|verify} messages.
+ * @param message Interface message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.IInterface, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Interface message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.Interface.verify|verify} messages.
+ * @param message Interface message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.IInterface, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Interface message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Interface
+ * @throws {Error} If the payload is not 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.agentregistry.v1.Interface;
+
+ /**
+ * Decodes an Interface message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Interface
+ * @throws {Error} If the payload 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.agentregistry.v1.Interface;
+
+ /**
+ * Verifies an Interface message.
+ * @param message Plain 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 Interface message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Interface
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.Interface;
+
+ /**
+ * Creates a plain object from an Interface message. Also converts values to other types if specified.
+ * @param message Interface
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.Interface, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Interface to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Interface
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Interface {
+
+ /** ProtocolBinding enum. */
+ enum ProtocolBinding {
+ PROTOCOL_BINDING_UNSPECIFIED = 0,
+ JSONRPC = 1,
+ GRPC = 2,
+ HTTP_JSON = 3
+ }
+ }
+
+ /** Represents an AgentRegistry */
+ class AgentRegistry extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new AgentRegistry 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 AgentRegistry 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): AgentRegistry;
+
+ /**
+ * Calls ListAgents.
+ * @param request ListAgentsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListAgentsResponse
+ */
+ public listAgents(request: google.cloud.agentregistry.v1.IListAgentsRequest, callback: google.cloud.agentregistry.v1.AgentRegistry.ListAgentsCallback): void;
+
+ /**
+ * Calls ListAgents.
+ * @param request ListAgentsRequest message or plain object
+ * @returns Promise
+ */
+ public listAgents(request: google.cloud.agentregistry.v1.IListAgentsRequest): Promise;
+
+ /**
+ * Calls SearchAgents.
+ * @param request SearchAgentsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and SearchAgentsResponse
+ */
+ public searchAgents(request: google.cloud.agentregistry.v1.ISearchAgentsRequest, callback: google.cloud.agentregistry.v1.AgentRegistry.SearchAgentsCallback): void;
+
+ /**
+ * Calls SearchAgents.
+ * @param request SearchAgentsRequest message or plain object
+ * @returns Promise
+ */
+ public searchAgents(request: google.cloud.agentregistry.v1.ISearchAgentsRequest): Promise;
+
+ /**
+ * Calls GetAgent.
+ * @param request GetAgentRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Agent
+ */
+ public getAgent(request: google.cloud.agentregistry.v1.IGetAgentRequest, callback: google.cloud.agentregistry.v1.AgentRegistry.GetAgentCallback): void;
+
+ /**
+ * Calls GetAgent.
+ * @param request GetAgentRequest message or plain object
+ * @returns Promise
+ */
+ public getAgent(request: google.cloud.agentregistry.v1.IGetAgentRequest): Promise;
+
+ /**
+ * Calls ListEndpoints.
+ * @param request ListEndpointsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListEndpointsResponse
+ */
+ public listEndpoints(request: google.cloud.agentregistry.v1.IListEndpointsRequest, callback: google.cloud.agentregistry.v1.AgentRegistry.ListEndpointsCallback): void;
+
+ /**
+ * Calls ListEndpoints.
+ * @param request ListEndpointsRequest message or plain object
+ * @returns Promise
+ */
+ public listEndpoints(request: google.cloud.agentregistry.v1.IListEndpointsRequest): Promise;
+
+ /**
+ * Calls GetEndpoint.
+ * @param request GetEndpointRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Endpoint
+ */
+ public getEndpoint(request: google.cloud.agentregistry.v1.IGetEndpointRequest, callback: google.cloud.agentregistry.v1.AgentRegistry.GetEndpointCallback): void;
+
+ /**
+ * Calls GetEndpoint.
+ * @param request GetEndpointRequest message or plain object
+ * @returns Promise
+ */
+ public getEndpoint(request: google.cloud.agentregistry.v1.IGetEndpointRequest): Promise;
+
+ /**
+ * Calls ListMcpServers.
+ * @param request ListMcpServersRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListMcpServersResponse
+ */
+ public listMcpServers(request: google.cloud.agentregistry.v1.IListMcpServersRequest, callback: google.cloud.agentregistry.v1.AgentRegistry.ListMcpServersCallback): void;
+
+ /**
+ * Calls ListMcpServers.
+ * @param request ListMcpServersRequest message or plain object
+ * @returns Promise
+ */
+ public listMcpServers(request: google.cloud.agentregistry.v1.IListMcpServersRequest): Promise;
+
+ /**
+ * Calls SearchMcpServers.
+ * @param request SearchMcpServersRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and SearchMcpServersResponse
+ */
+ public searchMcpServers(request: google.cloud.agentregistry.v1.ISearchMcpServersRequest, callback: google.cloud.agentregistry.v1.AgentRegistry.SearchMcpServersCallback): void;
+
+ /**
+ * Calls SearchMcpServers.
+ * @param request SearchMcpServersRequest message or plain object
+ * @returns Promise
+ */
+ public searchMcpServers(request: google.cloud.agentregistry.v1.ISearchMcpServersRequest): Promise;
+
+ /**
+ * Calls GetMcpServer.
+ * @param request GetMcpServerRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and McpServer
+ */
+ public getMcpServer(request: google.cloud.agentregistry.v1.IGetMcpServerRequest, callback: google.cloud.agentregistry.v1.AgentRegistry.GetMcpServerCallback): void;
+
+ /**
+ * Calls GetMcpServer.
+ * @param request GetMcpServerRequest message or plain object
+ * @returns Promise
+ */
+ public getMcpServer(request: google.cloud.agentregistry.v1.IGetMcpServerRequest): Promise;
+
+ /**
+ * Calls ListServices.
+ * @param request ListServicesRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListServicesResponse
+ */
+ public listServices(request: google.cloud.agentregistry.v1.IListServicesRequest, callback: google.cloud.agentregistry.v1.AgentRegistry.ListServicesCallback): void;
+
+ /**
+ * Calls ListServices.
+ * @param request ListServicesRequest message or plain object
+ * @returns Promise
+ */
+ public listServices(request: google.cloud.agentregistry.v1.IListServicesRequest): Promise;
+
+ /**
+ * Calls GetService.
+ * @param request GetServiceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Service
+ */
+ public getService(request: google.cloud.agentregistry.v1.IGetServiceRequest, callback: google.cloud.agentregistry.v1.AgentRegistry.GetServiceCallback): void;
+
+ /**
+ * Calls GetService.
+ * @param request GetServiceRequest message or plain object
+ * @returns Promise
+ */
+ public getService(request: google.cloud.agentregistry.v1.IGetServiceRequest): Promise;
+
+ /**
+ * Calls CreateService.
+ * @param request CreateServiceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createService(request: google.cloud.agentregistry.v1.ICreateServiceRequest, callback: google.cloud.agentregistry.v1.AgentRegistry.CreateServiceCallback): void;
+
+ /**
+ * Calls CreateService.
+ * @param request CreateServiceRequest message or plain object
+ * @returns Promise
+ */
+ public createService(request: google.cloud.agentregistry.v1.ICreateServiceRequest): Promise;
+
+ /**
+ * Calls UpdateService.
+ * @param request UpdateServiceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateService(request: google.cloud.agentregistry.v1.IUpdateServiceRequest, callback: google.cloud.agentregistry.v1.AgentRegistry.UpdateServiceCallback): void;
+
+ /**
+ * Calls UpdateService.
+ * @param request UpdateServiceRequest message or plain object
+ * @returns Promise
+ */
+ public updateService(request: google.cloud.agentregistry.v1.IUpdateServiceRequest): Promise;
+
+ /**
+ * Calls DeleteService.
+ * @param request DeleteServiceRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteService(request: google.cloud.agentregistry.v1.IDeleteServiceRequest, callback: google.cloud.agentregistry.v1.AgentRegistry.DeleteServiceCallback): void;
+
+ /**
+ * Calls DeleteService.
+ * @param request DeleteServiceRequest message or plain object
+ * @returns Promise
+ */
+ public deleteService(request: google.cloud.agentregistry.v1.IDeleteServiceRequest): Promise;
+
+ /**
+ * Calls ListBindings.
+ * @param request ListBindingsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListBindingsResponse
+ */
+ public listBindings(request: google.cloud.agentregistry.v1.IListBindingsRequest, callback: google.cloud.agentregistry.v1.AgentRegistry.ListBindingsCallback): void;
+
+ /**
+ * Calls ListBindings.
+ * @param request ListBindingsRequest message or plain object
+ * @returns Promise
+ */
+ public listBindings(request: google.cloud.agentregistry.v1.IListBindingsRequest): Promise;
+
+ /**
+ * Calls GetBinding.
+ * @param request GetBindingRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Binding
+ */
+ public getBinding(request: google.cloud.agentregistry.v1.IGetBindingRequest, callback: google.cloud.agentregistry.v1.AgentRegistry.GetBindingCallback): void;
+
+ /**
+ * Calls GetBinding.
+ * @param request GetBindingRequest message or plain object
+ * @returns Promise
+ */
+ public getBinding(request: google.cloud.agentregistry.v1.IGetBindingRequest): Promise;
+
+ /**
+ * Calls CreateBinding.
+ * @param request CreateBindingRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public createBinding(request: google.cloud.agentregistry.v1.ICreateBindingRequest, callback: google.cloud.agentregistry.v1.AgentRegistry.CreateBindingCallback): void;
+
+ /**
+ * Calls CreateBinding.
+ * @param request CreateBindingRequest message or plain object
+ * @returns Promise
+ */
+ public createBinding(request: google.cloud.agentregistry.v1.ICreateBindingRequest): Promise;
+
+ /**
+ * Calls UpdateBinding.
+ * @param request UpdateBindingRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public updateBinding(request: google.cloud.agentregistry.v1.IUpdateBindingRequest, callback: google.cloud.agentregistry.v1.AgentRegistry.UpdateBindingCallback): void;
+
+ /**
+ * Calls UpdateBinding.
+ * @param request UpdateBindingRequest message or plain object
+ * @returns Promise
+ */
+ public updateBinding(request: google.cloud.agentregistry.v1.IUpdateBindingRequest): Promise;
+
+ /**
+ * Calls DeleteBinding.
+ * @param request DeleteBindingRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public deleteBinding(request: google.cloud.agentregistry.v1.IDeleteBindingRequest, callback: google.cloud.agentregistry.v1.AgentRegistry.DeleteBindingCallback): void;
+
+ /**
+ * Calls DeleteBinding.
+ * @param request DeleteBindingRequest message or plain object
+ * @returns Promise
+ */
+ public deleteBinding(request: google.cloud.agentregistry.v1.IDeleteBindingRequest): Promise;
+
+ /**
+ * Calls FetchAvailableBindings.
+ * @param request FetchAvailableBindingsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and FetchAvailableBindingsResponse
+ */
+ public fetchAvailableBindings(request: google.cloud.agentregistry.v1.IFetchAvailableBindingsRequest, callback: google.cloud.agentregistry.v1.AgentRegistry.FetchAvailableBindingsCallback): void;
+
+ /**
+ * Calls FetchAvailableBindings.
+ * @param request FetchAvailableBindingsRequest message or plain object
+ * @returns Promise
+ */
+ public fetchAvailableBindings(request: google.cloud.agentregistry.v1.IFetchAvailableBindingsRequest): Promise;
+ }
+
+ namespace AgentRegistry {
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|listAgents}.
+ * @param error Error, if any
+ * @param [response] ListAgentsResponse
+ */
+ type ListAgentsCallback = (error: (Error|null), response?: google.cloud.agentregistry.v1.ListAgentsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|searchAgents}.
+ * @param error Error, if any
+ * @param [response] SearchAgentsResponse
+ */
+ type SearchAgentsCallback = (error: (Error|null), response?: google.cloud.agentregistry.v1.SearchAgentsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|getAgent}.
+ * @param error Error, if any
+ * @param [response] Agent
+ */
+ type GetAgentCallback = (error: (Error|null), response?: google.cloud.agentregistry.v1.Agent) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|listEndpoints}.
+ * @param error Error, if any
+ * @param [response] ListEndpointsResponse
+ */
+ type ListEndpointsCallback = (error: (Error|null), response?: google.cloud.agentregistry.v1.ListEndpointsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|getEndpoint}.
+ * @param error Error, if any
+ * @param [response] Endpoint
+ */
+ type GetEndpointCallback = (error: (Error|null), response?: google.cloud.agentregistry.v1.Endpoint) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|listMcpServers}.
+ * @param error Error, if any
+ * @param [response] ListMcpServersResponse
+ */
+ type ListMcpServersCallback = (error: (Error|null), response?: google.cloud.agentregistry.v1.ListMcpServersResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|searchMcpServers}.
+ * @param error Error, if any
+ * @param [response] SearchMcpServersResponse
+ */
+ type SearchMcpServersCallback = (error: (Error|null), response?: google.cloud.agentregistry.v1.SearchMcpServersResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|getMcpServer}.
+ * @param error Error, if any
+ * @param [response] McpServer
+ */
+ type GetMcpServerCallback = (error: (Error|null), response?: google.cloud.agentregistry.v1.McpServer) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|listServices}.
+ * @param error Error, if any
+ * @param [response] ListServicesResponse
+ */
+ type ListServicesCallback = (error: (Error|null), response?: google.cloud.agentregistry.v1.ListServicesResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|getService}.
+ * @param error Error, if any
+ * @param [response] Service
+ */
+ type GetServiceCallback = (error: (Error|null), response?: google.cloud.agentregistry.v1.Service) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|createService}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateServiceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|updateService}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateServiceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|deleteService}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteServiceCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|listBindings}.
+ * @param error Error, if any
+ * @param [response] ListBindingsResponse
+ */
+ type ListBindingsCallback = (error: (Error|null), response?: google.cloud.agentregistry.v1.ListBindingsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|getBinding}.
+ * @param error Error, if any
+ * @param [response] Binding
+ */
+ type GetBindingCallback = (error: (Error|null), response?: google.cloud.agentregistry.v1.Binding) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|createBinding}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type CreateBindingCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|updateBinding}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type UpdateBindingCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|deleteBinding}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type DeleteBindingCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|fetchAvailableBindings}.
+ * @param error Error, if any
+ * @param [response] FetchAvailableBindingsResponse
+ */
+ type FetchAvailableBindingsCallback = (error: (Error|null), response?: google.cloud.agentregistry.v1.FetchAvailableBindingsResponse) => void;
+ }
+
+ /** Properties of a ListAgentsRequest. */
+ interface IListAgentsRequest {
+
+ /** ListAgentsRequest parent */
+ parent?: (string|null);
+
+ /** ListAgentsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListAgentsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListAgentsRequest filter */
+ filter?: (string|null);
+
+ /** ListAgentsRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListAgentsRequest. */
+ class ListAgentsRequest implements IListAgentsRequest {
+
+ /**
+ * Constructs a new ListAgentsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.IListAgentsRequest);
+
+ /** ListAgentsRequest parent. */
+ public parent: string;
+
+ /** ListAgentsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListAgentsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListAgentsRequest filter. */
+ public filter: string;
+
+ /** ListAgentsRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListAgentsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListAgentsRequest instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.IListAgentsRequest): google.cloud.agentregistry.v1.ListAgentsRequest;
+
+ /**
+ * Encodes the specified ListAgentsRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.ListAgentsRequest.verify|verify} messages.
+ * @param message ListAgentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.IListAgentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListAgentsRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.ListAgentsRequest.verify|verify} messages.
+ * @param message ListAgentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.IListAgentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListAgentsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListAgentsRequest
+ * @throws {Error} If the payload is not 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.agentregistry.v1.ListAgentsRequest;
+
+ /**
+ * Decodes a ListAgentsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListAgentsRequest
+ * @throws {Error} If the payload 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.agentregistry.v1.ListAgentsRequest;
+
+ /**
+ * Verifies a ListAgentsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListAgentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListAgentsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.ListAgentsRequest;
+
+ /**
+ * Creates a plain object from a ListAgentsRequest message. Also converts values to other types if specified.
+ * @param message ListAgentsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.ListAgentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListAgentsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListAgentsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListAgentsResponse. */
+ interface IListAgentsResponse {
+
+ /** ListAgentsResponse agents */
+ agents?: (google.cloud.agentregistry.v1.IAgent[]|null);
+
+ /** ListAgentsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListAgentsResponse. */
+ class ListAgentsResponse implements IListAgentsResponse {
+
+ /**
+ * Constructs a new ListAgentsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.IListAgentsResponse);
+
+ /** ListAgentsResponse agents. */
+ public agents: google.cloud.agentregistry.v1.IAgent[];
+
+ /** ListAgentsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListAgentsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListAgentsResponse instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.IListAgentsResponse): google.cloud.agentregistry.v1.ListAgentsResponse;
+
+ /**
+ * Encodes the specified ListAgentsResponse message. Does not implicitly {@link google.cloud.agentregistry.v1.ListAgentsResponse.verify|verify} messages.
+ * @param message ListAgentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.IListAgentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListAgentsResponse message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.ListAgentsResponse.verify|verify} messages.
+ * @param message ListAgentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.IListAgentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListAgentsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListAgentsResponse
+ * @throws {Error} If the payload is not 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.agentregistry.v1.ListAgentsResponse;
+
+ /**
+ * Decodes a ListAgentsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListAgentsResponse
+ * @throws {Error} If the payload 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.agentregistry.v1.ListAgentsResponse;
+
+ /**
+ * Verifies a ListAgentsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListAgentsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListAgentsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.ListAgentsResponse;
+
+ /**
+ * Creates a plain object from a ListAgentsResponse message. Also converts values to other types if specified.
+ * @param message ListAgentsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.ListAgentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListAgentsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListAgentsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SearchAgentsRequest. */
+ interface ISearchAgentsRequest {
+
+ /** SearchAgentsRequest parent */
+ parent?: (string|null);
+
+ /** SearchAgentsRequest searchString */
+ searchString?: (string|null);
+
+ /** SearchAgentsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** SearchAgentsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a SearchAgentsRequest. */
+ class SearchAgentsRequest implements ISearchAgentsRequest {
+
+ /**
+ * Constructs a new SearchAgentsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.ISearchAgentsRequest);
+
+ /** SearchAgentsRequest parent. */
+ public parent: string;
+
+ /** SearchAgentsRequest searchString. */
+ public searchString: string;
+
+ /** SearchAgentsRequest pageSize. */
+ public pageSize: number;
+
+ /** SearchAgentsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new SearchAgentsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SearchAgentsRequest instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.ISearchAgentsRequest): google.cloud.agentregistry.v1.SearchAgentsRequest;
+
+ /**
+ * Encodes the specified SearchAgentsRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.SearchAgentsRequest.verify|verify} messages.
+ * @param message SearchAgentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.ISearchAgentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SearchAgentsRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.SearchAgentsRequest.verify|verify} messages.
+ * @param message SearchAgentsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.ISearchAgentsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SearchAgentsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SearchAgentsRequest
+ * @throws {Error} If the payload is not 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.agentregistry.v1.SearchAgentsRequest;
+
+ /**
+ * Decodes a SearchAgentsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SearchAgentsRequest
+ * @throws {Error} If the payload 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.agentregistry.v1.SearchAgentsRequest;
+
+ /**
+ * Verifies a SearchAgentsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SearchAgentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SearchAgentsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.SearchAgentsRequest;
+
+ /**
+ * Creates a plain object from a SearchAgentsRequest message. Also converts values to other types if specified.
+ * @param message SearchAgentsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.SearchAgentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SearchAgentsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SearchAgentsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SearchAgentsResponse. */
+ interface ISearchAgentsResponse {
+
+ /** SearchAgentsResponse agents */
+ agents?: (google.cloud.agentregistry.v1.IAgent[]|null);
+
+ /** SearchAgentsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a SearchAgentsResponse. */
+ class SearchAgentsResponse implements ISearchAgentsResponse {
+
+ /**
+ * Constructs a new SearchAgentsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.ISearchAgentsResponse);
+
+ /** SearchAgentsResponse agents. */
+ public agents: google.cloud.agentregistry.v1.IAgent[];
+
+ /** SearchAgentsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new SearchAgentsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SearchAgentsResponse instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.ISearchAgentsResponse): google.cloud.agentregistry.v1.SearchAgentsResponse;
+
+ /**
+ * Encodes the specified SearchAgentsResponse message. Does not implicitly {@link google.cloud.agentregistry.v1.SearchAgentsResponse.verify|verify} messages.
+ * @param message SearchAgentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.ISearchAgentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SearchAgentsResponse message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.SearchAgentsResponse.verify|verify} messages.
+ * @param message SearchAgentsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.ISearchAgentsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SearchAgentsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SearchAgentsResponse
+ * @throws {Error} If the payload is not 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.agentregistry.v1.SearchAgentsResponse;
+
+ /**
+ * Decodes a SearchAgentsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SearchAgentsResponse
+ * @throws {Error} If the payload 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.agentregistry.v1.SearchAgentsResponse;
+
+ /**
+ * Verifies a SearchAgentsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SearchAgentsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SearchAgentsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.SearchAgentsResponse;
+
+ /**
+ * Creates a plain object from a SearchAgentsResponse message. Also converts values to other types if specified.
+ * @param message SearchAgentsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.SearchAgentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SearchAgentsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SearchAgentsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetAgentRequest. */
+ interface IGetAgentRequest {
+
+ /** GetAgentRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetAgentRequest. */
+ class GetAgentRequest implements IGetAgentRequest {
+
+ /**
+ * Constructs a new GetAgentRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.IGetAgentRequest);
+
+ /** GetAgentRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetAgentRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetAgentRequest instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.IGetAgentRequest): google.cloud.agentregistry.v1.GetAgentRequest;
+
+ /**
+ * Encodes the specified GetAgentRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.GetAgentRequest.verify|verify} messages.
+ * @param message GetAgentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.IGetAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetAgentRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.GetAgentRequest.verify|verify} messages.
+ * @param message GetAgentRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.IGetAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetAgentRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetAgentRequest
+ * @throws {Error} If the payload is not 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.agentregistry.v1.GetAgentRequest;
+
+ /**
+ * Decodes a GetAgentRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetAgentRequest
+ * @throws {Error} If the payload 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.agentregistry.v1.GetAgentRequest;
+
+ /**
+ * Verifies a GetAgentRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetAgentRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetAgentRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.GetAgentRequest;
+
+ /**
+ * Creates a plain object from a GetAgentRequest message. Also converts values to other types if specified.
+ * @param message GetAgentRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.GetAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetAgentRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetAgentRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListEndpointsRequest. */
+ interface IListEndpointsRequest {
+
+ /** ListEndpointsRequest parent */
+ parent?: (string|null);
+
+ /** ListEndpointsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListEndpointsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListEndpointsRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListEndpointsRequest. */
+ class ListEndpointsRequest implements IListEndpointsRequest {
+
+ /**
+ * Constructs a new ListEndpointsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.IListEndpointsRequest);
+
+ /** ListEndpointsRequest parent. */
+ public parent: string;
+
+ /** ListEndpointsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListEndpointsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListEndpointsRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListEndpointsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListEndpointsRequest instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.IListEndpointsRequest): google.cloud.agentregistry.v1.ListEndpointsRequest;
+
+ /**
+ * Encodes the specified ListEndpointsRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.ListEndpointsRequest.verify|verify} messages.
+ * @param message ListEndpointsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.IListEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.ListEndpointsRequest.verify|verify} messages.
+ * @param message ListEndpointsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.IListEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListEndpointsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListEndpointsRequest
+ * @throws {Error} If the payload is not 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.agentregistry.v1.ListEndpointsRequest;
+
+ /**
+ * Decodes a ListEndpointsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListEndpointsRequest
+ * @throws {Error} If the payload 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.agentregistry.v1.ListEndpointsRequest;
+
+ /**
+ * Verifies a ListEndpointsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListEndpointsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListEndpointsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.ListEndpointsRequest;
+
+ /**
+ * Creates a plain object from a ListEndpointsRequest message. Also converts values to other types if specified.
+ * @param message ListEndpointsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.ListEndpointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListEndpointsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListEndpointsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListEndpointsResponse. */
+ interface IListEndpointsResponse {
+
+ /** ListEndpointsResponse endpoints */
+ endpoints?: (google.cloud.agentregistry.v1.IEndpoint[]|null);
+
+ /** ListEndpointsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListEndpointsResponse. */
+ class ListEndpointsResponse implements IListEndpointsResponse {
+
+ /**
+ * Constructs a new ListEndpointsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.IListEndpointsResponse);
+
+ /** ListEndpointsResponse endpoints. */
+ public endpoints: google.cloud.agentregistry.v1.IEndpoint[];
+
+ /** ListEndpointsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListEndpointsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListEndpointsResponse instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.IListEndpointsResponse): google.cloud.agentregistry.v1.ListEndpointsResponse;
+
+ /**
+ * Encodes the specified ListEndpointsResponse message. Does not implicitly {@link google.cloud.agentregistry.v1.ListEndpointsResponse.verify|verify} messages.
+ * @param message ListEndpointsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.IListEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListEndpointsResponse message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.ListEndpointsResponse.verify|verify} messages.
+ * @param message ListEndpointsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.IListEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListEndpointsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListEndpointsResponse
+ * @throws {Error} If the payload is not 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.agentregistry.v1.ListEndpointsResponse;
+
+ /**
+ * Decodes a ListEndpointsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListEndpointsResponse
+ * @throws {Error} If the payload 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.agentregistry.v1.ListEndpointsResponse;
+
+ /**
+ * Verifies a ListEndpointsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListEndpointsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListEndpointsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.ListEndpointsResponse;
+
+ /**
+ * Creates a plain object from a ListEndpointsResponse message. Also converts values to other types if specified.
+ * @param message ListEndpointsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.ListEndpointsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListEndpointsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListEndpointsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetEndpointRequest. */
+ interface IGetEndpointRequest {
+
+ /** GetEndpointRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetEndpointRequest. */
+ class GetEndpointRequest implements IGetEndpointRequest {
+
+ /**
+ * Constructs a new GetEndpointRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.IGetEndpointRequest);
+
+ /** GetEndpointRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetEndpointRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetEndpointRequest instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.IGetEndpointRequest): google.cloud.agentregistry.v1.GetEndpointRequest;
+
+ /**
+ * Encodes the specified GetEndpointRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.GetEndpointRequest.verify|verify} messages.
+ * @param message GetEndpointRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.IGetEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.GetEndpointRequest.verify|verify} messages.
+ * @param message GetEndpointRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.IGetEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetEndpointRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetEndpointRequest
+ * @throws {Error} If the payload is not 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.agentregistry.v1.GetEndpointRequest;
+
+ /**
+ * Decodes a GetEndpointRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetEndpointRequest
+ * @throws {Error} If the payload 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.agentregistry.v1.GetEndpointRequest;
+
+ /**
+ * Verifies a GetEndpointRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetEndpointRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetEndpointRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.GetEndpointRequest;
+
+ /**
+ * Creates a plain object from a GetEndpointRequest message. Also converts values to other types if specified.
+ * @param message GetEndpointRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.GetEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetEndpointRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetEndpointRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListMcpServersRequest. */
+ interface IListMcpServersRequest {
+
+ /** ListMcpServersRequest parent */
+ parent?: (string|null);
+
+ /** ListMcpServersRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListMcpServersRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListMcpServersRequest filter */
+ filter?: (string|null);
+
+ /** ListMcpServersRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListMcpServersRequest. */
+ class ListMcpServersRequest implements IListMcpServersRequest {
+
+ /**
+ * Constructs a new ListMcpServersRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.IListMcpServersRequest);
+
+ /** ListMcpServersRequest parent. */
+ public parent: string;
+
+ /** ListMcpServersRequest pageSize. */
+ public pageSize: number;
+
+ /** ListMcpServersRequest pageToken. */
+ public pageToken: string;
+
+ /** ListMcpServersRequest filter. */
+ public filter: string;
+
+ /** ListMcpServersRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListMcpServersRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListMcpServersRequest instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.IListMcpServersRequest): google.cloud.agentregistry.v1.ListMcpServersRequest;
+
+ /**
+ * Encodes the specified ListMcpServersRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.ListMcpServersRequest.verify|verify} messages.
+ * @param message ListMcpServersRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.IListMcpServersRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListMcpServersRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.ListMcpServersRequest.verify|verify} messages.
+ * @param message ListMcpServersRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.IListMcpServersRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListMcpServersRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListMcpServersRequest
+ * @throws {Error} If the payload is not 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.agentregistry.v1.ListMcpServersRequest;
+
+ /**
+ * Decodes a ListMcpServersRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListMcpServersRequest
+ * @throws {Error} If the payload 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.agentregistry.v1.ListMcpServersRequest;
+
+ /**
+ * Verifies a ListMcpServersRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListMcpServersRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListMcpServersRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.ListMcpServersRequest;
+
+ /**
+ * Creates a plain object from a ListMcpServersRequest message. Also converts values to other types if specified.
+ * @param message ListMcpServersRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.ListMcpServersRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListMcpServersRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListMcpServersRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListMcpServersResponse. */
+ interface IListMcpServersResponse {
+
+ /** ListMcpServersResponse mcpServers */
+ mcpServers?: (google.cloud.agentregistry.v1.IMcpServer[]|null);
+
+ /** ListMcpServersResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListMcpServersResponse. */
+ class ListMcpServersResponse implements IListMcpServersResponse {
+
+ /**
+ * Constructs a new ListMcpServersResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.IListMcpServersResponse);
+
+ /** ListMcpServersResponse mcpServers. */
+ public mcpServers: google.cloud.agentregistry.v1.IMcpServer[];
+
+ /** ListMcpServersResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListMcpServersResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListMcpServersResponse instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.IListMcpServersResponse): google.cloud.agentregistry.v1.ListMcpServersResponse;
+
+ /**
+ * Encodes the specified ListMcpServersResponse message. Does not implicitly {@link google.cloud.agentregistry.v1.ListMcpServersResponse.verify|verify} messages.
+ * @param message ListMcpServersResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.IListMcpServersResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListMcpServersResponse message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.ListMcpServersResponse.verify|verify} messages.
+ * @param message ListMcpServersResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.IListMcpServersResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListMcpServersResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListMcpServersResponse
+ * @throws {Error} If the payload is not 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.agentregistry.v1.ListMcpServersResponse;
+
+ /**
+ * Decodes a ListMcpServersResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListMcpServersResponse
+ * @throws {Error} If the payload 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.agentregistry.v1.ListMcpServersResponse;
+
+ /**
+ * Verifies a ListMcpServersResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListMcpServersResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListMcpServersResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.ListMcpServersResponse;
+
+ /**
+ * Creates a plain object from a ListMcpServersResponse message. Also converts values to other types if specified.
+ * @param message ListMcpServersResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.ListMcpServersResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListMcpServersResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListMcpServersResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SearchMcpServersRequest. */
+ interface ISearchMcpServersRequest {
+
+ /** SearchMcpServersRequest parent */
+ parent?: (string|null);
+
+ /** SearchMcpServersRequest searchString */
+ searchString?: (string|null);
+
+ /** SearchMcpServersRequest pageSize */
+ pageSize?: (number|null);
+
+ /** SearchMcpServersRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a SearchMcpServersRequest. */
+ class SearchMcpServersRequest implements ISearchMcpServersRequest {
+
+ /**
+ * Constructs a new SearchMcpServersRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.ISearchMcpServersRequest);
+
+ /** SearchMcpServersRequest parent. */
+ public parent: string;
+
+ /** SearchMcpServersRequest searchString. */
+ public searchString: string;
+
+ /** SearchMcpServersRequest pageSize. */
+ public pageSize: number;
+
+ /** SearchMcpServersRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new SearchMcpServersRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SearchMcpServersRequest instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.ISearchMcpServersRequest): google.cloud.agentregistry.v1.SearchMcpServersRequest;
+
+ /**
+ * Encodes the specified SearchMcpServersRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.SearchMcpServersRequest.verify|verify} messages.
+ * @param message SearchMcpServersRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.ISearchMcpServersRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SearchMcpServersRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.SearchMcpServersRequest.verify|verify} messages.
+ * @param message SearchMcpServersRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.ISearchMcpServersRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SearchMcpServersRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SearchMcpServersRequest
+ * @throws {Error} If the payload is not 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.agentregistry.v1.SearchMcpServersRequest;
+
+ /**
+ * Decodes a SearchMcpServersRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SearchMcpServersRequest
+ * @throws {Error} If the payload 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.agentregistry.v1.SearchMcpServersRequest;
+
+ /**
+ * Verifies a SearchMcpServersRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SearchMcpServersRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SearchMcpServersRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.SearchMcpServersRequest;
+
+ /**
+ * Creates a plain object from a SearchMcpServersRequest message. Also converts values to other types if specified.
+ * @param message SearchMcpServersRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.SearchMcpServersRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SearchMcpServersRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SearchMcpServersRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a SearchMcpServersResponse. */
+ interface ISearchMcpServersResponse {
+
+ /** SearchMcpServersResponse mcpServers */
+ mcpServers?: (google.cloud.agentregistry.v1.IMcpServer[]|null);
+
+ /** SearchMcpServersResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a SearchMcpServersResponse. */
+ class SearchMcpServersResponse implements ISearchMcpServersResponse {
+
+ /**
+ * Constructs a new SearchMcpServersResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.ISearchMcpServersResponse);
+
+ /** SearchMcpServersResponse mcpServers. */
+ public mcpServers: google.cloud.agentregistry.v1.IMcpServer[];
+
+ /** SearchMcpServersResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new SearchMcpServersResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SearchMcpServersResponse instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.ISearchMcpServersResponse): google.cloud.agentregistry.v1.SearchMcpServersResponse;
+
+ /**
+ * Encodes the specified SearchMcpServersResponse message. Does not implicitly {@link google.cloud.agentregistry.v1.SearchMcpServersResponse.verify|verify} messages.
+ * @param message SearchMcpServersResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.ISearchMcpServersResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SearchMcpServersResponse message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.SearchMcpServersResponse.verify|verify} messages.
+ * @param message SearchMcpServersResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.ISearchMcpServersResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SearchMcpServersResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SearchMcpServersResponse
+ * @throws {Error} If the payload is not 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.agentregistry.v1.SearchMcpServersResponse;
+
+ /**
+ * Decodes a SearchMcpServersResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SearchMcpServersResponse
+ * @throws {Error} If the payload 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.agentregistry.v1.SearchMcpServersResponse;
+
+ /**
+ * Verifies a SearchMcpServersResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SearchMcpServersResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SearchMcpServersResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.SearchMcpServersResponse;
+
+ /**
+ * Creates a plain object from a SearchMcpServersResponse message. Also converts values to other types if specified.
+ * @param message SearchMcpServersResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.SearchMcpServersResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SearchMcpServersResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SearchMcpServersResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetMcpServerRequest. */
+ interface IGetMcpServerRequest {
+
+ /** GetMcpServerRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetMcpServerRequest. */
+ class GetMcpServerRequest implements IGetMcpServerRequest {
+
+ /**
+ * Constructs a new GetMcpServerRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.IGetMcpServerRequest);
+
+ /** GetMcpServerRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetMcpServerRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetMcpServerRequest instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.IGetMcpServerRequest): google.cloud.agentregistry.v1.GetMcpServerRequest;
+
+ /**
+ * Encodes the specified GetMcpServerRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.GetMcpServerRequest.verify|verify} messages.
+ * @param message GetMcpServerRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.IGetMcpServerRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetMcpServerRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.GetMcpServerRequest.verify|verify} messages.
+ * @param message GetMcpServerRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.IGetMcpServerRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetMcpServerRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetMcpServerRequest
+ * @throws {Error} If the payload is not 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.agentregistry.v1.GetMcpServerRequest;
+
+ /**
+ * Decodes a GetMcpServerRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetMcpServerRequest
+ * @throws {Error} If the payload 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.agentregistry.v1.GetMcpServerRequest;
+
+ /**
+ * Verifies a GetMcpServerRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetMcpServerRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetMcpServerRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.GetMcpServerRequest;
+
+ /**
+ * Creates a plain object from a GetMcpServerRequest message. Also converts values to other types if specified.
+ * @param message GetMcpServerRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.GetMcpServerRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetMcpServerRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetMcpServerRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListServicesRequest. */
+ interface IListServicesRequest {
+
+ /** ListServicesRequest parent */
+ parent?: (string|null);
+
+ /** ListServicesRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListServicesRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListServicesRequest filter */
+ filter?: (string|null);
+ }
+
+ /** Represents a ListServicesRequest. */
+ class ListServicesRequest implements IListServicesRequest {
+
+ /**
+ * Constructs a new ListServicesRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.IListServicesRequest);
+
+ /** ListServicesRequest parent. */
+ public parent: string;
+
+ /** ListServicesRequest pageSize. */
+ public pageSize: number;
+
+ /** ListServicesRequest pageToken. */
+ public pageToken: string;
+
+ /** ListServicesRequest filter. */
+ public filter: string;
+
+ /**
+ * Creates a new ListServicesRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListServicesRequest instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.IListServicesRequest): google.cloud.agentregistry.v1.ListServicesRequest;
+
+ /**
+ * Encodes the specified ListServicesRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.ListServicesRequest.verify|verify} messages.
+ * @param message ListServicesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.IListServicesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListServicesRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.ListServicesRequest.verify|verify} messages.
+ * @param message ListServicesRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.IListServicesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListServicesRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListServicesRequest
+ * @throws {Error} If the payload is not 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.agentregistry.v1.ListServicesRequest;
+
+ /**
+ * Decodes a ListServicesRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListServicesRequest
+ * @throws {Error} If the payload 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.agentregistry.v1.ListServicesRequest;
+
+ /**
+ * Verifies a ListServicesRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListServicesRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListServicesRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.ListServicesRequest;
+
+ /**
+ * Creates a plain object from a ListServicesRequest message. Also converts values to other types if specified.
+ * @param message ListServicesRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.ListServicesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListServicesRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListServicesRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListServicesResponse. */
+ interface IListServicesResponse {
+
+ /** ListServicesResponse services */
+ services?: (google.cloud.agentregistry.v1.IService[]|null);
+
+ /** ListServicesResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListServicesResponse. */
+ class ListServicesResponse implements IListServicesResponse {
+
+ /**
+ * Constructs a new ListServicesResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.IListServicesResponse);
+
+ /** ListServicesResponse services. */
+ public services: google.cloud.agentregistry.v1.IService[];
+
+ /** ListServicesResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListServicesResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListServicesResponse instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.IListServicesResponse): google.cloud.agentregistry.v1.ListServicesResponse;
+
+ /**
+ * Encodes the specified ListServicesResponse message. Does not implicitly {@link google.cloud.agentregistry.v1.ListServicesResponse.verify|verify} messages.
+ * @param message ListServicesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.IListServicesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListServicesResponse message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.ListServicesResponse.verify|verify} messages.
+ * @param message ListServicesResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.IListServicesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListServicesResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListServicesResponse
+ * @throws {Error} If the payload is not 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.agentregistry.v1.ListServicesResponse;
+
+ /**
+ * Decodes a ListServicesResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListServicesResponse
+ * @throws {Error} If the payload 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.agentregistry.v1.ListServicesResponse;
+
+ /**
+ * Verifies a ListServicesResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListServicesResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListServicesResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.ListServicesResponse;
+
+ /**
+ * Creates a plain object from a ListServicesResponse message. Also converts values to other types if specified.
+ * @param message ListServicesResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.ListServicesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListServicesResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListServicesResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetServiceRequest. */
+ interface IGetServiceRequest {
+
+ /** GetServiceRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetServiceRequest. */
+ class GetServiceRequest implements IGetServiceRequest {
+
+ /**
+ * Constructs a new GetServiceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.IGetServiceRequest);
+
+ /** GetServiceRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetServiceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetServiceRequest instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.IGetServiceRequest): google.cloud.agentregistry.v1.GetServiceRequest;
+
+ /**
+ * Encodes the specified GetServiceRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.GetServiceRequest.verify|verify} messages.
+ * @param message GetServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.IGetServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetServiceRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.GetServiceRequest.verify|verify} messages.
+ * @param message GetServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.IGetServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetServiceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetServiceRequest
+ * @throws {Error} If the payload is not 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.agentregistry.v1.GetServiceRequest;
+
+ /**
+ * Decodes a GetServiceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetServiceRequest
+ * @throws {Error} If the payload 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.agentregistry.v1.GetServiceRequest;
+
+ /**
+ * Verifies a GetServiceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetServiceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.GetServiceRequest;
+
+ /**
+ * Creates a plain object from a GetServiceRequest message. Also converts values to other types if specified.
+ * @param message GetServiceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.GetServiceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetServiceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetServiceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateServiceRequest. */
+ interface ICreateServiceRequest {
+
+ /** CreateServiceRequest parent */
+ parent?: (string|null);
+
+ /** CreateServiceRequest serviceId */
+ serviceId?: (string|null);
+
+ /** CreateServiceRequest service */
+ service?: (google.cloud.agentregistry.v1.IService|null);
+
+ /** CreateServiceRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a CreateServiceRequest. */
+ class CreateServiceRequest implements ICreateServiceRequest {
+
+ /**
+ * Constructs a new CreateServiceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.ICreateServiceRequest);
+
+ /** CreateServiceRequest parent. */
+ public parent: string;
+
+ /** CreateServiceRequest serviceId. */
+ public serviceId: string;
+
+ /** CreateServiceRequest service. */
+ public service?: (google.cloud.agentregistry.v1.IService|null);
+
+ /** CreateServiceRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new CreateServiceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateServiceRequest instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.ICreateServiceRequest): google.cloud.agentregistry.v1.CreateServiceRequest;
+
+ /**
+ * Encodes the specified CreateServiceRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.CreateServiceRequest.verify|verify} messages.
+ * @param message CreateServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.ICreateServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateServiceRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.CreateServiceRequest.verify|verify} messages.
+ * @param message CreateServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.ICreateServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateServiceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateServiceRequest
+ * @throws {Error} If the payload is not 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.agentregistry.v1.CreateServiceRequest;
+
+ /**
+ * Decodes a CreateServiceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateServiceRequest
+ * @throws {Error} If the payload 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.agentregistry.v1.CreateServiceRequest;
+
+ /**
+ * Verifies a CreateServiceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateServiceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.CreateServiceRequest;
+
+ /**
+ * Creates a plain object from a CreateServiceRequest message. Also converts values to other types if specified.
+ * @param message CreateServiceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.CreateServiceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateServiceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateServiceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FetchAvailableBindingsRequest. */
+ interface IFetchAvailableBindingsRequest {
+
+ /** FetchAvailableBindingsRequest sourceIdentifier */
+ sourceIdentifier?: (string|null);
+
+ /** FetchAvailableBindingsRequest targetIdentifier */
+ targetIdentifier?: (string|null);
+
+ /** FetchAvailableBindingsRequest parent */
+ parent?: (string|null);
+
+ /** FetchAvailableBindingsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** FetchAvailableBindingsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a FetchAvailableBindingsRequest. */
+ class FetchAvailableBindingsRequest implements IFetchAvailableBindingsRequest {
+
+ /**
+ * Constructs a new FetchAvailableBindingsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.IFetchAvailableBindingsRequest);
+
+ /** FetchAvailableBindingsRequest sourceIdentifier. */
+ public sourceIdentifier?: (string|null);
+
+ /** FetchAvailableBindingsRequest targetIdentifier. */
+ public targetIdentifier?: (string|null);
+
+ /** FetchAvailableBindingsRequest parent. */
+ public parent: string;
+
+ /** FetchAvailableBindingsRequest pageSize. */
+ public pageSize: number;
+
+ /** FetchAvailableBindingsRequest pageToken. */
+ public pageToken: string;
+
+ /** FetchAvailableBindingsRequest source. */
+ public source?: "sourceIdentifier";
+
+ /** FetchAvailableBindingsRequest target. */
+ public target?: "targetIdentifier";
+
+ /**
+ * Creates a new FetchAvailableBindingsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FetchAvailableBindingsRequest instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.IFetchAvailableBindingsRequest): google.cloud.agentregistry.v1.FetchAvailableBindingsRequest;
+
+ /**
+ * Encodes the specified FetchAvailableBindingsRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.FetchAvailableBindingsRequest.verify|verify} messages.
+ * @param message FetchAvailableBindingsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.IFetchAvailableBindingsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FetchAvailableBindingsRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.FetchAvailableBindingsRequest.verify|verify} messages.
+ * @param message FetchAvailableBindingsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.IFetchAvailableBindingsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FetchAvailableBindingsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FetchAvailableBindingsRequest
+ * @throws {Error} If the payload is not 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.agentregistry.v1.FetchAvailableBindingsRequest;
+
+ /**
+ * Decodes a FetchAvailableBindingsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FetchAvailableBindingsRequest
+ * @throws {Error} If the payload 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.agentregistry.v1.FetchAvailableBindingsRequest;
+
+ /**
+ * Verifies a FetchAvailableBindingsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FetchAvailableBindingsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FetchAvailableBindingsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.FetchAvailableBindingsRequest;
+
+ /**
+ * Creates a plain object from a FetchAvailableBindingsRequest message. Also converts values to other types if specified.
+ * @param message FetchAvailableBindingsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.FetchAvailableBindingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FetchAvailableBindingsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FetchAvailableBindingsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FetchAvailableBindingsResponse. */
+ interface IFetchAvailableBindingsResponse {
+
+ /** FetchAvailableBindingsResponse bindings */
+ bindings?: (google.cloud.agentregistry.v1.IBinding[]|null);
+
+ /** FetchAvailableBindingsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a FetchAvailableBindingsResponse. */
+ class FetchAvailableBindingsResponse implements IFetchAvailableBindingsResponse {
+
+ /**
+ * Constructs a new FetchAvailableBindingsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.IFetchAvailableBindingsResponse);
+
+ /** FetchAvailableBindingsResponse bindings. */
+ public bindings: google.cloud.agentregistry.v1.IBinding[];
+
+ /** FetchAvailableBindingsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new FetchAvailableBindingsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FetchAvailableBindingsResponse instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.IFetchAvailableBindingsResponse): google.cloud.agentregistry.v1.FetchAvailableBindingsResponse;
+
+ /**
+ * Encodes the specified FetchAvailableBindingsResponse message. Does not implicitly {@link google.cloud.agentregistry.v1.FetchAvailableBindingsResponse.verify|verify} messages.
+ * @param message FetchAvailableBindingsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.IFetchAvailableBindingsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FetchAvailableBindingsResponse message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.FetchAvailableBindingsResponse.verify|verify} messages.
+ * @param message FetchAvailableBindingsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.IFetchAvailableBindingsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FetchAvailableBindingsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FetchAvailableBindingsResponse
+ * @throws {Error} If the payload is not 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.agentregistry.v1.FetchAvailableBindingsResponse;
+
+ /**
+ * Decodes a FetchAvailableBindingsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FetchAvailableBindingsResponse
+ * @throws {Error} If the payload 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.agentregistry.v1.FetchAvailableBindingsResponse;
+
+ /**
+ * Verifies a FetchAvailableBindingsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FetchAvailableBindingsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FetchAvailableBindingsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.FetchAvailableBindingsResponse;
+
+ /**
+ * Creates a plain object from a FetchAvailableBindingsResponse message. Also converts values to other types if specified.
+ * @param message FetchAvailableBindingsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.FetchAvailableBindingsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FetchAvailableBindingsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FetchAvailableBindingsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateServiceRequest. */
+ interface IUpdateServiceRequest {
+
+ /** UpdateServiceRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateServiceRequest service */
+ service?: (google.cloud.agentregistry.v1.IService|null);
+
+ /** UpdateServiceRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents an UpdateServiceRequest. */
+ class UpdateServiceRequest implements IUpdateServiceRequest {
+
+ /**
+ * Constructs a new UpdateServiceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.IUpdateServiceRequest);
+
+ /** UpdateServiceRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateServiceRequest service. */
+ public service?: (google.cloud.agentregistry.v1.IService|null);
+
+ /** UpdateServiceRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new UpdateServiceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateServiceRequest instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.IUpdateServiceRequest): google.cloud.agentregistry.v1.UpdateServiceRequest;
+
+ /**
+ * Encodes the specified UpdateServiceRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.UpdateServiceRequest.verify|verify} messages.
+ * @param message UpdateServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.IUpdateServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateServiceRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.UpdateServiceRequest.verify|verify} messages.
+ * @param message UpdateServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.IUpdateServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateServiceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateServiceRequest
+ * @throws {Error} If the payload is not 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.agentregistry.v1.UpdateServiceRequest;
+
+ /**
+ * Decodes an UpdateServiceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateServiceRequest
+ * @throws {Error} If the payload 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.agentregistry.v1.UpdateServiceRequest;
+
+ /**
+ * Verifies an UpdateServiceRequest message.
+ * @param message Plain 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 UpdateServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateServiceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.UpdateServiceRequest;
+
+ /**
+ * Creates a plain object from an UpdateServiceRequest message. Also converts values to other types if specified.
+ * @param message UpdateServiceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.UpdateServiceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateServiceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateServiceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteServiceRequest. */
+ interface IDeleteServiceRequest {
+
+ /** DeleteServiceRequest name */
+ name?: (string|null);
+
+ /** DeleteServiceRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a DeleteServiceRequest. */
+ class DeleteServiceRequest implements IDeleteServiceRequest {
+
+ /**
+ * Constructs a new DeleteServiceRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.IDeleteServiceRequest);
+
+ /** DeleteServiceRequest name. */
+ public name: string;
+
+ /** DeleteServiceRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new DeleteServiceRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteServiceRequest instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.IDeleteServiceRequest): google.cloud.agentregistry.v1.DeleteServiceRequest;
+
+ /**
+ * Encodes the specified DeleteServiceRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.DeleteServiceRequest.verify|verify} messages.
+ * @param message DeleteServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.IDeleteServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteServiceRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.DeleteServiceRequest.verify|verify} messages.
+ * @param message DeleteServiceRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.IDeleteServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteServiceRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteServiceRequest
+ * @throws {Error} If the payload is not 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.agentregistry.v1.DeleteServiceRequest;
+
+ /**
+ * Decodes a DeleteServiceRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteServiceRequest
+ * @throws {Error} If the payload 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.agentregistry.v1.DeleteServiceRequest;
+
+ /**
+ * Verifies a DeleteServiceRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteServiceRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.DeleteServiceRequest;
+
+ /**
+ * Creates a plain object from a DeleteServiceRequest message. Also converts values to other types if specified.
+ * @param message DeleteServiceRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.DeleteServiceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteServiceRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteServiceRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OperationMetadata. */
+ interface IOperationMetadata {
+
+ /** OperationMetadata createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata endTime */
+ endTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata target */
+ target?: (string|null);
+
+ /** OperationMetadata verb */
+ verb?: (string|null);
+
+ /** OperationMetadata statusMessage */
+ statusMessage?: (string|null);
+
+ /** OperationMetadata requestedCancellation */
+ requestedCancellation?: (boolean|null);
+
+ /** OperationMetadata apiVersion */
+ apiVersion?: (string|null);
+ }
+
+ /** Represents an OperationMetadata. */
+ class OperationMetadata implements IOperationMetadata {
+
+ /**
+ * Constructs a new OperationMetadata.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.IOperationMetadata);
+
+ /** OperationMetadata createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata endTime. */
+ public endTime?: (google.protobuf.ITimestamp|null);
+
+ /** OperationMetadata target. */
+ public target: string;
+
+ /** OperationMetadata verb. */
+ public verb: string;
+
+ /** OperationMetadata statusMessage. */
+ public statusMessage: string;
+
+ /** OperationMetadata requestedCancellation. */
+ public requestedCancellation: boolean;
+
+ /** OperationMetadata apiVersion. */
+ public apiVersion: string;
+
+ /**
+ * Creates a new OperationMetadata instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OperationMetadata instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.IOperationMetadata): google.cloud.agentregistry.v1.OperationMetadata;
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.agentregistry.v1.OperationMetadata.verify|verify} messages.
+ * @param message OperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.OperationMetadata.verify|verify} messages.
+ * @param message OperationMetadata message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.IOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OperationMetadata
+ * @throws {Error} If the payload is not 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.agentregistry.v1.OperationMetadata;
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OperationMetadata
+ * @throws {Error} If the payload 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.agentregistry.v1.OperationMetadata;
+
+ /**
+ * Verifies an OperationMetadata message.
+ * @param message Plain 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 OperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OperationMetadata
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.OperationMetadata;
+
+ /**
+ * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified.
+ * @param message OperationMetadata
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.OperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OperationMetadata to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OperationMetadata
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListBindingsRequest. */
+ interface IListBindingsRequest {
+
+ /** ListBindingsRequest parent */
+ parent?: (string|null);
+
+ /** ListBindingsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListBindingsRequest pageToken */
+ pageToken?: (string|null);
+
+ /** ListBindingsRequest filter */
+ filter?: (string|null);
+
+ /** ListBindingsRequest orderBy */
+ orderBy?: (string|null);
+ }
+
+ /** Represents a ListBindingsRequest. */
+ class ListBindingsRequest implements IListBindingsRequest {
+
+ /**
+ * Constructs a new ListBindingsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.IListBindingsRequest);
+
+ /** ListBindingsRequest parent. */
+ public parent: string;
+
+ /** ListBindingsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListBindingsRequest pageToken. */
+ public pageToken: string;
+
+ /** ListBindingsRequest filter. */
+ public filter: string;
+
+ /** ListBindingsRequest orderBy. */
+ public orderBy: string;
+
+ /**
+ * Creates a new ListBindingsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListBindingsRequest instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.IListBindingsRequest): google.cloud.agentregistry.v1.ListBindingsRequest;
+
+ /**
+ * Encodes the specified ListBindingsRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.ListBindingsRequest.verify|verify} messages.
+ * @param message ListBindingsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.IListBindingsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListBindingsRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.ListBindingsRequest.verify|verify} messages.
+ * @param message ListBindingsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.IListBindingsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListBindingsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListBindingsRequest
+ * @throws {Error} If the payload is not 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.agentregistry.v1.ListBindingsRequest;
+
+ /**
+ * Decodes a ListBindingsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListBindingsRequest
+ * @throws {Error} If the payload 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.agentregistry.v1.ListBindingsRequest;
+
+ /**
+ * Verifies a ListBindingsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListBindingsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListBindingsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.ListBindingsRequest;
+
+ /**
+ * Creates a plain object from a ListBindingsRequest message. Also converts values to other types if specified.
+ * @param message ListBindingsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.ListBindingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListBindingsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListBindingsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListBindingsResponse. */
+ interface IListBindingsResponse {
+
+ /** ListBindingsResponse bindings */
+ bindings?: (google.cloud.agentregistry.v1.IBinding[]|null);
+
+ /** ListBindingsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListBindingsResponse. */
+ class ListBindingsResponse implements IListBindingsResponse {
+
+ /**
+ * Constructs a new ListBindingsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.IListBindingsResponse);
+
+ /** ListBindingsResponse bindings. */
+ public bindings: google.cloud.agentregistry.v1.IBinding[];
+
+ /** ListBindingsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListBindingsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListBindingsResponse instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.IListBindingsResponse): google.cloud.agentregistry.v1.ListBindingsResponse;
+
+ /**
+ * Encodes the specified ListBindingsResponse message. Does not implicitly {@link google.cloud.agentregistry.v1.ListBindingsResponse.verify|verify} messages.
+ * @param message ListBindingsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.IListBindingsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListBindingsResponse message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.ListBindingsResponse.verify|verify} messages.
+ * @param message ListBindingsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.IListBindingsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListBindingsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListBindingsResponse
+ * @throws {Error} If the payload is not 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.agentregistry.v1.ListBindingsResponse;
+
+ /**
+ * Decodes a ListBindingsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListBindingsResponse
+ * @throws {Error} If the payload 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.agentregistry.v1.ListBindingsResponse;
+
+ /**
+ * Verifies a ListBindingsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListBindingsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListBindingsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.ListBindingsResponse;
+
+ /**
+ * Creates a plain object from a ListBindingsResponse message. Also converts values to other types if specified.
+ * @param message ListBindingsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.ListBindingsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListBindingsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListBindingsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetBindingRequest. */
+ interface IGetBindingRequest {
+
+ /** GetBindingRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetBindingRequest. */
+ class GetBindingRequest implements IGetBindingRequest {
+
+ /**
+ * Constructs a new GetBindingRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.IGetBindingRequest);
+
+ /** GetBindingRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetBindingRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetBindingRequest instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.IGetBindingRequest): google.cloud.agentregistry.v1.GetBindingRequest;
+
+ /**
+ * Encodes the specified GetBindingRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.GetBindingRequest.verify|verify} messages.
+ * @param message GetBindingRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.IGetBindingRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetBindingRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.GetBindingRequest.verify|verify} messages.
+ * @param message GetBindingRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.IGetBindingRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetBindingRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetBindingRequest
+ * @throws {Error} If the payload is not 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.agentregistry.v1.GetBindingRequest;
+
+ /**
+ * Decodes a GetBindingRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetBindingRequest
+ * @throws {Error} If the payload 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.agentregistry.v1.GetBindingRequest;
+
+ /**
+ * Verifies a GetBindingRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetBindingRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetBindingRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.GetBindingRequest;
+
+ /**
+ * Creates a plain object from a GetBindingRequest message. Also converts values to other types if specified.
+ * @param message GetBindingRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.GetBindingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetBindingRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetBindingRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CreateBindingRequest. */
+ interface ICreateBindingRequest {
+
+ /** CreateBindingRequest parent */
+ parent?: (string|null);
+
+ /** CreateBindingRequest bindingId */
+ bindingId?: (string|null);
+
+ /** CreateBindingRequest binding */
+ binding?: (google.cloud.agentregistry.v1.IBinding|null);
+
+ /** CreateBindingRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a CreateBindingRequest. */
+ class CreateBindingRequest implements ICreateBindingRequest {
+
+ /**
+ * Constructs a new CreateBindingRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.ICreateBindingRequest);
+
+ /** CreateBindingRequest parent. */
+ public parent: string;
+
+ /** CreateBindingRequest bindingId. */
+ public bindingId: string;
+
+ /** CreateBindingRequest binding. */
+ public binding?: (google.cloud.agentregistry.v1.IBinding|null);
+
+ /** CreateBindingRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new CreateBindingRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CreateBindingRequest instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.ICreateBindingRequest): google.cloud.agentregistry.v1.CreateBindingRequest;
+
+ /**
+ * Encodes the specified CreateBindingRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.CreateBindingRequest.verify|verify} messages.
+ * @param message CreateBindingRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.ICreateBindingRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CreateBindingRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.CreateBindingRequest.verify|verify} messages.
+ * @param message CreateBindingRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.ICreateBindingRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CreateBindingRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CreateBindingRequest
+ * @throws {Error} If the payload is not 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.agentregistry.v1.CreateBindingRequest;
+
+ /**
+ * Decodes a CreateBindingRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CreateBindingRequest
+ * @throws {Error} If the payload 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.agentregistry.v1.CreateBindingRequest;
+
+ /**
+ * Verifies a CreateBindingRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CreateBindingRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CreateBindingRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.CreateBindingRequest;
+
+ /**
+ * Creates a plain object from a CreateBindingRequest message. Also converts values to other types if specified.
+ * @param message CreateBindingRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.CreateBindingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CreateBindingRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CreateBindingRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an UpdateBindingRequest. */
+ interface IUpdateBindingRequest {
+
+ /** UpdateBindingRequest binding */
+ binding?: (google.cloud.agentregistry.v1.IBinding|null);
+
+ /** UpdateBindingRequest updateMask */
+ updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateBindingRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents an UpdateBindingRequest. */
+ class UpdateBindingRequest implements IUpdateBindingRequest {
+
+ /**
+ * Constructs a new UpdateBindingRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.IUpdateBindingRequest);
+
+ /** UpdateBindingRequest binding. */
+ public binding?: (google.cloud.agentregistry.v1.IBinding|null);
+
+ /** UpdateBindingRequest updateMask. */
+ public updateMask?: (google.protobuf.IFieldMask|null);
+
+ /** UpdateBindingRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new UpdateBindingRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UpdateBindingRequest instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.IUpdateBindingRequest): google.cloud.agentregistry.v1.UpdateBindingRequest;
+
+ /**
+ * Encodes the specified UpdateBindingRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.UpdateBindingRequest.verify|verify} messages.
+ * @param message UpdateBindingRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.IUpdateBindingRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UpdateBindingRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.UpdateBindingRequest.verify|verify} messages.
+ * @param message UpdateBindingRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.IUpdateBindingRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UpdateBindingRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UpdateBindingRequest
+ * @throws {Error} If the payload is not 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.agentregistry.v1.UpdateBindingRequest;
+
+ /**
+ * Decodes an UpdateBindingRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UpdateBindingRequest
+ * @throws {Error} If the payload 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.agentregistry.v1.UpdateBindingRequest;
+
+ /**
+ * Verifies an UpdateBindingRequest message.
+ * @param message Plain 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 UpdateBindingRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UpdateBindingRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.UpdateBindingRequest;
+
+ /**
+ * Creates a plain object from an UpdateBindingRequest message. Also converts values to other types if specified.
+ * @param message UpdateBindingRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.UpdateBindingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UpdateBindingRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UpdateBindingRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteBindingRequest. */
+ interface IDeleteBindingRequest {
+
+ /** DeleteBindingRequest name */
+ name?: (string|null);
+
+ /** DeleteBindingRequest requestId */
+ requestId?: (string|null);
+ }
+
+ /** Represents a DeleteBindingRequest. */
+ class DeleteBindingRequest implements IDeleteBindingRequest {
+
+ /**
+ * Constructs a new DeleteBindingRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.IDeleteBindingRequest);
+
+ /** DeleteBindingRequest name. */
+ public name: string;
+
+ /** DeleteBindingRequest requestId. */
+ public requestId: string;
+
+ /**
+ * Creates a new DeleteBindingRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteBindingRequest instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.IDeleteBindingRequest): google.cloud.agentregistry.v1.DeleteBindingRequest;
+
+ /**
+ * Encodes the specified DeleteBindingRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.DeleteBindingRequest.verify|verify} messages.
+ * @param message DeleteBindingRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.IDeleteBindingRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteBindingRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.DeleteBindingRequest.verify|verify} messages.
+ * @param message DeleteBindingRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.IDeleteBindingRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteBindingRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteBindingRequest
+ * @throws {Error} If the payload is not 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.agentregistry.v1.DeleteBindingRequest;
+
+ /**
+ * Decodes a DeleteBindingRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteBindingRequest
+ * @throws {Error} If the payload 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.agentregistry.v1.DeleteBindingRequest;
+
+ /**
+ * Verifies a DeleteBindingRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteBindingRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteBindingRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.DeleteBindingRequest;
+
+ /**
+ * Creates a plain object from a DeleteBindingRequest message. Also converts values to other types if specified.
+ * @param message DeleteBindingRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.DeleteBindingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteBindingRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteBindingRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Binding. */
+ interface IBinding {
+
+ /** Binding authProviderBinding */
+ authProviderBinding?: (google.cloud.agentregistry.v1.Binding.IAuthProviderBinding|null);
+
+ /** Binding name */
+ name?: (string|null);
+
+ /** Binding displayName */
+ displayName?: (string|null);
+
+ /** Binding description */
+ description?: (string|null);
+
+ /** Binding source */
+ source?: (google.cloud.agentregistry.v1.Binding.ISource|null);
+
+ /** Binding target */
+ target?: (google.cloud.agentregistry.v1.Binding.ITarget|null);
+
+ /** Binding createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Binding updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a Binding. */
+ class Binding implements IBinding {
+
+ /**
+ * Constructs a new Binding.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.IBinding);
+
+ /** Binding authProviderBinding. */
+ public authProviderBinding?: (google.cloud.agentregistry.v1.Binding.IAuthProviderBinding|null);
+
+ /** Binding name. */
+ public name: string;
+
+ /** Binding displayName. */
+ public displayName: string;
+
+ /** Binding description. */
+ public description: string;
+
+ /** Binding source. */
+ public source?: (google.cloud.agentregistry.v1.Binding.ISource|null);
+
+ /** Binding target. */
+ public target?: (google.cloud.agentregistry.v1.Binding.ITarget|null);
+
+ /** Binding createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Binding updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Binding binding. */
+ public binding?: "authProviderBinding";
+
+ /**
+ * Creates a new Binding instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Binding instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.IBinding): google.cloud.agentregistry.v1.Binding;
+
+ /**
+ * Encodes the specified Binding message. Does not implicitly {@link google.cloud.agentregistry.v1.Binding.verify|verify} messages.
+ * @param message Binding message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.IBinding, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Binding message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.Binding.verify|verify} messages.
+ * @param message Binding message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.IBinding, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Binding message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Binding
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.agentregistry.v1.Binding;
+
+ /**
+ * Decodes a Binding message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Binding
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.agentregistry.v1.Binding;
+
+ /**
+ * Verifies a Binding message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Binding message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Binding
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.Binding;
+
+ /**
+ * Creates a plain object from a Binding message. Also converts values to other types if specified.
+ * @param message Binding
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.Binding, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Binding to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Binding
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Binding {
+
+ /** Properties of a Source. */
+ interface ISource {
+
+ /** Source identifier */
+ identifier?: (string|null);
+ }
+
+ /** Represents a Source. */
+ class Source implements ISource {
+
+ /**
+ * Constructs a new Source.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.Binding.ISource);
+
+ /** Source identifier. */
+ public identifier?: (string|null);
+
+ /** Source sourceType. */
+ public sourceType?: "identifier";
+
+ /**
+ * Creates a new Source instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Source instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.Binding.ISource): google.cloud.agentregistry.v1.Binding.Source;
+
+ /**
+ * Encodes the specified Source message. Does not implicitly {@link google.cloud.agentregistry.v1.Binding.Source.verify|verify} messages.
+ * @param message Source message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.Binding.ISource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Source message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.Binding.Source.verify|verify} messages.
+ * @param message Source message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.Binding.ISource, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Source message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Source
+ * @throws {Error} If the payload is not 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.agentregistry.v1.Binding.Source;
+
+ /**
+ * Decodes a Source message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Source
+ * @throws {Error} If the payload 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.agentregistry.v1.Binding.Source;
+
+ /**
+ * Verifies a Source message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Source message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Source
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.Binding.Source;
+
+ /**
+ * Creates a plain object from a Source message. Also converts values to other types if specified.
+ * @param message Source
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.Binding.Source, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Source to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Source
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Target. */
+ interface ITarget {
+
+ /** Target identifier */
+ identifier?: (string|null);
+ }
+
+ /** Represents a Target. */
+ class Target implements ITarget {
+
+ /**
+ * Constructs a new Target.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.Binding.ITarget);
+
+ /** Target identifier. */
+ public identifier?: (string|null);
+
+ /** Target targetType. */
+ public targetType?: "identifier";
+
+ /**
+ * Creates a new Target instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Target instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.Binding.ITarget): google.cloud.agentregistry.v1.Binding.Target;
+
+ /**
+ * Encodes the specified Target message. Does not implicitly {@link google.cloud.agentregistry.v1.Binding.Target.verify|verify} messages.
+ * @param message Target message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.Binding.ITarget, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Target message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.Binding.Target.verify|verify} messages.
+ * @param message Target message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.Binding.ITarget, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Target message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Target
+ * @throws {Error} If the payload is not 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.agentregistry.v1.Binding.Target;
+
+ /**
+ * Decodes a Target message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Target
+ * @throws {Error} If the payload 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.agentregistry.v1.Binding.Target;
+
+ /**
+ * Verifies a Target message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Target message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Target
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.Binding.Target;
+
+ /**
+ * Creates a plain object from a Target message. Also converts values to other types if specified.
+ * @param message Target
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.Binding.Target, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Target to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Target
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an AuthProviderBinding. */
+ interface IAuthProviderBinding {
+
+ /** AuthProviderBinding authProvider */
+ authProvider?: (string|null);
+
+ /** AuthProviderBinding scopes */
+ scopes?: (string[]|null);
+
+ /** AuthProviderBinding continueUri */
+ continueUri?: (string|null);
+ }
+
+ /** Represents an AuthProviderBinding. */
+ class AuthProviderBinding implements IAuthProviderBinding {
+
+ /**
+ * Constructs a new AuthProviderBinding.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.Binding.IAuthProviderBinding);
+
+ /** AuthProviderBinding authProvider. */
+ public authProvider: string;
+
+ /** AuthProviderBinding scopes. */
+ public scopes: string[];
+
+ /** AuthProviderBinding continueUri. */
+ public continueUri: string;
+
+ /**
+ * Creates a new AuthProviderBinding instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AuthProviderBinding instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.Binding.IAuthProviderBinding): google.cloud.agentregistry.v1.Binding.AuthProviderBinding;
+
+ /**
+ * Encodes the specified AuthProviderBinding message. Does not implicitly {@link google.cloud.agentregistry.v1.Binding.AuthProviderBinding.verify|verify} messages.
+ * @param message AuthProviderBinding message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.Binding.IAuthProviderBinding, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AuthProviderBinding message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.Binding.AuthProviderBinding.verify|verify} messages.
+ * @param message AuthProviderBinding message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.Binding.IAuthProviderBinding, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AuthProviderBinding message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AuthProviderBinding
+ * @throws {Error} If the payload is not 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.agentregistry.v1.Binding.AuthProviderBinding;
+
+ /**
+ * Decodes an AuthProviderBinding message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AuthProviderBinding
+ * @throws {Error} If the payload 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.agentregistry.v1.Binding.AuthProviderBinding;
+
+ /**
+ * Verifies an AuthProviderBinding message.
+ * @param message Plain 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 AuthProviderBinding message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AuthProviderBinding
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.Binding.AuthProviderBinding;
+
+ /**
+ * Creates a plain object from an AuthProviderBinding message. Also converts values to other types if specified.
+ * @param message AuthProviderBinding
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.Binding.AuthProviderBinding, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AuthProviderBinding to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AuthProviderBinding
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an Endpoint. */
+ interface IEndpoint {
+
+ /** Endpoint name */
+ name?: (string|null);
+
+ /** Endpoint endpointId */
+ endpointId?: (string|null);
+
+ /** Endpoint displayName */
+ displayName?: (string|null);
+
+ /** Endpoint description */
+ description?: (string|null);
+
+ /** Endpoint interfaces */
+ interfaces?: (google.cloud.agentregistry.v1.IInterface[]|null);
+
+ /** Endpoint createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Endpoint updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Endpoint attributes */
+ attributes?: ({ [k: string]: google.protobuf.IStruct }|null);
+ }
+
+ /** Represents an Endpoint. */
+ class Endpoint implements IEndpoint {
+
+ /**
+ * Constructs a new Endpoint.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.IEndpoint);
+
+ /** Endpoint name. */
+ public name: string;
+
+ /** Endpoint endpointId. */
+ public endpointId: string;
+
+ /** Endpoint displayName. */
+ public displayName: string;
+
+ /** Endpoint description. */
+ public description: string;
+
+ /** Endpoint interfaces. */
+ public interfaces: google.cloud.agentregistry.v1.IInterface[];
+
+ /** Endpoint createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Endpoint updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Endpoint attributes. */
+ public attributes: { [k: string]: google.protobuf.IStruct };
+
+ /**
+ * Creates a new Endpoint instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Endpoint instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.IEndpoint): google.cloud.agentregistry.v1.Endpoint;
+
+ /**
+ * Encodes the specified Endpoint message. Does not implicitly {@link google.cloud.agentregistry.v1.Endpoint.verify|verify} messages.
+ * @param message Endpoint message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.IEndpoint, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Endpoint message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.Endpoint.verify|verify} messages.
+ * @param message Endpoint message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.IEndpoint, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Endpoint message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Endpoint
+ * @throws {Error} If the payload is not 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.agentregistry.v1.Endpoint;
+
+ /**
+ * Decodes an Endpoint message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Endpoint
+ * @throws {Error} If the payload 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.agentregistry.v1.Endpoint;
+
+ /**
+ * Verifies an Endpoint message.
+ * @param message Plain 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 Endpoint message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Endpoint
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.Endpoint;
+
+ /**
+ * Creates a plain object from an Endpoint message. Also converts values to other types if specified.
+ * @param message Endpoint
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.Endpoint, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Endpoint to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Endpoint
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a McpServer. */
+ interface IMcpServer {
+
+ /** McpServer name */
+ name?: (string|null);
+
+ /** McpServer mcpServerId */
+ mcpServerId?: (string|null);
+
+ /** McpServer displayName */
+ displayName?: (string|null);
+
+ /** McpServer description */
+ description?: (string|null);
+
+ /** McpServer interfaces */
+ interfaces?: (google.cloud.agentregistry.v1.IInterface[]|null);
+
+ /** McpServer tools */
+ tools?: (google.cloud.agentregistry.v1.McpServer.ITool[]|null);
+
+ /** McpServer createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** McpServer updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** McpServer attributes */
+ attributes?: ({ [k: string]: google.protobuf.IStruct }|null);
+ }
+
+ /** Represents a McpServer. */
+ class McpServer implements IMcpServer {
+
+ /**
+ * Constructs a new McpServer.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.IMcpServer);
+
+ /** McpServer name. */
+ public name: string;
+
+ /** McpServer mcpServerId. */
+ public mcpServerId: string;
+
+ /** McpServer displayName. */
+ public displayName: string;
+
+ /** McpServer description. */
+ public description: string;
+
+ /** McpServer interfaces. */
+ public interfaces: google.cloud.agentregistry.v1.IInterface[];
+
+ /** McpServer tools. */
+ public tools: google.cloud.agentregistry.v1.McpServer.ITool[];
+
+ /** McpServer createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** McpServer updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** McpServer attributes. */
+ public attributes: { [k: string]: google.protobuf.IStruct };
+
+ /**
+ * Creates a new McpServer instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns McpServer instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.IMcpServer): google.cloud.agentregistry.v1.McpServer;
+
+ /**
+ * Encodes the specified McpServer message. Does not implicitly {@link google.cloud.agentregistry.v1.McpServer.verify|verify} messages.
+ * @param message McpServer message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.IMcpServer, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified McpServer message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.McpServer.verify|verify} messages.
+ * @param message McpServer message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.IMcpServer, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a McpServer message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns McpServer
+ * @throws {Error} If the payload is not 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.agentregistry.v1.McpServer;
+
+ /**
+ * Decodes a McpServer message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns McpServer
+ * @throws {Error} If the payload 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.agentregistry.v1.McpServer;
+
+ /**
+ * Verifies a McpServer message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a McpServer message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns McpServer
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.McpServer;
+
+ /**
+ * Creates a plain object from a McpServer message. Also converts values to other types if specified.
+ * @param message McpServer
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.McpServer, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this McpServer to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for McpServer
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace McpServer {
+
+ /** Properties of a Tool. */
+ interface ITool {
+
+ /** Tool name */
+ name?: (string|null);
+
+ /** Tool description */
+ description?: (string|null);
+
+ /** Tool annotations */
+ annotations?: (google.cloud.agentregistry.v1.McpServer.Tool.IAnnotations|null);
+ }
+
+ /** Represents a Tool. */
+ class Tool implements ITool {
+
+ /**
+ * Constructs a new Tool.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.McpServer.ITool);
+
+ /** Tool name. */
+ public name: string;
+
+ /** Tool description. */
+ public description: string;
+
+ /** Tool annotations. */
+ public annotations?: (google.cloud.agentregistry.v1.McpServer.Tool.IAnnotations|null);
+
+ /**
+ * Creates a new Tool instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Tool instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.McpServer.ITool): google.cloud.agentregistry.v1.McpServer.Tool;
+
+ /**
+ * Encodes the specified Tool message. Does not implicitly {@link google.cloud.agentregistry.v1.McpServer.Tool.verify|verify} messages.
+ * @param message Tool message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.McpServer.ITool, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Tool message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.McpServer.Tool.verify|verify} messages.
+ * @param message Tool message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.McpServer.ITool, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Tool message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Tool
+ * @throws {Error} If the payload is not 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.agentregistry.v1.McpServer.Tool;
+
+ /**
+ * Decodes a Tool message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Tool
+ * @throws {Error} If the payload 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.agentregistry.v1.McpServer.Tool;
+
+ /**
+ * Verifies a Tool message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Tool message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Tool
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.McpServer.Tool;
+
+ /**
+ * Creates a plain object from a Tool message. Also converts values to other types if specified.
+ * @param message Tool
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.McpServer.Tool, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Tool to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Tool
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Tool {
+
+ /** Properties of an Annotations. */
+ interface IAnnotations {
+
+ /** Annotations title */
+ title?: (string|null);
+
+ /** Annotations destructiveHint */
+ destructiveHint?: (boolean|null);
+
+ /** Annotations idempotentHint */
+ idempotentHint?: (boolean|null);
+
+ /** Annotations openWorldHint */
+ openWorldHint?: (boolean|null);
+
+ /** Annotations readOnlyHint */
+ readOnlyHint?: (boolean|null);
+ }
+
+ /** Represents an Annotations. */
+ class Annotations implements IAnnotations {
+
+ /**
+ * Constructs a new Annotations.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.McpServer.Tool.IAnnotations);
+
+ /** Annotations title. */
+ public title: string;
+
+ /** Annotations destructiveHint. */
+ public destructiveHint: boolean;
+
+ /** Annotations idempotentHint. */
+ public idempotentHint: boolean;
+
+ /** Annotations openWorldHint. */
+ public openWorldHint: boolean;
+
+ /** Annotations readOnlyHint. */
+ public readOnlyHint: boolean;
+
+ /**
+ * Creates a new Annotations instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Annotations instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.McpServer.Tool.IAnnotations): google.cloud.agentregistry.v1.McpServer.Tool.Annotations;
+
+ /**
+ * Encodes the specified Annotations message. Does not implicitly {@link google.cloud.agentregistry.v1.McpServer.Tool.Annotations.verify|verify} messages.
+ * @param message Annotations message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.McpServer.Tool.IAnnotations, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Annotations message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.McpServer.Tool.Annotations.verify|verify} messages.
+ * @param message Annotations message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.McpServer.Tool.IAnnotations, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Annotations message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Annotations
+ * @throws {Error} If the payload is not 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.agentregistry.v1.McpServer.Tool.Annotations;
+
+ /**
+ * Decodes an Annotations message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Annotations
+ * @throws {Error} If the payload 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.agentregistry.v1.McpServer.Tool.Annotations;
+
+ /**
+ * Verifies an Annotations message.
+ * @param message Plain 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 Annotations message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Annotations
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.McpServer.Tool.Annotations;
+
+ /**
+ * Creates a plain object from an Annotations message. Also converts values to other types if specified.
+ * @param message Annotations
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.McpServer.Tool.Annotations, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Annotations to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Annotations
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+ }
+
+ /** Properties of a Service. */
+ interface IService {
+
+ /** Service agentSpec */
+ agentSpec?: (google.cloud.agentregistry.v1.Service.IAgentSpec|null);
+
+ /** Service mcpServerSpec */
+ mcpServerSpec?: (google.cloud.agentregistry.v1.Service.IMcpServerSpec|null);
+
+ /** Service endpointSpec */
+ endpointSpec?: (google.cloud.agentregistry.v1.Service.IEndpointSpec|null);
+
+ /** Service name */
+ name?: (string|null);
+
+ /** Service displayName */
+ displayName?: (string|null);
+
+ /** Service description */
+ description?: (string|null);
+
+ /** Service interfaces */
+ interfaces?: (google.cloud.agentregistry.v1.IInterface[]|null);
+
+ /** Service registryResource */
+ registryResource?: (string|null);
+
+ /** Service createTime */
+ createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Service updateTime */
+ updateTime?: (google.protobuf.ITimestamp|null);
+ }
+
+ /** Represents a Service. */
+ class Service implements IService {
+
+ /**
+ * Constructs a new Service.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.IService);
+
+ /** Service agentSpec. */
+ public agentSpec?: (google.cloud.agentregistry.v1.Service.IAgentSpec|null);
+
+ /** Service mcpServerSpec. */
+ public mcpServerSpec?: (google.cloud.agentregistry.v1.Service.IMcpServerSpec|null);
+
+ /** Service endpointSpec. */
+ public endpointSpec?: (google.cloud.agentregistry.v1.Service.IEndpointSpec|null);
+
+ /** Service name. */
+ public name: string;
+
+ /** Service displayName. */
+ public displayName: string;
+
+ /** Service description. */
+ public description: string;
+
+ /** Service interfaces. */
+ public interfaces: google.cloud.agentregistry.v1.IInterface[];
+
+ /** Service registryResource. */
+ public registryResource: string;
+
+ /** Service createTime. */
+ public createTime?: (google.protobuf.ITimestamp|null);
+
+ /** Service updateTime. */
+ public updateTime?: (google.protobuf.ITimestamp|null);
+
+ /** Service spec. */
+ public spec?: ("agentSpec"|"mcpServerSpec"|"endpointSpec");
+
+ /**
+ * Creates a new Service instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Service instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.IService): google.cloud.agentregistry.v1.Service;
+
+ /**
+ * Encodes the specified Service message. Does not implicitly {@link google.cloud.agentregistry.v1.Service.verify|verify} messages.
+ * @param message Service message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.IService, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Service message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.Service.verify|verify} messages.
+ * @param message Service message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.IService, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Service message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Service
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.agentregistry.v1.Service;
+
+ /**
+ * Decodes a Service message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Service
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.agentregistry.v1.Service;
+
+ /**
+ * Verifies a Service message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Service message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Service
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.Service;
+
+ /**
+ * Creates a plain object from a Service message. Also converts values to other types if specified.
+ * @param message Service
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.Service, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Service to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Service
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Service {
+
+ /** Properties of an AgentSpec. */
+ interface IAgentSpec {
+
+ /** AgentSpec type */
+ type?: (google.cloud.agentregistry.v1.Service.AgentSpec.Type|keyof typeof google.cloud.agentregistry.v1.Service.AgentSpec.Type|null);
+
+ /** AgentSpec content */
+ content?: (google.protobuf.IStruct|null);
+ }
+
+ /** Represents an AgentSpec. */
+ class AgentSpec implements IAgentSpec {
+
+ /**
+ * Constructs a new AgentSpec.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.Service.IAgentSpec);
+
+ /** AgentSpec type. */
+ public type: (google.cloud.agentregistry.v1.Service.AgentSpec.Type|keyof typeof google.cloud.agentregistry.v1.Service.AgentSpec.Type);
+
+ /** AgentSpec content. */
+ public content?: (google.protobuf.IStruct|null);
+
+ /**
+ * Creates a new AgentSpec instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns AgentSpec instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.Service.IAgentSpec): google.cloud.agentregistry.v1.Service.AgentSpec;
+
+ /**
+ * Encodes the specified AgentSpec message. Does not implicitly {@link google.cloud.agentregistry.v1.Service.AgentSpec.verify|verify} messages.
+ * @param message AgentSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.Service.IAgentSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified AgentSpec message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.Service.AgentSpec.verify|verify} messages.
+ * @param message AgentSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.Service.IAgentSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an AgentSpec message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns AgentSpec
+ * @throws {Error} If the payload is not 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.agentregistry.v1.Service.AgentSpec;
+
+ /**
+ * Decodes an AgentSpec message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns AgentSpec
+ * @throws {Error} If the payload 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.agentregistry.v1.Service.AgentSpec;
+
+ /**
+ * Verifies an AgentSpec message.
+ * @param message Plain 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 AgentSpec message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns AgentSpec
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.Service.AgentSpec;
+
+ /**
+ * Creates a plain object from an AgentSpec message. Also converts values to other types if specified.
+ * @param message AgentSpec
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.Service.AgentSpec, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this AgentSpec to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for AgentSpec
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace AgentSpec {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_UNSPECIFIED = 0,
+ NO_SPEC = 1,
+ A2A_AGENT_CARD = 2
+ }
+ }
+
+ /** Properties of a McpServerSpec. */
+ interface IMcpServerSpec {
+
+ /** McpServerSpec type */
+ type?: (google.cloud.agentregistry.v1.Service.McpServerSpec.Type|keyof typeof google.cloud.agentregistry.v1.Service.McpServerSpec.Type|null);
+
+ /** McpServerSpec content */
+ content?: (google.protobuf.IStruct|null);
+ }
+
+ /** Represents a McpServerSpec. */
+ class McpServerSpec implements IMcpServerSpec {
+
+ /**
+ * Constructs a new McpServerSpec.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.Service.IMcpServerSpec);
+
+ /** McpServerSpec type. */
+ public type: (google.cloud.agentregistry.v1.Service.McpServerSpec.Type|keyof typeof google.cloud.agentregistry.v1.Service.McpServerSpec.Type);
+
+ /** McpServerSpec content. */
+ public content?: (google.protobuf.IStruct|null);
+
+ /**
+ * Creates a new McpServerSpec instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns McpServerSpec instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.Service.IMcpServerSpec): google.cloud.agentregistry.v1.Service.McpServerSpec;
+
+ /**
+ * Encodes the specified McpServerSpec message. Does not implicitly {@link google.cloud.agentregistry.v1.Service.McpServerSpec.verify|verify} messages.
+ * @param message McpServerSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.Service.IMcpServerSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified McpServerSpec message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.Service.McpServerSpec.verify|verify} messages.
+ * @param message McpServerSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.Service.IMcpServerSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a McpServerSpec message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns McpServerSpec
+ * @throws {Error} If the payload is not 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.agentregistry.v1.Service.McpServerSpec;
+
+ /**
+ * Decodes a McpServerSpec message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns McpServerSpec
+ * @throws {Error} If the payload 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.agentregistry.v1.Service.McpServerSpec;
+
+ /**
+ * Verifies a McpServerSpec message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a McpServerSpec message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns McpServerSpec
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.Service.McpServerSpec;
+
+ /**
+ * Creates a plain object from a McpServerSpec message. Also converts values to other types if specified.
+ * @param message McpServerSpec
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.Service.McpServerSpec, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this McpServerSpec to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for McpServerSpec
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace McpServerSpec {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_UNSPECIFIED = 0,
+ NO_SPEC = 1,
+ TOOL_SPEC = 2
+ }
+ }
+
+ /** Properties of an EndpointSpec. */
+ interface IEndpointSpec {
+
+ /** EndpointSpec type */
+ type?: (google.cloud.agentregistry.v1.Service.EndpointSpec.Type|keyof typeof google.cloud.agentregistry.v1.Service.EndpointSpec.Type|null);
+
+ /** EndpointSpec content */
+ content?: (google.protobuf.IStruct|null);
+ }
+
+ /** Represents an EndpointSpec. */
+ class EndpointSpec implements IEndpointSpec {
+
+ /**
+ * Constructs a new EndpointSpec.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.agentregistry.v1.Service.IEndpointSpec);
+
+ /** EndpointSpec type. */
+ public type: (google.cloud.agentregistry.v1.Service.EndpointSpec.Type|keyof typeof google.cloud.agentregistry.v1.Service.EndpointSpec.Type);
+
+ /** EndpointSpec content. */
+ public content?: (google.protobuf.IStruct|null);
+
+ /**
+ * Creates a new EndpointSpec instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EndpointSpec instance
+ */
+ public static create(properties?: google.cloud.agentregistry.v1.Service.IEndpointSpec): google.cloud.agentregistry.v1.Service.EndpointSpec;
+
+ /**
+ * Encodes the specified EndpointSpec message. Does not implicitly {@link google.cloud.agentregistry.v1.Service.EndpointSpec.verify|verify} messages.
+ * @param message EndpointSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.agentregistry.v1.Service.IEndpointSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EndpointSpec message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.Service.EndpointSpec.verify|verify} messages.
+ * @param message EndpointSpec message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.agentregistry.v1.Service.IEndpointSpec, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EndpointSpec message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EndpointSpec
+ * @throws {Error} If the payload is not 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.agentregistry.v1.Service.EndpointSpec;
+
+ /**
+ * Decodes an EndpointSpec message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EndpointSpec
+ * @throws {Error} If the payload 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.agentregistry.v1.Service.EndpointSpec;
+
+ /**
+ * Verifies an EndpointSpec message.
+ * @param message Plain 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 EndpointSpec message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EndpointSpec
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.agentregistry.v1.Service.EndpointSpec;
+
+ /**
+ * Creates a plain object from an EndpointSpec message. Also converts values to other types if specified.
+ * @param message EndpointSpec
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.agentregistry.v1.Service.EndpointSpec, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EndpointSpec to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EndpointSpec
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace EndpointSpec {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_UNSPECIFIED = 0,
+ NO_SPEC = 1
+ }
+ }
+ }
+ }
+ }
+ }
+
+ /** 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 FieldInfo. */
+ interface IFieldInfo {
+
+ /** FieldInfo format */
+ format?: (google.api.FieldInfo.Format|keyof typeof google.api.FieldInfo.Format|null);
+
+ /** FieldInfo referencedTypes */
+ referencedTypes?: (google.api.ITypeReference[]|null);
+ }
+
+ /** Represents a FieldInfo. */
+ class FieldInfo implements IFieldInfo {
+
+ /**
+ * Constructs a new FieldInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IFieldInfo);
+
+ /** FieldInfo format. */
+ public format: (google.api.FieldInfo.Format|keyof typeof google.api.FieldInfo.Format);
+
+ /** FieldInfo referencedTypes. */
+ public referencedTypes: google.api.ITypeReference[];
+
+ /**
+ * Creates a new FieldInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldInfo instance
+ */
+ public static create(properties?: google.api.IFieldInfo): google.api.FieldInfo;
+
+ /**
+ * Encodes the specified FieldInfo message. Does not implicitly {@link google.api.FieldInfo.verify|verify} messages.
+ * @param message FieldInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IFieldInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldInfo message, length delimited. Does not implicitly {@link google.api.FieldInfo.verify|verify} messages.
+ * @param message FieldInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IFieldInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.FieldInfo;
+
+ /**
+ * Decodes a FieldInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.FieldInfo;
+
+ /**
+ * Verifies a FieldInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.FieldInfo;
+
+ /**
+ * Creates a plain object from a FieldInfo message. Also converts values to other types if specified.
+ * @param message FieldInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.FieldInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldInfo {
+
+ /** Format enum. */
+ enum Format {
+ FORMAT_UNSPECIFIED = 0,
+ UUID4 = 1,
+ IPV4 = 2,
+ IPV6 = 3,
+ IPV4_OR_IPV6 = 4
+ }
+ }
+
+ /** Properties of a TypeReference. */
+ interface ITypeReference {
+
+ /** TypeReference typeName */
+ typeName?: (string|null);
+ }
+
+ /** Represents a TypeReference. */
+ class TypeReference implements ITypeReference {
+
+ /**
+ * Constructs a new TypeReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ITypeReference);
+
+ /** TypeReference typeName. */
+ public typeName: string;
+
+ /**
+ * Creates a new TypeReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns TypeReference instance
+ */
+ public static create(properties?: google.api.ITypeReference): google.api.TypeReference;
+
+ /**
+ * Encodes the specified TypeReference message. Does not implicitly {@link google.api.TypeReference.verify|verify} messages.
+ * @param message TypeReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ITypeReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified TypeReference message, length delimited. Does not implicitly {@link google.api.TypeReference.verify|verify} messages.
+ * @param message TypeReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ITypeReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a TypeReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns TypeReference
+ * @throws {Error} If the payload is not 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.TypeReference;
+
+ /**
+ * Decodes a TypeReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns TypeReference
+ * @throws {Error} If the payload 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.TypeReference;
+
+ /**
+ * Verifies a TypeReference message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a TypeReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns TypeReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.TypeReference;
+
+ /**
+ * Creates a plain object from a TypeReference message. Also converts values to other types if specified.
+ * @param message TypeReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.TypeReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this TypeReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for TypeReference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ResourceDescriptor. */
+ interface IResourceDescriptor {
+
+ /** ResourceDescriptor type */
+ type?: (string|null);
+
+ /** ResourceDescriptor pattern */
+ pattern?: (string[]|null);
+
+ /** ResourceDescriptor nameField */
+ nameField?: (string|null);
+
+ /** ResourceDescriptor history */
+ history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null);
+
+ /** ResourceDescriptor plural */
+ plural?: (string|null);
+
+ /** ResourceDescriptor singular */
+ singular?: (string|null);
+
+ /** ResourceDescriptor style */
+ style?: (google.api.ResourceDescriptor.Style[]|null);
+ }
+
+ /** Represents a ResourceDescriptor. */
+ class ResourceDescriptor implements IResourceDescriptor {
+
+ /**
+ * Constructs a new ResourceDescriptor.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceDescriptor);
+
+ /** ResourceDescriptor type. */
+ public type: string;
+
+ /** ResourceDescriptor pattern. */
+ public pattern: string[];
+
+ /** ResourceDescriptor nameField. */
+ public nameField: string;
+
+ /** ResourceDescriptor history. */
+ public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History);
+
+ /** ResourceDescriptor plural. */
+ public plural: string;
+
+ /** ResourceDescriptor singular. */
+ public singular: string;
+
+ /** ResourceDescriptor style. */
+ public style: google.api.ResourceDescriptor.Style[];
+
+ /**
+ * Creates a new ResourceDescriptor instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceDescriptor instance
+ */
+ public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor;
+
+ /**
+ * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
+ * @param message ResourceDescriptor message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceDescriptor;
+
+ /**
+ * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceDescriptor
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceDescriptor;
+
+ /**
+ * Verifies a ResourceDescriptor message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceDescriptor
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
+
+ /**
+ * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
+ * @param message ResourceDescriptor
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceDescriptor to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceDescriptor
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ResourceDescriptor {
+
+ /** History enum. */
+ enum History {
+ HISTORY_UNSPECIFIED = 0,
+ ORIGINALLY_SINGLE_PATTERN = 1,
+ FUTURE_MULTI_PATTERN = 2
+ }
+
+ /** Style enum. */
+ enum Style {
+ STYLE_UNSPECIFIED = 0,
+ DECLARATIVE_FRIENDLY = 1
+ }
+ }
+
+ /** Properties of a ResourceReference. */
+ interface IResourceReference {
+
+ /** ResourceReference type */
+ type?: (string|null);
+
+ /** ResourceReference childType */
+ childType?: (string|null);
+ }
+
+ /** Represents a ResourceReference. */
+ class ResourceReference implements IResourceReference {
+
+ /**
+ * Constructs a new ResourceReference.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IResourceReference);
+
+ /** ResourceReference type. */
+ public type: string;
+
+ /** ResourceReference childType. */
+ public childType: string;
+
+ /**
+ * Creates a new ResourceReference instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ResourceReference instance
+ */
+ public static create(properties?: google.api.IResourceReference): google.api.ResourceReference;
+
+ /**
+ * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
+ * @param message ResourceReference message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceReference;
+
+ /**
+ * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ResourceReference
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceReference;
+
+ /**
+ * Verifies a ResourceReference message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ResourceReference
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
+
+ /**
+ * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
+ * @param message ResourceReference
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ResourceReference to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ResourceReference
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Http. */
+ interface IHttp {
+
+ /** Http rules */
+ rules?: (google.api.IHttpRule[]|null);
+
+ /** Http fullyDecodeReservedExpansion */
+ fullyDecodeReservedExpansion?: (boolean|null);
+ }
+
+ /** Represents a Http. */
+ class Http implements IHttp {
+
+ /**
+ * Constructs a new Http.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttp);
+
+ /** Http rules. */
+ public rules: google.api.IHttpRule[];
+
+ /** Http fullyDecodeReservedExpansion. */
+ public fullyDecodeReservedExpansion: boolean;
+
+ /**
+ * Creates a new Http instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Http instance
+ */
+ public static create(properties?: google.api.IHttp): google.api.Http;
+
+ /**
+ * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
+ * @param message Http message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http;
+
+ /**
+ * Decodes a Http message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Http
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http;
+
+ /**
+ * Verifies a Http message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Http message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Http
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Http;
+
+ /**
+ * Creates a plain object from a Http message. Also converts values to other types if specified.
+ * @param message Http
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Http to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Http
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a HttpRule. */
+ interface IHttpRule {
+
+ /** HttpRule selector */
+ selector?: (string|null);
+
+ /** HttpRule get */
+ get?: (string|null);
+
+ /** HttpRule put */
+ put?: (string|null);
+
+ /** HttpRule post */
+ post?: (string|null);
+
+ /** HttpRule delete */
+ "delete"?: (string|null);
+
+ /** HttpRule patch */
+ patch?: (string|null);
+
+ /** HttpRule custom */
+ custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body */
+ body?: (string|null);
+
+ /** HttpRule responseBody */
+ responseBody?: (string|null);
+
+ /** HttpRule additionalBindings */
+ additionalBindings?: (google.api.IHttpRule[]|null);
+ }
+
+ /** Represents a HttpRule. */
+ class HttpRule implements IHttpRule {
+
+ /**
+ * Constructs a new HttpRule.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IHttpRule);
+
+ /** HttpRule selector. */
+ public selector: string;
+
+ /** HttpRule get. */
+ public get?: (string|null);
+
+ /** HttpRule put. */
+ public put?: (string|null);
+
+ /** HttpRule post. */
+ public post?: (string|null);
+
+ /** HttpRule delete. */
+ public delete?: (string|null);
+
+ /** HttpRule patch. */
+ public patch?: (string|null);
+
+ /** HttpRule custom. */
+ public custom?: (google.api.ICustomHttpPattern|null);
+
+ /** HttpRule body. */
+ public body: string;
+
+ /** HttpRule responseBody. */
+ public responseBody: string;
+
+ /** HttpRule additionalBindings. */
+ public additionalBindings: google.api.IHttpRule[];
+
+ /** HttpRule pattern. */
+ public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
+
+ /**
+ * Creates a new HttpRule instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns HttpRule instance
+ */
+ public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
+
+ /**
+ * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
+ * @param message HttpRule message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule;
+
+ /**
+ * Decodes a HttpRule message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns HttpRule
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule;
+
+ /**
+ * Verifies a HttpRule message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns HttpRule
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
+
+ /**
+ * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
+ * @param message HttpRule
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this HttpRule to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for HttpRule
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CustomHttpPattern. */
+ interface ICustomHttpPattern {
+
+ /** CustomHttpPattern kind */
+ kind?: (string|null);
+
+ /** CustomHttpPattern path */
+ path?: (string|null);
+ }
+
+ /** Represents a CustomHttpPattern. */
+ class CustomHttpPattern implements ICustomHttpPattern {
+
+ /**
+ * Constructs a new CustomHttpPattern.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICustomHttpPattern);
+
+ /** CustomHttpPattern kind. */
+ public kind: string;
+
+ /** CustomHttpPattern path. */
+ public path: string;
+
+ /**
+ * Creates a new CustomHttpPattern instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CustomHttpPattern instance
+ */
+ public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
+
+ /**
+ * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
+ * @param message CustomHttpPattern message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern;
+
+ /**
+ * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CustomHttpPattern
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern;
+
+ /**
+ * Verifies a CustomHttpPattern message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CustomHttpPattern
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
+
+ /**
+ * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
+ * @param message CustomHttpPattern
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CustomHttpPattern to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CustomHttpPattern
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CommonLanguageSettings. */
+ interface ICommonLanguageSettings {
+
+ /** CommonLanguageSettings referenceDocsUri */
+ referenceDocsUri?: (string|null);
+
+ /** CommonLanguageSettings destinations */
+ destinations?: (google.api.ClientLibraryDestination[]|null);
+
+ /** CommonLanguageSettings selectiveGapicGeneration */
+ selectiveGapicGeneration?: (google.api.ISelectiveGapicGeneration|null);
+ }
+
+ /** Represents a CommonLanguageSettings. */
+ class CommonLanguageSettings implements ICommonLanguageSettings {
+
+ /**
+ * Constructs a new CommonLanguageSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICommonLanguageSettings);
+
+ /** CommonLanguageSettings referenceDocsUri. */
+ public referenceDocsUri: string;
+
+ /** CommonLanguageSettings destinations. */
+ public destinations: google.api.ClientLibraryDestination[];
+
+ /** CommonLanguageSettings selectiveGapicGeneration. */
+ public selectiveGapicGeneration?: (google.api.ISelectiveGapicGeneration|null);
+
+ /**
+ * Creates a new CommonLanguageSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CommonLanguageSettings instance
+ */
+ public static create(properties?: google.api.ICommonLanguageSettings): google.api.CommonLanguageSettings;
+
+ /**
+ * Encodes the specified CommonLanguageSettings message. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
+ * @param message CommonLanguageSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICommonLanguageSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CommonLanguageSettings message, length delimited. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
+ * @param message CommonLanguageSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICommonLanguageSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CommonLanguageSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CommonLanguageSettings;
+
+ /**
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CommonLanguageSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CommonLanguageSettings;
+
+ /**
+ * Verifies a CommonLanguageSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CommonLanguageSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CommonLanguageSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CommonLanguageSettings;
+
+ /**
+ * Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified.
+ * @param message CommonLanguageSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CommonLanguageSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CommonLanguageSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CommonLanguageSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ClientLibrarySettings. */
+ interface IClientLibrarySettings {
+
+ /** ClientLibrarySettings version */
+ version?: (string|null);
+
+ /** ClientLibrarySettings launchStage */
+ launchStage?: (google.api.LaunchStage|keyof typeof google.api.LaunchStage|null);
+
+ /** ClientLibrarySettings restNumericEnums */
+ restNumericEnums?: (boolean|null);
+
+ /** ClientLibrarySettings javaSettings */
+ javaSettings?: (google.api.IJavaSettings|null);
+
+ /** ClientLibrarySettings cppSettings */
+ cppSettings?: (google.api.ICppSettings|null);
+
+ /** ClientLibrarySettings phpSettings */
+ phpSettings?: (google.api.IPhpSettings|null);
+
+ /** ClientLibrarySettings pythonSettings */
+ pythonSettings?: (google.api.IPythonSettings|null);
+
+ /** ClientLibrarySettings nodeSettings */
+ nodeSettings?: (google.api.INodeSettings|null);
+
+ /** ClientLibrarySettings dotnetSettings */
+ dotnetSettings?: (google.api.IDotnetSettings|null);
+
+ /** ClientLibrarySettings rubySettings */
+ rubySettings?: (google.api.IRubySettings|null);
+
+ /** ClientLibrarySettings goSettings */
+ goSettings?: (google.api.IGoSettings|null);
+ }
+
+ /** Represents a ClientLibrarySettings. */
+ class ClientLibrarySettings implements IClientLibrarySettings {
+
+ /**
+ * Constructs a new ClientLibrarySettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IClientLibrarySettings);
+
+ /** ClientLibrarySettings version. */
+ public version: string;
+
+ /** ClientLibrarySettings launchStage. */
+ public launchStage: (google.api.LaunchStage|keyof typeof google.api.LaunchStage);
+
+ /** ClientLibrarySettings restNumericEnums. */
+ public restNumericEnums: boolean;
+
+ /** ClientLibrarySettings javaSettings. */
+ public javaSettings?: (google.api.IJavaSettings|null);
+
+ /** ClientLibrarySettings cppSettings. */
+ public cppSettings?: (google.api.ICppSettings|null);
+
+ /** ClientLibrarySettings phpSettings. */
+ public phpSettings?: (google.api.IPhpSettings|null);
+
+ /** ClientLibrarySettings pythonSettings. */
+ public pythonSettings?: (google.api.IPythonSettings|null);
+
+ /** ClientLibrarySettings nodeSettings. */
+ public nodeSettings?: (google.api.INodeSettings|null);
+
+ /** ClientLibrarySettings dotnetSettings. */
+ public dotnetSettings?: (google.api.IDotnetSettings|null);
+
+ /** ClientLibrarySettings rubySettings. */
+ public rubySettings?: (google.api.IRubySettings|null);
+
+ /** ClientLibrarySettings goSettings. */
+ public goSettings?: (google.api.IGoSettings|null);
+
+ /**
+ * Creates a new ClientLibrarySettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ClientLibrarySettings instance
+ */
+ public static create(properties?: google.api.IClientLibrarySettings): google.api.ClientLibrarySettings;
+
+ /**
+ * Encodes the specified ClientLibrarySettings message. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
+ * @param message ClientLibrarySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IClientLibrarySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ClientLibrarySettings message, length delimited. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
+ * @param message ClientLibrarySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IClientLibrarySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ClientLibrarySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ClientLibrarySettings;
+
+ /**
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ClientLibrarySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ClientLibrarySettings;
+
+ /**
+ * Verifies a ClientLibrarySettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ClientLibrarySettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ClientLibrarySettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.ClientLibrarySettings;
+
+ /**
+ * Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified.
+ * @param message ClientLibrarySettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.ClientLibrarySettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ClientLibrarySettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ClientLibrarySettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Publishing. */
+ interface IPublishing {
+
+ /** Publishing methodSettings */
+ methodSettings?: (google.api.IMethodSettings[]|null);
+
+ /** Publishing newIssueUri */
+ newIssueUri?: (string|null);
+
+ /** Publishing documentationUri */
+ documentationUri?: (string|null);
+
+ /** Publishing apiShortName */
+ apiShortName?: (string|null);
+
+ /** Publishing githubLabel */
+ githubLabel?: (string|null);
+
+ /** Publishing codeownerGithubTeams */
+ codeownerGithubTeams?: (string[]|null);
+
+ /** Publishing docTagPrefix */
+ docTagPrefix?: (string|null);
+
+ /** Publishing organization */
+ organization?: (google.api.ClientLibraryOrganization|keyof typeof google.api.ClientLibraryOrganization|null);
+
+ /** Publishing librarySettings */
+ librarySettings?: (google.api.IClientLibrarySettings[]|null);
+
+ /** Publishing protoReferenceDocumentationUri */
+ protoReferenceDocumentationUri?: (string|null);
+
+ /** Publishing restReferenceDocumentationUri */
+ restReferenceDocumentationUri?: (string|null);
+ }
+
+ /** Represents a Publishing. */
+ class Publishing implements IPublishing {
+
+ /**
+ * Constructs a new Publishing.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPublishing);
+
+ /** Publishing methodSettings. */
+ public methodSettings: google.api.IMethodSettings[];
+
+ /** Publishing newIssueUri. */
+ public newIssueUri: string;
+
+ /** Publishing documentationUri. */
+ public documentationUri: string;
+
+ /** Publishing apiShortName. */
+ public apiShortName: string;
+
+ /** Publishing githubLabel. */
+ public githubLabel: string;
+
+ /** Publishing codeownerGithubTeams. */
+ public codeownerGithubTeams: string[];
+
+ /** Publishing docTagPrefix. */
+ public docTagPrefix: string;
+
+ /** Publishing organization. */
+ public organization: (google.api.ClientLibraryOrganization|keyof typeof google.api.ClientLibraryOrganization);
+
+ /** Publishing librarySettings. */
+ public librarySettings: google.api.IClientLibrarySettings[];
+
+ /** Publishing protoReferenceDocumentationUri. */
+ public protoReferenceDocumentationUri: string;
+
+ /** Publishing restReferenceDocumentationUri. */
+ public restReferenceDocumentationUri: string;
+
+ /**
+ * Creates a new Publishing instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Publishing instance
+ */
+ public static create(properties?: google.api.IPublishing): google.api.Publishing;
+
+ /**
+ * Encodes the specified Publishing message. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
+ * @param message Publishing message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPublishing, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Publishing message, length delimited. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
+ * @param message Publishing message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPublishing, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Publishing message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Publishing
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Publishing;
+
+ /**
+ * Decodes a Publishing message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Publishing
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Publishing;
+
+ /**
+ * Verifies a Publishing message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Publishing message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Publishing
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.Publishing;
+
+ /**
+ * Creates a plain object from a Publishing message. Also converts values to other types if specified.
+ * @param message Publishing
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.Publishing, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Publishing to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Publishing
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a JavaSettings. */
+ interface IJavaSettings {
+
+ /** JavaSettings libraryPackage */
+ libraryPackage?: (string|null);
+
+ /** JavaSettings serviceClassNames */
+ serviceClassNames?: ({ [k: string]: string }|null);
+
+ /** JavaSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a JavaSettings. */
+ class JavaSettings implements IJavaSettings {
+
+ /**
+ * Constructs a new JavaSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IJavaSettings);
+
+ /** JavaSettings libraryPackage. */
+ public libraryPackage: string;
+
+ /** JavaSettings serviceClassNames. */
+ public serviceClassNames: { [k: string]: string };
+
+ /** JavaSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new JavaSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns JavaSettings instance
+ */
+ public static create(properties?: google.api.IJavaSettings): google.api.JavaSettings;
+
+ /**
+ * Encodes the specified JavaSettings message. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
+ * @param message JavaSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IJavaSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified JavaSettings message, length delimited. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
+ * @param message JavaSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IJavaSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a JavaSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns JavaSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.JavaSettings;
+
+ /**
+ * Decodes a JavaSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns JavaSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.JavaSettings;
+
+ /**
+ * Verifies a JavaSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a JavaSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns JavaSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.JavaSettings;
+
+ /**
+ * Creates a plain object from a JavaSettings message. Also converts values to other types if specified.
+ * @param message JavaSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.JavaSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this JavaSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for JavaSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CppSettings. */
+ interface ICppSettings {
+
+ /** CppSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a CppSettings. */
+ class CppSettings implements ICppSettings {
+
+ /**
+ * Constructs a new CppSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ICppSettings);
+
+ /** CppSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new CppSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CppSettings instance
+ */
+ public static create(properties?: google.api.ICppSettings): google.api.CppSettings;
+
+ /**
+ * Encodes the specified CppSettings message. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
+ * @param message CppSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ICppSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CppSettings message, length delimited. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
+ * @param message CppSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ICppSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CppSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CppSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CppSettings;
+
+ /**
+ * Decodes a CppSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CppSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CppSettings;
+
+ /**
+ * Verifies a CppSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CppSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CppSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.CppSettings;
+
+ /**
+ * Creates a plain object from a CppSettings message. Also converts values to other types if specified.
+ * @param message CppSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.CppSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CppSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CppSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PhpSettings. */
+ interface IPhpSettings {
+
+ /** PhpSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a PhpSettings. */
+ class PhpSettings implements IPhpSettings {
+
+ /**
+ * Constructs a new PhpSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPhpSettings);
+
+ /** PhpSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new PhpSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PhpSettings instance
+ */
+ public static create(properties?: google.api.IPhpSettings): google.api.PhpSettings;
+
+ /**
+ * Encodes the specified PhpSettings message. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
+ * @param message PhpSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPhpSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PhpSettings message, length delimited. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
+ * @param message PhpSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPhpSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PhpSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PhpSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.PhpSettings;
+
+ /**
+ * Decodes a PhpSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PhpSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.PhpSettings;
+
+ /**
+ * Verifies a PhpSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PhpSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PhpSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.PhpSettings;
+
+ /**
+ * Creates a plain object from a PhpSettings message. Also converts values to other types if specified.
+ * @param message PhpSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.PhpSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PhpSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PhpSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a PythonSettings. */
+ interface IPythonSettings {
+
+ /** PythonSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+
+ /** PythonSettings experimentalFeatures */
+ experimentalFeatures?: (google.api.PythonSettings.IExperimentalFeatures|null);
+ }
+
+ /** Represents a PythonSettings. */
+ class PythonSettings implements IPythonSettings {
+
+ /**
+ * Constructs a new PythonSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IPythonSettings);
+
+ /** PythonSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /** PythonSettings experimentalFeatures. */
+ public experimentalFeatures?: (google.api.PythonSettings.IExperimentalFeatures|null);
+
+ /**
+ * Creates a new PythonSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns PythonSettings instance
+ */
+ public static create(properties?: google.api.IPythonSettings): google.api.PythonSettings;
+
+ /**
+ * Encodes the specified PythonSettings message. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
+ * @param message PythonSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IPythonSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified PythonSettings message, length delimited. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
+ * @param message PythonSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IPythonSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a PythonSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns PythonSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.PythonSettings;
+
+ /**
+ * Decodes a PythonSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns PythonSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.PythonSettings;
+
+ /**
+ * Verifies a PythonSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a PythonSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns PythonSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.PythonSettings;
+
+ /**
+ * Creates a plain object from a PythonSettings message. Also converts values to other types if specified.
+ * @param message PythonSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.PythonSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this PythonSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for PythonSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace PythonSettings {
+
+ /** Properties of an ExperimentalFeatures. */
+ interface IExperimentalFeatures {
+
+ /** ExperimentalFeatures restAsyncIoEnabled */
+ restAsyncIoEnabled?: (boolean|null);
+
+ /** ExperimentalFeatures protobufPythonicTypesEnabled */
+ protobufPythonicTypesEnabled?: (boolean|null);
+
+ /** ExperimentalFeatures unversionedPackageDisabled */
+ unversionedPackageDisabled?: (boolean|null);
+ }
+
+ /** Represents an ExperimentalFeatures. */
+ class ExperimentalFeatures implements IExperimentalFeatures {
+
+ /**
+ * Constructs a new ExperimentalFeatures.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.PythonSettings.IExperimentalFeatures);
+
+ /** ExperimentalFeatures restAsyncIoEnabled. */
+ public restAsyncIoEnabled: boolean;
+
+ /** ExperimentalFeatures protobufPythonicTypesEnabled. */
+ public protobufPythonicTypesEnabled: boolean;
+
+ /** ExperimentalFeatures unversionedPackageDisabled. */
+ public unversionedPackageDisabled: boolean;
+
+ /**
+ * Creates a new ExperimentalFeatures instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExperimentalFeatures instance
+ */
+ public static create(properties?: google.api.PythonSettings.IExperimentalFeatures): google.api.PythonSettings.ExperimentalFeatures;
+
+ /**
+ * Encodes the specified ExperimentalFeatures message. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
+ * @param message ExperimentalFeatures message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.PythonSettings.IExperimentalFeatures, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExperimentalFeatures message, length delimited. Does not implicitly {@link google.api.PythonSettings.ExperimentalFeatures.verify|verify} messages.
+ * @param message ExperimentalFeatures message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.PythonSettings.IExperimentalFeatures, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExperimentalFeatures message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExperimentalFeatures
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.PythonSettings.ExperimentalFeatures;
+
+ /**
+ * Decodes an ExperimentalFeatures message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExperimentalFeatures
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.PythonSettings.ExperimentalFeatures;
+
+ /**
+ * Verifies an ExperimentalFeatures message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExperimentalFeatures message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExperimentalFeatures
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.PythonSettings.ExperimentalFeatures;
+
+ /**
+ * Creates a plain object from an ExperimentalFeatures message. Also converts values to other types if specified.
+ * @param message ExperimentalFeatures
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.PythonSettings.ExperimentalFeatures, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExperimentalFeatures to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExperimentalFeatures
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a NodeSettings. */
+ interface INodeSettings {
+
+ /** NodeSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a NodeSettings. */
+ class NodeSettings implements INodeSettings {
+
+ /**
+ * Constructs a new NodeSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.INodeSettings);
+
+ /** NodeSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new NodeSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NodeSettings instance
+ */
+ public static create(properties?: google.api.INodeSettings): google.api.NodeSettings;
+
+ /**
+ * Encodes the specified NodeSettings message. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
+ * @param message NodeSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.INodeSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NodeSettings message, length delimited. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
+ * @param message NodeSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.INodeSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NodeSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NodeSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.NodeSettings;
+
+ /**
+ * Decodes a NodeSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NodeSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.NodeSettings;
+
+ /**
+ * Verifies a NodeSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NodeSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NodeSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.NodeSettings;
+
+ /**
+ * Creates a plain object from a NodeSettings message. Also converts values to other types if specified.
+ * @param message NodeSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.NodeSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NodeSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NodeSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DotnetSettings. */
+ interface IDotnetSettings {
+
+ /** DotnetSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+
+ /** DotnetSettings renamedServices */
+ renamedServices?: ({ [k: string]: string }|null);
+
+ /** DotnetSettings renamedResources */
+ renamedResources?: ({ [k: string]: string }|null);
+
+ /** DotnetSettings ignoredResources */
+ ignoredResources?: (string[]|null);
+
+ /** DotnetSettings forcedNamespaceAliases */
+ forcedNamespaceAliases?: (string[]|null);
+
+ /** DotnetSettings handwrittenSignatures */
+ handwrittenSignatures?: (string[]|null);
+ }
+
+ /** Represents a DotnetSettings. */
+ class DotnetSettings implements IDotnetSettings {
+
+ /**
+ * Constructs a new DotnetSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IDotnetSettings);
+
+ /** DotnetSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /** DotnetSettings renamedServices. */
+ public renamedServices: { [k: string]: string };
+
+ /** DotnetSettings renamedResources. */
+ public renamedResources: { [k: string]: string };
+
+ /** DotnetSettings ignoredResources. */
+ public ignoredResources: string[];
+
+ /** DotnetSettings forcedNamespaceAliases. */
+ public forcedNamespaceAliases: string[];
+
+ /** DotnetSettings handwrittenSignatures. */
+ public handwrittenSignatures: string[];
+
+ /**
+ * Creates a new DotnetSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DotnetSettings instance
+ */
+ public static create(properties?: google.api.IDotnetSettings): google.api.DotnetSettings;
+
+ /**
+ * Encodes the specified DotnetSettings message. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
+ * @param message DotnetSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IDotnetSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DotnetSettings message, length delimited. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
+ * @param message DotnetSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IDotnetSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DotnetSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DotnetSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.DotnetSettings;
+
+ /**
+ * Decodes a DotnetSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DotnetSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.DotnetSettings;
+
+ /**
+ * Verifies a DotnetSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DotnetSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DotnetSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.DotnetSettings;
+
+ /**
+ * Creates a plain object from a DotnetSettings message. Also converts values to other types if specified.
+ * @param message DotnetSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.DotnetSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DotnetSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DotnetSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a RubySettings. */
+ interface IRubySettings {
+
+ /** RubySettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+ }
+
+ /** Represents a RubySettings. */
+ class RubySettings implements IRubySettings {
+
+ /**
+ * Constructs a new RubySettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IRubySettings);
+
+ /** RubySettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /**
+ * Creates a new RubySettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns RubySettings instance
+ */
+ public static create(properties?: google.api.IRubySettings): google.api.RubySettings;
+
+ /**
+ * Encodes the specified RubySettings message. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
+ * @param message RubySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IRubySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified RubySettings message, length delimited. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
+ * @param message RubySettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IRubySettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a RubySettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns RubySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.RubySettings;
+
+ /**
+ * Decodes a RubySettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns RubySettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.RubySettings;
+
+ /**
+ * Verifies a RubySettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a RubySettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns RubySettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.RubySettings;
+
+ /**
+ * Creates a plain object from a RubySettings message. Also converts values to other types if specified.
+ * @param message RubySettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.RubySettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this RubySettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for RubySettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GoSettings. */
+ interface IGoSettings {
+
+ /** GoSettings common */
+ common?: (google.api.ICommonLanguageSettings|null);
+
+ /** GoSettings renamedServices */
+ renamedServices?: ({ [k: string]: string }|null);
+ }
+
+ /** Represents a GoSettings. */
+ class GoSettings implements IGoSettings {
+
+ /**
+ * Constructs a new GoSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IGoSettings);
+
+ /** GoSettings common. */
+ public common?: (google.api.ICommonLanguageSettings|null);
+
+ /** GoSettings renamedServices. */
+ public renamedServices: { [k: string]: string };
+
+ /**
+ * Creates a new GoSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GoSettings instance
+ */
+ public static create(properties?: google.api.IGoSettings): google.api.GoSettings;
+
+ /**
+ * Encodes the specified GoSettings message. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
+ * @param message GoSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IGoSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GoSettings message, length delimited. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
+ * @param message GoSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IGoSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GoSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GoSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.GoSettings;
+
+ /**
+ * Decodes a GoSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GoSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.GoSettings;
+
+ /**
+ * Verifies a GoSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GoSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GoSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.GoSettings;
+
+ /**
+ * Creates a plain object from a GoSettings message. Also converts values to other types if specified.
+ * @param message GoSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.GoSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GoSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GoSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodSettings. */
+ interface IMethodSettings {
+
+ /** MethodSettings selector */
+ selector?: (string|null);
+
+ /** MethodSettings longRunning */
+ longRunning?: (google.api.MethodSettings.ILongRunning|null);
+
+ /** MethodSettings autoPopulatedFields */
+ autoPopulatedFields?: (string[]|null);
+ }
+
+ /** Represents a MethodSettings. */
+ class MethodSettings implements IMethodSettings {
+
+ /**
+ * Constructs a new MethodSettings.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.IMethodSettings);
+
+ /** MethodSettings selector. */
+ public selector: string;
+
+ /** MethodSettings longRunning. */
+ public longRunning?: (google.api.MethodSettings.ILongRunning|null);
+
+ /** MethodSettings autoPopulatedFields. */
+ public autoPopulatedFields: string[];
+
+ /**
+ * Creates a new MethodSettings instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodSettings instance
+ */
+ public static create(properties?: google.api.IMethodSettings): google.api.MethodSettings;
+
+ /**
+ * Encodes the specified MethodSettings message. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
+ * @param message MethodSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.IMethodSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodSettings message, length delimited. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
+ * @param message MethodSettings message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.IMethodSettings, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodSettings message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.MethodSettings;
+
+ /**
+ * Decodes a MethodSettings message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodSettings
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.MethodSettings;
+
+ /**
+ * Verifies a MethodSettings message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodSettings message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodSettings
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.MethodSettings;
+
+ /**
+ * Creates a plain object from a MethodSettings message. Also converts values to other types if specified.
+ * @param message MethodSettings
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.MethodSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodSettings to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodSettings
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MethodSettings {
+
+ /** Properties of a LongRunning. */
+ interface ILongRunning {
+
+ /** LongRunning initialPollDelay */
+ initialPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning pollDelayMultiplier */
+ pollDelayMultiplier?: (number|null);
+
+ /** LongRunning maxPollDelay */
+ maxPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning totalPollTimeout */
+ totalPollTimeout?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a LongRunning. */
+ class LongRunning implements ILongRunning {
+
+ /**
+ * Constructs a new LongRunning.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.MethodSettings.ILongRunning);
+
+ /** LongRunning initialPollDelay. */
+ public initialPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning pollDelayMultiplier. */
+ public pollDelayMultiplier: number;
+
+ /** LongRunning maxPollDelay. */
+ public maxPollDelay?: (google.protobuf.IDuration|null);
+
+ /** LongRunning totalPollTimeout. */
+ public totalPollTimeout?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new LongRunning instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns LongRunning instance
+ */
+ public static create(properties?: google.api.MethodSettings.ILongRunning): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Encodes the specified LongRunning message. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
+ * @param message LongRunning message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.MethodSettings.ILongRunning, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified LongRunning message, length delimited. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
+ * @param message LongRunning message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.MethodSettings.ILongRunning, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a LongRunning message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns LongRunning
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Decodes a LongRunning message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns LongRunning
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Verifies a LongRunning message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a LongRunning message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns LongRunning
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.MethodSettings.LongRunning;
+
+ /**
+ * Creates a plain object from a LongRunning message. Also converts values to other types if specified.
+ * @param message LongRunning
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.MethodSettings.LongRunning, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this LongRunning to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for LongRunning
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** ClientLibraryOrganization enum. */
+ enum ClientLibraryOrganization {
+ CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0,
+ CLOUD = 1,
+ ADS = 2,
+ PHOTOS = 3,
+ STREET_VIEW = 4,
+ SHOPPING = 5,
+ GEO = 6,
+ GENERATIVE_AI = 7
+ }
+
+ /** ClientLibraryDestination enum. */
+ enum ClientLibraryDestination {
+ CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0,
+ GITHUB = 10,
+ PACKAGE_MANAGER = 20
+ }
+
+ /** Properties of a SelectiveGapicGeneration. */
+ interface ISelectiveGapicGeneration {
+
+ /** SelectiveGapicGeneration methods */
+ methods?: (string[]|null);
+
+ /** SelectiveGapicGeneration generateOmittedAsInternal */
+ generateOmittedAsInternal?: (boolean|null);
+ }
+
+ /** Represents a SelectiveGapicGeneration. */
+ class SelectiveGapicGeneration implements ISelectiveGapicGeneration {
+
+ /**
+ * Constructs a new SelectiveGapicGeneration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.api.ISelectiveGapicGeneration);
+
+ /** SelectiveGapicGeneration methods. */
+ public methods: string[];
+
+ /** SelectiveGapicGeneration generateOmittedAsInternal. */
+ public generateOmittedAsInternal: boolean;
+
+ /**
+ * Creates a new SelectiveGapicGeneration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SelectiveGapicGeneration instance
+ */
+ public static create(properties?: google.api.ISelectiveGapicGeneration): google.api.SelectiveGapicGeneration;
+
+ /**
+ * Encodes the specified SelectiveGapicGeneration message. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
+ * @param message SelectiveGapicGeneration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.api.ISelectiveGapicGeneration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SelectiveGapicGeneration message, length delimited. Does not implicitly {@link google.api.SelectiveGapicGeneration.verify|verify} messages.
+ * @param message SelectiveGapicGeneration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.api.ISelectiveGapicGeneration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SelectiveGapicGeneration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SelectiveGapicGeneration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.SelectiveGapicGeneration;
+
+ /**
+ * Decodes a SelectiveGapicGeneration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SelectiveGapicGeneration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.SelectiveGapicGeneration;
+
+ /**
+ * Verifies a SelectiveGapicGeneration message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SelectiveGapicGeneration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SelectiveGapicGeneration
+ */
+ public static fromObject(object: { [k: string]: any }): google.api.SelectiveGapicGeneration;
+
+ /**
+ * Creates a plain object from a SelectiveGapicGeneration message. Also converts values to other types if specified.
+ * @param message SelectiveGapicGeneration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.api.SelectiveGapicGeneration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SelectiveGapicGeneration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SelectiveGapicGeneration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** LaunchStage enum. */
+ enum LaunchStage {
+ LAUNCH_STAGE_UNSPECIFIED = 0,
+ UNIMPLEMENTED = 6,
+ PRELAUNCH = 7,
+ EARLY_ACCESS = 1,
+ ALPHA = 2,
+ BETA = 3,
+ GA = 4,
+ DEPRECATED = 5
+ }
+ }
+
+ /** Namespace protobuf. */
+ namespace protobuf {
+
+ /** Properties of a FileDescriptorSet. */
+ interface IFileDescriptorSet {
+
+ /** FileDescriptorSet file */
+ file?: (google.protobuf.IFileDescriptorProto[]|null);
+ }
+
+ /** Represents a FileDescriptorSet. */
+ class FileDescriptorSet implements IFileDescriptorSet {
+
+ /**
+ * Constructs a new FileDescriptorSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorSet);
+
+ /** FileDescriptorSet file. */
+ public file: google.protobuf.IFileDescriptorProto[];
+
+ /**
+ * Creates a new FileDescriptorSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorSet instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.
+ * @param message FileDescriptorSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Verifies a FileDescriptorSet message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
+
+ /**
+ * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.
+ * @param message FileDescriptorSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Edition enum. */
+ enum Edition {
+ EDITION_UNKNOWN = 0,
+ EDITION_LEGACY = 900,
+ EDITION_PROTO2 = 998,
+ EDITION_PROTO3 = 999,
+ EDITION_2023 = 1000,
+ EDITION_2024 = 1001,
+ EDITION_1_TEST_ONLY = 1,
+ EDITION_2_TEST_ONLY = 2,
+ EDITION_99997_TEST_ONLY = 99997,
+ EDITION_99998_TEST_ONLY = 99998,
+ EDITION_99999_TEST_ONLY = 99999,
+ EDITION_MAX = 2147483647
+ }
+
+ /** Properties of a FileDescriptorProto. */
+ interface IFileDescriptorProto {
+
+ /** FileDescriptorProto name */
+ name?: (string|null);
+
+ /** FileDescriptorProto package */
+ "package"?: (string|null);
+
+ /** FileDescriptorProto dependency */
+ dependency?: (string[]|null);
+
+ /** FileDescriptorProto publicDependency */
+ publicDependency?: (number[]|null);
+
+ /** FileDescriptorProto weakDependency */
+ weakDependency?: (number[]|null);
+
+ /** FileDescriptorProto optionDependency */
+ optionDependency?: (string[]|null);
+
+ /** FileDescriptorProto messageType */
+ messageType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** FileDescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** FileDescriptorProto service */
+ service?: (google.protobuf.IServiceDescriptorProto[]|null);
+
+ /** FileDescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** FileDescriptorProto options */
+ options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo */
+ sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax */
+ syntax?: (string|null);
+
+ /** FileDescriptorProto edition */
+ edition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+ }
+
+ /** Represents a FileDescriptorProto. */
+ class FileDescriptorProto implements IFileDescriptorProto {
+
+ /**
+ * Constructs a new FileDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileDescriptorProto);
+
+ /** FileDescriptorProto name. */
+ public name: string;
+
+ /** FileDescriptorProto package. */
+ public package: string;
+
+ /** FileDescriptorProto dependency. */
+ public dependency: string[];
+
+ /** FileDescriptorProto publicDependency. */
+ public publicDependency: number[];
+
+ /** FileDescriptorProto weakDependency. */
+ public weakDependency: number[];
+
+ /** FileDescriptorProto optionDependency. */
+ public optionDependency: string[];
+
+ /** FileDescriptorProto messageType. */
+ public messageType: google.protobuf.IDescriptorProto[];
+
+ /** FileDescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** FileDescriptorProto service. */
+ public service: google.protobuf.IServiceDescriptorProto[];
+
+ /** FileDescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** FileDescriptorProto options. */
+ public options?: (google.protobuf.IFileOptions|null);
+
+ /** FileDescriptorProto sourceCodeInfo. */
+ public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null);
+
+ /** FileDescriptorProto syntax. */
+ public syntax: string;
+
+ /** FileDescriptorProto edition. */
+ public edition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /**
+ * Creates a new FileDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages.
+ * @param message FileDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Verifies a FileDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
+
+ /**
+ * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified.
+ * @param message FileDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DescriptorProto. */
+ interface IDescriptorProto {
+
+ /** DescriptorProto name */
+ name?: (string|null);
+
+ /** DescriptorProto field */
+ field?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto extension */
+ extension?: (google.protobuf.IFieldDescriptorProto[]|null);
+
+ /** DescriptorProto nestedType */
+ nestedType?: (google.protobuf.IDescriptorProto[]|null);
+
+ /** DescriptorProto enumType */
+ enumType?: (google.protobuf.IEnumDescriptorProto[]|null);
+
+ /** DescriptorProto extensionRange */
+ extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null);
+
+ /** DescriptorProto oneofDecl */
+ oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null);
+
+ /** DescriptorProto options */
+ options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null);
+
+ /** DescriptorProto reservedName */
+ reservedName?: (string[]|null);
+
+ /** DescriptorProto visibility */
+ visibility?: (google.protobuf.SymbolVisibility|keyof typeof google.protobuf.SymbolVisibility|null);
+ }
+
+ /** Represents a DescriptorProto. */
+ class DescriptorProto implements IDescriptorProto {
+
+ /**
+ * Constructs a new DescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDescriptorProto);
+
+ /** DescriptorProto name. */
+ public name: string;
+
+ /** DescriptorProto field. */
+ public field: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto extension. */
+ public extension: google.protobuf.IFieldDescriptorProto[];
+
+ /** DescriptorProto nestedType. */
+ public nestedType: google.protobuf.IDescriptorProto[];
+
+ /** DescriptorProto enumType. */
+ public enumType: google.protobuf.IEnumDescriptorProto[];
+
+ /** DescriptorProto extensionRange. */
+ public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[];
+
+ /** DescriptorProto oneofDecl. */
+ public oneofDecl: google.protobuf.IOneofDescriptorProto[];
+
+ /** DescriptorProto options. */
+ public options?: (google.protobuf.IMessageOptions|null);
+
+ /** DescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.DescriptorProto.IReservedRange[];
+
+ /** DescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /** DescriptorProto visibility. */
+ public visibility: (google.protobuf.SymbolVisibility|keyof typeof google.protobuf.SymbolVisibility);
+
+ /**
+ * Creates a new DescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
+
+ /**
+ * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages.
+ * @param message DescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto;
+
+ /**
+ * Decodes a DescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto;
+
+ /**
+ * Verifies a DescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
+
+ /**
+ * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified.
+ * @param message DescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace DescriptorProto {
+
+ /** Properties of an ExtensionRange. */
+ interface IExtensionRange {
+
+ /** ExtensionRange start */
+ start?: (number|null);
+
+ /** ExtensionRange end */
+ end?: (number|null);
+
+ /** ExtensionRange options */
+ options?: (google.protobuf.IExtensionRangeOptions|null);
+ }
+
+ /** Represents an ExtensionRange. */
+ class ExtensionRange implements IExtensionRange {
+
+ /**
+ * Constructs a new ExtensionRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
+
+ /** ExtensionRange start. */
+ public start: number;
+
+ /** ExtensionRange end. */
+ public end: number;
+
+ /** ExtensionRange options. */
+ public options?: (google.protobuf.IExtensionRangeOptions|null);
+
+ /**
+ * Creates a new ExtensionRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages.
+ * @param message ExtensionRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Decodes an ExtensionRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Verifies an ExtensionRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
+
+ /**
+ * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified.
+ * @param message ExtensionRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ReservedRange. */
+ interface IReservedRange {
+
+ /** ReservedRange start */
+ start?: (number|null);
+
+ /** ReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents a ReservedRange. */
+ class ReservedRange implements IReservedRange {
+
+ /**
+ * Constructs a new ReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
+
+ /** ReservedRange start. */
+ public start: number;
+
+ /** ReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new ReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReservedRange instance
+ */
+ public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages.
+ * @param message ReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Decodes a ReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Verifies a ReservedRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
+
+ /**
+ * Creates a plain object from a ReservedRange message. Also converts values to other types if specified.
+ * @param message ReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an ExtensionRangeOptions. */
+ interface IExtensionRangeOptions {
+
+ /** ExtensionRangeOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** ExtensionRangeOptions declaration */
+ declaration?: (google.protobuf.ExtensionRangeOptions.IDeclaration[]|null);
+
+ /** ExtensionRangeOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** ExtensionRangeOptions verification */
+ verification?: (google.protobuf.ExtensionRangeOptions.VerificationState|keyof typeof google.protobuf.ExtensionRangeOptions.VerificationState|null);
+ }
+
+ /** Represents an ExtensionRangeOptions. */
+ class ExtensionRangeOptions implements IExtensionRangeOptions {
+
+ /**
+ * Constructs a new ExtensionRangeOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IExtensionRangeOptions);
+
+ /** ExtensionRangeOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /** ExtensionRangeOptions declaration. */
+ public declaration: google.protobuf.ExtensionRangeOptions.IDeclaration[];
+
+ /** ExtensionRangeOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** ExtensionRangeOptions verification. */
+ public verification: (google.protobuf.ExtensionRangeOptions.VerificationState|keyof typeof google.protobuf.ExtensionRangeOptions.VerificationState);
+
+ /**
+ * Creates a new ExtensionRangeOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ExtensionRangeOptions instance
+ */
+ public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages.
+ * @param message ExtensionRangeOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ExtensionRangeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ExtensionRangeOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Verifies an ExtensionRangeOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ExtensionRangeOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
+
+ /**
+ * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified.
+ * @param message ExtensionRangeOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ExtensionRangeOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ExtensionRangeOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace ExtensionRangeOptions {
+
+ /** Properties of a Declaration. */
+ interface IDeclaration {
+
+ /** Declaration number */
+ number?: (number|null);
+
+ /** Declaration fullName */
+ fullName?: (string|null);
+
+ /** Declaration type */
+ type?: (string|null);
+
+ /** Declaration reserved */
+ reserved?: (boolean|null);
+
+ /** Declaration repeated */
+ repeated?: (boolean|null);
+ }
+
+ /** Represents a Declaration. */
+ class Declaration implements IDeclaration {
+
+ /**
+ * Constructs a new Declaration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ExtensionRangeOptions.IDeclaration);
+
+ /** Declaration number. */
+ public number: number;
+
+ /** Declaration fullName. */
+ public fullName: string;
+
+ /** Declaration type. */
+ public type: string;
+
+ /** Declaration reserved. */
+ public reserved: boolean;
+
+ /** Declaration repeated. */
+ public repeated: boolean;
+
+ /**
+ * Creates a new Declaration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Declaration instance
+ */
+ public static create(properties?: google.protobuf.ExtensionRangeOptions.IDeclaration): google.protobuf.ExtensionRangeOptions.Declaration;
+
+ /**
+ * Encodes the specified Declaration message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages.
+ * @param message Declaration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ExtensionRangeOptions.IDeclaration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Declaration message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.Declaration.verify|verify} messages.
+ * @param message Declaration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ExtensionRangeOptions.IDeclaration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Declaration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Declaration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions.Declaration;
+
+ /**
+ * Decodes a Declaration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Declaration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions.Declaration;
+
+ /**
+ * Verifies a Declaration message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Declaration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Declaration
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions.Declaration;
+
+ /**
+ * Creates a plain object from a Declaration message. Also converts values to other types if specified.
+ * @param message Declaration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ExtensionRangeOptions.Declaration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Declaration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Declaration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** VerificationState enum. */
+ enum VerificationState {
+ DECLARATION = 0,
+ UNVERIFIED = 1
+ }
+ }
+
+ /** Properties of a FieldDescriptorProto. */
+ interface IFieldDescriptorProto {
+
+ /** FieldDescriptorProto name */
+ name?: (string|null);
+
+ /** FieldDescriptorProto number */
+ number?: (number|null);
+
+ /** FieldDescriptorProto label */
+ label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null);
+
+ /** FieldDescriptorProto type */
+ type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null);
+
+ /** FieldDescriptorProto typeName */
+ typeName?: (string|null);
+
+ /** FieldDescriptorProto extendee */
+ extendee?: (string|null);
+
+ /** FieldDescriptorProto defaultValue */
+ defaultValue?: (string|null);
+
+ /** FieldDescriptorProto oneofIndex */
+ oneofIndex?: (number|null);
+
+ /** FieldDescriptorProto jsonName */
+ jsonName?: (string|null);
+
+ /** FieldDescriptorProto options */
+ options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional */
+ proto3Optional?: (boolean|null);
+ }
+
+ /** Represents a FieldDescriptorProto. */
+ class FieldDescriptorProto implements IFieldDescriptorProto {
+
+ /**
+ * Constructs a new FieldDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldDescriptorProto);
+
+ /** FieldDescriptorProto name. */
+ public name: string;
+
+ /** FieldDescriptorProto number. */
+ public number: number;
+
+ /** FieldDescriptorProto label. */
+ public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label);
+
+ /** FieldDescriptorProto type. */
+ public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type);
+
+ /** FieldDescriptorProto typeName. */
+ public typeName: string;
+
+ /** FieldDescriptorProto extendee. */
+ public extendee: string;
+
+ /** FieldDescriptorProto defaultValue. */
+ public defaultValue: string;
+
+ /** FieldDescriptorProto oneofIndex. */
+ public oneofIndex: number;
+
+ /** FieldDescriptorProto jsonName. */
+ public jsonName: string;
+
+ /** FieldDescriptorProto options. */
+ public options?: (google.protobuf.IFieldOptions|null);
+
+ /** FieldDescriptorProto proto3Optional. */
+ public proto3Optional: boolean;
+
+ /**
+ * Creates a new FieldDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages.
+ * @param message FieldDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Verifies a FieldDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
+
+ /**
+ * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified.
+ * @param message FieldDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldDescriptorProto {
+
+ /** Type enum. */
+ enum Type {
+ TYPE_DOUBLE = 1,
+ TYPE_FLOAT = 2,
+ TYPE_INT64 = 3,
+ TYPE_UINT64 = 4,
+ TYPE_INT32 = 5,
+ TYPE_FIXED64 = 6,
+ TYPE_FIXED32 = 7,
+ TYPE_BOOL = 8,
+ TYPE_STRING = 9,
+ TYPE_GROUP = 10,
+ TYPE_MESSAGE = 11,
+ TYPE_BYTES = 12,
+ TYPE_UINT32 = 13,
+ TYPE_ENUM = 14,
+ TYPE_SFIXED32 = 15,
+ TYPE_SFIXED64 = 16,
+ TYPE_SINT32 = 17,
+ TYPE_SINT64 = 18
+ }
+
+ /** Label enum. */
+ enum Label {
+ LABEL_OPTIONAL = 1,
+ LABEL_REPEATED = 3,
+ LABEL_REQUIRED = 2
+ }
+ }
+
+ /** Properties of an OneofDescriptorProto. */
+ interface IOneofDescriptorProto {
+
+ /** OneofDescriptorProto name */
+ name?: (string|null);
+
+ /** OneofDescriptorProto options */
+ options?: (google.protobuf.IOneofOptions|null);
+ }
+
+ /** Represents an OneofDescriptorProto. */
+ class OneofDescriptorProto implements IOneofDescriptorProto {
+
+ /**
+ * Constructs a new OneofDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofDescriptorProto);
+
+ /** OneofDescriptorProto name. */
+ public name: string;
+
+ /** OneofDescriptorProto options. */
+ public options?: (google.protobuf.IOneofOptions|null);
+
+ /**
+ * Creates a new OneofDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages.
+ * @param message OneofDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Verifies an OneofDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
+
+ /**
+ * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified.
+ * @param message OneofDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumDescriptorProto. */
+ interface IEnumDescriptorProto {
+
+ /** EnumDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumDescriptorProto value */
+ value?: (google.protobuf.IEnumValueDescriptorProto[]|null);
+
+ /** EnumDescriptorProto options */
+ options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange */
+ reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null);
+
+ /** EnumDescriptorProto reservedName */
+ reservedName?: (string[]|null);
+
+ /** EnumDescriptorProto visibility */
+ visibility?: (google.protobuf.SymbolVisibility|keyof typeof google.protobuf.SymbolVisibility|null);
+ }
+
+ /** Represents an EnumDescriptorProto. */
+ class EnumDescriptorProto implements IEnumDescriptorProto {
+
+ /**
+ * Constructs a new EnumDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumDescriptorProto);
+
+ /** EnumDescriptorProto name. */
+ public name: string;
+
+ /** EnumDescriptorProto value. */
+ public value: google.protobuf.IEnumValueDescriptorProto[];
+
+ /** EnumDescriptorProto options. */
+ public options?: (google.protobuf.IEnumOptions|null);
+
+ /** EnumDescriptorProto reservedRange. */
+ public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[];
+
+ /** EnumDescriptorProto reservedName. */
+ public reservedName: string[];
+
+ /** EnumDescriptorProto visibility. */
+ public visibility: (google.protobuf.SymbolVisibility|keyof typeof google.protobuf.SymbolVisibility);
+
+ /**
+ * Creates a new EnumDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages.
+ * @param message EnumDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Verifies an EnumDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace EnumDescriptorProto {
+
+ /** Properties of an EnumReservedRange. */
+ interface IEnumReservedRange {
+
+ /** EnumReservedRange start */
+ start?: (number|null);
+
+ /** EnumReservedRange end */
+ end?: (number|null);
+ }
+
+ /** Represents an EnumReservedRange. */
+ class EnumReservedRange implements IEnumReservedRange {
+
+ /**
+ * Constructs a new EnumReservedRange.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
+
+ /** EnumReservedRange start. */
+ public start: number;
+
+ /** EnumReservedRange end. */
+ public end: number;
+
+ /**
+ * Creates a new EnumReservedRange instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumReservedRange instance
+ */
+ public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages.
+ * @param message EnumReservedRange message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumReservedRange
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Verifies an EnumReservedRange message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumReservedRange
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
+
+ /**
+ * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified.
+ * @param message EnumReservedRange
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumReservedRange to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumReservedRange
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an EnumValueDescriptorProto. */
+ interface IEnumValueDescriptorProto {
+
+ /** EnumValueDescriptorProto name */
+ name?: (string|null);
+
+ /** EnumValueDescriptorProto number */
+ number?: (number|null);
+
+ /** EnumValueDescriptorProto options */
+ options?: (google.protobuf.IEnumValueOptions|null);
+ }
+
+ /** Represents an EnumValueDescriptorProto. */
+ class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
+
+ /**
+ * Constructs a new EnumValueDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
+
+ /** EnumValueDescriptorProto name. */
+ public name: string;
+
+ /** EnumValueDescriptorProto number. */
+ public number: number;
+
+ /** EnumValueDescriptorProto options. */
+ public options?: (google.protobuf.IEnumValueOptions|null);
+
+ /**
+ * Creates a new EnumValueDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages.
+ * @param message EnumValueDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Verifies an EnumValueDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
+
+ /**
+ * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified.
+ * @param message EnumValueDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceDescriptorProto. */
+ interface IServiceDescriptorProto {
+
+ /** ServiceDescriptorProto name */
+ name?: (string|null);
+
+ /** ServiceDescriptorProto method */
+ method?: (google.protobuf.IMethodDescriptorProto[]|null);
+
+ /** ServiceDescriptorProto options */
+ options?: (google.protobuf.IServiceOptions|null);
+ }
+
+ /** Represents a ServiceDescriptorProto. */
+ class ServiceDescriptorProto implements IServiceDescriptorProto {
+
+ /**
+ * Constructs a new ServiceDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceDescriptorProto);
+
+ /** ServiceDescriptorProto name. */
+ public name: string;
+
+ /** ServiceDescriptorProto method. */
+ public method: google.protobuf.IMethodDescriptorProto[];
+
+ /** ServiceDescriptorProto options. */
+ public options?: (google.protobuf.IServiceOptions|null);
+
+ /**
+ * Creates a new ServiceDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages.
+ * @param message ServiceDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Verifies a ServiceDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
+
+ /**
+ * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified.
+ * @param message ServiceDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodDescriptorProto. */
+ interface IMethodDescriptorProto {
+
+ /** MethodDescriptorProto name */
+ name?: (string|null);
+
+ /** MethodDescriptorProto inputType */
+ inputType?: (string|null);
+
+ /** MethodDescriptorProto outputType */
+ outputType?: (string|null);
+
+ /** MethodDescriptorProto options */
+ options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming */
+ clientStreaming?: (boolean|null);
+
+ /** MethodDescriptorProto serverStreaming */
+ serverStreaming?: (boolean|null);
+ }
+
+ /** Represents a MethodDescriptorProto. */
+ class MethodDescriptorProto implements IMethodDescriptorProto {
+
+ /**
+ * Constructs a new MethodDescriptorProto.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodDescriptorProto);
+
+ /** MethodDescriptorProto name. */
+ public name: string;
+
+ /** MethodDescriptorProto inputType. */
+ public inputType: string;
+
+ /** MethodDescriptorProto outputType. */
+ public outputType: string;
+
+ /** MethodDescriptorProto options. */
+ public options?: (google.protobuf.IMethodOptions|null);
+
+ /** MethodDescriptorProto clientStreaming. */
+ public clientStreaming: boolean;
+
+ /** MethodDescriptorProto serverStreaming. */
+ public serverStreaming: boolean;
+
+ /**
+ * Creates a new MethodDescriptorProto instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodDescriptorProto instance
+ */
+ public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages.
+ * @param message MethodDescriptorProto message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodDescriptorProto
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Verifies a MethodDescriptorProto message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodDescriptorProto
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
+
+ /**
+ * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified.
+ * @param message MethodDescriptorProto
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodDescriptorProto to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodDescriptorProto
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FileOptions. */
+ interface IFileOptions {
+
+ /** FileOptions javaPackage */
+ javaPackage?: (string|null);
+
+ /** FileOptions javaOuterClassname */
+ javaOuterClassname?: (string|null);
+
+ /** FileOptions javaMultipleFiles */
+ javaMultipleFiles?: (boolean|null);
+
+ /** FileOptions javaGenerateEqualsAndHash */
+ javaGenerateEqualsAndHash?: (boolean|null);
+
+ /** FileOptions javaStringCheckUtf8 */
+ javaStringCheckUtf8?: (boolean|null);
+
+ /** FileOptions optimizeFor */
+ optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null);
+
+ /** FileOptions goPackage */
+ goPackage?: (string|null);
+
+ /** FileOptions ccGenericServices */
+ ccGenericServices?: (boolean|null);
+
+ /** FileOptions javaGenericServices */
+ javaGenericServices?: (boolean|null);
+
+ /** FileOptions pyGenericServices */
+ pyGenericServices?: (boolean|null);
+
+ /** FileOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FileOptions ccEnableArenas */
+ ccEnableArenas?: (boolean|null);
+
+ /** FileOptions objcClassPrefix */
+ objcClassPrefix?: (string|null);
+
+ /** FileOptions csharpNamespace */
+ csharpNamespace?: (string|null);
+
+ /** FileOptions swiftPrefix */
+ swiftPrefix?: (string|null);
+
+ /** FileOptions phpClassPrefix */
+ phpClassPrefix?: (string|null);
+
+ /** FileOptions phpNamespace */
+ phpNamespace?: (string|null);
+
+ /** FileOptions phpMetadataNamespace */
+ phpMetadataNamespace?: (string|null);
+
+ /** FileOptions rubyPackage */
+ rubyPackage?: (string|null);
+
+ /** FileOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** FileOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FileOptions .google.api.resourceDefinition */
+ ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null);
+ }
+
+ /** Represents a FileOptions. */
+ class FileOptions implements IFileOptions {
+
+ /**
+ * Constructs a new FileOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFileOptions);
+
+ /** FileOptions javaPackage. */
+ public javaPackage: string;
+
+ /** FileOptions javaOuterClassname. */
+ public javaOuterClassname: string;
+
+ /** FileOptions javaMultipleFiles. */
+ public javaMultipleFiles: boolean;
+
+ /** FileOptions javaGenerateEqualsAndHash. */
+ public javaGenerateEqualsAndHash: boolean;
+
+ /** FileOptions javaStringCheckUtf8. */
+ public javaStringCheckUtf8: boolean;
+
+ /** FileOptions optimizeFor. */
+ public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode);
+
+ /** FileOptions goPackage. */
+ public goPackage: string;
+
+ /** FileOptions ccGenericServices. */
+ public ccGenericServices: boolean;
+
+ /** FileOptions javaGenericServices. */
+ public javaGenericServices: boolean;
+
+ /** FileOptions pyGenericServices. */
+ public pyGenericServices: boolean;
+
+ /** FileOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FileOptions ccEnableArenas. */
+ public ccEnableArenas: boolean;
+
+ /** FileOptions objcClassPrefix. */
+ public objcClassPrefix: string;
+
+ /** FileOptions csharpNamespace. */
+ public csharpNamespace: string;
+
+ /** FileOptions swiftPrefix. */
+ public swiftPrefix: string;
+
+ /** FileOptions phpClassPrefix. */
+ public phpClassPrefix: string;
+
+ /** FileOptions phpNamespace. */
+ public phpNamespace: string;
+
+ /** FileOptions phpMetadataNamespace. */
+ public phpMetadataNamespace: string;
+
+ /** FileOptions rubyPackage. */
+ public rubyPackage: string;
+
+ /** FileOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** FileOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FileOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FileOptions instance
+ */
+ public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
+
+ /**
+ * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages.
+ * @param message FileOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FileOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions;
+
+ /**
+ * Decodes a FileOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FileOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions;
+
+ /**
+ * Verifies a FileOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FileOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FileOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
+
+ /**
+ * Creates a plain object from a FileOptions message. Also converts values to other types if specified.
+ * @param message FileOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FileOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FileOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FileOptions {
+
+ /** OptimizeMode enum. */
+ enum OptimizeMode {
+ SPEED = 1,
+ CODE_SIZE = 2,
+ LITE_RUNTIME = 3
+ }
+ }
+
+ /** Properties of a MessageOptions. */
+ interface IMessageOptions {
+
+ /** MessageOptions messageSetWireFormat */
+ messageSetWireFormat?: (boolean|null);
+
+ /** MessageOptions noStandardDescriptorAccessor */
+ noStandardDescriptorAccessor?: (boolean|null);
+
+ /** MessageOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MessageOptions mapEntry */
+ mapEntry?: (boolean|null);
+
+ /** MessageOptions deprecatedLegacyJsonFieldConflicts */
+ deprecatedLegacyJsonFieldConflicts?: (boolean|null);
+
+ /** MessageOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** MessageOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MessageOptions .google.api.resource */
+ ".google.api.resource"?: (google.api.IResourceDescriptor|null);
+ }
+
+ /** Represents a MessageOptions. */
+ class MessageOptions implements IMessageOptions {
+
+ /**
+ * Constructs a new MessageOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMessageOptions);
+
+ /** MessageOptions messageSetWireFormat. */
+ public messageSetWireFormat: boolean;
+
+ /** MessageOptions noStandardDescriptorAccessor. */
+ public noStandardDescriptorAccessor: boolean;
+
+ /** MessageOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MessageOptions mapEntry. */
+ public mapEntry: boolean;
+
+ /** MessageOptions deprecatedLegacyJsonFieldConflicts. */
+ public deprecatedLegacyJsonFieldConflicts: boolean;
+
+ /** MessageOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** MessageOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MessageOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MessageOptions instance
+ */
+ public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
+
+ /**
+ * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages.
+ * @param message MessageOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MessageOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions;
+
+ /**
+ * Decodes a MessageOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MessageOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions;
+
+ /**
+ * Verifies a MessageOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MessageOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
+
+ /**
+ * Creates a plain object from a MessageOptions message. Also converts values to other types if specified.
+ * @param message MessageOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MessageOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MessageOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldOptions. */
+ interface IFieldOptions {
+
+ /** FieldOptions ctype */
+ ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null);
+
+ /** FieldOptions packed */
+ packed?: (boolean|null);
+
+ /** FieldOptions jstype */
+ jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null);
+
+ /** FieldOptions lazy */
+ lazy?: (boolean|null);
+
+ /** FieldOptions unverifiedLazy */
+ unverifiedLazy?: (boolean|null);
+
+ /** FieldOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** FieldOptions weak */
+ weak?: (boolean|null);
+
+ /** FieldOptions debugRedact */
+ debugRedact?: (boolean|null);
+
+ /** FieldOptions retention */
+ retention?: (google.protobuf.FieldOptions.OptionRetention|keyof typeof google.protobuf.FieldOptions.OptionRetention|null);
+
+ /** FieldOptions targets */
+ targets?: (google.protobuf.FieldOptions.OptionTargetType[]|null);
+
+ /** FieldOptions editionDefaults */
+ editionDefaults?: (google.protobuf.FieldOptions.IEditionDefault[]|null);
+
+ /** FieldOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** FieldOptions featureSupport */
+ featureSupport?: (google.protobuf.FieldOptions.IFeatureSupport|null);
+
+ /** FieldOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** FieldOptions .google.api.fieldBehavior */
+ ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
+
+ /** FieldOptions .google.api.fieldInfo */
+ ".google.api.fieldInfo"?: (google.api.IFieldInfo|null);
+
+ /** FieldOptions .google.api.resourceReference */
+ ".google.api.resourceReference"?: (google.api.IResourceReference|null);
+ }
+
+ /** Represents a FieldOptions. */
+ class FieldOptions implements IFieldOptions {
+
+ /**
+ * Constructs a new FieldOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldOptions);
+
+ /** FieldOptions ctype. */
+ public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType);
+
+ /** FieldOptions packed. */
+ public packed: boolean;
+
+ /** FieldOptions jstype. */
+ public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType);
+
+ /** FieldOptions lazy. */
+ public lazy: boolean;
+
+ /** FieldOptions unverifiedLazy. */
+ public unverifiedLazy: boolean;
+
+ /** FieldOptions deprecated. */
+ public deprecated: boolean;
+
+ /** FieldOptions weak. */
+ public weak: boolean;
+
+ /** FieldOptions debugRedact. */
+ public debugRedact: boolean;
+
+ /** FieldOptions retention. */
+ public retention: (google.protobuf.FieldOptions.OptionRetention|keyof typeof google.protobuf.FieldOptions.OptionRetention);
+
+ /** FieldOptions targets. */
+ public targets: google.protobuf.FieldOptions.OptionTargetType[];
+
+ /** FieldOptions editionDefaults. */
+ public editionDefaults: google.protobuf.FieldOptions.IEditionDefault[];
+
+ /** FieldOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** FieldOptions featureSupport. */
+ public featureSupport?: (google.protobuf.FieldOptions.IFeatureSupport|null);
+
+ /** FieldOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new FieldOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldOptions instance
+ */
+ public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
+
+ /**
+ * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages.
+ * @param message FieldOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
+
+ /**
+ * Decodes a FieldOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
+
+ /**
+ * Verifies a FieldOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
+
+ /**
+ * Creates a plain object from a FieldOptions message. Also converts values to other types if specified.
+ * @param message FieldOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FieldOptions {
+
+ /** CType enum. */
+ enum CType {
+ STRING = 0,
+ CORD = 1,
+ STRING_PIECE = 2
+ }
+
+ /** JSType enum. */
+ enum JSType {
+ JS_NORMAL = 0,
+ JS_STRING = 1,
+ JS_NUMBER = 2
+ }
+
+ /** OptionRetention enum. */
+ enum OptionRetention {
+ RETENTION_UNKNOWN = 0,
+ RETENTION_RUNTIME = 1,
+ RETENTION_SOURCE = 2
+ }
+
+ /** OptionTargetType enum. */
+ enum OptionTargetType {
+ TARGET_TYPE_UNKNOWN = 0,
+ TARGET_TYPE_FILE = 1,
+ TARGET_TYPE_EXTENSION_RANGE = 2,
+ TARGET_TYPE_MESSAGE = 3,
+ TARGET_TYPE_FIELD = 4,
+ TARGET_TYPE_ONEOF = 5,
+ TARGET_TYPE_ENUM = 6,
+ TARGET_TYPE_ENUM_ENTRY = 7,
+ TARGET_TYPE_SERVICE = 8,
+ TARGET_TYPE_METHOD = 9
+ }
+
+ /** Properties of an EditionDefault. */
+ interface IEditionDefault {
+
+ /** EditionDefault edition */
+ edition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+
+ /** EditionDefault value */
+ value?: (string|null);
+ }
+
+ /** Represents an EditionDefault. */
+ class EditionDefault implements IEditionDefault {
+
+ /**
+ * Constructs a new EditionDefault.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.FieldOptions.IEditionDefault);
+
+ /** EditionDefault edition. */
+ public edition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /** EditionDefault value. */
+ public value: string;
+
+ /**
+ * Creates a new EditionDefault instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EditionDefault instance
+ */
+ public static create(properties?: google.protobuf.FieldOptions.IEditionDefault): google.protobuf.FieldOptions.EditionDefault;
+
+ /**
+ * Encodes the specified EditionDefault message. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages.
+ * @param message EditionDefault message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.FieldOptions.IEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.EditionDefault.verify|verify} messages.
+ * @param message EditionDefault message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.FieldOptions.IEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EditionDefault message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EditionDefault
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions.EditionDefault;
+
+ /**
+ * Decodes an EditionDefault message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EditionDefault
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions.EditionDefault;
+
+ /**
+ * Verifies an EditionDefault message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EditionDefault message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EditionDefault
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions.EditionDefault;
+
+ /**
+ * Creates a plain object from an EditionDefault message. Also converts values to other types if specified.
+ * @param message EditionDefault
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions.EditionDefault, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EditionDefault to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EditionDefault
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FeatureSupport. */
+ interface IFeatureSupport {
+
+ /** FeatureSupport editionIntroduced */
+ editionIntroduced?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+
+ /** FeatureSupport editionDeprecated */
+ editionDeprecated?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+
+ /** FeatureSupport deprecationWarning */
+ deprecationWarning?: (string|null);
+
+ /** FeatureSupport editionRemoved */
+ editionRemoved?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+ }
+
+ /** Represents a FeatureSupport. */
+ class FeatureSupport implements IFeatureSupport {
+
+ /**
+ * Constructs a new FeatureSupport.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.FieldOptions.IFeatureSupport);
+
+ /** FeatureSupport editionIntroduced. */
+ public editionIntroduced: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /** FeatureSupport editionDeprecated. */
+ public editionDeprecated: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /** FeatureSupport deprecationWarning. */
+ public deprecationWarning: string;
+
+ /** FeatureSupport editionRemoved. */
+ public editionRemoved: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /**
+ * Creates a new FeatureSupport instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FeatureSupport instance
+ */
+ public static create(properties?: google.protobuf.FieldOptions.IFeatureSupport): google.protobuf.FieldOptions.FeatureSupport;
+
+ /**
+ * Encodes the specified FeatureSupport message. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages.
+ * @param message FeatureSupport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.FieldOptions.IFeatureSupport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FeatureSupport message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.FeatureSupport.verify|verify} messages.
+ * @param message FeatureSupport message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.FieldOptions.IFeatureSupport, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FeatureSupport message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FeatureSupport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions.FeatureSupport;
+
+ /**
+ * Decodes a FeatureSupport message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FeatureSupport
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions.FeatureSupport;
+
+ /**
+ * Verifies a FeatureSupport message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FeatureSupport message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FeatureSupport
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions.FeatureSupport;
+
+ /**
+ * Creates a plain object from a FeatureSupport message. Also converts values to other types if specified.
+ * @param message FeatureSupport
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldOptions.FeatureSupport, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FeatureSupport to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FeatureSupport
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of an OneofOptions. */
+ interface IOneofOptions {
+
+ /** OneofOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** OneofOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an OneofOptions. */
+ class OneofOptions implements IOneofOptions {
+
+ /**
+ * Constructs a new OneofOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IOneofOptions);
+
+ /** OneofOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** OneofOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new OneofOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OneofOptions instance
+ */
+ public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
+
+ /**
+ * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages.
+ * @param message OneofOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions;
+
+ /**
+ * Decodes an OneofOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OneofOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions;
+
+ /**
+ * Verifies an OneofOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OneofOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
+
+ /**
+ * Creates a plain object from an OneofOptions message. Also converts values to other types if specified.
+ * @param message OneofOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OneofOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OneofOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumOptions. */
+ interface IEnumOptions {
+
+ /** EnumOptions allowAlias */
+ allowAlias?: (boolean|null);
+
+ /** EnumOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumOptions deprecatedLegacyJsonFieldConflicts */
+ deprecatedLegacyJsonFieldConflicts?: (boolean|null);
+
+ /** EnumOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumOptions. */
+ class EnumOptions implements IEnumOptions {
+
+ /**
+ * Constructs a new EnumOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumOptions);
+
+ /** EnumOptions allowAlias. */
+ public allowAlias: boolean;
+
+ /** EnumOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumOptions deprecatedLegacyJsonFieldConflicts. */
+ public deprecatedLegacyJsonFieldConflicts: boolean;
+
+ /** EnumOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
+
+ /**
+ * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages.
+ * @param message EnumOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions;
+
+ /**
+ * Decodes an EnumOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions;
+
+ /**
+ * Verifies an EnumOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
+
+ /**
+ * Creates a plain object from an EnumOptions message. Also converts values to other types if specified.
+ * @param message EnumOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an EnumValueOptions. */
+ interface IEnumValueOptions {
+
+ /** EnumValueOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** EnumValueOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumValueOptions debugRedact */
+ debugRedact?: (boolean|null);
+
+ /** EnumValueOptions featureSupport */
+ featureSupport?: (google.protobuf.FieldOptions.IFeatureSupport|null);
+
+ /** EnumValueOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+ }
+
+ /** Represents an EnumValueOptions. */
+ class EnumValueOptions implements IEnumValueOptions {
+
+ /**
+ * Constructs a new EnumValueOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEnumValueOptions);
+
+ /** EnumValueOptions deprecated. */
+ public deprecated: boolean;
+
+ /** EnumValueOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** EnumValueOptions debugRedact. */
+ public debugRedact: boolean;
+
+ /** EnumValueOptions featureSupport. */
+ public featureSupport?: (google.protobuf.FieldOptions.IFeatureSupport|null);
+
+ /** EnumValueOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new EnumValueOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns EnumValueOptions instance
+ */
+ public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
+
+ /**
+ * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages.
+ * @param message EnumValueOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions;
+
+ /**
+ * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns EnumValueOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions;
+
+ /**
+ * Verifies an EnumValueOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns EnumValueOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
+
+ /**
+ * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified.
+ * @param message EnumValueOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this EnumValueOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for EnumValueOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ServiceOptions. */
+ interface IServiceOptions {
+
+ /** ServiceOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** ServiceOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** ServiceOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** ServiceOptions .google.api.defaultHost */
+ ".google.api.defaultHost"?: (string|null);
+
+ /** ServiceOptions .google.api.oauthScopes */
+ ".google.api.oauthScopes"?: (string|null);
+
+ /** ServiceOptions .google.api.apiVersion */
+ ".google.api.apiVersion"?: (string|null);
+ }
+
+ /** Represents a ServiceOptions. */
+ class ServiceOptions implements IServiceOptions {
+
+ /**
+ * Constructs a new ServiceOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IServiceOptions);
+
+ /** ServiceOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** ServiceOptions deprecated. */
+ public deprecated: boolean;
+
+ /** ServiceOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new ServiceOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ServiceOptions instance
+ */
+ public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
+
+ /**
+ * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages.
+ * @param message ServiceOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ServiceOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions;
+
+ /**
+ * Decodes a ServiceOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ServiceOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions;
+
+ /**
+ * Verifies a ServiceOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ServiceOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
+
+ /**
+ * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified.
+ * @param message ServiceOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ServiceOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ServiceOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a MethodOptions. */
+ interface IMethodOptions {
+
+ /** MethodOptions deprecated */
+ deprecated?: (boolean|null);
+
+ /** MethodOptions idempotencyLevel */
+ idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null);
+
+ /** MethodOptions features */
+ features?: (google.protobuf.IFeatureSet|null);
+
+ /** MethodOptions uninterpretedOption */
+ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
+
+ /** MethodOptions .google.api.http */
+ ".google.api.http"?: (google.api.IHttpRule|null);
+
+ /** MethodOptions .google.api.methodSignature */
+ ".google.api.methodSignature"?: (string[]|null);
+
+ /** MethodOptions .google.longrunning.operationInfo */
+ ".google.longrunning.operationInfo"?: (google.longrunning.IOperationInfo|null);
+ }
+
+ /** Represents a MethodOptions. */
+ class MethodOptions implements IMethodOptions {
+
+ /**
+ * Constructs a new MethodOptions.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IMethodOptions);
+
+ /** MethodOptions deprecated. */
+ public deprecated: boolean;
+
+ /** MethodOptions idempotencyLevel. */
+ public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel);
+
+ /** MethodOptions features. */
+ public features?: (google.protobuf.IFeatureSet|null);
+
+ /** MethodOptions uninterpretedOption. */
+ public uninterpretedOption: google.protobuf.IUninterpretedOption[];
+
+ /**
+ * Creates a new MethodOptions instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns MethodOptions instance
+ */
+ public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
+
+ /**
+ * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages.
+ * @param message MethodOptions message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions;
+
+ /**
+ * Decodes a MethodOptions message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns MethodOptions
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions;
+
+ /**
+ * Verifies a MethodOptions message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns MethodOptions
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
+
+ /**
+ * Creates a plain object from a MethodOptions message. Also converts values to other types if specified.
+ * @param message MethodOptions
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this MethodOptions to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for MethodOptions
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace MethodOptions {
+
+ /** IdempotencyLevel enum. */
+ enum IdempotencyLevel {
+ IDEMPOTENCY_UNKNOWN = 0,
+ NO_SIDE_EFFECTS = 1,
+ IDEMPOTENT = 2
+ }
+ }
+
+ /** Properties of an UninterpretedOption. */
+ interface IUninterpretedOption {
+
+ /** UninterpretedOption name */
+ name?: (google.protobuf.UninterpretedOption.INamePart[]|null);
+
+ /** UninterpretedOption identifierValue */
+ identifierValue?: (string|null);
+
+ /** UninterpretedOption positiveIntValue */
+ positiveIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption negativeIntValue */
+ negativeIntValue?: (number|Long|string|null);
+
+ /** UninterpretedOption doubleValue */
+ doubleValue?: (number|null);
+
+ /** UninterpretedOption stringValue */
+ stringValue?: (Uint8Array|Buffer|string|null);
+
+ /** UninterpretedOption aggregateValue */
+ aggregateValue?: (string|null);
+ }
+
+ /** Represents an UninterpretedOption. */
+ class UninterpretedOption implements IUninterpretedOption {
+
+ /**
+ * Constructs a new UninterpretedOption.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IUninterpretedOption);
+
+ /** UninterpretedOption name. */
+ public name: google.protobuf.UninterpretedOption.INamePart[];
+
+ /** UninterpretedOption identifierValue. */
+ public identifierValue: string;
+
+ /** UninterpretedOption positiveIntValue. */
+ public positiveIntValue: (number|Long|string);
+
+ /** UninterpretedOption negativeIntValue. */
+ public negativeIntValue: (number|Long|string);
+
+ /** UninterpretedOption doubleValue. */
+ public doubleValue: number;
+
+ /** UninterpretedOption stringValue. */
+ public stringValue: (Uint8Array|Buffer|string);
+
+ /** UninterpretedOption aggregateValue. */
+ public aggregateValue: string;
+
+ /**
+ * Creates a new UninterpretedOption instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns UninterpretedOption instance
+ */
+ public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
+
+ /**
+ * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages.
+ * @param message UninterpretedOption message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption;
+
+ /**
+ * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns UninterpretedOption
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption;
+
+ /**
+ * Verifies an UninterpretedOption message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns UninterpretedOption
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
+
+ /**
+ * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified.
+ * @param message UninterpretedOption
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this UninterpretedOption to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for UninterpretedOption
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace UninterpretedOption {
+
+ /** Properties of a NamePart. */
+ interface INamePart {
+
+ /** NamePart namePart */
+ namePart: string;
+
+ /** NamePart isExtension */
+ isExtension: boolean;
+ }
+
+ /** Represents a NamePart. */
+ class NamePart implements INamePart {
+
+ /**
+ * Constructs a new NamePart.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
+
+ /** NamePart namePart. */
+ public namePart: string;
+
+ /** NamePart isExtension. */
+ public isExtension: boolean;
+
+ /**
+ * Creates a new NamePart instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns NamePart instance
+ */
+ public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages.
+ * @param message NamePart message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Decodes a NamePart message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns NamePart
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Verifies a NamePart message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a NamePart message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns NamePart
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
+
+ /**
+ * Creates a plain object from a NamePart message. Also converts values to other types if specified.
+ * @param message NamePart
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this NamePart to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for NamePart
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a FeatureSet. */
+ interface IFeatureSet {
+
+ /** FeatureSet fieldPresence */
+ fieldPresence?: (google.protobuf.FeatureSet.FieldPresence|keyof typeof google.protobuf.FeatureSet.FieldPresence|null);
+
+ /** FeatureSet enumType */
+ enumType?: (google.protobuf.FeatureSet.EnumType|keyof typeof google.protobuf.FeatureSet.EnumType|null);
+
+ /** FeatureSet repeatedFieldEncoding */
+ repeatedFieldEncoding?: (google.protobuf.FeatureSet.RepeatedFieldEncoding|keyof typeof google.protobuf.FeatureSet.RepeatedFieldEncoding|null);
+
+ /** FeatureSet utf8Validation */
+ utf8Validation?: (google.protobuf.FeatureSet.Utf8Validation|keyof typeof google.protobuf.FeatureSet.Utf8Validation|null);
+
+ /** FeatureSet messageEncoding */
+ messageEncoding?: (google.protobuf.FeatureSet.MessageEncoding|keyof typeof google.protobuf.FeatureSet.MessageEncoding|null);
+
+ /** FeatureSet jsonFormat */
+ jsonFormat?: (google.protobuf.FeatureSet.JsonFormat|keyof typeof google.protobuf.FeatureSet.JsonFormat|null);
+
+ /** FeatureSet enforceNamingStyle */
+ enforceNamingStyle?: (google.protobuf.FeatureSet.EnforceNamingStyle|keyof typeof google.protobuf.FeatureSet.EnforceNamingStyle|null);
+
+ /** FeatureSet defaultSymbolVisibility */
+ defaultSymbolVisibility?: (google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility|keyof typeof google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility|null);
+ }
+
+ /** Represents a FeatureSet. */
+ class FeatureSet implements IFeatureSet {
+
+ /**
+ * Constructs a new FeatureSet.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFeatureSet);
+
+ /** FeatureSet fieldPresence. */
+ public fieldPresence: (google.protobuf.FeatureSet.FieldPresence|keyof typeof google.protobuf.FeatureSet.FieldPresence);
+
+ /** FeatureSet enumType. */
+ public enumType: (google.protobuf.FeatureSet.EnumType|keyof typeof google.protobuf.FeatureSet.EnumType);
+
+ /** FeatureSet repeatedFieldEncoding. */
+ public repeatedFieldEncoding: (google.protobuf.FeatureSet.RepeatedFieldEncoding|keyof typeof google.protobuf.FeatureSet.RepeatedFieldEncoding);
+
+ /** FeatureSet utf8Validation. */
+ public utf8Validation: (google.protobuf.FeatureSet.Utf8Validation|keyof typeof google.protobuf.FeatureSet.Utf8Validation);
+
+ /** FeatureSet messageEncoding. */
+ public messageEncoding: (google.protobuf.FeatureSet.MessageEncoding|keyof typeof google.protobuf.FeatureSet.MessageEncoding);
+
+ /** FeatureSet jsonFormat. */
+ public jsonFormat: (google.protobuf.FeatureSet.JsonFormat|keyof typeof google.protobuf.FeatureSet.JsonFormat);
+
+ /** FeatureSet enforceNamingStyle. */
+ public enforceNamingStyle: (google.protobuf.FeatureSet.EnforceNamingStyle|keyof typeof google.protobuf.FeatureSet.EnforceNamingStyle);
+
+ /** FeatureSet defaultSymbolVisibility. */
+ public defaultSymbolVisibility: (google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility|keyof typeof google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility);
+
+ /**
+ * Creates a new FeatureSet instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FeatureSet instance
+ */
+ public static create(properties?: google.protobuf.IFeatureSet): google.protobuf.FeatureSet;
+
+ /**
+ * Encodes the specified FeatureSet message. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages.
+ * @param message FeatureSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFeatureSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FeatureSet message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.verify|verify} messages.
+ * @param message FeatureSet message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFeatureSet, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FeatureSet message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FeatureSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FeatureSet;
+
+ /**
+ * Decodes a FeatureSet message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FeatureSet
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FeatureSet;
+
+ /**
+ * Verifies a FeatureSet message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FeatureSet message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FeatureSet
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSet;
+
+ /**
+ * Creates a plain object from a FeatureSet message. Also converts values to other types if specified.
+ * @param message FeatureSet
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FeatureSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FeatureSet to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FeatureSet
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FeatureSet {
+
+ /** FieldPresence enum. */
+ enum FieldPresence {
+ FIELD_PRESENCE_UNKNOWN = 0,
+ EXPLICIT = 1,
+ IMPLICIT = 2,
+ LEGACY_REQUIRED = 3
+ }
+
+ /** EnumType enum. */
+ enum EnumType {
+ ENUM_TYPE_UNKNOWN = 0,
+ OPEN = 1,
+ CLOSED = 2
+ }
+
+ /** RepeatedFieldEncoding enum. */
+ enum RepeatedFieldEncoding {
+ REPEATED_FIELD_ENCODING_UNKNOWN = 0,
+ PACKED = 1,
+ EXPANDED = 2
+ }
+
+ /** Utf8Validation enum. */
+ enum Utf8Validation {
+ UTF8_VALIDATION_UNKNOWN = 0,
+ VERIFY = 2,
+ NONE = 3
+ }
+
+ /** MessageEncoding enum. */
+ enum MessageEncoding {
+ MESSAGE_ENCODING_UNKNOWN = 0,
+ LENGTH_PREFIXED = 1,
+ DELIMITED = 2
+ }
+
+ /** JsonFormat enum. */
+ enum JsonFormat {
+ JSON_FORMAT_UNKNOWN = 0,
+ ALLOW = 1,
+ LEGACY_BEST_EFFORT = 2
+ }
+
+ /** EnforceNamingStyle enum. */
+ enum EnforceNamingStyle {
+ ENFORCE_NAMING_STYLE_UNKNOWN = 0,
+ STYLE2024 = 1,
+ STYLE_LEGACY = 2
+ }
+
+ /** Properties of a VisibilityFeature. */
+ interface IVisibilityFeature {
+ }
+
+ /** Represents a VisibilityFeature. */
+ class VisibilityFeature implements IVisibilityFeature {
+
+ /**
+ * Constructs a new VisibilityFeature.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.FeatureSet.IVisibilityFeature);
+
+ /**
+ * Creates a new VisibilityFeature instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns VisibilityFeature instance
+ */
+ public static create(properties?: google.protobuf.FeatureSet.IVisibilityFeature): google.protobuf.FeatureSet.VisibilityFeature;
+
+ /**
+ * Encodes the specified VisibilityFeature message. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages.
+ * @param message VisibilityFeature message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.FeatureSet.IVisibilityFeature, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified VisibilityFeature message, length delimited. Does not implicitly {@link google.protobuf.FeatureSet.VisibilityFeature.verify|verify} messages.
+ * @param message VisibilityFeature message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.FeatureSet.IVisibilityFeature, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a VisibilityFeature message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns VisibilityFeature
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FeatureSet.VisibilityFeature;
+
+ /**
+ * Decodes a VisibilityFeature message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns VisibilityFeature
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FeatureSet.VisibilityFeature;
+
+ /**
+ * Verifies a VisibilityFeature message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a VisibilityFeature message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns VisibilityFeature
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSet.VisibilityFeature;
+
+ /**
+ * Creates a plain object from a VisibilityFeature message. Also converts values to other types if specified.
+ * @param message VisibilityFeature
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FeatureSet.VisibilityFeature, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this VisibilityFeature to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for VisibilityFeature
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace VisibilityFeature {
+
+ /** DefaultSymbolVisibility enum. */
+ enum DefaultSymbolVisibility {
+ DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0,
+ EXPORT_ALL = 1,
+ EXPORT_TOP_LEVEL = 2,
+ LOCAL_ALL = 3,
+ STRICT = 4
+ }
+ }
+ }
+
+ /** Properties of a FeatureSetDefaults. */
+ interface IFeatureSetDefaults {
+
+ /** FeatureSetDefaults defaults */
+ defaults?: (google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault[]|null);
+
+ /** FeatureSetDefaults minimumEdition */
+ minimumEdition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+
+ /** FeatureSetDefaults maximumEdition */
+ maximumEdition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+ }
+
+ /** Represents a FeatureSetDefaults. */
+ class FeatureSetDefaults implements IFeatureSetDefaults {
+
+ /**
+ * Constructs a new FeatureSetDefaults.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFeatureSetDefaults);
+
+ /** FeatureSetDefaults defaults. */
+ public defaults: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault[];
+
+ /** FeatureSetDefaults minimumEdition. */
+ public minimumEdition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /** FeatureSetDefaults maximumEdition. */
+ public maximumEdition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /**
+ * Creates a new FeatureSetDefaults instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FeatureSetDefaults instance
+ */
+ public static create(properties?: google.protobuf.IFeatureSetDefaults): google.protobuf.FeatureSetDefaults;
+
+ /**
+ * Encodes the specified FeatureSetDefaults message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages.
+ * @param message FeatureSetDefaults message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFeatureSetDefaults, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FeatureSetDefaults message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.verify|verify} messages.
+ * @param message FeatureSetDefaults message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFeatureSetDefaults, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FeatureSetDefaults message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FeatureSetDefaults
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FeatureSetDefaults;
+
+ /**
+ * Decodes a FeatureSetDefaults message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FeatureSetDefaults
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FeatureSetDefaults;
+
+ /**
+ * Verifies a FeatureSetDefaults message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FeatureSetDefaults message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FeatureSetDefaults
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSetDefaults;
+
+ /**
+ * Creates a plain object from a FeatureSetDefaults message. Also converts values to other types if specified.
+ * @param message FeatureSetDefaults
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FeatureSetDefaults, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FeatureSetDefaults to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FeatureSetDefaults
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace FeatureSetDefaults {
+
+ /** Properties of a FeatureSetEditionDefault. */
+ interface IFeatureSetEditionDefault {
+
+ /** FeatureSetEditionDefault edition */
+ edition?: (google.protobuf.Edition|keyof typeof google.protobuf.Edition|null);
+
+ /** FeatureSetEditionDefault overridableFeatures */
+ overridableFeatures?: (google.protobuf.IFeatureSet|null);
+
+ /** FeatureSetEditionDefault fixedFeatures */
+ fixedFeatures?: (google.protobuf.IFeatureSet|null);
+ }
+
+ /** Represents a FeatureSetEditionDefault. */
+ class FeatureSetEditionDefault implements IFeatureSetEditionDefault {
+
+ /**
+ * Constructs a new FeatureSetEditionDefault.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault);
+
+ /** FeatureSetEditionDefault edition. */
+ public edition: (google.protobuf.Edition|keyof typeof google.protobuf.Edition);
+
+ /** FeatureSetEditionDefault overridableFeatures. */
+ public overridableFeatures?: (google.protobuf.IFeatureSet|null);
+
+ /** FeatureSetEditionDefault fixedFeatures. */
+ public fixedFeatures?: (google.protobuf.IFeatureSet|null);
+
+ /**
+ * Creates a new FeatureSetEditionDefault instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FeatureSetEditionDefault instance
+ */
+ public static create(properties?: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
+
+ /**
+ * Encodes the specified FeatureSetEditionDefault message. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages.
+ * @param message FeatureSetEditionDefault message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FeatureSetEditionDefault message, length delimited. Does not implicitly {@link google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.verify|verify} messages.
+ * @param message FeatureSetEditionDefault message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.FeatureSetDefaults.IFeatureSetEditionDefault, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FeatureSetEditionDefault message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FeatureSetEditionDefault
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
+
+ /**
+ * Decodes a FeatureSetEditionDefault message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FeatureSetEditionDefault
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
+
+ /**
+ * Verifies a FeatureSetEditionDefault message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FeatureSetEditionDefault message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FeatureSetEditionDefault
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault;
+
+ /**
+ * Creates a plain object from a FeatureSetEditionDefault message. Also converts values to other types if specified.
+ * @param message FeatureSetEditionDefault
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FeatureSetEditionDefault to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FeatureSetEditionDefault
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a SourceCodeInfo. */
+ interface ISourceCodeInfo {
+
+ /** SourceCodeInfo location */
+ location?: (google.protobuf.SourceCodeInfo.ILocation[]|null);
+ }
+
+ /** Represents a SourceCodeInfo. */
+ class SourceCodeInfo implements ISourceCodeInfo {
+
+ /**
+ * Constructs a new SourceCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ISourceCodeInfo);
+
+ /** SourceCodeInfo location. */
+ public location: google.protobuf.SourceCodeInfo.ILocation[];
+
+ /**
+ * Creates a new SourceCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SourceCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages.
+ * @param message SourceCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SourceCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Verifies a SourceCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SourceCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
+
+ /**
+ * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified.
+ * @param message SourceCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SourceCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SourceCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace SourceCodeInfo {
+
+ /** Properties of a Location. */
+ interface ILocation {
+
+ /** Location path */
+ path?: (number[]|null);
+
+ /** Location span */
+ span?: (number[]|null);
+
+ /** Location leadingComments */
+ leadingComments?: (string|null);
+
+ /** Location trailingComments */
+ trailingComments?: (string|null);
+
+ /** Location leadingDetachedComments */
+ leadingDetachedComments?: (string[]|null);
+ }
+
+ /** Represents a Location. */
+ class Location implements ILocation {
+
+ /**
+ * Constructs a new Location.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
+
+ /** Location path. */
+ public path: number[];
+
+ /** Location span. */
+ public span: number[];
+
+ /** Location leadingComments. */
+ public leadingComments: string;
+
+ /** Location trailingComments. */
+ public trailingComments: string;
+
+ /** Location leadingDetachedComments. */
+ public leadingDetachedComments: string[];
+
+ /**
+ * Creates a new Location instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Location instance
+ */
+ public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages.
+ * @param message Location message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Decodes a Location message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Location
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Verifies a Location message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Location message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Location
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
+
+ /**
+ * Creates a plain object from a Location message. Also converts values to other types if specified.
+ * @param message Location
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Location to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Location
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Properties of a GeneratedCodeInfo. */
+ interface IGeneratedCodeInfo {
+
+ /** GeneratedCodeInfo annotation */
+ annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null);
+ }
+
+ /** Represents a GeneratedCodeInfo. */
+ class GeneratedCodeInfo implements IGeneratedCodeInfo {
+
+ /**
+ * Constructs a new GeneratedCodeInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IGeneratedCodeInfo);
+
+ /** GeneratedCodeInfo annotation. */
+ public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[];
+
+ /**
+ * Creates a new GeneratedCodeInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GeneratedCodeInfo instance
+ */
+ public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages.
+ * @param message GeneratedCodeInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GeneratedCodeInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Verifies a GeneratedCodeInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GeneratedCodeInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
+
+ /**
+ * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified.
+ * @param message GeneratedCodeInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GeneratedCodeInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GeneratedCodeInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace GeneratedCodeInfo {
+
+ /** Properties of an Annotation. */
+ interface IAnnotation {
+
+ /** Annotation path */
+ path?: (number[]|null);
+
+ /** Annotation sourceFile */
+ sourceFile?: (string|null);
+
+ /** Annotation begin */
+ begin?: (number|null);
+
+ /** Annotation end */
+ end?: (number|null);
+
+ /** Annotation semantic */
+ semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null);
+ }
+
+ /** Represents an Annotation. */
+ class Annotation implements IAnnotation {
+
+ /**
+ * Constructs a new Annotation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
+
+ /** Annotation path. */
+ public path: number[];
+
+ /** Annotation sourceFile. */
+ public sourceFile: string;
+
+ /** Annotation begin. */
+ public begin: number;
+
+ /** Annotation end. */
+ public end: number;
+
+ /** Annotation semantic. */
+ public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic);
+
+ /**
+ * Creates a new Annotation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Annotation instance
+ */
+ public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages.
+ * @param message Annotation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Decodes an Annotation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Annotation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Verifies an Annotation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Annotation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Annotation
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
+
+ /**
+ * Creates a plain object from an Annotation message. Also converts values to other types if specified.
+ * @param message Annotation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Annotation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Annotation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ namespace Annotation {
+
+ /** Semantic enum. */
+ enum Semantic {
+ NONE = 0,
+ SET = 1,
+ ALIAS = 2
+ }
+ }
+ }
+
+ /** SymbolVisibility enum. */
+ enum SymbolVisibility {
+ VISIBILITY_UNSET = 0,
+ VISIBILITY_LOCAL = 1,
+ VISIBILITY_EXPORT = 2
+ }
+
+ /** Properties of a Struct. */
+ interface IStruct {
+
+ /** Struct fields */
+ fields?: ({ [k: string]: google.protobuf.IValue }|null);
+ }
+
+ /** Represents a Struct. */
+ class Struct implements IStruct {
+
+ /**
+ * Constructs a new Struct.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IStruct);
+
+ /** Struct fields. */
+ public fields: { [k: string]: google.protobuf.IValue };
+
+ /**
+ * Creates a new Struct instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Struct instance
+ */
+ public static create(properties?: google.protobuf.IStruct): google.protobuf.Struct;
+
+ /**
+ * Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages.
+ * @param message Struct message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Struct message, length delimited. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages.
+ * @param message Struct message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Struct message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Struct
+ * @throws {Error} If the payload is not 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.Struct;
+
+ /**
+ * Decodes a Struct message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Struct
+ * @throws {Error} If the payload 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.Struct;
+
+ /**
+ * Verifies a Struct message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Struct message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Struct
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Struct;
+
+ /**
+ * Creates a plain object from a Struct message. Also converts values to other types if specified.
+ * @param message Struct
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Struct, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Struct to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Struct
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Value. */
+ interface IValue {
+
+ /** Value nullValue */
+ nullValue?: (google.protobuf.NullValue|keyof typeof google.protobuf.NullValue|null);
+
+ /** Value numberValue */
+ numberValue?: (number|null);
+
+ /** Value stringValue */
+ stringValue?: (string|null);
+
+ /** Value boolValue */
+ boolValue?: (boolean|null);
+
+ /** Value structValue */
+ structValue?: (google.protobuf.IStruct|null);
+
+ /** Value listValue */
+ listValue?: (google.protobuf.IListValue|null);
+ }
+
+ /** Represents a Value. */
+ class Value implements IValue {
+
+ /**
+ * Constructs a new Value.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IValue);
+
+ /** Value nullValue. */
+ public nullValue?: (google.protobuf.NullValue|keyof typeof google.protobuf.NullValue|null);
+
+ /** Value numberValue. */
+ public numberValue?: (number|null);
+
+ /** Value stringValue. */
+ public stringValue?: (string|null);
+
+ /** Value boolValue. */
+ public boolValue?: (boolean|null);
+
+ /** Value structValue. */
+ public structValue?: (google.protobuf.IStruct|null);
+
+ /** Value listValue. */
+ public listValue?: (google.protobuf.IListValue|null);
+
+ /** Value kind. */
+ public kind?: ("nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue");
+
+ /**
+ * Creates a new Value instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Value instance
+ */
+ public static create(properties?: google.protobuf.IValue): google.protobuf.Value;
+
+ /**
+ * Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages.
+ * @param message Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Value message, length delimited. Does not implicitly {@link google.protobuf.Value.verify|verify} messages.
+ * @param message Value message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Value message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Value;
+
+ /**
+ * Decodes a Value message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Value
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Value;
+
+ /**
+ * Verifies a Value message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Value message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Value
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Value;
+
+ /**
+ * Creates a plain object from a Value message. Also converts values to other types if specified.
+ * @param message Value
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Value to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Value
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** NullValue enum. */
+ enum NullValue {
+ NULL_VALUE = 0
+ }
+
+ /** Properties of a ListValue. */
+ interface IListValue {
+
+ /** ListValue values */
+ values?: (google.protobuf.IValue[]|null);
+ }
+
+ /** Represents a ListValue. */
+ class ListValue implements IListValue {
+
+ /**
+ * Constructs a new ListValue.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IListValue);
+
+ /** ListValue values. */
+ public values: google.protobuf.IValue[];
+
+ /**
+ * Creates a new ListValue instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListValue instance
+ */
+ public static create(properties?: google.protobuf.IListValue): google.protobuf.ListValue;
+
+ /**
+ * Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages.
+ * @param message ListValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListValue message, length delimited. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages.
+ * @param message ListValue message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListValue message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListValue
+ * @throws {Error} If the payload is not 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.ListValue;
+
+ /**
+ * Decodes a ListValue message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListValue
+ * @throws {Error} If the payload 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.ListValue;
+
+ /**
+ * Verifies a ListValue message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListValue message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListValue
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.ListValue;
+
+ /**
+ * Creates a plain object from a ListValue message. Also converts values to other types if specified.
+ * @param message ListValue
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.ListValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListValue to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListValue
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Timestamp. */
+ interface ITimestamp {
+
+ /** Timestamp seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Timestamp nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Timestamp. */
+ class Timestamp implements ITimestamp {
+
+ /**
+ * Constructs a new Timestamp.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.ITimestamp);
+
+ /** Timestamp seconds. */
+ public seconds: (number|Long|string);
+
+ /** Timestamp nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Timestamp instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Timestamp instance
+ */
+ public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
+
+ /**
+ * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
+ * @param message Timestamp message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Timestamp
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
+
+ /**
+ * Decodes a Timestamp message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Timestamp
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
+
+ /**
+ * Verifies a Timestamp message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Timestamp
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
+
+ /**
+ * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
+ * @param message Timestamp
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Timestamp to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Timestamp
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a Duration. */
+ interface IDuration {
+
+ /** Duration seconds */
+ seconds?: (number|Long|string|null);
+
+ /** Duration nanos */
+ nanos?: (number|null);
+ }
+
+ /** Represents a Duration. */
+ class Duration implements IDuration {
+
+ /**
+ * Constructs a new Duration.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IDuration);
+
+ /** Duration seconds. */
+ public seconds: (number|Long|string);
+
+ /** Duration nanos. */
+ public nanos: number;
+
+ /**
+ * Creates a new Duration instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Duration instance
+ */
+ public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration;
+
+ /**
+ * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
+ * @param message Duration message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Duration message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Duration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration;
+
+ /**
+ * Decodes a Duration message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Duration
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration;
+
+ /**
+ * Verifies a Duration message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Duration message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Duration
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Duration;
+
+ /**
+ * Creates a plain object from a Duration message. Also converts values to other types if specified.
+ * @param message Duration
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Duration to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Duration
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Any. */
+ interface IAny {
+
+ /** Any type_url */
+ type_url?: (string|null);
+
+ /** Any value */
+ value?: (Uint8Array|Buffer|string|null);
+ }
+
+ /** Represents an Any. */
+ class Any implements IAny {
+
+ /**
+ * Constructs a new Any.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IAny);
+
+ /** Any type_url. */
+ public type_url: string;
+
+ /** Any value. */
+ public value: (Uint8Array|Buffer|string);
+
+ /**
+ * Creates a new Any instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Any instance
+ */
+ public static create(properties?: google.protobuf.IAny): google.protobuf.Any;
+
+ /**
+ * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
+ * @param message Any message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
+ * @param message Any message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Any message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Any
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any;
+
+ /**
+ * Decodes an Any message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Any
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any;
+
+ /**
+ * Verifies an Any message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Any message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Any
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
+
+ /**
+ * Creates a plain object from an Any message. Also converts values to other types if specified.
+ * @param message Any
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Any to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Any
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an Empty. */
+ interface IEmpty {
+ }
+
+ /** Represents an Empty. */
+ class Empty implements IEmpty {
+
+ /**
+ * Constructs a new Empty.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IEmpty);
+
+ /**
+ * Creates a new Empty instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Empty instance
+ */
+ public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty;
+
+ /**
+ * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
+ * @param message Empty message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Empty message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Empty
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Empty;
+
+ /**
+ * Decodes an Empty message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Empty
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Empty;
+
+ /**
+ * Verifies an Empty message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Empty message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Empty
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Empty;
+
+ /**
+ * Creates a plain object from an Empty message. Also converts values to other types if specified.
+ * @param message Empty
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Empty to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Empty
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a FieldMask. */
+ interface IFieldMask {
+
+ /** FieldMask paths */
+ paths?: (string[]|null);
+ }
+
+ /** Represents a FieldMask. */
+ class FieldMask implements IFieldMask {
+
+ /**
+ * Constructs a new FieldMask.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.protobuf.IFieldMask);
+
+ /** FieldMask paths. */
+ public paths: string[];
+
+ /**
+ * Creates a new FieldMask instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns FieldMask instance
+ */
+ public static create(properties?: google.protobuf.IFieldMask): google.protobuf.FieldMask;
+
+ /**
+ * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
+ * @param message FieldMask message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.protobuf.IFieldMask, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldMask;
+
+ /**
+ * Decodes a FieldMask message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns FieldMask
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldMask;
+
+ /**
+ * Verifies a FieldMask message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns FieldMask
+ */
+ public static fromObject(object: { [k: string]: any }): google.protobuf.FieldMask;
+
+ /**
+ * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
+ * @param message FieldMask
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.protobuf.FieldMask, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this FieldMask to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for FieldMask
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace longrunning. */
+ namespace longrunning {
+
+ /** Represents an Operations */
+ class Operations extends $protobuf.rpc.Service {
+
+ /**
+ * Constructs a new Operations service.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ */
+ constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
+
+ /**
+ * Creates new Operations service using the specified rpc implementation.
+ * @param rpcImpl RPC implementation
+ * @param [requestDelimited=false] Whether requests are length-delimited
+ * @param [responseDelimited=false] Whether responses are length-delimited
+ * @returns RPC service. Useful where requests and/or responses are streamed.
+ */
+ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Operations;
+
+ /**
+ * Calls ListOperations.
+ * @param request ListOperationsRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and ListOperationsResponse
+ */
+ public listOperations(request: google.longrunning.IListOperationsRequest, callback: google.longrunning.Operations.ListOperationsCallback): void;
+
+ /**
+ * Calls ListOperations.
+ * @param request ListOperationsRequest message or plain object
+ * @returns Promise
+ */
+ public listOperations(request: google.longrunning.IListOperationsRequest): Promise;
+
+ /**
+ * Calls GetOperation.
+ * @param request GetOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public getOperation(request: google.longrunning.IGetOperationRequest, callback: google.longrunning.Operations.GetOperationCallback): void;
+
+ /**
+ * Calls GetOperation.
+ * @param request GetOperationRequest message or plain object
+ * @returns Promise
+ */
+ public getOperation(request: google.longrunning.IGetOperationRequest): Promise;
+
+ /**
+ * Calls DeleteOperation.
+ * @param request DeleteOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public deleteOperation(request: google.longrunning.IDeleteOperationRequest, callback: google.longrunning.Operations.DeleteOperationCallback): void;
+
+ /**
+ * Calls DeleteOperation.
+ * @param request DeleteOperationRequest message or plain object
+ * @returns Promise
+ */
+ public deleteOperation(request: google.longrunning.IDeleteOperationRequest): Promise;
+
+ /**
+ * Calls CancelOperation.
+ * @param request CancelOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Empty
+ */
+ public cancelOperation(request: google.longrunning.ICancelOperationRequest, callback: google.longrunning.Operations.CancelOperationCallback): void;
+
+ /**
+ * Calls CancelOperation.
+ * @param request CancelOperationRequest message or plain object
+ * @returns Promise
+ */
+ public cancelOperation(request: google.longrunning.ICancelOperationRequest): Promise;
+
+ /**
+ * Calls WaitOperation.
+ * @param request WaitOperationRequest message or plain object
+ * @param callback Node-style callback called with the error, if any, and Operation
+ */
+ public waitOperation(request: google.longrunning.IWaitOperationRequest, callback: google.longrunning.Operations.WaitOperationCallback): void;
+
+ /**
+ * Calls WaitOperation.
+ * @param request WaitOperationRequest message or plain object
+ * @returns Promise
+ */
+ public waitOperation(request: google.longrunning.IWaitOperationRequest): Promise;
+ }
+
+ namespace Operations {
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|listOperations}.
+ * @param error Error, if any
+ * @param [response] ListOperationsResponse
+ */
+ type ListOperationsCallback = (error: (Error|null), response?: google.longrunning.ListOperationsResponse) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|getOperation}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type GetOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|deleteOperation}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type DeleteOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|cancelOperation}.
+ * @param error Error, if any
+ * @param [response] Empty
+ */
+ type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
+
+ /**
+ * Callback as used by {@link google.longrunning.Operations|waitOperation}.
+ * @param error Error, if any
+ * @param [response] Operation
+ */
+ type WaitOperationCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
+ }
+
+ /** Properties of an Operation. */
+ interface IOperation {
+
+ /** Operation name */
+ name?: (string|null);
+
+ /** Operation metadata */
+ metadata?: (google.protobuf.IAny|null);
+
+ /** Operation done */
+ done?: (boolean|null);
+
+ /** Operation error */
+ error?: (google.rpc.IStatus|null);
+
+ /** Operation response */
+ response?: (google.protobuf.IAny|null);
+ }
+
+ /** Represents an Operation. */
+ class Operation implements IOperation {
+
+ /**
+ * Constructs a new Operation.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IOperation);
+
+ /** Operation name. */
+ public name: string;
+
+ /** Operation metadata. */
+ public metadata?: (google.protobuf.IAny|null);
+
+ /** Operation done. */
+ public done: boolean;
+
+ /** Operation error. */
+ public error?: (google.rpc.IStatus|null);
+
+ /** Operation response. */
+ public response?: (google.protobuf.IAny|null);
+
+ /** Operation result. */
+ public result?: ("error"|"response");
+
+ /**
+ * Creates a new Operation instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Operation instance
+ */
+ public static create(properties?: google.longrunning.IOperation): google.longrunning.Operation;
+
+ /**
+ * Encodes the specified Operation message. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
+ * @param message Operation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.longrunning.Operation.verify|verify} messages.
+ * @param message Operation message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Operation message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Operation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.Operation;
+
+ /**
+ * Decodes an Operation message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Operation
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.Operation;
+
+ /**
+ * Verifies an Operation message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Operation message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Operation
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.Operation;
+
+ /**
+ * Creates a plain object from an Operation message. Also converts values to other types if specified.
+ * @param message Operation
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.Operation, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Operation to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Operation
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a GetOperationRequest. */
+ interface IGetOperationRequest {
+
+ /** GetOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a GetOperationRequest. */
+ class GetOperationRequest implements IGetOperationRequest {
+
+ /**
+ * Constructs a new GetOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IGetOperationRequest);
+
+ /** GetOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new GetOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns GetOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IGetOperationRequest): google.longrunning.GetOperationRequest;
+
+ /**
+ * Encodes the specified GetOperationRequest message. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
+ * @param message GetOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.GetOperationRequest.verify|verify} messages.
+ * @param message GetOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a GetOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns GetOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.GetOperationRequest;
+
+ /**
+ * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns GetOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.GetOperationRequest;
+
+ /**
+ * Verifies a GetOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a GetOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns GetOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.GetOperationRequest;
+
+ /**
+ * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified.
+ * @param message GetOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.GetOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this GetOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for GetOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOperationsRequest. */
+ interface IListOperationsRequest {
+
+ /** ListOperationsRequest name */
+ name?: (string|null);
+
+ /** ListOperationsRequest filter */
+ filter?: (string|null);
+
+ /** ListOperationsRequest pageSize */
+ pageSize?: (number|null);
+
+ /** ListOperationsRequest pageToken */
+ pageToken?: (string|null);
+ }
+
+ /** Represents a ListOperationsRequest. */
+ class ListOperationsRequest implements IListOperationsRequest {
+
+ /**
+ * Constructs a new ListOperationsRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IListOperationsRequest);
+
+ /** ListOperationsRequest name. */
+ public name: string;
+
+ /** ListOperationsRequest filter. */
+ public filter: string;
+
+ /** ListOperationsRequest pageSize. */
+ public pageSize: number;
+
+ /** ListOperationsRequest pageToken. */
+ public pageToken: string;
+
+ /**
+ * Creates a new ListOperationsRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOperationsRequest instance
+ */
+ public static create(properties?: google.longrunning.IListOperationsRequest): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Encodes the specified ListOperationsRequest message. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
+ * @param message ListOperationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsRequest.verify|verify} messages.
+ * @param message ListOperationsRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOperationsRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOperationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOperationsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Verifies a ListOperationsRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOperationsRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOperationsRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsRequest;
+
+ /**
+ * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified.
+ * @param message ListOperationsRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.ListOperationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOperationsRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOperationsRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a ListOperationsResponse. */
+ interface IListOperationsResponse {
+
+ /** ListOperationsResponse operations */
+ operations?: (google.longrunning.IOperation[]|null);
+
+ /** ListOperationsResponse nextPageToken */
+ nextPageToken?: (string|null);
+ }
+
+ /** Represents a ListOperationsResponse. */
+ class ListOperationsResponse implements IListOperationsResponse {
+
+ /**
+ * Constructs a new ListOperationsResponse.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IListOperationsResponse);
+
+ /** ListOperationsResponse operations. */
+ public operations: google.longrunning.IOperation[];
+
+ /** ListOperationsResponse nextPageToken. */
+ public nextPageToken: string;
+
+ /**
+ * Creates a new ListOperationsResponse instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ListOperationsResponse instance
+ */
+ public static create(properties?: google.longrunning.IListOperationsResponse): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Encodes the specified ListOperationsResponse message. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
+ * @param message ListOperationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.longrunning.ListOperationsResponse.verify|verify} messages.
+ * @param message ListOperationsResponse message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ListOperationsResponse message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ListOperationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ListOperationsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Verifies a ListOperationsResponse message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ListOperationsResponse message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ListOperationsResponse
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.ListOperationsResponse;
+
+ /**
+ * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified.
+ * @param message ListOperationsResponse
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.ListOperationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ListOperationsResponse to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ListOperationsResponse
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a CancelOperationRequest. */
+ interface ICancelOperationRequest {
+
+ /** CancelOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a CancelOperationRequest. */
+ class CancelOperationRequest implements ICancelOperationRequest {
+
+ /**
+ * Constructs a new CancelOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.ICancelOperationRequest);
+
+ /** CancelOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new CancelOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns CancelOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.ICancelOperationRequest): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Encodes the specified CancelOperationRequest message. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
+ * @param message CancelOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.CancelOperationRequest.verify|verify} messages.
+ * @param message CancelOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a CancelOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns CancelOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns CancelOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Verifies a CancelOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns CancelOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.CancelOperationRequest;
+
+ /**
+ * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified.
+ * @param message CancelOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.CancelOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this CancelOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for CancelOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a DeleteOperationRequest. */
+ interface IDeleteOperationRequest {
+
+ /** DeleteOperationRequest name */
+ name?: (string|null);
+ }
+
+ /** Represents a DeleteOperationRequest. */
+ class DeleteOperationRequest implements IDeleteOperationRequest {
+
+ /**
+ * Constructs a new DeleteOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IDeleteOperationRequest);
+
+ /** DeleteOperationRequest name. */
+ public name: string;
+
+ /**
+ * Creates a new DeleteOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns DeleteOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IDeleteOperationRequest): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Encodes the specified DeleteOperationRequest message. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
+ * @param message DeleteOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified DeleteOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.DeleteOperationRequest.verify|verify} messages.
+ * @param message DeleteOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IDeleteOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a DeleteOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns DeleteOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Decodes a DeleteOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns DeleteOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Verifies a DeleteOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a DeleteOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns DeleteOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.DeleteOperationRequest;
+
+ /**
+ * Creates a plain object from a DeleteOperationRequest message. Also converts values to other types if specified.
+ * @param message DeleteOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.DeleteOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this DeleteOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for DeleteOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of a WaitOperationRequest. */
+ interface IWaitOperationRequest {
+
+ /** WaitOperationRequest name */
+ name?: (string|null);
+
+ /** WaitOperationRequest timeout */
+ timeout?: (google.protobuf.IDuration|null);
+ }
+
+ /** Represents a WaitOperationRequest. */
+ class WaitOperationRequest implements IWaitOperationRequest {
+
+ /**
+ * Constructs a new WaitOperationRequest.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IWaitOperationRequest);
+
+ /** WaitOperationRequest name. */
+ public name: string;
+
+ /** WaitOperationRequest timeout. */
+ public timeout?: (google.protobuf.IDuration|null);
+
+ /**
+ * Creates a new WaitOperationRequest instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns WaitOperationRequest instance
+ */
+ public static create(properties?: google.longrunning.IWaitOperationRequest): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Encodes the specified WaitOperationRequest message. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
+ * @param message WaitOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified WaitOperationRequest message, length delimited. Does not implicitly {@link google.longrunning.WaitOperationRequest.verify|verify} messages.
+ * @param message WaitOperationRequest message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IWaitOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a WaitOperationRequest message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns WaitOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Decodes a WaitOperationRequest message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns WaitOperationRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Verifies a WaitOperationRequest message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a WaitOperationRequest message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns WaitOperationRequest
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.WaitOperationRequest;
+
+ /**
+ * Creates a plain object from a WaitOperationRequest message. Also converts values to other types if specified.
+ * @param message WaitOperationRequest
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.WaitOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this WaitOperationRequest to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for WaitOperationRequest
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+
+ /** Properties of an OperationInfo. */
+ interface IOperationInfo {
+
+ /** OperationInfo responseType */
+ responseType?: (string|null);
+
+ /** OperationInfo metadataType */
+ metadataType?: (string|null);
+ }
+
+ /** Represents an OperationInfo. */
+ class OperationInfo implements IOperationInfo {
+
+ /**
+ * Constructs a new OperationInfo.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.longrunning.IOperationInfo);
+
+ /** OperationInfo responseType. */
+ public responseType: string;
+
+ /** OperationInfo metadataType. */
+ public metadataType: string;
+
+ /**
+ * Creates a new OperationInfo instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns OperationInfo instance
+ */
+ public static create(properties?: google.longrunning.IOperationInfo): google.longrunning.OperationInfo;
+
+ /**
+ * Encodes the specified OperationInfo message. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
+ * @param message OperationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified OperationInfo message, length delimited. Does not implicitly {@link google.longrunning.OperationInfo.verify|verify} messages.
+ * @param message OperationInfo message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.longrunning.IOperationInfo, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an OperationInfo message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns OperationInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.longrunning.OperationInfo;
+
+ /**
+ * Decodes an OperationInfo message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns OperationInfo
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.longrunning.OperationInfo;
+
+ /**
+ * Verifies an OperationInfo message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an OperationInfo message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns OperationInfo
+ */
+ public static fromObject(object: { [k: string]: any }): google.longrunning.OperationInfo;
+
+ /**
+ * Creates a plain object from an OperationInfo message. Also converts values to other types if specified.
+ * @param message OperationInfo
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.longrunning.OperationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this OperationInfo to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for OperationInfo
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+
+ /** Namespace rpc. */
+ namespace rpc {
+
+ /** Properties of a Status. */
+ interface IStatus {
+
+ /** Status code */
+ code?: (number|null);
+
+ /** Status message */
+ message?: (string|null);
+
+ /** Status details */
+ details?: (google.protobuf.IAny[]|null);
+ }
+
+ /** Represents a Status. */
+ class Status implements IStatus {
+
+ /**
+ * Constructs a new Status.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.rpc.IStatus);
+
+ /** Status code. */
+ public code: number;
+
+ /** Status message. */
+ public message: string;
+
+ /** Status details. */
+ public details: google.protobuf.IAny[];
+
+ /**
+ * Creates a new Status instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Status instance
+ */
+ public static create(properties?: google.rpc.IStatus): google.rpc.Status;
+
+ /**
+ * Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
+ * @param message Status message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
+ * @param message Status message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a Status message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Status
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.rpc.Status;
+
+ /**
+ * Decodes a Status message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Status
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.rpc.Status;
+
+ /**
+ * Verifies a Status message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a Status message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Status
+ */
+ public static fromObject(object: { [k: string]: any }): google.rpc.Status;
+
+ /**
+ * Creates a plain object from a Status message. Also converts values to other types if specified.
+ * @param message Status
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.rpc.Status, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Status to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Status
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
+ }
+}
diff --git a/packages/google-cloud-agentregistry/protos/protos.js b/packages/google-cloud-agentregistry/protos/protos.js
new file mode 100644
index 00000000000..6154bd8bc07
--- /dev/null
+++ b/packages/google-cloud-agentregistry/protos/protos.js
@@ -0,0 +1,40767 @@
+// Copyright 2026 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
+(function(global, factory) { /* global define, require, module */
+
+ /* AMD */ if (typeof define === 'function' && define.amd)
+ define(["protobufjs/minimal"], factory);
+
+ /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports)
+ module.exports = factory(require("google-gax/build/src/protobuf").protobufMinimal);
+
+})(this, function($protobuf) {
+ "use strict";
+
+ // Common aliases
+ var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;
+
+ // Exported root namespace
+ var $root = $protobuf.roots["_google_cloud_agentregistry_protos"] || ($protobuf.roots["_google_cloud_agentregistry_protos"] = {});
+
+ $root.google = (function() {
+
+ /**
+ * Namespace google.
+ * @exports google
+ * @namespace
+ */
+ var google = {};
+
+ google.cloud = (function() {
+
+ /**
+ * Namespace cloud.
+ * @memberof google
+ * @namespace
+ */
+ var cloud = {};
+
+ cloud.agentregistry = (function() {
+
+ /**
+ * Namespace agentregistry.
+ * @memberof google.cloud
+ * @namespace
+ */
+ var agentregistry = {};
+
+ agentregistry.v1 = (function() {
+
+ /**
+ * Namespace v1.
+ * @memberof google.cloud.agentregistry
+ * @namespace
+ */
+ var v1 = {};
+
+ v1.Agent = (function() {
+
+ /**
+ * Properties of an Agent.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface IAgent
+ * @property {string|null} [name] Agent name
+ * @property {string|null} [agentId] Agent agentId
+ * @property {string|null} [location] Agent location
+ * @property {string|null} [displayName] Agent displayName
+ * @property {string|null} [description] Agent description
+ * @property {string|null} [version] Agent version
+ * @property {Array.|null} [protocols] Agent protocols
+ * @property {Array.|null} [skills] Agent skills
+ * @property {string|null} [uid] Agent uid
+ * @property {google.protobuf.ITimestamp|null} [createTime] Agent createTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] Agent updateTime
+ * @property {Object.|null} [attributes] Agent attributes
+ * @property {google.cloud.agentregistry.v1.Agent.ICard|null} [card] Agent card
+ */
+
+ /**
+ * Constructs a new Agent.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents an Agent.
+ * @implements IAgent
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.IAgent=} [properties] Properties to set
+ */
+ function Agent(properties) {
+ this.protocols = [];
+ this.skills = [];
+ this.attributes = {};
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Agent name.
+ * @member {string} name
+ * @memberof google.cloud.agentregistry.v1.Agent
+ * @instance
+ */
+ Agent.prototype.name = "";
+
+ /**
+ * Agent agentId.
+ * @member {string} agentId
+ * @memberof google.cloud.agentregistry.v1.Agent
+ * @instance
+ */
+ Agent.prototype.agentId = "";
+
+ /**
+ * Agent location.
+ * @member {string} location
+ * @memberof google.cloud.agentregistry.v1.Agent
+ * @instance
+ */
+ Agent.prototype.location = "";
+
+ /**
+ * Agent displayName.
+ * @member {string} displayName
+ * @memberof google.cloud.agentregistry.v1.Agent
+ * @instance
+ */
+ Agent.prototype.displayName = "";
+
+ /**
+ * Agent description.
+ * @member {string} description
+ * @memberof google.cloud.agentregistry.v1.Agent
+ * @instance
+ */
+ Agent.prototype.description = "";
+
+ /**
+ * Agent version.
+ * @member {string} version
+ * @memberof google.cloud.agentregistry.v1.Agent
+ * @instance
+ */
+ Agent.prototype.version = "";
+
+ /**
+ * Agent protocols.
+ * @member {Array.} protocols
+ * @memberof google.cloud.agentregistry.v1.Agent
+ * @instance
+ */
+ Agent.prototype.protocols = $util.emptyArray;
+
+ /**
+ * Agent skills.
+ * @member {Array.} skills
+ * @memberof google.cloud.agentregistry.v1.Agent
+ * @instance
+ */
+ Agent.prototype.skills = $util.emptyArray;
+
+ /**
+ * Agent uid.
+ * @member {string} uid
+ * @memberof google.cloud.agentregistry.v1.Agent
+ * @instance
+ */
+ Agent.prototype.uid = "";
+
+ /**
+ * Agent createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.agentregistry.v1.Agent
+ * @instance
+ */
+ Agent.prototype.createTime = null;
+
+ /**
+ * Agent updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.agentregistry.v1.Agent
+ * @instance
+ */
+ Agent.prototype.updateTime = null;
+
+ /**
+ * Agent attributes.
+ * @member {Object.} attributes
+ * @memberof google.cloud.agentregistry.v1.Agent
+ * @instance
+ */
+ Agent.prototype.attributes = $util.emptyObject;
+
+ /**
+ * Agent card.
+ * @member {google.cloud.agentregistry.v1.Agent.ICard|null|undefined} card
+ * @memberof google.cloud.agentregistry.v1.Agent
+ * @instance
+ */
+ Agent.prototype.card = null;
+
+ /**
+ * Creates a new Agent instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.Agent
+ * @static
+ * @param {google.cloud.agentregistry.v1.IAgent=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.Agent} Agent instance
+ */
+ Agent.create = function create(properties) {
+ return new Agent(properties);
+ };
+
+ /**
+ * Encodes the specified Agent message. Does not implicitly {@link google.cloud.agentregistry.v1.Agent.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.Agent
+ * @static
+ * @param {google.cloud.agentregistry.v1.IAgent} message Agent message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Agent.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.agentId != null && Object.hasOwnProperty.call(message, "agentId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.agentId);
+ if (message.location != null && Object.hasOwnProperty.call(message, "location"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.location);
+ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.displayName);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.description);
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.version);
+ if (message.protocols != null && message.protocols.length)
+ for (var i = 0; i < message.protocols.length; ++i)
+ $root.google.cloud.agentregistry.v1.Agent.Protocol.encode(message.protocols[i], writer.uint32(/* id 8, wireType 2 =*/66).fork(), q + 1).ldelim();
+ if (message.skills != null && message.skills.length)
+ for (var i = 0; i < message.skills.length; ++i)
+ $root.google.cloud.agentregistry.v1.Agent.Skill.encode(message.skills[i], writer.uint32(/* id 9, wireType 2 =*/74).fork(), q + 1).ldelim();
+ if (message.uid != null && Object.hasOwnProperty.call(message, "uid"))
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.uid);
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 11, wireType 2 =*/90).fork(), q + 1).ldelim();
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 12, wireType 2 =*/98).fork(), q + 1).ldelim();
+ if (message.attributes != null && Object.hasOwnProperty.call(message, "attributes"))
+ for (var keys = Object.keys(message.attributes), i = 0; i < keys.length; ++i) {
+ writer.uint32(/* id 13, wireType 2 =*/106).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
+ $root.google.protobuf.Struct.encode(message.attributes[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim().ldelim();
+ }
+ if (message.card != null && Object.hasOwnProperty.call(message, "card"))
+ $root.google.cloud.agentregistry.v1.Agent.Card.encode(message.card, writer.uint32(/* id 14, wireType 2 =*/114).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Agent message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.Agent.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.Agent
+ * @static
+ * @param {google.cloud.agentregistry.v1.IAgent} message Agent message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Agent.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes an Agent message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.Agent
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.Agent} Agent
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Agent.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.Agent(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.agentId = reader.string();
+ break;
+ }
+ case 4: {
+ message.location = reader.string();
+ break;
+ }
+ case 5: {
+ message.displayName = reader.string();
+ break;
+ }
+ case 6: {
+ message.description = reader.string();
+ break;
+ }
+ case 7: {
+ message.version = reader.string();
+ break;
+ }
+ case 8: {
+ if (!(message.protocols && message.protocols.length))
+ message.protocols = [];
+ message.protocols.push($root.google.cloud.agentregistry.v1.Agent.Protocol.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 9: {
+ if (!(message.skills && message.skills.length))
+ message.skills = [];
+ message.skills.push($root.google.cloud.agentregistry.v1.Agent.Skill.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 10: {
+ message.uid = reader.string();
+ break;
+ }
+ case 11: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 12: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 13: {
+ if (message.attributes === $util.emptyObject)
+ message.attributes = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = "";
+ value = null;
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.string();
+ break;
+ case 2:
+ value = $root.google.protobuf.Struct.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ default:
+ reader.skipType(tag2 & 7, long);
+ break;
+ }
+ }
+ if (key === "__proto__")
+ $util.makeProp(message.attributes, key);
+ message.attributes[key] = value;
+ break;
+ }
+ case 14: {
+ message.card = $root.google.cloud.agentregistry.v1.Agent.Card.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Agent message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.Agent
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.Agent} Agent
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Agent.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Agent message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.Agent
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Agent.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.agentId != null && Object.hasOwnProperty.call(message, "agentId"))
+ if (!$util.isString(message.agentId))
+ return "agentId: string expected";
+ if (message.location != null && Object.hasOwnProperty.call(message, "location"))
+ if (!$util.isString(message.location))
+ return "location: string expected";
+ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ if (!$util.isString(message.displayName))
+ return "displayName: string expected";
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
+ if (!$util.isString(message.version))
+ return "version: string expected";
+ if (message.protocols != null && Object.hasOwnProperty.call(message, "protocols")) {
+ if (!Array.isArray(message.protocols))
+ return "protocols: array expected";
+ for (var i = 0; i < message.protocols.length; ++i) {
+ var error = $root.google.cloud.agentregistry.v1.Agent.Protocol.verify(message.protocols[i], long + 1);
+ if (error)
+ return "protocols." + error;
+ }
+ }
+ if (message.skills != null && Object.hasOwnProperty.call(message, "skills")) {
+ if (!Array.isArray(message.skills))
+ return "skills: array expected";
+ for (var i = 0; i < message.skills.length; ++i) {
+ var error = $root.google.cloud.agentregistry.v1.Agent.Skill.verify(message.skills[i], long + 1);
+ if (error)
+ return "skills." + error;
+ }
+ }
+ if (message.uid != null && Object.hasOwnProperty.call(message, "uid"))
+ if (!$util.isString(message.uid))
+ return "uid: string expected";
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime, long + 1);
+ if (error)
+ return "createTime." + error;
+ }
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime, long + 1);
+ if (error)
+ return "updateTime." + error;
+ }
+ if (message.attributes != null && Object.hasOwnProperty.call(message, "attributes")) {
+ if (!$util.isObject(message.attributes))
+ return "attributes: object expected";
+ var key = Object.keys(message.attributes);
+ for (var i = 0; i < key.length; ++i) {
+ var error = $root.google.protobuf.Struct.verify(message.attributes[key[i]], long + 1);
+ if (error)
+ return "attributes." + error;
+ }
+ }
+ if (message.card != null && Object.hasOwnProperty.call(message, "card")) {
+ var error = $root.google.cloud.agentregistry.v1.Agent.Card.verify(message.card, long + 1);
+ if (error)
+ return "card." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an Agent message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.Agent
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.Agent} Agent
+ */
+ Agent.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.Agent)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.Agent: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.Agent();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.agentId != null)
+ message.agentId = String(object.agentId);
+ if (object.location != null)
+ message.location = String(object.location);
+ if (object.displayName != null)
+ message.displayName = String(object.displayName);
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.version != null)
+ message.version = String(object.version);
+ if (object.protocols) {
+ if (!Array.isArray(object.protocols))
+ throw TypeError(".google.cloud.agentregistry.v1.Agent.protocols: array expected");
+ message.protocols = [];
+ for (var i = 0; i < object.protocols.length; ++i) {
+ if (!$util.isObject(object.protocols[i]))
+ throw TypeError(".google.cloud.agentregistry.v1.Agent.protocols: object expected");
+ message.protocols[i] = $root.google.cloud.agentregistry.v1.Agent.Protocol.fromObject(object.protocols[i], long + 1);
+ }
+ }
+ if (object.skills) {
+ if (!Array.isArray(object.skills))
+ throw TypeError(".google.cloud.agentregistry.v1.Agent.skills: array expected");
+ message.skills = [];
+ for (var i = 0; i < object.skills.length; ++i) {
+ if (!$util.isObject(object.skills[i]))
+ throw TypeError(".google.cloud.agentregistry.v1.Agent.skills: object expected");
+ message.skills[i] = $root.google.cloud.agentregistry.v1.Agent.Skill.fromObject(object.skills[i], long + 1);
+ }
+ }
+ if (object.uid != null)
+ message.uid = String(object.uid);
+ if (object.createTime != null) {
+ if (!$util.isObject(object.createTime))
+ throw TypeError(".google.cloud.agentregistry.v1.Agent.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime, long + 1);
+ }
+ if (object.updateTime != null) {
+ if (!$util.isObject(object.updateTime))
+ throw TypeError(".google.cloud.agentregistry.v1.Agent.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime, long + 1);
+ }
+ if (object.attributes) {
+ if (!$util.isObject(object.attributes))
+ throw TypeError(".google.cloud.agentregistry.v1.Agent.attributes: object expected");
+ message.attributes = {};
+ for (var keys = Object.keys(object.attributes), i = 0; i < keys.length; ++i) {
+ if (keys[i] === "__proto__")
+ $util.makeProp(message.attributes, keys[i]);
+ if (!$util.isObject(object.attributes[keys[i]]))
+ throw TypeError(".google.cloud.agentregistry.v1.Agent.attributes: object expected");
+ message.attributes[keys[i]] = $root.google.protobuf.Struct.fromObject(object.attributes[keys[i]], long + 1);
+ }
+ }
+ if (object.card != null) {
+ if (!$util.isObject(object.card))
+ throw TypeError(".google.cloud.agentregistry.v1.Agent.card: object expected");
+ message.card = $root.google.cloud.agentregistry.v1.Agent.Card.fromObject(object.card, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Agent message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.Agent
+ * @static
+ * @param {google.cloud.agentregistry.v1.Agent} message Agent
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Agent.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.protocols = [];
+ object.skills = [];
+ }
+ if (options.objects || options.defaults)
+ object.attributes = {};
+ if (options.defaults) {
+ object.name = "";
+ object.agentId = "";
+ object.location = "";
+ object.displayName = "";
+ object.description = "";
+ object.version = "";
+ object.uid = "";
+ object.createTime = null;
+ object.updateTime = null;
+ object.card = null;
+ }
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ object.name = message.name;
+ if (message.agentId != null && Object.hasOwnProperty.call(message, "agentId"))
+ object.agentId = message.agentId;
+ if (message.location != null && Object.hasOwnProperty.call(message, "location"))
+ object.location = message.location;
+ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ object.displayName = message.displayName;
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ object.description = message.description;
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
+ object.version = message.version;
+ if (message.protocols && message.protocols.length) {
+ object.protocols = [];
+ for (var j = 0; j < message.protocols.length; ++j)
+ object.protocols[j] = $root.google.cloud.agentregistry.v1.Agent.Protocol.toObject(message.protocols[j], options, q + 1);
+ }
+ if (message.skills && message.skills.length) {
+ object.skills = [];
+ for (var j = 0; j < message.skills.length; ++j)
+ object.skills[j] = $root.google.cloud.agentregistry.v1.Agent.Skill.toObject(message.skills[j], options, q + 1);
+ }
+ if (message.uid != null && Object.hasOwnProperty.call(message, "uid"))
+ object.uid = message.uid;
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options, q + 1);
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options, q + 1);
+ var keys2;
+ if (message.attributes && (keys2 = Object.keys(message.attributes)).length) {
+ object.attributes = {};
+ for (var j = 0; j < keys2.length; ++j) {
+ if (keys2[j] === "__proto__")
+ $util.makeProp(object.attributes, keys2[j]);
+ object.attributes[keys2[j]] = $root.google.protobuf.Struct.toObject(message.attributes[keys2[j]], options, q + 1);
+ }
+ }
+ if (message.card != null && Object.hasOwnProperty.call(message, "card"))
+ object.card = $root.google.cloud.agentregistry.v1.Agent.Card.toObject(message.card, options, q + 1);
+ return object;
+ };
+
+ /**
+ * Converts this Agent to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.Agent
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Agent.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Agent
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.Agent
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Agent.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.Agent";
+ };
+
+ Agent.Protocol = (function() {
+
+ /**
+ * Properties of a Protocol.
+ * @memberof google.cloud.agentregistry.v1.Agent
+ * @interface IProtocol
+ * @property {google.cloud.agentregistry.v1.Agent.Protocol.Type|null} [type] Protocol type
+ * @property {string|null} [protocolVersion] Protocol protocolVersion
+ * @property {Array.|null} [interfaces] Protocol interfaces
+ */
+
+ /**
+ * Constructs a new Protocol.
+ * @memberof google.cloud.agentregistry.v1.Agent
+ * @classdesc Represents a Protocol.
+ * @implements IProtocol
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.Agent.IProtocol=} [properties] Properties to set
+ */
+ function Protocol(properties) {
+ this.interfaces = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Protocol type.
+ * @member {google.cloud.agentregistry.v1.Agent.Protocol.Type} type
+ * @memberof google.cloud.agentregistry.v1.Agent.Protocol
+ * @instance
+ */
+ Protocol.prototype.type = 0;
+
+ /**
+ * Protocol protocolVersion.
+ * @member {string} protocolVersion
+ * @memberof google.cloud.agentregistry.v1.Agent.Protocol
+ * @instance
+ */
+ Protocol.prototype.protocolVersion = "";
+
+ /**
+ * Protocol interfaces.
+ * @member {Array.} interfaces
+ * @memberof google.cloud.agentregistry.v1.Agent.Protocol
+ * @instance
+ */
+ Protocol.prototype.interfaces = $util.emptyArray;
+
+ /**
+ * Creates a new Protocol instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.Agent.Protocol
+ * @static
+ * @param {google.cloud.agentregistry.v1.Agent.IProtocol=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.Agent.Protocol} Protocol instance
+ */
+ Protocol.create = function create(properties) {
+ return new Protocol(properties);
+ };
+
+ /**
+ * Encodes the specified Protocol message. Does not implicitly {@link google.cloud.agentregistry.v1.Agent.Protocol.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.Agent.Protocol
+ * @static
+ * @param {google.cloud.agentregistry.v1.Agent.IProtocol} message Protocol message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Protocol.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type);
+ if (message.protocolVersion != null && Object.hasOwnProperty.call(message, "protocolVersion"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.protocolVersion);
+ if (message.interfaces != null && message.interfaces.length)
+ for (var i = 0; i < message.interfaces.length; ++i)
+ $root.google.cloud.agentregistry.v1.Interface.encode(message.interfaces[i], writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Protocol message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.Agent.Protocol.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.Agent.Protocol
+ * @static
+ * @param {google.cloud.agentregistry.v1.Agent.IProtocol} message Protocol message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Protocol.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a Protocol message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.Agent.Protocol
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.Agent.Protocol} Protocol
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Protocol.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.Agent.Protocol();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.type = reader.int32();
+ break;
+ }
+ case 2: {
+ message.protocolVersion = reader.string();
+ break;
+ }
+ case 3: {
+ if (!(message.interfaces && message.interfaces.length))
+ message.interfaces = [];
+ message.interfaces.push($root.google.cloud.agentregistry.v1.Interface.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Protocol message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.Agent.Protocol
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.Agent.Protocol} Protocol
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Protocol.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Protocol message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.Agent.Protocol
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Protocol.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ switch (message.type) {
+ default:
+ return "type: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ break;
+ }
+ if (message.protocolVersion != null && Object.hasOwnProperty.call(message, "protocolVersion"))
+ if (!$util.isString(message.protocolVersion))
+ return "protocolVersion: string expected";
+ if (message.interfaces != null && Object.hasOwnProperty.call(message, "interfaces")) {
+ if (!Array.isArray(message.interfaces))
+ return "interfaces: array expected";
+ for (var i = 0; i < message.interfaces.length; ++i) {
+ var error = $root.google.cloud.agentregistry.v1.Interface.verify(message.interfaces[i], long + 1);
+ if (error)
+ return "interfaces." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Protocol message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.Agent.Protocol
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.Agent.Protocol} Protocol
+ */
+ Protocol.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.Agent.Protocol)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.Agent.Protocol: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.Agent.Protocol();
+ switch (object.type) {
+ default:
+ if (typeof object.type === "number") {
+ message.type = object.type;
+ break;
+ }
+ break;
+ case "TYPE_UNSPECIFIED":
+ case 0:
+ message.type = 0;
+ break;
+ case "A2A_AGENT":
+ case 1:
+ message.type = 1;
+ break;
+ case "CUSTOM":
+ case 2:
+ message.type = 2;
+ break;
+ }
+ if (object.protocolVersion != null)
+ message.protocolVersion = String(object.protocolVersion);
+ if (object.interfaces) {
+ if (!Array.isArray(object.interfaces))
+ throw TypeError(".google.cloud.agentregistry.v1.Agent.Protocol.interfaces: array expected");
+ message.interfaces = [];
+ for (var i = 0; i < object.interfaces.length; ++i) {
+ if (!$util.isObject(object.interfaces[i]))
+ throw TypeError(".google.cloud.agentregistry.v1.Agent.Protocol.interfaces: object expected");
+ message.interfaces[i] = $root.google.cloud.agentregistry.v1.Interface.fromObject(object.interfaces[i], long + 1);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Protocol message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.Agent.Protocol
+ * @static
+ * @param {google.cloud.agentregistry.v1.Agent.Protocol} message Protocol
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Protocol.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.interfaces = [];
+ if (options.defaults) {
+ object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0;
+ object.protocolVersion = "";
+ }
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ object.type = options.enums === String ? $root.google.cloud.agentregistry.v1.Agent.Protocol.Type[message.type] === undefined ? message.type : $root.google.cloud.agentregistry.v1.Agent.Protocol.Type[message.type] : message.type;
+ if (message.protocolVersion != null && Object.hasOwnProperty.call(message, "protocolVersion"))
+ object.protocolVersion = message.protocolVersion;
+ if (message.interfaces && message.interfaces.length) {
+ object.interfaces = [];
+ for (var j = 0; j < message.interfaces.length; ++j)
+ object.interfaces[j] = $root.google.cloud.agentregistry.v1.Interface.toObject(message.interfaces[j], options, q + 1);
+ }
+ return object;
+ };
+
+ /**
+ * Converts this Protocol to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.Agent.Protocol
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Protocol.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Protocol
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.Agent.Protocol
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Protocol.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.Agent.Protocol";
+ };
+
+ /**
+ * Type enum.
+ * @name google.cloud.agentregistry.v1.Agent.Protocol.Type
+ * @enum {number}
+ * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value
+ * @property {number} A2A_AGENT=1 A2A_AGENT value
+ * @property {number} CUSTOM=2 CUSTOM value
+ */
+ Protocol.Type = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "A2A_AGENT"] = 1;
+ values[valuesById[2] = "CUSTOM"] = 2;
+ return values;
+ })();
+
+ return Protocol;
+ })();
+
+ Agent.Skill = (function() {
+
+ /**
+ * Properties of a Skill.
+ * @memberof google.cloud.agentregistry.v1.Agent
+ * @interface ISkill
+ * @property {string|null} [id] Skill id
+ * @property {string|null} [name] Skill name
+ * @property {string|null} [description] Skill description
+ * @property {Array.|null} [tags] Skill tags
+ * @property {Array.|null} [examples] Skill examples
+ */
+
+ /**
+ * Constructs a new Skill.
+ * @memberof google.cloud.agentregistry.v1.Agent
+ * @classdesc Represents a Skill.
+ * @implements ISkill
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.Agent.ISkill=} [properties] Properties to set
+ */
+ function Skill(properties) {
+ this.tags = [];
+ this.examples = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Skill id.
+ * @member {string} id
+ * @memberof google.cloud.agentregistry.v1.Agent.Skill
+ * @instance
+ */
+ Skill.prototype.id = "";
+
+ /**
+ * Skill name.
+ * @member {string} name
+ * @memberof google.cloud.agentregistry.v1.Agent.Skill
+ * @instance
+ */
+ Skill.prototype.name = "";
+
+ /**
+ * Skill description.
+ * @member {string} description
+ * @memberof google.cloud.agentregistry.v1.Agent.Skill
+ * @instance
+ */
+ Skill.prototype.description = "";
+
+ /**
+ * Skill tags.
+ * @member {Array.} tags
+ * @memberof google.cloud.agentregistry.v1.Agent.Skill
+ * @instance
+ */
+ Skill.prototype.tags = $util.emptyArray;
+
+ /**
+ * Skill examples.
+ * @member {Array.} examples
+ * @memberof google.cloud.agentregistry.v1.Agent.Skill
+ * @instance
+ */
+ Skill.prototype.examples = $util.emptyArray;
+
+ /**
+ * Creates a new Skill instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.Agent.Skill
+ * @static
+ * @param {google.cloud.agentregistry.v1.Agent.ISkill=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.Agent.Skill} Skill instance
+ */
+ Skill.create = function create(properties) {
+ return new Skill(properties);
+ };
+
+ /**
+ * Encodes the specified Skill message. Does not implicitly {@link google.cloud.agentregistry.v1.Agent.Skill.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.Agent.Skill
+ * @static
+ * @param {google.cloud.agentregistry.v1.Agent.ISkill} message Skill message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Skill.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.description);
+ if (message.tags != null && message.tags.length)
+ for (var i = 0; i < message.tags.length; ++i)
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.tags[i]);
+ if (message.examples != null && message.examples.length)
+ for (var i = 0; i < message.examples.length; ++i)
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.examples[i]);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Skill message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.Agent.Skill.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.Agent.Skill
+ * @static
+ * @param {google.cloud.agentregistry.v1.Agent.ISkill} message Skill message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Skill.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a Skill message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.Agent.Skill
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.Agent.Skill} Skill
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Skill.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.Agent.Skill();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.id = reader.string();
+ break;
+ }
+ case 2: {
+ message.name = reader.string();
+ break;
+ }
+ case 3: {
+ message.description = reader.string();
+ break;
+ }
+ case 4: {
+ if (!(message.tags && message.tags.length))
+ message.tags = [];
+ message.tags.push(reader.string());
+ break;
+ }
+ case 5: {
+ if (!(message.examples && message.examples.length))
+ message.examples = [];
+ message.examples.push(reader.string());
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Skill message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.Agent.Skill
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.Agent.Skill} Skill
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Skill.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Skill message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.Agent.Skill
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Skill.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
+ if (!$util.isString(message.id))
+ return "id: string expected";
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.tags != null && Object.hasOwnProperty.call(message, "tags")) {
+ if (!Array.isArray(message.tags))
+ return "tags: array expected";
+ for (var i = 0; i < message.tags.length; ++i)
+ if (!$util.isString(message.tags[i]))
+ return "tags: string[] expected";
+ }
+ if (message.examples != null && Object.hasOwnProperty.call(message, "examples")) {
+ if (!Array.isArray(message.examples))
+ return "examples: array expected";
+ for (var i = 0; i < message.examples.length; ++i)
+ if (!$util.isString(message.examples[i]))
+ return "examples: string[] expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Skill message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.Agent.Skill
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.Agent.Skill} Skill
+ */
+ Skill.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.Agent.Skill)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.Agent.Skill: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.Agent.Skill();
+ if (object.id != null)
+ message.id = String(object.id);
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.tags) {
+ if (!Array.isArray(object.tags))
+ throw TypeError(".google.cloud.agentregistry.v1.Agent.Skill.tags: array expected");
+ message.tags = [];
+ for (var i = 0; i < object.tags.length; ++i)
+ message.tags[i] = String(object.tags[i]);
+ }
+ if (object.examples) {
+ if (!Array.isArray(object.examples))
+ throw TypeError(".google.cloud.agentregistry.v1.Agent.Skill.examples: array expected");
+ message.examples = [];
+ for (var i = 0; i < object.examples.length; ++i)
+ message.examples[i] = String(object.examples[i]);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Skill message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.Agent.Skill
+ * @static
+ * @param {google.cloud.agentregistry.v1.Agent.Skill} message Skill
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Skill.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.tags = [];
+ object.examples = [];
+ }
+ if (options.defaults) {
+ object.id = "";
+ object.name = "";
+ object.description = "";
+ }
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
+ object.id = message.id;
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ object.name = message.name;
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ object.description = message.description;
+ if (message.tags && message.tags.length) {
+ object.tags = [];
+ for (var j = 0; j < message.tags.length; ++j)
+ object.tags[j] = message.tags[j];
+ }
+ if (message.examples && message.examples.length) {
+ object.examples = [];
+ for (var j = 0; j < message.examples.length; ++j)
+ object.examples[j] = message.examples[j];
+ }
+ return object;
+ };
+
+ /**
+ * Converts this Skill to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.Agent.Skill
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Skill.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Skill
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.Agent.Skill
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Skill.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.Agent.Skill";
+ };
+
+ return Skill;
+ })();
+
+ Agent.Card = (function() {
+
+ /**
+ * Properties of a Card.
+ * @memberof google.cloud.agentregistry.v1.Agent
+ * @interface ICard
+ * @property {google.cloud.agentregistry.v1.Agent.Card.Type|null} [type] Card type
+ * @property {google.protobuf.IStruct|null} [content] Card content
+ */
+
+ /**
+ * Constructs a new Card.
+ * @memberof google.cloud.agentregistry.v1.Agent
+ * @classdesc Represents a Card.
+ * @implements ICard
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.Agent.ICard=} [properties] Properties to set
+ */
+ function Card(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Card type.
+ * @member {google.cloud.agentregistry.v1.Agent.Card.Type} type
+ * @memberof google.cloud.agentregistry.v1.Agent.Card
+ * @instance
+ */
+ Card.prototype.type = 0;
+
+ /**
+ * Card content.
+ * @member {google.protobuf.IStruct|null|undefined} content
+ * @memberof google.cloud.agentregistry.v1.Agent.Card
+ * @instance
+ */
+ Card.prototype.content = null;
+
+ /**
+ * Creates a new Card instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.Agent.Card
+ * @static
+ * @param {google.cloud.agentregistry.v1.Agent.ICard=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.Agent.Card} Card instance
+ */
+ Card.create = function create(properties) {
+ return new Card(properties);
+ };
+
+ /**
+ * Encodes the specified Card message. Does not implicitly {@link google.cloud.agentregistry.v1.Agent.Card.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.Agent.Card
+ * @static
+ * @param {google.cloud.agentregistry.v1.Agent.ICard} message Card message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Card.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type);
+ if (message.content != null && Object.hasOwnProperty.call(message, "content"))
+ $root.google.protobuf.Struct.encode(message.content, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Card message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.Agent.Card.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.Agent.Card
+ * @static
+ * @param {google.cloud.agentregistry.v1.Agent.ICard} message Card message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Card.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a Card message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.Agent.Card
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.Agent.Card} Card
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Card.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.Agent.Card();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.type = reader.int32();
+ break;
+ }
+ case 2: {
+ message.content = $root.google.protobuf.Struct.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Card message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.Agent.Card
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.Agent.Card} Card
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Card.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Card message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.Agent.Card
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Card.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ switch (message.type) {
+ default:
+ return "type: enum value expected";
+ case 0:
+ case 1:
+ break;
+ }
+ if (message.content != null && Object.hasOwnProperty.call(message, "content")) {
+ var error = $root.google.protobuf.Struct.verify(message.content, long + 1);
+ if (error)
+ return "content." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Card message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.Agent.Card
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.Agent.Card} Card
+ */
+ Card.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.Agent.Card)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.Agent.Card: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.Agent.Card();
+ switch (object.type) {
+ default:
+ if (typeof object.type === "number") {
+ message.type = object.type;
+ break;
+ }
+ break;
+ case "TYPE_UNSPECIFIED":
+ case 0:
+ message.type = 0;
+ break;
+ case "A2A_AGENT_CARD":
+ case 1:
+ message.type = 1;
+ break;
+ }
+ if (object.content != null) {
+ if (!$util.isObject(object.content))
+ throw TypeError(".google.cloud.agentregistry.v1.Agent.Card.content: object expected");
+ message.content = $root.google.protobuf.Struct.fromObject(object.content, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Card message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.Agent.Card
+ * @static
+ * @param {google.cloud.agentregistry.v1.Agent.Card} message Card
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Card.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0;
+ object.content = null;
+ }
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ object.type = options.enums === String ? $root.google.cloud.agentregistry.v1.Agent.Card.Type[message.type] === undefined ? message.type : $root.google.cloud.agentregistry.v1.Agent.Card.Type[message.type] : message.type;
+ if (message.content != null && Object.hasOwnProperty.call(message, "content"))
+ object.content = $root.google.protobuf.Struct.toObject(message.content, options, q + 1);
+ return object;
+ };
+
+ /**
+ * Converts this Card to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.Agent.Card
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Card.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Card
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.Agent.Card
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Card.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.Agent.Card";
+ };
+
+ /**
+ * Type enum.
+ * @name google.cloud.agentregistry.v1.Agent.Card.Type
+ * @enum {number}
+ * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value
+ * @property {number} A2A_AGENT_CARD=1 A2A_AGENT_CARD value
+ */
+ Card.Type = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "A2A_AGENT_CARD"] = 1;
+ return values;
+ })();
+
+ return Card;
+ })();
+
+ return Agent;
+ })();
+
+ v1.Interface = (function() {
+
+ /**
+ * Properties of an Interface.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface IInterface
+ * @property {string|null} [url] Interface url
+ * @property {google.cloud.agentregistry.v1.Interface.ProtocolBinding|null} [protocolBinding] Interface protocolBinding
+ */
+
+ /**
+ * Constructs a new Interface.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents an Interface.
+ * @implements IInterface
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.IInterface=} [properties] Properties to set
+ */
+ function Interface(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Interface url.
+ * @member {string} url
+ * @memberof google.cloud.agentregistry.v1.Interface
+ * @instance
+ */
+ Interface.prototype.url = "";
+
+ /**
+ * Interface protocolBinding.
+ * @member {google.cloud.agentregistry.v1.Interface.ProtocolBinding} protocolBinding
+ * @memberof google.cloud.agentregistry.v1.Interface
+ * @instance
+ */
+ Interface.prototype.protocolBinding = 0;
+
+ /**
+ * Creates a new Interface instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.Interface
+ * @static
+ * @param {google.cloud.agentregistry.v1.IInterface=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.Interface} Interface instance
+ */
+ Interface.create = function create(properties) {
+ return new Interface(properties);
+ };
+
+ /**
+ * Encodes the specified Interface message. Does not implicitly {@link google.cloud.agentregistry.v1.Interface.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.Interface
+ * @static
+ * @param {google.cloud.agentregistry.v1.IInterface} message Interface message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Interface.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.url != null && Object.hasOwnProperty.call(message, "url"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.url);
+ if (message.protocolBinding != null && Object.hasOwnProperty.call(message, "protocolBinding"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.protocolBinding);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Interface message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.Interface.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.Interface
+ * @static
+ * @param {google.cloud.agentregistry.v1.IInterface} message Interface message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Interface.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes an Interface message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.Interface
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.Interface} Interface
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Interface.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.Interface();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.url = reader.string();
+ break;
+ }
+ case 2: {
+ message.protocolBinding = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Interface message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.Interface
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.Interface} Interface
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Interface.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Interface message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.Interface
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Interface.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.url != null && Object.hasOwnProperty.call(message, "url"))
+ if (!$util.isString(message.url))
+ return "url: string expected";
+ if (message.protocolBinding != null && Object.hasOwnProperty.call(message, "protocolBinding"))
+ switch (message.protocolBinding) {
+ default:
+ return "protocolBinding: enum value expected";
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ break;
+ }
+ return null;
+ };
+
+ /**
+ * Creates an Interface message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.Interface
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.Interface} Interface
+ */
+ Interface.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.Interface)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.Interface: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.Interface();
+ if (object.url != null)
+ message.url = String(object.url);
+ switch (object.protocolBinding) {
+ default:
+ if (typeof object.protocolBinding === "number") {
+ message.protocolBinding = object.protocolBinding;
+ break;
+ }
+ break;
+ case "PROTOCOL_BINDING_UNSPECIFIED":
+ case 0:
+ message.protocolBinding = 0;
+ break;
+ case "JSONRPC":
+ case 1:
+ message.protocolBinding = 1;
+ break;
+ case "GRPC":
+ case 2:
+ message.protocolBinding = 2;
+ break;
+ case "HTTP_JSON":
+ case 3:
+ message.protocolBinding = 3;
+ break;
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Interface message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.Interface
+ * @static
+ * @param {google.cloud.agentregistry.v1.Interface} message Interface
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Interface.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.url = "";
+ object.protocolBinding = options.enums === String ? "PROTOCOL_BINDING_UNSPECIFIED" : 0;
+ }
+ if (message.url != null && Object.hasOwnProperty.call(message, "url"))
+ object.url = message.url;
+ if (message.protocolBinding != null && Object.hasOwnProperty.call(message, "protocolBinding"))
+ object.protocolBinding = options.enums === String ? $root.google.cloud.agentregistry.v1.Interface.ProtocolBinding[message.protocolBinding] === undefined ? message.protocolBinding : $root.google.cloud.agentregistry.v1.Interface.ProtocolBinding[message.protocolBinding] : message.protocolBinding;
+ return object;
+ };
+
+ /**
+ * Converts this Interface to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.Interface
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Interface.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Interface
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.Interface
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Interface.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.Interface";
+ };
+
+ /**
+ * ProtocolBinding enum.
+ * @name google.cloud.agentregistry.v1.Interface.ProtocolBinding
+ * @enum {number}
+ * @property {number} PROTOCOL_BINDING_UNSPECIFIED=0 PROTOCOL_BINDING_UNSPECIFIED value
+ * @property {number} JSONRPC=1 JSONRPC value
+ * @property {number} GRPC=2 GRPC value
+ * @property {number} HTTP_JSON=3 HTTP_JSON value
+ */
+ Interface.ProtocolBinding = (function() {
+ var valuesById = {}, values = Object.create(valuesById);
+ values[valuesById[0] = "PROTOCOL_BINDING_UNSPECIFIED"] = 0;
+ values[valuesById[1] = "JSONRPC"] = 1;
+ values[valuesById[2] = "GRPC"] = 2;
+ values[valuesById[3] = "HTTP_JSON"] = 3;
+ return values;
+ })();
+
+ return Interface;
+ })();
+
+ v1.AgentRegistry = (function() {
+
+ /**
+ * Constructs a new AgentRegistry service.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents an AgentRegistry
+ * @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 AgentRegistry(rpcImpl, requestDelimited, responseDelimited) {
+ $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
+ }
+
+ (AgentRegistry.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = AgentRegistry;
+
+ /**
+ * Creates new AgentRegistry service using the specified rpc implementation.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @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 {AgentRegistry} RPC service. Useful where requests and/or responses are streamed.
+ */
+ AgentRegistry.create = function create(rpcImpl, requestDelimited, responseDelimited) {
+ return new this(rpcImpl, requestDelimited, responseDelimited);
+ };
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|listAgents}.
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @typedef ListAgentsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.agentregistry.v1.ListAgentsResponse} [response] ListAgentsResponse
+ */
+
+ /**
+ * Calls ListAgents.
+ * @function listAgents
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.IListAgentsRequest} request ListAgentsRequest message or plain object
+ * @param {google.cloud.agentregistry.v1.AgentRegistry.ListAgentsCallback} callback Node-style callback called with the error, if any, and ListAgentsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(AgentRegistry.prototype.listAgents = function listAgents(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, listAgents, $root.google.cloud.agentregistry.v1.ListAgentsRequest, $root.google.cloud.agentregistry.v1.ListAgentsResponse, request, callback);
+ }, "name", { value: "ListAgents" });
+
+ /**
+ * Calls ListAgents.
+ * @function listAgents
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.IListAgentsRequest} request ListAgentsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|searchAgents}.
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @typedef SearchAgentsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.agentregistry.v1.SearchAgentsResponse} [response] SearchAgentsResponse
+ */
+
+ /**
+ * Calls SearchAgents.
+ * @function searchAgents
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.ISearchAgentsRequest} request SearchAgentsRequest message or plain object
+ * @param {google.cloud.agentregistry.v1.AgentRegistry.SearchAgentsCallback} callback Node-style callback called with the error, if any, and SearchAgentsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(AgentRegistry.prototype.searchAgents = function searchAgents(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, searchAgents, $root.google.cloud.agentregistry.v1.SearchAgentsRequest, $root.google.cloud.agentregistry.v1.SearchAgentsResponse, request, callback);
+ }, "name", { value: "SearchAgents" });
+
+ /**
+ * Calls SearchAgents.
+ * @function searchAgents
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.ISearchAgentsRequest} request SearchAgentsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|getAgent}.
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @typedef GetAgentCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.agentregistry.v1.Agent} [response] Agent
+ */
+
+ /**
+ * Calls GetAgent.
+ * @function getAgent
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.IGetAgentRequest} request GetAgentRequest message or plain object
+ * @param {google.cloud.agentregistry.v1.AgentRegistry.GetAgentCallback} callback Node-style callback called with the error, if any, and Agent
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(AgentRegistry.prototype.getAgent = function getAgent(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, getAgent, $root.google.cloud.agentregistry.v1.GetAgentRequest, $root.google.cloud.agentregistry.v1.Agent, request, callback);
+ }, "name", { value: "GetAgent" });
+
+ /**
+ * Calls GetAgent.
+ * @function getAgent
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.IGetAgentRequest} request GetAgentRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|listEndpoints}.
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @typedef ListEndpointsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.agentregistry.v1.ListEndpointsResponse} [response] ListEndpointsResponse
+ */
+
+ /**
+ * Calls ListEndpoints.
+ * @function listEndpoints
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.IListEndpointsRequest} request ListEndpointsRequest message or plain object
+ * @param {google.cloud.agentregistry.v1.AgentRegistry.ListEndpointsCallback} callback Node-style callback called with the error, if any, and ListEndpointsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(AgentRegistry.prototype.listEndpoints = function listEndpoints(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, listEndpoints, $root.google.cloud.agentregistry.v1.ListEndpointsRequest, $root.google.cloud.agentregistry.v1.ListEndpointsResponse, request, callback);
+ }, "name", { value: "ListEndpoints" });
+
+ /**
+ * Calls ListEndpoints.
+ * @function listEndpoints
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.IListEndpointsRequest} request ListEndpointsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|getEndpoint}.
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @typedef GetEndpointCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.agentregistry.v1.Endpoint} [response] Endpoint
+ */
+
+ /**
+ * Calls GetEndpoint.
+ * @function getEndpoint
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.IGetEndpointRequest} request GetEndpointRequest message or plain object
+ * @param {google.cloud.agentregistry.v1.AgentRegistry.GetEndpointCallback} callback Node-style callback called with the error, if any, and Endpoint
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(AgentRegistry.prototype.getEndpoint = function getEndpoint(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, getEndpoint, $root.google.cloud.agentregistry.v1.GetEndpointRequest, $root.google.cloud.agentregistry.v1.Endpoint, request, callback);
+ }, "name", { value: "GetEndpoint" });
+
+ /**
+ * Calls GetEndpoint.
+ * @function getEndpoint
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.IGetEndpointRequest} request GetEndpointRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|listMcpServers}.
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @typedef ListMcpServersCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.agentregistry.v1.ListMcpServersResponse} [response] ListMcpServersResponse
+ */
+
+ /**
+ * Calls ListMcpServers.
+ * @function listMcpServers
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.IListMcpServersRequest} request ListMcpServersRequest message or plain object
+ * @param {google.cloud.agentregistry.v1.AgentRegistry.ListMcpServersCallback} callback Node-style callback called with the error, if any, and ListMcpServersResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(AgentRegistry.prototype.listMcpServers = function listMcpServers(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, listMcpServers, $root.google.cloud.agentregistry.v1.ListMcpServersRequest, $root.google.cloud.agentregistry.v1.ListMcpServersResponse, request, callback);
+ }, "name", { value: "ListMcpServers" });
+
+ /**
+ * Calls ListMcpServers.
+ * @function listMcpServers
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.IListMcpServersRequest} request ListMcpServersRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|searchMcpServers}.
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @typedef SearchMcpServersCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.agentregistry.v1.SearchMcpServersResponse} [response] SearchMcpServersResponse
+ */
+
+ /**
+ * Calls SearchMcpServers.
+ * @function searchMcpServers
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.ISearchMcpServersRequest} request SearchMcpServersRequest message or plain object
+ * @param {google.cloud.agentregistry.v1.AgentRegistry.SearchMcpServersCallback} callback Node-style callback called with the error, if any, and SearchMcpServersResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(AgentRegistry.prototype.searchMcpServers = function searchMcpServers(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, searchMcpServers, $root.google.cloud.agentregistry.v1.SearchMcpServersRequest, $root.google.cloud.agentregistry.v1.SearchMcpServersResponse, request, callback);
+ }, "name", { value: "SearchMcpServers" });
+
+ /**
+ * Calls SearchMcpServers.
+ * @function searchMcpServers
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.ISearchMcpServersRequest} request SearchMcpServersRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|getMcpServer}.
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @typedef GetMcpServerCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.agentregistry.v1.McpServer} [response] McpServer
+ */
+
+ /**
+ * Calls GetMcpServer.
+ * @function getMcpServer
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.IGetMcpServerRequest} request GetMcpServerRequest message or plain object
+ * @param {google.cloud.agentregistry.v1.AgentRegistry.GetMcpServerCallback} callback Node-style callback called with the error, if any, and McpServer
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(AgentRegistry.prototype.getMcpServer = function getMcpServer(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, getMcpServer, $root.google.cloud.agentregistry.v1.GetMcpServerRequest, $root.google.cloud.agentregistry.v1.McpServer, request, callback);
+ }, "name", { value: "GetMcpServer" });
+
+ /**
+ * Calls GetMcpServer.
+ * @function getMcpServer
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.IGetMcpServerRequest} request GetMcpServerRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|listServices}.
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @typedef ListServicesCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.agentregistry.v1.ListServicesResponse} [response] ListServicesResponse
+ */
+
+ /**
+ * Calls ListServices.
+ * @function listServices
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.IListServicesRequest} request ListServicesRequest message or plain object
+ * @param {google.cloud.agentregistry.v1.AgentRegistry.ListServicesCallback} callback Node-style callback called with the error, if any, and ListServicesResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(AgentRegistry.prototype.listServices = function listServices(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, listServices, $root.google.cloud.agentregistry.v1.ListServicesRequest, $root.google.cloud.agentregistry.v1.ListServicesResponse, request, callback);
+ }, "name", { value: "ListServices" });
+
+ /**
+ * Calls ListServices.
+ * @function listServices
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.IListServicesRequest} request ListServicesRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|getService}.
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @typedef GetServiceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.agentregistry.v1.Service} [response] Service
+ */
+
+ /**
+ * Calls GetService.
+ * @function getService
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.IGetServiceRequest} request GetServiceRequest message or plain object
+ * @param {google.cloud.agentregistry.v1.AgentRegistry.GetServiceCallback} callback Node-style callback called with the error, if any, and Service
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(AgentRegistry.prototype.getService = function getService(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, getService, $root.google.cloud.agentregistry.v1.GetServiceRequest, $root.google.cloud.agentregistry.v1.Service, request, callback);
+ }, "name", { value: "GetService" });
+
+ /**
+ * Calls GetService.
+ * @function getService
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.IGetServiceRequest} request GetServiceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|createService}.
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @typedef CreateServiceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateService.
+ * @function createService
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.ICreateServiceRequest} request CreateServiceRequest message or plain object
+ * @param {google.cloud.agentregistry.v1.AgentRegistry.CreateServiceCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(AgentRegistry.prototype.createService = function createService(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, createService, $root.google.cloud.agentregistry.v1.CreateServiceRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateService" });
+
+ /**
+ * Calls CreateService.
+ * @function createService
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.ICreateServiceRequest} request CreateServiceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|updateService}.
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @typedef UpdateServiceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateService.
+ * @function updateService
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.IUpdateServiceRequest} request UpdateServiceRequest message or plain object
+ * @param {google.cloud.agentregistry.v1.AgentRegistry.UpdateServiceCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(AgentRegistry.prototype.updateService = function updateService(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, updateService, $root.google.cloud.agentregistry.v1.UpdateServiceRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateService" });
+
+ /**
+ * Calls UpdateService.
+ * @function updateService
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.IUpdateServiceRequest} request UpdateServiceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|deleteService}.
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @typedef DeleteServiceCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteService.
+ * @function deleteService
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.IDeleteServiceRequest} request DeleteServiceRequest message or plain object
+ * @param {google.cloud.agentregistry.v1.AgentRegistry.DeleteServiceCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(AgentRegistry.prototype.deleteService = function deleteService(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, deleteService, $root.google.cloud.agentregistry.v1.DeleteServiceRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteService" });
+
+ /**
+ * Calls DeleteService.
+ * @function deleteService
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.IDeleteServiceRequest} request DeleteServiceRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|listBindings}.
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @typedef ListBindingsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.agentregistry.v1.ListBindingsResponse} [response] ListBindingsResponse
+ */
+
+ /**
+ * Calls ListBindings.
+ * @function listBindings
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.IListBindingsRequest} request ListBindingsRequest message or plain object
+ * @param {google.cloud.agentregistry.v1.AgentRegistry.ListBindingsCallback} callback Node-style callback called with the error, if any, and ListBindingsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(AgentRegistry.prototype.listBindings = function listBindings(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, listBindings, $root.google.cloud.agentregistry.v1.ListBindingsRequest, $root.google.cloud.agentregistry.v1.ListBindingsResponse, request, callback);
+ }, "name", { value: "ListBindings" });
+
+ /**
+ * Calls ListBindings.
+ * @function listBindings
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.IListBindingsRequest} request ListBindingsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|getBinding}.
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @typedef GetBindingCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.agentregistry.v1.Binding} [response] Binding
+ */
+
+ /**
+ * Calls GetBinding.
+ * @function getBinding
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.IGetBindingRequest} request GetBindingRequest message or plain object
+ * @param {google.cloud.agentregistry.v1.AgentRegistry.GetBindingCallback} callback Node-style callback called with the error, if any, and Binding
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(AgentRegistry.prototype.getBinding = function getBinding(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, getBinding, $root.google.cloud.agentregistry.v1.GetBindingRequest, $root.google.cloud.agentregistry.v1.Binding, request, callback);
+ }, "name", { value: "GetBinding" });
+
+ /**
+ * Calls GetBinding.
+ * @function getBinding
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.IGetBindingRequest} request GetBindingRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|createBinding}.
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @typedef CreateBindingCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls CreateBinding.
+ * @function createBinding
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.ICreateBindingRequest} request CreateBindingRequest message or plain object
+ * @param {google.cloud.agentregistry.v1.AgentRegistry.CreateBindingCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(AgentRegistry.prototype.createBinding = function createBinding(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, createBinding, $root.google.cloud.agentregistry.v1.CreateBindingRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "CreateBinding" });
+
+ /**
+ * Calls CreateBinding.
+ * @function createBinding
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.ICreateBindingRequest} request CreateBindingRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|updateBinding}.
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @typedef UpdateBindingCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls UpdateBinding.
+ * @function updateBinding
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.IUpdateBindingRequest} request UpdateBindingRequest message or plain object
+ * @param {google.cloud.agentregistry.v1.AgentRegistry.UpdateBindingCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(AgentRegistry.prototype.updateBinding = function updateBinding(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, updateBinding, $root.google.cloud.agentregistry.v1.UpdateBindingRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "UpdateBinding" });
+
+ /**
+ * Calls UpdateBinding.
+ * @function updateBinding
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.IUpdateBindingRequest} request UpdateBindingRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|deleteBinding}.
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @typedef DeleteBindingCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.longrunning.Operation} [response] Operation
+ */
+
+ /**
+ * Calls DeleteBinding.
+ * @function deleteBinding
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.IDeleteBindingRequest} request DeleteBindingRequest message or plain object
+ * @param {google.cloud.agentregistry.v1.AgentRegistry.DeleteBindingCallback} callback Node-style callback called with the error, if any, and Operation
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(AgentRegistry.prototype.deleteBinding = function deleteBinding(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, deleteBinding, $root.google.cloud.agentregistry.v1.DeleteBindingRequest, $root.google.longrunning.Operation, request, callback);
+ }, "name", { value: "DeleteBinding" });
+
+ /**
+ * Calls DeleteBinding.
+ * @function deleteBinding
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.IDeleteBindingRequest} request DeleteBindingRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ /**
+ * Callback as used by {@link google.cloud.agentregistry.v1.AgentRegistry|fetchAvailableBindings}.
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @typedef FetchAvailableBindingsCallback
+ * @type {function}
+ * @param {Error|null} error Error, if any
+ * @param {google.cloud.agentregistry.v1.FetchAvailableBindingsResponse} [response] FetchAvailableBindingsResponse
+ */
+
+ /**
+ * Calls FetchAvailableBindings.
+ * @function fetchAvailableBindings
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.IFetchAvailableBindingsRequest} request FetchAvailableBindingsRequest message or plain object
+ * @param {google.cloud.agentregistry.v1.AgentRegistry.FetchAvailableBindingsCallback} callback Node-style callback called with the error, if any, and FetchAvailableBindingsResponse
+ * @returns {undefined}
+ * @variation 1
+ */
+ Object.defineProperty(AgentRegistry.prototype.fetchAvailableBindings = function fetchAvailableBindings(request, callback) {
+ return $protobuf.rpc.Service.prototype.rpcCall.call(this, fetchAvailableBindings, $root.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest, $root.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse, request, callback);
+ }, "name", { value: "FetchAvailableBindings" });
+
+ /**
+ * Calls FetchAvailableBindings.
+ * @function fetchAvailableBindings
+ * @memberof google.cloud.agentregistry.v1.AgentRegistry
+ * @instance
+ * @param {google.cloud.agentregistry.v1.IFetchAvailableBindingsRequest} request FetchAvailableBindingsRequest message or plain object
+ * @returns {Promise} Promise
+ * @variation 2
+ */
+
+ return AgentRegistry;
+ })();
+
+ v1.ListAgentsRequest = (function() {
+
+ /**
+ * Properties of a ListAgentsRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface IListAgentsRequest
+ * @property {string|null} [parent] ListAgentsRequest parent
+ * @property {number|null} [pageSize] ListAgentsRequest pageSize
+ * @property {string|null} [pageToken] ListAgentsRequest pageToken
+ * @property {string|null} [filter] ListAgentsRequest filter
+ * @property {string|null} [orderBy] ListAgentsRequest orderBy
+ */
+
+ /**
+ * Constructs a new ListAgentsRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents a ListAgentsRequest.
+ * @implements IListAgentsRequest
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.IListAgentsRequest=} [properties] Properties to set
+ */
+ function ListAgentsRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ListAgentsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.agentregistry.v1.ListAgentsRequest
+ * @instance
+ */
+ ListAgentsRequest.prototype.parent = "";
+
+ /**
+ * ListAgentsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.agentregistry.v1.ListAgentsRequest
+ * @instance
+ */
+ ListAgentsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListAgentsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.agentregistry.v1.ListAgentsRequest
+ * @instance
+ */
+ ListAgentsRequest.prototype.pageToken = "";
+
+ /**
+ * ListAgentsRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.agentregistry.v1.ListAgentsRequest
+ * @instance
+ */
+ ListAgentsRequest.prototype.filter = "";
+
+ /**
+ * ListAgentsRequest orderBy.
+ * @member {string} orderBy
+ * @memberof google.cloud.agentregistry.v1.ListAgentsRequest
+ * @instance
+ */
+ ListAgentsRequest.prototype.orderBy = "";
+
+ /**
+ * Creates a new ListAgentsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.ListAgentsRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IListAgentsRequest=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.ListAgentsRequest} ListAgentsRequest instance
+ */
+ ListAgentsRequest.create = function create(properties) {
+ return new ListAgentsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListAgentsRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.ListAgentsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.ListAgentsRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IListAgentsRequest} message ListAgentsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListAgentsRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.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.orderBy != null && Object.hasOwnProperty.call(message, "orderBy"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListAgentsRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.ListAgentsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.ListAgentsRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IListAgentsRequest} message ListAgentsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListAgentsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListAgentsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.ListAgentsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.ListAgentsRequest} ListAgentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListAgentsRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.ListAgentsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 4: {
+ message.filter = reader.string();
+ break;
+ }
+ case 5: {
+ message.orderBy = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListAgentsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.ListAgentsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.ListAgentsRequest} ListAgentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListAgentsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListAgentsRequest message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.ListAgentsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListAgentsRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ if (!$util.isString(message.filter))
+ return "filter: string expected";
+ if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy"))
+ if (!$util.isString(message.orderBy))
+ return "orderBy: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListAgentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.ListAgentsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.ListAgentsRequest} ListAgentsRequest
+ */
+ ListAgentsRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.ListAgentsRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.ListAgentsRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.ListAgentsRequest();
+ 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);
+ if (object.orderBy != null)
+ message.orderBy = String(object.orderBy);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListAgentsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.ListAgentsRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.ListAgentsRequest} message ListAgentsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListAgentsRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.filter = "";
+ object.orderBy = "";
+ }
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ object.parent = message.parent;
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ object.pageToken = message.pageToken;
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ object.filter = message.filter;
+ if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy"))
+ object.orderBy = message.orderBy;
+ return object;
+ };
+
+ /**
+ * Converts this ListAgentsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.ListAgentsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListAgentsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListAgentsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.ListAgentsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListAgentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.ListAgentsRequest";
+ };
+
+ return ListAgentsRequest;
+ })();
+
+ v1.ListAgentsResponse = (function() {
+
+ /**
+ * Properties of a ListAgentsResponse.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface IListAgentsResponse
+ * @property {Array.|null} [agents] ListAgentsResponse agents
+ * @property {string|null} [nextPageToken] ListAgentsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListAgentsResponse.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents a ListAgentsResponse.
+ * @implements IListAgentsResponse
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.IListAgentsResponse=} [properties] Properties to set
+ */
+ function ListAgentsResponse(properties) {
+ this.agents = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ListAgentsResponse agents.
+ * @member {Array.} agents
+ * @memberof google.cloud.agentregistry.v1.ListAgentsResponse
+ * @instance
+ */
+ ListAgentsResponse.prototype.agents = $util.emptyArray;
+
+ /**
+ * ListAgentsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.agentregistry.v1.ListAgentsResponse
+ * @instance
+ */
+ ListAgentsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListAgentsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.ListAgentsResponse
+ * @static
+ * @param {google.cloud.agentregistry.v1.IListAgentsResponse=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.ListAgentsResponse} ListAgentsResponse instance
+ */
+ ListAgentsResponse.create = function create(properties) {
+ return new ListAgentsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListAgentsResponse message. Does not implicitly {@link google.cloud.agentregistry.v1.ListAgentsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.ListAgentsResponse
+ * @static
+ * @param {google.cloud.agentregistry.v1.IListAgentsResponse} message ListAgentsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListAgentsResponse.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.agents != null && message.agents.length)
+ for (var i = 0; i < message.agents.length; ++i)
+ $root.google.cloud.agentregistry.v1.Agent.encode(message.agents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListAgentsResponse message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.ListAgentsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.ListAgentsResponse
+ * @static
+ * @param {google.cloud.agentregistry.v1.IListAgentsResponse} message ListAgentsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListAgentsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListAgentsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.ListAgentsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.ListAgentsResponse} ListAgentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListAgentsResponse.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.ListAgentsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.agents && message.agents.length))
+ message.agents = [];
+ message.agents.push($root.google.cloud.agentregistry.v1.Agent.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListAgentsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.ListAgentsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.ListAgentsResponse} ListAgentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListAgentsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListAgentsResponse message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.ListAgentsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListAgentsResponse.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.agents != null && Object.hasOwnProperty.call(message, "agents")) {
+ if (!Array.isArray(message.agents))
+ return "agents: array expected";
+ for (var i = 0; i < message.agents.length; ++i) {
+ var error = $root.google.cloud.agentregistry.v1.Agent.verify(message.agents[i], long + 1);
+ if (error)
+ return "agents." + error;
+ }
+ }
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListAgentsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.ListAgentsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.ListAgentsResponse} ListAgentsResponse
+ */
+ ListAgentsResponse.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.ListAgentsResponse)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.ListAgentsResponse: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.ListAgentsResponse();
+ if (object.agents) {
+ if (!Array.isArray(object.agents))
+ throw TypeError(".google.cloud.agentregistry.v1.ListAgentsResponse.agents: array expected");
+ message.agents = [];
+ for (var i = 0; i < object.agents.length; ++i) {
+ if (!$util.isObject(object.agents[i]))
+ throw TypeError(".google.cloud.agentregistry.v1.ListAgentsResponse.agents: object expected");
+ message.agents[i] = $root.google.cloud.agentregistry.v1.Agent.fromObject(object.agents[i], long + 1);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListAgentsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.ListAgentsResponse
+ * @static
+ * @param {google.cloud.agentregistry.v1.ListAgentsResponse} message ListAgentsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListAgentsResponse.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.agents = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.agents && message.agents.length) {
+ object.agents = [];
+ for (var j = 0; j < message.agents.length; ++j)
+ object.agents[j] = $root.google.cloud.agentregistry.v1.Agent.toObject(message.agents[j], options, q + 1);
+ }
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListAgentsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.ListAgentsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListAgentsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListAgentsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.ListAgentsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListAgentsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.ListAgentsResponse";
+ };
+
+ return ListAgentsResponse;
+ })();
+
+ v1.SearchAgentsRequest = (function() {
+
+ /**
+ * Properties of a SearchAgentsRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface ISearchAgentsRequest
+ * @property {string|null} [parent] SearchAgentsRequest parent
+ * @property {string|null} [searchString] SearchAgentsRequest searchString
+ * @property {number|null} [pageSize] SearchAgentsRequest pageSize
+ * @property {string|null} [pageToken] SearchAgentsRequest pageToken
+ */
+
+ /**
+ * Constructs a new SearchAgentsRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents a SearchAgentsRequest.
+ * @implements ISearchAgentsRequest
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.ISearchAgentsRequest=} [properties] Properties to set
+ */
+ function SearchAgentsRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * SearchAgentsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.agentregistry.v1.SearchAgentsRequest
+ * @instance
+ */
+ SearchAgentsRequest.prototype.parent = "";
+
+ /**
+ * SearchAgentsRequest searchString.
+ * @member {string} searchString
+ * @memberof google.cloud.agentregistry.v1.SearchAgentsRequest
+ * @instance
+ */
+ SearchAgentsRequest.prototype.searchString = "";
+
+ /**
+ * SearchAgentsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.agentregistry.v1.SearchAgentsRequest
+ * @instance
+ */
+ SearchAgentsRequest.prototype.pageSize = 0;
+
+ /**
+ * SearchAgentsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.agentregistry.v1.SearchAgentsRequest
+ * @instance
+ */
+ SearchAgentsRequest.prototype.pageToken = "";
+
+ /**
+ * Creates a new SearchAgentsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.SearchAgentsRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.ISearchAgentsRequest=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.SearchAgentsRequest} SearchAgentsRequest instance
+ */
+ SearchAgentsRequest.create = function create(properties) {
+ return new SearchAgentsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified SearchAgentsRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.SearchAgentsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.SearchAgentsRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.ISearchAgentsRequest} message SearchAgentsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SearchAgentsRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.searchString != null && Object.hasOwnProperty.call(message, "searchString"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.searchString);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.pageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SearchAgentsRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.SearchAgentsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.SearchAgentsRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.ISearchAgentsRequest} message SearchAgentsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SearchAgentsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a SearchAgentsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.SearchAgentsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.SearchAgentsRequest} SearchAgentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SearchAgentsRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.SearchAgentsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 3: {
+ message.searchString = reader.string();
+ break;
+ }
+ case 6: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 7: {
+ message.pageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SearchAgentsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.SearchAgentsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.SearchAgentsRequest} SearchAgentsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SearchAgentsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SearchAgentsRequest message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.SearchAgentsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SearchAgentsRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.searchString != null && Object.hasOwnProperty.call(message, "searchString"))
+ if (!$util.isString(message.searchString))
+ return "searchString: string expected";
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a SearchAgentsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.SearchAgentsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.SearchAgentsRequest} SearchAgentsRequest
+ */
+ SearchAgentsRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.SearchAgentsRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.SearchAgentsRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.SearchAgentsRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.searchString != null)
+ message.searchString = String(object.searchString);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SearchAgentsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.SearchAgentsRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.SearchAgentsRequest} message SearchAgentsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SearchAgentsRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.searchString = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ }
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ object.parent = message.parent;
+ if (message.searchString != null && Object.hasOwnProperty.call(message, "searchString"))
+ object.searchString = message.searchString;
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ object.pageToken = message.pageToken;
+ return object;
+ };
+
+ /**
+ * Converts this SearchAgentsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.SearchAgentsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SearchAgentsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SearchAgentsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.SearchAgentsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SearchAgentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.SearchAgentsRequest";
+ };
+
+ return SearchAgentsRequest;
+ })();
+
+ v1.SearchAgentsResponse = (function() {
+
+ /**
+ * Properties of a SearchAgentsResponse.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface ISearchAgentsResponse
+ * @property {Array.|null} [agents] SearchAgentsResponse agents
+ * @property {string|null} [nextPageToken] SearchAgentsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new SearchAgentsResponse.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents a SearchAgentsResponse.
+ * @implements ISearchAgentsResponse
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.ISearchAgentsResponse=} [properties] Properties to set
+ */
+ function SearchAgentsResponse(properties) {
+ this.agents = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * SearchAgentsResponse agents.
+ * @member {Array.} agents
+ * @memberof google.cloud.agentregistry.v1.SearchAgentsResponse
+ * @instance
+ */
+ SearchAgentsResponse.prototype.agents = $util.emptyArray;
+
+ /**
+ * SearchAgentsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.agentregistry.v1.SearchAgentsResponse
+ * @instance
+ */
+ SearchAgentsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new SearchAgentsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.SearchAgentsResponse
+ * @static
+ * @param {google.cloud.agentregistry.v1.ISearchAgentsResponse=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.SearchAgentsResponse} SearchAgentsResponse instance
+ */
+ SearchAgentsResponse.create = function create(properties) {
+ return new SearchAgentsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified SearchAgentsResponse message. Does not implicitly {@link google.cloud.agentregistry.v1.SearchAgentsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.SearchAgentsResponse
+ * @static
+ * @param {google.cloud.agentregistry.v1.ISearchAgentsResponse} message SearchAgentsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SearchAgentsResponse.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.agents != null && message.agents.length)
+ for (var i = 0; i < message.agents.length; ++i)
+ $root.google.cloud.agentregistry.v1.Agent.encode(message.agents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SearchAgentsResponse message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.SearchAgentsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.SearchAgentsResponse
+ * @static
+ * @param {google.cloud.agentregistry.v1.ISearchAgentsResponse} message SearchAgentsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SearchAgentsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a SearchAgentsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.SearchAgentsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.SearchAgentsResponse} SearchAgentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SearchAgentsResponse.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.SearchAgentsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.agents && message.agents.length))
+ message.agents = [];
+ message.agents.push($root.google.cloud.agentregistry.v1.Agent.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SearchAgentsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.SearchAgentsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.SearchAgentsResponse} SearchAgentsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SearchAgentsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SearchAgentsResponse message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.SearchAgentsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SearchAgentsResponse.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.agents != null && Object.hasOwnProperty.call(message, "agents")) {
+ if (!Array.isArray(message.agents))
+ return "agents: array expected";
+ for (var i = 0; i < message.agents.length; ++i) {
+ var error = $root.google.cloud.agentregistry.v1.Agent.verify(message.agents[i], long + 1);
+ if (error)
+ return "agents." + error;
+ }
+ }
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a SearchAgentsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.SearchAgentsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.SearchAgentsResponse} SearchAgentsResponse
+ */
+ SearchAgentsResponse.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.SearchAgentsResponse)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.SearchAgentsResponse: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.SearchAgentsResponse();
+ if (object.agents) {
+ if (!Array.isArray(object.agents))
+ throw TypeError(".google.cloud.agentregistry.v1.SearchAgentsResponse.agents: array expected");
+ message.agents = [];
+ for (var i = 0; i < object.agents.length; ++i) {
+ if (!$util.isObject(object.agents[i]))
+ throw TypeError(".google.cloud.agentregistry.v1.SearchAgentsResponse.agents: object expected");
+ message.agents[i] = $root.google.cloud.agentregistry.v1.Agent.fromObject(object.agents[i], long + 1);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SearchAgentsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.SearchAgentsResponse
+ * @static
+ * @param {google.cloud.agentregistry.v1.SearchAgentsResponse} message SearchAgentsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SearchAgentsResponse.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.agents = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.agents && message.agents.length) {
+ object.agents = [];
+ for (var j = 0; j < message.agents.length; ++j)
+ object.agents[j] = $root.google.cloud.agentregistry.v1.Agent.toObject(message.agents[j], options, q + 1);
+ }
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this SearchAgentsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.SearchAgentsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SearchAgentsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SearchAgentsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.SearchAgentsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SearchAgentsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.SearchAgentsResponse";
+ };
+
+ return SearchAgentsResponse;
+ })();
+
+ v1.GetAgentRequest = (function() {
+
+ /**
+ * Properties of a GetAgentRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface IGetAgentRequest
+ * @property {string|null} [name] GetAgentRequest name
+ */
+
+ /**
+ * Constructs a new GetAgentRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents a GetAgentRequest.
+ * @implements IGetAgentRequest
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.IGetAgentRequest=} [properties] Properties to set
+ */
+ function GetAgentRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * GetAgentRequest name.
+ * @member {string} name
+ * @memberof google.cloud.agentregistry.v1.GetAgentRequest
+ * @instance
+ */
+ GetAgentRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetAgentRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.GetAgentRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IGetAgentRequest=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.GetAgentRequest} GetAgentRequest instance
+ */
+ GetAgentRequest.create = function create(properties) {
+ return new GetAgentRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetAgentRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.GetAgentRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.GetAgentRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IGetAgentRequest} message GetAgentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetAgentRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetAgentRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.GetAgentRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.GetAgentRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IGetAgentRequest} message GetAgentRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetAgentRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetAgentRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.GetAgentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.GetAgentRequest} GetAgentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetAgentRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.GetAgentRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetAgentRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.GetAgentRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.GetAgentRequest} GetAgentRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetAgentRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetAgentRequest message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.GetAgentRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetAgentRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GetAgentRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.GetAgentRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.GetAgentRequest} GetAgentRequest
+ */
+ GetAgentRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.GetAgentRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.GetAgentRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.GetAgentRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetAgentRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.GetAgentRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.GetAgentRequest} message GetAgentRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetAgentRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this GetAgentRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.GetAgentRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetAgentRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetAgentRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.GetAgentRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetAgentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.GetAgentRequest";
+ };
+
+ return GetAgentRequest;
+ })();
+
+ v1.ListEndpointsRequest = (function() {
+
+ /**
+ * Properties of a ListEndpointsRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface IListEndpointsRequest
+ * @property {string|null} [parent] ListEndpointsRequest parent
+ * @property {number|null} [pageSize] ListEndpointsRequest pageSize
+ * @property {string|null} [pageToken] ListEndpointsRequest pageToken
+ * @property {string|null} [filter] ListEndpointsRequest filter
+ */
+
+ /**
+ * Constructs a new ListEndpointsRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents a ListEndpointsRequest.
+ * @implements IListEndpointsRequest
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.IListEndpointsRequest=} [properties] Properties to set
+ */
+ function ListEndpointsRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ListEndpointsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.agentregistry.v1.ListEndpointsRequest
+ * @instance
+ */
+ ListEndpointsRequest.prototype.parent = "";
+
+ /**
+ * ListEndpointsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.agentregistry.v1.ListEndpointsRequest
+ * @instance
+ */
+ ListEndpointsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListEndpointsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.agentregistry.v1.ListEndpointsRequest
+ * @instance
+ */
+ ListEndpointsRequest.prototype.pageToken = "";
+
+ /**
+ * ListEndpointsRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.agentregistry.v1.ListEndpointsRequest
+ * @instance
+ */
+ ListEndpointsRequest.prototype.filter = "";
+
+ /**
+ * Creates a new ListEndpointsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.ListEndpointsRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IListEndpointsRequest=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.ListEndpointsRequest} ListEndpointsRequest instance
+ */
+ ListEndpointsRequest.create = function create(properties) {
+ return new ListEndpointsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListEndpointsRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.ListEndpointsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.ListEndpointsRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IListEndpointsRequest} message ListEndpointsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListEndpointsRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.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 ListEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.ListEndpointsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.ListEndpointsRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IListEndpointsRequest} message ListEndpointsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListEndpointsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListEndpointsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.ListEndpointsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.ListEndpointsRequest} ListEndpointsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListEndpointsRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.ListEndpointsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 4: {
+ message.filter = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListEndpointsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.ListEndpointsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.ListEndpointsRequest} ListEndpointsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListEndpointsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListEndpointsRequest message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.ListEndpointsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListEndpointsRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ if (!$util.isString(message.filter))
+ return "filter: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListEndpointsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.ListEndpointsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.ListEndpointsRequest} ListEndpointsRequest
+ */
+ ListEndpointsRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.ListEndpointsRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.ListEndpointsRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.ListEndpointsRequest();
+ 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 ListEndpointsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.ListEndpointsRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.ListEndpointsRequest} message ListEndpointsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListEndpointsRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.filter = "";
+ }
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ object.parent = message.parent;
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ object.pageToken = message.pageToken;
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ object.filter = message.filter;
+ return object;
+ };
+
+ /**
+ * Converts this ListEndpointsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.ListEndpointsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListEndpointsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListEndpointsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.ListEndpointsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListEndpointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.ListEndpointsRequest";
+ };
+
+ return ListEndpointsRequest;
+ })();
+
+ v1.ListEndpointsResponse = (function() {
+
+ /**
+ * Properties of a ListEndpointsResponse.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface IListEndpointsResponse
+ * @property {Array.|null} [endpoints] ListEndpointsResponse endpoints
+ * @property {string|null} [nextPageToken] ListEndpointsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListEndpointsResponse.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents a ListEndpointsResponse.
+ * @implements IListEndpointsResponse
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.IListEndpointsResponse=} [properties] Properties to set
+ */
+ function ListEndpointsResponse(properties) {
+ this.endpoints = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ListEndpointsResponse endpoints.
+ * @member {Array.} endpoints
+ * @memberof google.cloud.agentregistry.v1.ListEndpointsResponse
+ * @instance
+ */
+ ListEndpointsResponse.prototype.endpoints = $util.emptyArray;
+
+ /**
+ * ListEndpointsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.agentregistry.v1.ListEndpointsResponse
+ * @instance
+ */
+ ListEndpointsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListEndpointsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.ListEndpointsResponse
+ * @static
+ * @param {google.cloud.agentregistry.v1.IListEndpointsResponse=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.ListEndpointsResponse} ListEndpointsResponse instance
+ */
+ ListEndpointsResponse.create = function create(properties) {
+ return new ListEndpointsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListEndpointsResponse message. Does not implicitly {@link google.cloud.agentregistry.v1.ListEndpointsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.ListEndpointsResponse
+ * @static
+ * @param {google.cloud.agentregistry.v1.IListEndpointsResponse} message ListEndpointsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListEndpointsResponse.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.endpoints != null && message.endpoints.length)
+ for (var i = 0; i < message.endpoints.length; ++i)
+ $root.google.cloud.agentregistry.v1.Endpoint.encode(message.endpoints[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListEndpointsResponse message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.ListEndpointsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.ListEndpointsResponse
+ * @static
+ * @param {google.cloud.agentregistry.v1.IListEndpointsResponse} message ListEndpointsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListEndpointsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListEndpointsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.ListEndpointsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.ListEndpointsResponse} ListEndpointsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListEndpointsResponse.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.ListEndpointsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.endpoints && message.endpoints.length))
+ message.endpoints = [];
+ message.endpoints.push($root.google.cloud.agentregistry.v1.Endpoint.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListEndpointsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.ListEndpointsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.ListEndpointsResponse} ListEndpointsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListEndpointsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListEndpointsResponse message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.ListEndpointsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListEndpointsResponse.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.endpoints != null && Object.hasOwnProperty.call(message, "endpoints")) {
+ if (!Array.isArray(message.endpoints))
+ return "endpoints: array expected";
+ for (var i = 0; i < message.endpoints.length; ++i) {
+ var error = $root.google.cloud.agentregistry.v1.Endpoint.verify(message.endpoints[i], long + 1);
+ if (error)
+ return "endpoints." + error;
+ }
+ }
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListEndpointsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.ListEndpointsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.ListEndpointsResponse} ListEndpointsResponse
+ */
+ ListEndpointsResponse.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.ListEndpointsResponse)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.ListEndpointsResponse: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.ListEndpointsResponse();
+ if (object.endpoints) {
+ if (!Array.isArray(object.endpoints))
+ throw TypeError(".google.cloud.agentregistry.v1.ListEndpointsResponse.endpoints: array expected");
+ message.endpoints = [];
+ for (var i = 0; i < object.endpoints.length; ++i) {
+ if (!$util.isObject(object.endpoints[i]))
+ throw TypeError(".google.cloud.agentregistry.v1.ListEndpointsResponse.endpoints: object expected");
+ message.endpoints[i] = $root.google.cloud.agentregistry.v1.Endpoint.fromObject(object.endpoints[i], long + 1);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListEndpointsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.ListEndpointsResponse
+ * @static
+ * @param {google.cloud.agentregistry.v1.ListEndpointsResponse} message ListEndpointsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListEndpointsResponse.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.endpoints = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.endpoints && message.endpoints.length) {
+ object.endpoints = [];
+ for (var j = 0; j < message.endpoints.length; ++j)
+ object.endpoints[j] = $root.google.cloud.agentregistry.v1.Endpoint.toObject(message.endpoints[j], options, q + 1);
+ }
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListEndpointsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.ListEndpointsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListEndpointsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListEndpointsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.ListEndpointsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListEndpointsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.ListEndpointsResponse";
+ };
+
+ return ListEndpointsResponse;
+ })();
+
+ v1.GetEndpointRequest = (function() {
+
+ /**
+ * Properties of a GetEndpointRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface IGetEndpointRequest
+ * @property {string|null} [name] GetEndpointRequest name
+ */
+
+ /**
+ * Constructs a new GetEndpointRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents a GetEndpointRequest.
+ * @implements IGetEndpointRequest
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.IGetEndpointRequest=} [properties] Properties to set
+ */
+ function GetEndpointRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * GetEndpointRequest name.
+ * @member {string} name
+ * @memberof google.cloud.agentregistry.v1.GetEndpointRequest
+ * @instance
+ */
+ GetEndpointRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetEndpointRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.GetEndpointRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IGetEndpointRequest=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.GetEndpointRequest} GetEndpointRequest instance
+ */
+ GetEndpointRequest.create = function create(properties) {
+ return new GetEndpointRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetEndpointRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.GetEndpointRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.GetEndpointRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IGetEndpointRequest} message GetEndpointRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetEndpointRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.GetEndpointRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.GetEndpointRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IGetEndpointRequest} message GetEndpointRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetEndpointRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.GetEndpointRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.GetEndpointRequest} GetEndpointRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetEndpointRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.GetEndpointRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetEndpointRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.GetEndpointRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.GetEndpointRequest} GetEndpointRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetEndpointRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetEndpointRequest message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.GetEndpointRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetEndpointRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GetEndpointRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.GetEndpointRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.GetEndpointRequest} GetEndpointRequest
+ */
+ GetEndpointRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.GetEndpointRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.GetEndpointRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.GetEndpointRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetEndpointRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.GetEndpointRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.GetEndpointRequest} message GetEndpointRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetEndpointRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this GetEndpointRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.GetEndpointRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetEndpointRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetEndpointRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.GetEndpointRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetEndpointRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.GetEndpointRequest";
+ };
+
+ return GetEndpointRequest;
+ })();
+
+ v1.ListMcpServersRequest = (function() {
+
+ /**
+ * Properties of a ListMcpServersRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface IListMcpServersRequest
+ * @property {string|null} [parent] ListMcpServersRequest parent
+ * @property {number|null} [pageSize] ListMcpServersRequest pageSize
+ * @property {string|null} [pageToken] ListMcpServersRequest pageToken
+ * @property {string|null} [filter] ListMcpServersRequest filter
+ * @property {string|null} [orderBy] ListMcpServersRequest orderBy
+ */
+
+ /**
+ * Constructs a new ListMcpServersRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents a ListMcpServersRequest.
+ * @implements IListMcpServersRequest
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.IListMcpServersRequest=} [properties] Properties to set
+ */
+ function ListMcpServersRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ListMcpServersRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.agentregistry.v1.ListMcpServersRequest
+ * @instance
+ */
+ ListMcpServersRequest.prototype.parent = "";
+
+ /**
+ * ListMcpServersRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.agentregistry.v1.ListMcpServersRequest
+ * @instance
+ */
+ ListMcpServersRequest.prototype.pageSize = 0;
+
+ /**
+ * ListMcpServersRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.agentregistry.v1.ListMcpServersRequest
+ * @instance
+ */
+ ListMcpServersRequest.prototype.pageToken = "";
+
+ /**
+ * ListMcpServersRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.agentregistry.v1.ListMcpServersRequest
+ * @instance
+ */
+ ListMcpServersRequest.prototype.filter = "";
+
+ /**
+ * ListMcpServersRequest orderBy.
+ * @member {string} orderBy
+ * @memberof google.cloud.agentregistry.v1.ListMcpServersRequest
+ * @instance
+ */
+ ListMcpServersRequest.prototype.orderBy = "";
+
+ /**
+ * Creates a new ListMcpServersRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.ListMcpServersRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IListMcpServersRequest=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.ListMcpServersRequest} ListMcpServersRequest instance
+ */
+ ListMcpServersRequest.create = function create(properties) {
+ return new ListMcpServersRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListMcpServersRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.ListMcpServersRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.ListMcpServersRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IListMcpServersRequest} message ListMcpServersRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListMcpServersRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.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.orderBy != null && Object.hasOwnProperty.call(message, "orderBy"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListMcpServersRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.ListMcpServersRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.ListMcpServersRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IListMcpServersRequest} message ListMcpServersRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListMcpServersRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListMcpServersRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.ListMcpServersRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.ListMcpServersRequest} ListMcpServersRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListMcpServersRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.ListMcpServersRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 4: {
+ message.filter = reader.string();
+ break;
+ }
+ case 5: {
+ message.orderBy = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListMcpServersRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.ListMcpServersRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.ListMcpServersRequest} ListMcpServersRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListMcpServersRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListMcpServersRequest message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.ListMcpServersRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListMcpServersRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ if (!$util.isString(message.filter))
+ return "filter: string expected";
+ if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy"))
+ if (!$util.isString(message.orderBy))
+ return "orderBy: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListMcpServersRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.ListMcpServersRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.ListMcpServersRequest} ListMcpServersRequest
+ */
+ ListMcpServersRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.ListMcpServersRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.ListMcpServersRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.ListMcpServersRequest();
+ 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);
+ if (object.orderBy != null)
+ message.orderBy = String(object.orderBy);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListMcpServersRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.ListMcpServersRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.ListMcpServersRequest} message ListMcpServersRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListMcpServersRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.filter = "";
+ object.orderBy = "";
+ }
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ object.parent = message.parent;
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ object.pageToken = message.pageToken;
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ object.filter = message.filter;
+ if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy"))
+ object.orderBy = message.orderBy;
+ return object;
+ };
+
+ /**
+ * Converts this ListMcpServersRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.ListMcpServersRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListMcpServersRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListMcpServersRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.ListMcpServersRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListMcpServersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.ListMcpServersRequest";
+ };
+
+ return ListMcpServersRequest;
+ })();
+
+ v1.ListMcpServersResponse = (function() {
+
+ /**
+ * Properties of a ListMcpServersResponse.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface IListMcpServersResponse
+ * @property {Array.|null} [mcpServers] ListMcpServersResponse mcpServers
+ * @property {string|null} [nextPageToken] ListMcpServersResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListMcpServersResponse.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents a ListMcpServersResponse.
+ * @implements IListMcpServersResponse
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.IListMcpServersResponse=} [properties] Properties to set
+ */
+ function ListMcpServersResponse(properties) {
+ this.mcpServers = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ListMcpServersResponse mcpServers.
+ * @member {Array.} mcpServers
+ * @memberof google.cloud.agentregistry.v1.ListMcpServersResponse
+ * @instance
+ */
+ ListMcpServersResponse.prototype.mcpServers = $util.emptyArray;
+
+ /**
+ * ListMcpServersResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.agentregistry.v1.ListMcpServersResponse
+ * @instance
+ */
+ ListMcpServersResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListMcpServersResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.ListMcpServersResponse
+ * @static
+ * @param {google.cloud.agentregistry.v1.IListMcpServersResponse=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.ListMcpServersResponse} ListMcpServersResponse instance
+ */
+ ListMcpServersResponse.create = function create(properties) {
+ return new ListMcpServersResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListMcpServersResponse message. Does not implicitly {@link google.cloud.agentregistry.v1.ListMcpServersResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.ListMcpServersResponse
+ * @static
+ * @param {google.cloud.agentregistry.v1.IListMcpServersResponse} message ListMcpServersResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListMcpServersResponse.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.mcpServers != null && message.mcpServers.length)
+ for (var i = 0; i < message.mcpServers.length; ++i)
+ $root.google.cloud.agentregistry.v1.McpServer.encode(message.mcpServers[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListMcpServersResponse message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.ListMcpServersResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.ListMcpServersResponse
+ * @static
+ * @param {google.cloud.agentregistry.v1.IListMcpServersResponse} message ListMcpServersResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListMcpServersResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListMcpServersResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.ListMcpServersResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.ListMcpServersResponse} ListMcpServersResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListMcpServersResponse.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.ListMcpServersResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.mcpServers && message.mcpServers.length))
+ message.mcpServers = [];
+ message.mcpServers.push($root.google.cloud.agentregistry.v1.McpServer.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListMcpServersResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.ListMcpServersResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.ListMcpServersResponse} ListMcpServersResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListMcpServersResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListMcpServersResponse message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.ListMcpServersResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListMcpServersResponse.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.mcpServers != null && Object.hasOwnProperty.call(message, "mcpServers")) {
+ if (!Array.isArray(message.mcpServers))
+ return "mcpServers: array expected";
+ for (var i = 0; i < message.mcpServers.length; ++i) {
+ var error = $root.google.cloud.agentregistry.v1.McpServer.verify(message.mcpServers[i], long + 1);
+ if (error)
+ return "mcpServers." + error;
+ }
+ }
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListMcpServersResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.ListMcpServersResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.ListMcpServersResponse} ListMcpServersResponse
+ */
+ ListMcpServersResponse.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.ListMcpServersResponse)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.ListMcpServersResponse: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.ListMcpServersResponse();
+ if (object.mcpServers) {
+ if (!Array.isArray(object.mcpServers))
+ throw TypeError(".google.cloud.agentregistry.v1.ListMcpServersResponse.mcpServers: array expected");
+ message.mcpServers = [];
+ for (var i = 0; i < object.mcpServers.length; ++i) {
+ if (!$util.isObject(object.mcpServers[i]))
+ throw TypeError(".google.cloud.agentregistry.v1.ListMcpServersResponse.mcpServers: object expected");
+ message.mcpServers[i] = $root.google.cloud.agentregistry.v1.McpServer.fromObject(object.mcpServers[i], long + 1);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListMcpServersResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.ListMcpServersResponse
+ * @static
+ * @param {google.cloud.agentregistry.v1.ListMcpServersResponse} message ListMcpServersResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListMcpServersResponse.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.mcpServers = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.mcpServers && message.mcpServers.length) {
+ object.mcpServers = [];
+ for (var j = 0; j < message.mcpServers.length; ++j)
+ object.mcpServers[j] = $root.google.cloud.agentregistry.v1.McpServer.toObject(message.mcpServers[j], options, q + 1);
+ }
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListMcpServersResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.ListMcpServersResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListMcpServersResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListMcpServersResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.ListMcpServersResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListMcpServersResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.ListMcpServersResponse";
+ };
+
+ return ListMcpServersResponse;
+ })();
+
+ v1.SearchMcpServersRequest = (function() {
+
+ /**
+ * Properties of a SearchMcpServersRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface ISearchMcpServersRequest
+ * @property {string|null} [parent] SearchMcpServersRequest parent
+ * @property {string|null} [searchString] SearchMcpServersRequest searchString
+ * @property {number|null} [pageSize] SearchMcpServersRequest pageSize
+ * @property {string|null} [pageToken] SearchMcpServersRequest pageToken
+ */
+
+ /**
+ * Constructs a new SearchMcpServersRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents a SearchMcpServersRequest.
+ * @implements ISearchMcpServersRequest
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.ISearchMcpServersRequest=} [properties] Properties to set
+ */
+ function SearchMcpServersRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * SearchMcpServersRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.agentregistry.v1.SearchMcpServersRequest
+ * @instance
+ */
+ SearchMcpServersRequest.prototype.parent = "";
+
+ /**
+ * SearchMcpServersRequest searchString.
+ * @member {string} searchString
+ * @memberof google.cloud.agentregistry.v1.SearchMcpServersRequest
+ * @instance
+ */
+ SearchMcpServersRequest.prototype.searchString = "";
+
+ /**
+ * SearchMcpServersRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.agentregistry.v1.SearchMcpServersRequest
+ * @instance
+ */
+ SearchMcpServersRequest.prototype.pageSize = 0;
+
+ /**
+ * SearchMcpServersRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.agentregistry.v1.SearchMcpServersRequest
+ * @instance
+ */
+ SearchMcpServersRequest.prototype.pageToken = "";
+
+ /**
+ * Creates a new SearchMcpServersRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.SearchMcpServersRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.ISearchMcpServersRequest=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.SearchMcpServersRequest} SearchMcpServersRequest instance
+ */
+ SearchMcpServersRequest.create = function create(properties) {
+ return new SearchMcpServersRequest(properties);
+ };
+
+ /**
+ * Encodes the specified SearchMcpServersRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.SearchMcpServersRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.SearchMcpServersRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.ISearchMcpServersRequest} message SearchMcpServersRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SearchMcpServersRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.searchString != null && Object.hasOwnProperty.call(message, "searchString"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.searchString);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.pageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SearchMcpServersRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.SearchMcpServersRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.SearchMcpServersRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.ISearchMcpServersRequest} message SearchMcpServersRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SearchMcpServersRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a SearchMcpServersRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.SearchMcpServersRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.SearchMcpServersRequest} SearchMcpServersRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SearchMcpServersRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.SearchMcpServersRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 3: {
+ message.searchString = reader.string();
+ break;
+ }
+ case 6: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 7: {
+ message.pageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SearchMcpServersRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.SearchMcpServersRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.SearchMcpServersRequest} SearchMcpServersRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SearchMcpServersRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SearchMcpServersRequest message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.SearchMcpServersRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SearchMcpServersRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.searchString != null && Object.hasOwnProperty.call(message, "searchString"))
+ if (!$util.isString(message.searchString))
+ return "searchString: string expected";
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a SearchMcpServersRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.SearchMcpServersRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.SearchMcpServersRequest} SearchMcpServersRequest
+ */
+ SearchMcpServersRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.SearchMcpServersRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.SearchMcpServersRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.SearchMcpServersRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.searchString != null)
+ message.searchString = String(object.searchString);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SearchMcpServersRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.SearchMcpServersRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.SearchMcpServersRequest} message SearchMcpServersRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SearchMcpServersRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.searchString = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ }
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ object.parent = message.parent;
+ if (message.searchString != null && Object.hasOwnProperty.call(message, "searchString"))
+ object.searchString = message.searchString;
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ object.pageToken = message.pageToken;
+ return object;
+ };
+
+ /**
+ * Converts this SearchMcpServersRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.SearchMcpServersRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SearchMcpServersRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SearchMcpServersRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.SearchMcpServersRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SearchMcpServersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.SearchMcpServersRequest";
+ };
+
+ return SearchMcpServersRequest;
+ })();
+
+ v1.SearchMcpServersResponse = (function() {
+
+ /**
+ * Properties of a SearchMcpServersResponse.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface ISearchMcpServersResponse
+ * @property {Array.|null} [mcpServers] SearchMcpServersResponse mcpServers
+ * @property {string|null} [nextPageToken] SearchMcpServersResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new SearchMcpServersResponse.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents a SearchMcpServersResponse.
+ * @implements ISearchMcpServersResponse
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.ISearchMcpServersResponse=} [properties] Properties to set
+ */
+ function SearchMcpServersResponse(properties) {
+ this.mcpServers = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * SearchMcpServersResponse mcpServers.
+ * @member {Array.} mcpServers
+ * @memberof google.cloud.agentregistry.v1.SearchMcpServersResponse
+ * @instance
+ */
+ SearchMcpServersResponse.prototype.mcpServers = $util.emptyArray;
+
+ /**
+ * SearchMcpServersResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.agentregistry.v1.SearchMcpServersResponse
+ * @instance
+ */
+ SearchMcpServersResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new SearchMcpServersResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.SearchMcpServersResponse
+ * @static
+ * @param {google.cloud.agentregistry.v1.ISearchMcpServersResponse=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.SearchMcpServersResponse} SearchMcpServersResponse instance
+ */
+ SearchMcpServersResponse.create = function create(properties) {
+ return new SearchMcpServersResponse(properties);
+ };
+
+ /**
+ * Encodes the specified SearchMcpServersResponse message. Does not implicitly {@link google.cloud.agentregistry.v1.SearchMcpServersResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.SearchMcpServersResponse
+ * @static
+ * @param {google.cloud.agentregistry.v1.ISearchMcpServersResponse} message SearchMcpServersResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SearchMcpServersResponse.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.mcpServers != null && message.mcpServers.length)
+ for (var i = 0; i < message.mcpServers.length; ++i)
+ $root.google.cloud.agentregistry.v1.McpServer.encode(message.mcpServers[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SearchMcpServersResponse message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.SearchMcpServersResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.SearchMcpServersResponse
+ * @static
+ * @param {google.cloud.agentregistry.v1.ISearchMcpServersResponse} message SearchMcpServersResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SearchMcpServersResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a SearchMcpServersResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.SearchMcpServersResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.SearchMcpServersResponse} SearchMcpServersResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SearchMcpServersResponse.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.SearchMcpServersResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.mcpServers && message.mcpServers.length))
+ message.mcpServers = [];
+ message.mcpServers.push($root.google.cloud.agentregistry.v1.McpServer.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SearchMcpServersResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.SearchMcpServersResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.SearchMcpServersResponse} SearchMcpServersResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SearchMcpServersResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SearchMcpServersResponse message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.SearchMcpServersResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SearchMcpServersResponse.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.mcpServers != null && Object.hasOwnProperty.call(message, "mcpServers")) {
+ if (!Array.isArray(message.mcpServers))
+ return "mcpServers: array expected";
+ for (var i = 0; i < message.mcpServers.length; ++i) {
+ var error = $root.google.cloud.agentregistry.v1.McpServer.verify(message.mcpServers[i], long + 1);
+ if (error)
+ return "mcpServers." + error;
+ }
+ }
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a SearchMcpServersResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.SearchMcpServersResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.SearchMcpServersResponse} SearchMcpServersResponse
+ */
+ SearchMcpServersResponse.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.SearchMcpServersResponse)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.SearchMcpServersResponse: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.SearchMcpServersResponse();
+ if (object.mcpServers) {
+ if (!Array.isArray(object.mcpServers))
+ throw TypeError(".google.cloud.agentregistry.v1.SearchMcpServersResponse.mcpServers: array expected");
+ message.mcpServers = [];
+ for (var i = 0; i < object.mcpServers.length; ++i) {
+ if (!$util.isObject(object.mcpServers[i]))
+ throw TypeError(".google.cloud.agentregistry.v1.SearchMcpServersResponse.mcpServers: object expected");
+ message.mcpServers[i] = $root.google.cloud.agentregistry.v1.McpServer.fromObject(object.mcpServers[i], long + 1);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SearchMcpServersResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.SearchMcpServersResponse
+ * @static
+ * @param {google.cloud.agentregistry.v1.SearchMcpServersResponse} message SearchMcpServersResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SearchMcpServersResponse.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.mcpServers = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.mcpServers && message.mcpServers.length) {
+ object.mcpServers = [];
+ for (var j = 0; j < message.mcpServers.length; ++j)
+ object.mcpServers[j] = $root.google.cloud.agentregistry.v1.McpServer.toObject(message.mcpServers[j], options, q + 1);
+ }
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this SearchMcpServersResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.SearchMcpServersResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SearchMcpServersResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SearchMcpServersResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.SearchMcpServersResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SearchMcpServersResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.SearchMcpServersResponse";
+ };
+
+ return SearchMcpServersResponse;
+ })();
+
+ v1.GetMcpServerRequest = (function() {
+
+ /**
+ * Properties of a GetMcpServerRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface IGetMcpServerRequest
+ * @property {string|null} [name] GetMcpServerRequest name
+ */
+
+ /**
+ * Constructs a new GetMcpServerRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents a GetMcpServerRequest.
+ * @implements IGetMcpServerRequest
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.IGetMcpServerRequest=} [properties] Properties to set
+ */
+ function GetMcpServerRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * GetMcpServerRequest name.
+ * @member {string} name
+ * @memberof google.cloud.agentregistry.v1.GetMcpServerRequest
+ * @instance
+ */
+ GetMcpServerRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetMcpServerRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.GetMcpServerRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IGetMcpServerRequest=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.GetMcpServerRequest} GetMcpServerRequest instance
+ */
+ GetMcpServerRequest.create = function create(properties) {
+ return new GetMcpServerRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetMcpServerRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.GetMcpServerRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.GetMcpServerRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IGetMcpServerRequest} message GetMcpServerRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetMcpServerRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetMcpServerRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.GetMcpServerRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.GetMcpServerRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IGetMcpServerRequest} message GetMcpServerRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetMcpServerRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetMcpServerRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.GetMcpServerRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.GetMcpServerRequest} GetMcpServerRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetMcpServerRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.GetMcpServerRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetMcpServerRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.GetMcpServerRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.GetMcpServerRequest} GetMcpServerRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetMcpServerRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetMcpServerRequest message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.GetMcpServerRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetMcpServerRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GetMcpServerRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.GetMcpServerRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.GetMcpServerRequest} GetMcpServerRequest
+ */
+ GetMcpServerRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.GetMcpServerRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.GetMcpServerRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.GetMcpServerRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetMcpServerRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.GetMcpServerRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.GetMcpServerRequest} message GetMcpServerRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetMcpServerRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this GetMcpServerRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.GetMcpServerRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetMcpServerRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetMcpServerRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.GetMcpServerRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetMcpServerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.GetMcpServerRequest";
+ };
+
+ return GetMcpServerRequest;
+ })();
+
+ v1.ListServicesRequest = (function() {
+
+ /**
+ * Properties of a ListServicesRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface IListServicesRequest
+ * @property {string|null} [parent] ListServicesRequest parent
+ * @property {number|null} [pageSize] ListServicesRequest pageSize
+ * @property {string|null} [pageToken] ListServicesRequest pageToken
+ * @property {string|null} [filter] ListServicesRequest filter
+ */
+
+ /**
+ * Constructs a new ListServicesRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents a ListServicesRequest.
+ * @implements IListServicesRequest
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.IListServicesRequest=} [properties] Properties to set
+ */
+ function ListServicesRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ListServicesRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.agentregistry.v1.ListServicesRequest
+ * @instance
+ */
+ ListServicesRequest.prototype.parent = "";
+
+ /**
+ * ListServicesRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.agentregistry.v1.ListServicesRequest
+ * @instance
+ */
+ ListServicesRequest.prototype.pageSize = 0;
+
+ /**
+ * ListServicesRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.agentregistry.v1.ListServicesRequest
+ * @instance
+ */
+ ListServicesRequest.prototype.pageToken = "";
+
+ /**
+ * ListServicesRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.agentregistry.v1.ListServicesRequest
+ * @instance
+ */
+ ListServicesRequest.prototype.filter = "";
+
+ /**
+ * Creates a new ListServicesRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.ListServicesRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IListServicesRequest=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.ListServicesRequest} ListServicesRequest instance
+ */
+ ListServicesRequest.create = function create(properties) {
+ return new ListServicesRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListServicesRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.ListServicesRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.ListServicesRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IListServicesRequest} message ListServicesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListServicesRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.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 ListServicesRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.ListServicesRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.ListServicesRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IListServicesRequest} message ListServicesRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListServicesRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListServicesRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.ListServicesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.ListServicesRequest} ListServicesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListServicesRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.ListServicesRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 4: {
+ message.filter = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListServicesRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.ListServicesRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.ListServicesRequest} ListServicesRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListServicesRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListServicesRequest message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.ListServicesRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListServicesRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ if (!$util.isString(message.filter))
+ return "filter: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListServicesRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.ListServicesRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.ListServicesRequest} ListServicesRequest
+ */
+ ListServicesRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.ListServicesRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.ListServicesRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.ListServicesRequest();
+ 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 ListServicesRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.ListServicesRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.ListServicesRequest} message ListServicesRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListServicesRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.filter = "";
+ }
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ object.parent = message.parent;
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ object.pageToken = message.pageToken;
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ object.filter = message.filter;
+ return object;
+ };
+
+ /**
+ * Converts this ListServicesRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.ListServicesRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListServicesRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListServicesRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.ListServicesRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.ListServicesRequest";
+ };
+
+ return ListServicesRequest;
+ })();
+
+ v1.ListServicesResponse = (function() {
+
+ /**
+ * Properties of a ListServicesResponse.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface IListServicesResponse
+ * @property {Array.|null} [services] ListServicesResponse services
+ * @property {string|null} [nextPageToken] ListServicesResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListServicesResponse.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents a ListServicesResponse.
+ * @implements IListServicesResponse
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.IListServicesResponse=} [properties] Properties to set
+ */
+ function ListServicesResponse(properties) {
+ this.services = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ListServicesResponse services.
+ * @member {Array.} services
+ * @memberof google.cloud.agentregistry.v1.ListServicesResponse
+ * @instance
+ */
+ ListServicesResponse.prototype.services = $util.emptyArray;
+
+ /**
+ * ListServicesResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.agentregistry.v1.ListServicesResponse
+ * @instance
+ */
+ ListServicesResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListServicesResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.ListServicesResponse
+ * @static
+ * @param {google.cloud.agentregistry.v1.IListServicesResponse=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.ListServicesResponse} ListServicesResponse instance
+ */
+ ListServicesResponse.create = function create(properties) {
+ return new ListServicesResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListServicesResponse message. Does not implicitly {@link google.cloud.agentregistry.v1.ListServicesResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.ListServicesResponse
+ * @static
+ * @param {google.cloud.agentregistry.v1.IListServicesResponse} message ListServicesResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListServicesResponse.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.services != null && message.services.length)
+ for (var i = 0; i < message.services.length; ++i)
+ $root.google.cloud.agentregistry.v1.Service.encode(message.services[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListServicesResponse message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.ListServicesResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.ListServicesResponse
+ * @static
+ * @param {google.cloud.agentregistry.v1.IListServicesResponse} message ListServicesResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListServicesResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListServicesResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.ListServicesResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.ListServicesResponse} ListServicesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListServicesResponse.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.ListServicesResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.services && message.services.length))
+ message.services = [];
+ message.services.push($root.google.cloud.agentregistry.v1.Service.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListServicesResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.ListServicesResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.ListServicesResponse} ListServicesResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListServicesResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListServicesResponse message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.ListServicesResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListServicesResponse.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.services != null && Object.hasOwnProperty.call(message, "services")) {
+ if (!Array.isArray(message.services))
+ return "services: array expected";
+ for (var i = 0; i < message.services.length; ++i) {
+ var error = $root.google.cloud.agentregistry.v1.Service.verify(message.services[i], long + 1);
+ if (error)
+ return "services." + error;
+ }
+ }
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListServicesResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.ListServicesResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.ListServicesResponse} ListServicesResponse
+ */
+ ListServicesResponse.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.ListServicesResponse)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.ListServicesResponse: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.ListServicesResponse();
+ if (object.services) {
+ if (!Array.isArray(object.services))
+ throw TypeError(".google.cloud.agentregistry.v1.ListServicesResponse.services: array expected");
+ message.services = [];
+ for (var i = 0; i < object.services.length; ++i) {
+ if (!$util.isObject(object.services[i]))
+ throw TypeError(".google.cloud.agentregistry.v1.ListServicesResponse.services: object expected");
+ message.services[i] = $root.google.cloud.agentregistry.v1.Service.fromObject(object.services[i], long + 1);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListServicesResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.ListServicesResponse
+ * @static
+ * @param {google.cloud.agentregistry.v1.ListServicesResponse} message ListServicesResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListServicesResponse.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.services = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.services && message.services.length) {
+ object.services = [];
+ for (var j = 0; j < message.services.length; ++j)
+ object.services[j] = $root.google.cloud.agentregistry.v1.Service.toObject(message.services[j], options, q + 1);
+ }
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListServicesResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.ListServicesResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListServicesResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListServicesResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.ListServicesResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListServicesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.ListServicesResponse";
+ };
+
+ return ListServicesResponse;
+ })();
+
+ v1.GetServiceRequest = (function() {
+
+ /**
+ * Properties of a GetServiceRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface IGetServiceRequest
+ * @property {string|null} [name] GetServiceRequest name
+ */
+
+ /**
+ * Constructs a new GetServiceRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents a GetServiceRequest.
+ * @implements IGetServiceRequest
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.IGetServiceRequest=} [properties] Properties to set
+ */
+ function GetServiceRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * GetServiceRequest name.
+ * @member {string} name
+ * @memberof google.cloud.agentregistry.v1.GetServiceRequest
+ * @instance
+ */
+ GetServiceRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetServiceRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.GetServiceRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IGetServiceRequest=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.GetServiceRequest} GetServiceRequest instance
+ */
+ GetServiceRequest.create = function create(properties) {
+ return new GetServiceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetServiceRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.GetServiceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.GetServiceRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IGetServiceRequest} message GetServiceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetServiceRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetServiceRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.GetServiceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.GetServiceRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IGetServiceRequest} message GetServiceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetServiceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetServiceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.GetServiceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.GetServiceRequest} GetServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetServiceRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.GetServiceRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetServiceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.GetServiceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.GetServiceRequest} GetServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetServiceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetServiceRequest message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.GetServiceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetServiceRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GetServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.GetServiceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.GetServiceRequest} GetServiceRequest
+ */
+ GetServiceRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.GetServiceRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.GetServiceRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.GetServiceRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetServiceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.GetServiceRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.GetServiceRequest} message GetServiceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetServiceRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this GetServiceRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.GetServiceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetServiceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetServiceRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.GetServiceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.GetServiceRequest";
+ };
+
+ return GetServiceRequest;
+ })();
+
+ v1.CreateServiceRequest = (function() {
+
+ /**
+ * Properties of a CreateServiceRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface ICreateServiceRequest
+ * @property {string|null} [parent] CreateServiceRequest parent
+ * @property {string|null} [serviceId] CreateServiceRequest serviceId
+ * @property {google.cloud.agentregistry.v1.IService|null} [service] CreateServiceRequest service
+ * @property {string|null} [requestId] CreateServiceRequest requestId
+ */
+
+ /**
+ * Constructs a new CreateServiceRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents a CreateServiceRequest.
+ * @implements ICreateServiceRequest
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.ICreateServiceRequest=} [properties] Properties to set
+ */
+ function CreateServiceRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * CreateServiceRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.agentregistry.v1.CreateServiceRequest
+ * @instance
+ */
+ CreateServiceRequest.prototype.parent = "";
+
+ /**
+ * CreateServiceRequest serviceId.
+ * @member {string} serviceId
+ * @memberof google.cloud.agentregistry.v1.CreateServiceRequest
+ * @instance
+ */
+ CreateServiceRequest.prototype.serviceId = "";
+
+ /**
+ * CreateServiceRequest service.
+ * @member {google.cloud.agentregistry.v1.IService|null|undefined} service
+ * @memberof google.cloud.agentregistry.v1.CreateServiceRequest
+ * @instance
+ */
+ CreateServiceRequest.prototype.service = null;
+
+ /**
+ * CreateServiceRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.agentregistry.v1.CreateServiceRequest
+ * @instance
+ */
+ CreateServiceRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new CreateServiceRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.CreateServiceRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.ICreateServiceRequest=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.CreateServiceRequest} CreateServiceRequest instance
+ */
+ CreateServiceRequest.create = function create(properties) {
+ return new CreateServiceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateServiceRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.CreateServiceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.CreateServiceRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.ICreateServiceRequest} message CreateServiceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateServiceRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.serviceId != null && Object.hasOwnProperty.call(message, "serviceId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.serviceId);
+ if (message.service != null && Object.hasOwnProperty.call(message, "service"))
+ $root.google.cloud.agentregistry.v1.Service.encode(message.service, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim();
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateServiceRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.CreateServiceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.CreateServiceRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.ICreateServiceRequest} message CreateServiceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateServiceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateServiceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.CreateServiceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.CreateServiceRequest} CreateServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateServiceRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.CreateServiceRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.serviceId = reader.string();
+ break;
+ }
+ case 3: {
+ message.service = $root.google.cloud.agentregistry.v1.Service.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 4: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateServiceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.CreateServiceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.CreateServiceRequest} CreateServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateServiceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateServiceRequest message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.CreateServiceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateServiceRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.serviceId != null && Object.hasOwnProperty.call(message, "serviceId"))
+ if (!$util.isString(message.serviceId))
+ return "serviceId: string expected";
+ if (message.service != null && Object.hasOwnProperty.call(message, "service")) {
+ var error = $root.google.cloud.agentregistry.v1.Service.verify(message.service, long + 1);
+ if (error)
+ return "service." + error;
+ }
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CreateServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.CreateServiceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.CreateServiceRequest} CreateServiceRequest
+ */
+ CreateServiceRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.CreateServiceRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.CreateServiceRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.CreateServiceRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.serviceId != null)
+ message.serviceId = String(object.serviceId);
+ if (object.service != null) {
+ if (!$util.isObject(object.service))
+ throw TypeError(".google.cloud.agentregistry.v1.CreateServiceRequest.service: object expected");
+ message.service = $root.google.cloud.agentregistry.v1.Service.fromObject(object.service, long + 1);
+ }
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateServiceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.CreateServiceRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.CreateServiceRequest} message CreateServiceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateServiceRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.serviceId = "";
+ object.service = null;
+ object.requestId = "";
+ }
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ object.parent = message.parent;
+ if (message.serviceId != null && Object.hasOwnProperty.call(message, "serviceId"))
+ object.serviceId = message.serviceId;
+ if (message.service != null && Object.hasOwnProperty.call(message, "service"))
+ object.service = $root.google.cloud.agentregistry.v1.Service.toObject(message.service, options, q + 1);
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this CreateServiceRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.CreateServiceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateServiceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateServiceRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.CreateServiceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.CreateServiceRequest";
+ };
+
+ return CreateServiceRequest;
+ })();
+
+ v1.FetchAvailableBindingsRequest = (function() {
+
+ /**
+ * Properties of a FetchAvailableBindingsRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface IFetchAvailableBindingsRequest
+ * @property {string|null} [sourceIdentifier] FetchAvailableBindingsRequest sourceIdentifier
+ * @property {string|null} [targetIdentifier] FetchAvailableBindingsRequest targetIdentifier
+ * @property {string|null} [parent] FetchAvailableBindingsRequest parent
+ * @property {number|null} [pageSize] FetchAvailableBindingsRequest pageSize
+ * @property {string|null} [pageToken] FetchAvailableBindingsRequest pageToken
+ */
+
+ /**
+ * Constructs a new FetchAvailableBindingsRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents a FetchAvailableBindingsRequest.
+ * @implements IFetchAvailableBindingsRequest
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.IFetchAvailableBindingsRequest=} [properties] Properties to set
+ */
+ function FetchAvailableBindingsRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * FetchAvailableBindingsRequest sourceIdentifier.
+ * @member {string|null|undefined} sourceIdentifier
+ * @memberof google.cloud.agentregistry.v1.FetchAvailableBindingsRequest
+ * @instance
+ */
+ FetchAvailableBindingsRequest.prototype.sourceIdentifier = null;
+
+ /**
+ * FetchAvailableBindingsRequest targetIdentifier.
+ * @member {string|null|undefined} targetIdentifier
+ * @memberof google.cloud.agentregistry.v1.FetchAvailableBindingsRequest
+ * @instance
+ */
+ FetchAvailableBindingsRequest.prototype.targetIdentifier = null;
+
+ /**
+ * FetchAvailableBindingsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.agentregistry.v1.FetchAvailableBindingsRequest
+ * @instance
+ */
+ FetchAvailableBindingsRequest.prototype.parent = "";
+
+ /**
+ * FetchAvailableBindingsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.agentregistry.v1.FetchAvailableBindingsRequest
+ * @instance
+ */
+ FetchAvailableBindingsRequest.prototype.pageSize = 0;
+
+ /**
+ * FetchAvailableBindingsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.agentregistry.v1.FetchAvailableBindingsRequest
+ * @instance
+ */
+ FetchAvailableBindingsRequest.prototype.pageToken = "";
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * FetchAvailableBindingsRequest source.
+ * @member {"sourceIdentifier"|undefined} source
+ * @memberof google.cloud.agentregistry.v1.FetchAvailableBindingsRequest
+ * @instance
+ */
+ Object.defineProperty(FetchAvailableBindingsRequest.prototype, "source", {
+ get: $util.oneOfGetter($oneOfFields = ["sourceIdentifier"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * FetchAvailableBindingsRequest target.
+ * @member {"targetIdentifier"|undefined} target
+ * @memberof google.cloud.agentregistry.v1.FetchAvailableBindingsRequest
+ * @instance
+ */
+ Object.defineProperty(FetchAvailableBindingsRequest.prototype, "target", {
+ get: $util.oneOfGetter($oneOfFields = ["targetIdentifier"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new FetchAvailableBindingsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.FetchAvailableBindingsRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IFetchAvailableBindingsRequest=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.FetchAvailableBindingsRequest} FetchAvailableBindingsRequest instance
+ */
+ FetchAvailableBindingsRequest.create = function create(properties) {
+ return new FetchAvailableBindingsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified FetchAvailableBindingsRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.FetchAvailableBindingsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.FetchAvailableBindingsRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IFetchAvailableBindingsRequest} message FetchAvailableBindingsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FetchAvailableBindingsRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.sourceIdentifier != null && Object.hasOwnProperty.call(message, "sourceIdentifier"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceIdentifier);
+ if (message.targetIdentifier != null && Object.hasOwnProperty.call(message, "targetIdentifier"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.targetIdentifier);
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.pageSize);
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.pageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified FetchAvailableBindingsRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.FetchAvailableBindingsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.FetchAvailableBindingsRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IFetchAvailableBindingsRequest} message FetchAvailableBindingsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FetchAvailableBindingsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a FetchAvailableBindingsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.FetchAvailableBindingsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.FetchAvailableBindingsRequest} FetchAvailableBindingsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FetchAvailableBindingsRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 2: {
+ message.sourceIdentifier = reader.string();
+ break;
+ }
+ case 3: {
+ message.targetIdentifier = reader.string();
+ break;
+ }
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 4: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 5: {
+ message.pageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a FetchAvailableBindingsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.FetchAvailableBindingsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.FetchAvailableBindingsRequest} FetchAvailableBindingsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FetchAvailableBindingsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a FetchAvailableBindingsRequest message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.FetchAvailableBindingsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ FetchAvailableBindingsRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ var properties = {};
+ if (message.sourceIdentifier != null && Object.hasOwnProperty.call(message, "sourceIdentifier")) {
+ properties.source = 1;
+ if (!$util.isString(message.sourceIdentifier))
+ return "sourceIdentifier: string expected";
+ }
+ if (message.targetIdentifier != null && Object.hasOwnProperty.call(message, "targetIdentifier")) {
+ properties.target = 1;
+ if (!$util.isString(message.targetIdentifier))
+ return "targetIdentifier: string expected";
+ }
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a FetchAvailableBindingsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.FetchAvailableBindingsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.FetchAvailableBindingsRequest} FetchAvailableBindingsRequest
+ */
+ FetchAvailableBindingsRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.FetchAvailableBindingsRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest();
+ if (object.sourceIdentifier != null)
+ message.sourceIdentifier = String(object.sourceIdentifier);
+ if (object.targetIdentifier != null)
+ message.targetIdentifier = String(object.targetIdentifier);
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.pageSize != null)
+ message.pageSize = object.pageSize | 0;
+ if (object.pageToken != null)
+ message.pageToken = String(object.pageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a FetchAvailableBindingsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.FetchAvailableBindingsRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.FetchAvailableBindingsRequest} message FetchAvailableBindingsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ FetchAvailableBindingsRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ }
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ object.parent = message.parent;
+ if (message.sourceIdentifier != null && Object.hasOwnProperty.call(message, "sourceIdentifier")) {
+ object.sourceIdentifier = message.sourceIdentifier;
+ if (options.oneofs)
+ object.source = "sourceIdentifier";
+ }
+ if (message.targetIdentifier != null && Object.hasOwnProperty.call(message, "targetIdentifier")) {
+ object.targetIdentifier = message.targetIdentifier;
+ if (options.oneofs)
+ object.target = "targetIdentifier";
+ }
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ object.pageToken = message.pageToken;
+ return object;
+ };
+
+ /**
+ * Converts this FetchAvailableBindingsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.FetchAvailableBindingsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ FetchAvailableBindingsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for FetchAvailableBindingsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.FetchAvailableBindingsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ FetchAvailableBindingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.FetchAvailableBindingsRequest";
+ };
+
+ return FetchAvailableBindingsRequest;
+ })();
+
+ v1.FetchAvailableBindingsResponse = (function() {
+
+ /**
+ * Properties of a FetchAvailableBindingsResponse.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface IFetchAvailableBindingsResponse
+ * @property {Array.|null} [bindings] FetchAvailableBindingsResponse bindings
+ * @property {string|null} [nextPageToken] FetchAvailableBindingsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new FetchAvailableBindingsResponse.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents a FetchAvailableBindingsResponse.
+ * @implements IFetchAvailableBindingsResponse
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.IFetchAvailableBindingsResponse=} [properties] Properties to set
+ */
+ function FetchAvailableBindingsResponse(properties) {
+ this.bindings = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * FetchAvailableBindingsResponse bindings.
+ * @member {Array.} bindings
+ * @memberof google.cloud.agentregistry.v1.FetchAvailableBindingsResponse
+ * @instance
+ */
+ FetchAvailableBindingsResponse.prototype.bindings = $util.emptyArray;
+
+ /**
+ * FetchAvailableBindingsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.agentregistry.v1.FetchAvailableBindingsResponse
+ * @instance
+ */
+ FetchAvailableBindingsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new FetchAvailableBindingsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.FetchAvailableBindingsResponse
+ * @static
+ * @param {google.cloud.agentregistry.v1.IFetchAvailableBindingsResponse=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.FetchAvailableBindingsResponse} FetchAvailableBindingsResponse instance
+ */
+ FetchAvailableBindingsResponse.create = function create(properties) {
+ return new FetchAvailableBindingsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified FetchAvailableBindingsResponse message. Does not implicitly {@link google.cloud.agentregistry.v1.FetchAvailableBindingsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.FetchAvailableBindingsResponse
+ * @static
+ * @param {google.cloud.agentregistry.v1.IFetchAvailableBindingsResponse} message FetchAvailableBindingsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FetchAvailableBindingsResponse.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.bindings != null && message.bindings.length)
+ for (var i = 0; i < message.bindings.length; ++i)
+ $root.google.cloud.agentregistry.v1.Binding.encode(message.bindings[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified FetchAvailableBindingsResponse message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.FetchAvailableBindingsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.FetchAvailableBindingsResponse
+ * @static
+ * @param {google.cloud.agentregistry.v1.IFetchAvailableBindingsResponse} message FetchAvailableBindingsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ FetchAvailableBindingsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a FetchAvailableBindingsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.FetchAvailableBindingsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.FetchAvailableBindingsResponse} FetchAvailableBindingsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FetchAvailableBindingsResponse.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.bindings && message.bindings.length))
+ message.bindings = [];
+ message.bindings.push($root.google.cloud.agentregistry.v1.Binding.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a FetchAvailableBindingsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.FetchAvailableBindingsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.FetchAvailableBindingsResponse} FetchAvailableBindingsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ FetchAvailableBindingsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a FetchAvailableBindingsResponse message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.FetchAvailableBindingsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ FetchAvailableBindingsResponse.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.bindings != null && Object.hasOwnProperty.call(message, "bindings")) {
+ if (!Array.isArray(message.bindings))
+ return "bindings: array expected";
+ for (var i = 0; i < message.bindings.length; ++i) {
+ var error = $root.google.cloud.agentregistry.v1.Binding.verify(message.bindings[i], long + 1);
+ if (error)
+ return "bindings." + error;
+ }
+ }
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a FetchAvailableBindingsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.FetchAvailableBindingsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.FetchAvailableBindingsResponse} FetchAvailableBindingsResponse
+ */
+ FetchAvailableBindingsResponse.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.FetchAvailableBindingsResponse: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse();
+ if (object.bindings) {
+ if (!Array.isArray(object.bindings))
+ throw TypeError(".google.cloud.agentregistry.v1.FetchAvailableBindingsResponse.bindings: array expected");
+ message.bindings = [];
+ for (var i = 0; i < object.bindings.length; ++i) {
+ if (!$util.isObject(object.bindings[i]))
+ throw TypeError(".google.cloud.agentregistry.v1.FetchAvailableBindingsResponse.bindings: object expected");
+ message.bindings[i] = $root.google.cloud.agentregistry.v1.Binding.fromObject(object.bindings[i], long + 1);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a FetchAvailableBindingsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.FetchAvailableBindingsResponse
+ * @static
+ * @param {google.cloud.agentregistry.v1.FetchAvailableBindingsResponse} message FetchAvailableBindingsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ FetchAvailableBindingsResponse.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.bindings = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.bindings && message.bindings.length) {
+ object.bindings = [];
+ for (var j = 0; j < message.bindings.length; ++j)
+ object.bindings[j] = $root.google.cloud.agentregistry.v1.Binding.toObject(message.bindings[j], options, q + 1);
+ }
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this FetchAvailableBindingsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.FetchAvailableBindingsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ FetchAvailableBindingsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for FetchAvailableBindingsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.FetchAvailableBindingsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ FetchAvailableBindingsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.FetchAvailableBindingsResponse";
+ };
+
+ return FetchAvailableBindingsResponse;
+ })();
+
+ v1.UpdateServiceRequest = (function() {
+
+ /**
+ * Properties of an UpdateServiceRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface IUpdateServiceRequest
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateServiceRequest updateMask
+ * @property {google.cloud.agentregistry.v1.IService|null} [service] UpdateServiceRequest service
+ * @property {string|null} [requestId] UpdateServiceRequest requestId
+ */
+
+ /**
+ * Constructs a new UpdateServiceRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents an UpdateServiceRequest.
+ * @implements IUpdateServiceRequest
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.IUpdateServiceRequest=} [properties] Properties to set
+ */
+ function UpdateServiceRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * UpdateServiceRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.agentregistry.v1.UpdateServiceRequest
+ * @instance
+ */
+ UpdateServiceRequest.prototype.updateMask = null;
+
+ /**
+ * UpdateServiceRequest service.
+ * @member {google.cloud.agentregistry.v1.IService|null|undefined} service
+ * @memberof google.cloud.agentregistry.v1.UpdateServiceRequest
+ * @instance
+ */
+ UpdateServiceRequest.prototype.service = null;
+
+ /**
+ * UpdateServiceRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.agentregistry.v1.UpdateServiceRequest
+ * @instance
+ */
+ UpdateServiceRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new UpdateServiceRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.UpdateServiceRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IUpdateServiceRequest=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.UpdateServiceRequest} UpdateServiceRequest instance
+ */
+ UpdateServiceRequest.create = function create(properties) {
+ return new UpdateServiceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateServiceRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.UpdateServiceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.UpdateServiceRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IUpdateServiceRequest} message UpdateServiceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateServiceRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
+ $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ if (message.service != null && Object.hasOwnProperty.call(message, "service"))
+ $root.google.cloud.agentregistry.v1.Service.encode(message.service, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim();
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateServiceRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.UpdateServiceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.UpdateServiceRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IUpdateServiceRequest} message UpdateServiceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateServiceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateServiceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.UpdateServiceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.UpdateServiceRequest} UpdateServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateServiceRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.UpdateServiceRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 2: {
+ message.service = $root.google.cloud.agentregistry.v1.Service.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 3: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateServiceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.UpdateServiceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.UpdateServiceRequest} UpdateServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateServiceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateServiceRequest message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.UpdateServiceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateServiceRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) {
+ var error = $root.google.protobuf.FieldMask.verify(message.updateMask, long + 1);
+ if (error)
+ return "updateMask." + error;
+ }
+ if (message.service != null && Object.hasOwnProperty.call(message, "service")) {
+ var error = $root.google.cloud.agentregistry.v1.Service.verify(message.service, long + 1);
+ if (error)
+ return "service." + error;
+ }
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an UpdateServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.UpdateServiceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.UpdateServiceRequest} UpdateServiceRequest
+ */
+ UpdateServiceRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.UpdateServiceRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.UpdateServiceRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.UpdateServiceRequest();
+ if (object.updateMask != null) {
+ if (!$util.isObject(object.updateMask))
+ throw TypeError(".google.cloud.agentregistry.v1.UpdateServiceRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask, long + 1);
+ }
+ if (object.service != null) {
+ if (!$util.isObject(object.service))
+ throw TypeError(".google.cloud.agentregistry.v1.UpdateServiceRequest.service: object expected");
+ message.service = $root.google.cloud.agentregistry.v1.Service.fromObject(object.service, long + 1);
+ }
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateServiceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.UpdateServiceRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.UpdateServiceRequest} message UpdateServiceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateServiceRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.updateMask = null;
+ object.service = null;
+ object.requestId = "";
+ }
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options, q + 1);
+ if (message.service != null && Object.hasOwnProperty.call(message, "service"))
+ object.service = $root.google.cloud.agentregistry.v1.Service.toObject(message.service, options, q + 1);
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this UpdateServiceRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.UpdateServiceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateServiceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateServiceRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.UpdateServiceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.UpdateServiceRequest";
+ };
+
+ return UpdateServiceRequest;
+ })();
+
+ v1.DeleteServiceRequest = (function() {
+
+ /**
+ * Properties of a DeleteServiceRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface IDeleteServiceRequest
+ * @property {string|null} [name] DeleteServiceRequest name
+ * @property {string|null} [requestId] DeleteServiceRequest requestId
+ */
+
+ /**
+ * Constructs a new DeleteServiceRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents a DeleteServiceRequest.
+ * @implements IDeleteServiceRequest
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.IDeleteServiceRequest=} [properties] Properties to set
+ */
+ function DeleteServiceRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * DeleteServiceRequest name.
+ * @member {string} name
+ * @memberof google.cloud.agentregistry.v1.DeleteServiceRequest
+ * @instance
+ */
+ DeleteServiceRequest.prototype.name = "";
+
+ /**
+ * DeleteServiceRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.agentregistry.v1.DeleteServiceRequest
+ * @instance
+ */
+ DeleteServiceRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new DeleteServiceRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.DeleteServiceRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IDeleteServiceRequest=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.DeleteServiceRequest} DeleteServiceRequest instance
+ */
+ DeleteServiceRequest.create = function create(properties) {
+ return new DeleteServiceRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteServiceRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.DeleteServiceRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.DeleteServiceRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IDeleteServiceRequest} message DeleteServiceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteServiceRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DeleteServiceRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.DeleteServiceRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.DeleteServiceRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IDeleteServiceRequest} message DeleteServiceRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteServiceRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteServiceRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.DeleteServiceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.DeleteServiceRequest} DeleteServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteServiceRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.DeleteServiceRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DeleteServiceRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.DeleteServiceRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.DeleteServiceRequest} DeleteServiceRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteServiceRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteServiceRequest message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.DeleteServiceRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteServiceRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a DeleteServiceRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.DeleteServiceRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.DeleteServiceRequest} DeleteServiceRequest
+ */
+ DeleteServiceRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.DeleteServiceRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.DeleteServiceRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.DeleteServiceRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteServiceRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.DeleteServiceRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.DeleteServiceRequest} message DeleteServiceRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteServiceRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.requestId = "";
+ }
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ object.name = message.name;
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this DeleteServiceRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.DeleteServiceRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteServiceRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteServiceRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.DeleteServiceRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.DeleteServiceRequest";
+ };
+
+ return DeleteServiceRequest;
+ })();
+
+ v1.OperationMetadata = (function() {
+
+ /**
+ * Properties of an OperationMetadata.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface IOperationMetadata
+ * @property {google.protobuf.ITimestamp|null} [createTime] OperationMetadata createTime
+ * @property {google.protobuf.ITimestamp|null} [endTime] OperationMetadata endTime
+ * @property {string|null} [target] OperationMetadata target
+ * @property {string|null} [verb] OperationMetadata verb
+ * @property {string|null} [statusMessage] OperationMetadata statusMessage
+ * @property {boolean|null} [requestedCancellation] OperationMetadata requestedCancellation
+ * @property {string|null} [apiVersion] OperationMetadata apiVersion
+ */
+
+ /**
+ * Constructs a new OperationMetadata.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents an OperationMetadata.
+ * @implements IOperationMetadata
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.IOperationMetadata=} [properties] Properties to set
+ */
+ function OperationMetadata(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * OperationMetadata createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.agentregistry.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.createTime = null;
+
+ /**
+ * OperationMetadata endTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} endTime
+ * @memberof google.cloud.agentregistry.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.endTime = null;
+
+ /**
+ * OperationMetadata target.
+ * @member {string} target
+ * @memberof google.cloud.agentregistry.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.target = "";
+
+ /**
+ * OperationMetadata verb.
+ * @member {string} verb
+ * @memberof google.cloud.agentregistry.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.verb = "";
+
+ /**
+ * OperationMetadata statusMessage.
+ * @member {string} statusMessage
+ * @memberof google.cloud.agentregistry.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.statusMessage = "";
+
+ /**
+ * OperationMetadata requestedCancellation.
+ * @member {boolean} requestedCancellation
+ * @memberof google.cloud.agentregistry.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.requestedCancellation = false;
+
+ /**
+ * OperationMetadata apiVersion.
+ * @member {string} apiVersion
+ * @memberof google.cloud.agentregistry.v1.OperationMetadata
+ * @instance
+ */
+ OperationMetadata.prototype.apiVersion = "";
+
+ /**
+ * Creates a new OperationMetadata instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.agentregistry.v1.IOperationMetadata=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.OperationMetadata} OperationMetadata instance
+ */
+ OperationMetadata.create = function create(properties) {
+ return new OperationMetadata(properties);
+ };
+
+ /**
+ * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.agentregistry.v1.OperationMetadata.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.agentregistry.v1.IOperationMetadata} message OperationMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OperationMetadata.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime"))
+ $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim();
+ if (message.target != null && Object.hasOwnProperty.call(message, "target"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.target);
+ if (message.verb != null && Object.hasOwnProperty.call(message, "verb"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.verb);
+ if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusMessage);
+ if (message.requestedCancellation != null && Object.hasOwnProperty.call(message, "requestedCancellation"))
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.requestedCancellation);
+ if (message.apiVersion != null && Object.hasOwnProperty.call(message, "apiVersion"))
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.apiVersion);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.OperationMetadata.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.agentregistry.v1.IOperationMetadata} message OperationMetadata message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ OperationMetadata.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.OperationMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.OperationMetadata} OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OperationMetadata.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.OperationMetadata();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 2: {
+ message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 3: {
+ message.target = reader.string();
+ break;
+ }
+ case 4: {
+ message.verb = reader.string();
+ break;
+ }
+ case 5: {
+ message.statusMessage = reader.string();
+ break;
+ }
+ case 6: {
+ message.requestedCancellation = reader.bool();
+ break;
+ }
+ case 7: {
+ message.apiVersion = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an OperationMetadata message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.OperationMetadata
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.OperationMetadata} OperationMetadata
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ OperationMetadata.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an OperationMetadata message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.OperationMetadata
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ OperationMetadata.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime, long + 1);
+ if (error)
+ return "createTime." + error;
+ }
+ if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.endTime, long + 1);
+ if (error)
+ return "endTime." + error;
+ }
+ if (message.target != null && Object.hasOwnProperty.call(message, "target"))
+ if (!$util.isString(message.target))
+ return "target: string expected";
+ if (message.verb != null && Object.hasOwnProperty.call(message, "verb"))
+ if (!$util.isString(message.verb))
+ return "verb: string expected";
+ if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage"))
+ if (!$util.isString(message.statusMessage))
+ return "statusMessage: string expected";
+ if (message.requestedCancellation != null && Object.hasOwnProperty.call(message, "requestedCancellation"))
+ if (typeof message.requestedCancellation !== "boolean")
+ return "requestedCancellation: boolean expected";
+ if (message.apiVersion != null && Object.hasOwnProperty.call(message, "apiVersion"))
+ if (!$util.isString(message.apiVersion))
+ return "apiVersion: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.OperationMetadata
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.OperationMetadata} OperationMetadata
+ */
+ OperationMetadata.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.OperationMetadata)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.OperationMetadata: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.OperationMetadata();
+ if (object.createTime != null) {
+ if (!$util.isObject(object.createTime))
+ throw TypeError(".google.cloud.agentregistry.v1.OperationMetadata.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime, long + 1);
+ }
+ if (object.endTime != null) {
+ if (!$util.isObject(object.endTime))
+ throw TypeError(".google.cloud.agentregistry.v1.OperationMetadata.endTime: object expected");
+ message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime, long + 1);
+ }
+ if (object.target != null)
+ message.target = String(object.target);
+ if (object.verb != null)
+ message.verb = String(object.verb);
+ if (object.statusMessage != null)
+ message.statusMessage = String(object.statusMessage);
+ if (object.requestedCancellation != null)
+ message.requestedCancellation = Boolean(object.requestedCancellation);
+ if (object.apiVersion != null)
+ message.apiVersion = String(object.apiVersion);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.OperationMetadata
+ * @static
+ * @param {google.cloud.agentregistry.v1.OperationMetadata} message OperationMetadata
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ OperationMetadata.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.createTime = null;
+ object.endTime = null;
+ object.target = "";
+ object.verb = "";
+ object.statusMessage = "";
+ object.requestedCancellation = false;
+ object.apiVersion = "";
+ }
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options, q + 1);
+ if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime"))
+ object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options, q + 1);
+ if (message.target != null && Object.hasOwnProperty.call(message, "target"))
+ object.target = message.target;
+ if (message.verb != null && Object.hasOwnProperty.call(message, "verb"))
+ object.verb = message.verb;
+ if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage"))
+ object.statusMessage = message.statusMessage;
+ if (message.requestedCancellation != null && Object.hasOwnProperty.call(message, "requestedCancellation"))
+ object.requestedCancellation = message.requestedCancellation;
+ if (message.apiVersion != null && Object.hasOwnProperty.call(message, "apiVersion"))
+ object.apiVersion = message.apiVersion;
+ return object;
+ };
+
+ /**
+ * Converts this OperationMetadata to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.OperationMetadata
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ OperationMetadata.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for OperationMetadata
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.OperationMetadata
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ OperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.OperationMetadata";
+ };
+
+ return OperationMetadata;
+ })();
+
+ v1.ListBindingsRequest = (function() {
+
+ /**
+ * Properties of a ListBindingsRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface IListBindingsRequest
+ * @property {string|null} [parent] ListBindingsRequest parent
+ * @property {number|null} [pageSize] ListBindingsRequest pageSize
+ * @property {string|null} [pageToken] ListBindingsRequest pageToken
+ * @property {string|null} [filter] ListBindingsRequest filter
+ * @property {string|null} [orderBy] ListBindingsRequest orderBy
+ */
+
+ /**
+ * Constructs a new ListBindingsRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents a ListBindingsRequest.
+ * @implements IListBindingsRequest
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.IListBindingsRequest=} [properties] Properties to set
+ */
+ function ListBindingsRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ListBindingsRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.agentregistry.v1.ListBindingsRequest
+ * @instance
+ */
+ ListBindingsRequest.prototype.parent = "";
+
+ /**
+ * ListBindingsRequest pageSize.
+ * @member {number} pageSize
+ * @memberof google.cloud.agentregistry.v1.ListBindingsRequest
+ * @instance
+ */
+ ListBindingsRequest.prototype.pageSize = 0;
+
+ /**
+ * ListBindingsRequest pageToken.
+ * @member {string} pageToken
+ * @memberof google.cloud.agentregistry.v1.ListBindingsRequest
+ * @instance
+ */
+ ListBindingsRequest.prototype.pageToken = "";
+
+ /**
+ * ListBindingsRequest filter.
+ * @member {string} filter
+ * @memberof google.cloud.agentregistry.v1.ListBindingsRequest
+ * @instance
+ */
+ ListBindingsRequest.prototype.filter = "";
+
+ /**
+ * ListBindingsRequest orderBy.
+ * @member {string} orderBy
+ * @memberof google.cloud.agentregistry.v1.ListBindingsRequest
+ * @instance
+ */
+ ListBindingsRequest.prototype.orderBy = "";
+
+ /**
+ * Creates a new ListBindingsRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.ListBindingsRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IListBindingsRequest=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.ListBindingsRequest} ListBindingsRequest instance
+ */
+ ListBindingsRequest.create = function create(properties) {
+ return new ListBindingsRequest(properties);
+ };
+
+ /**
+ * Encodes the specified ListBindingsRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.ListBindingsRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.ListBindingsRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IListBindingsRequest} message ListBindingsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListBindingsRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.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.orderBy != null && Object.hasOwnProperty.call(message, "orderBy"))
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListBindingsRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.ListBindingsRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.ListBindingsRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IListBindingsRequest} message ListBindingsRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListBindingsRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListBindingsRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.ListBindingsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.ListBindingsRequest} ListBindingsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListBindingsRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.ListBindingsRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.pageSize = reader.int32();
+ break;
+ }
+ case 3: {
+ message.pageToken = reader.string();
+ break;
+ }
+ case 4: {
+ message.filter = reader.string();
+ break;
+ }
+ case 5: {
+ message.orderBy = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListBindingsRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.ListBindingsRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.ListBindingsRequest} ListBindingsRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListBindingsRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListBindingsRequest message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.ListBindingsRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListBindingsRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ if (!$util.isInteger(message.pageSize))
+ return "pageSize: integer expected";
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ if (!$util.isString(message.pageToken))
+ return "pageToken: string expected";
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ if (!$util.isString(message.filter))
+ return "filter: string expected";
+ if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy"))
+ if (!$util.isString(message.orderBy))
+ return "orderBy: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListBindingsRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.ListBindingsRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.ListBindingsRequest} ListBindingsRequest
+ */
+ ListBindingsRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.ListBindingsRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.ListBindingsRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.ListBindingsRequest();
+ 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);
+ if (object.orderBy != null)
+ message.orderBy = String(object.orderBy);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListBindingsRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.ListBindingsRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.ListBindingsRequest} message ListBindingsRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListBindingsRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.pageSize = 0;
+ object.pageToken = "";
+ object.filter = "";
+ object.orderBy = "";
+ }
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ object.parent = message.parent;
+ if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize"))
+ object.pageSize = message.pageSize;
+ if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken"))
+ object.pageToken = message.pageToken;
+ if (message.filter != null && Object.hasOwnProperty.call(message, "filter"))
+ object.filter = message.filter;
+ if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy"))
+ object.orderBy = message.orderBy;
+ return object;
+ };
+
+ /**
+ * Converts this ListBindingsRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.ListBindingsRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListBindingsRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListBindingsRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.ListBindingsRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListBindingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.ListBindingsRequest";
+ };
+
+ return ListBindingsRequest;
+ })();
+
+ v1.ListBindingsResponse = (function() {
+
+ /**
+ * Properties of a ListBindingsResponse.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface IListBindingsResponse
+ * @property {Array.|null} [bindings] ListBindingsResponse bindings
+ * @property {string|null} [nextPageToken] ListBindingsResponse nextPageToken
+ */
+
+ /**
+ * Constructs a new ListBindingsResponse.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents a ListBindingsResponse.
+ * @implements IListBindingsResponse
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.IListBindingsResponse=} [properties] Properties to set
+ */
+ function ListBindingsResponse(properties) {
+ this.bindings = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ListBindingsResponse bindings.
+ * @member {Array.} bindings
+ * @memberof google.cloud.agentregistry.v1.ListBindingsResponse
+ * @instance
+ */
+ ListBindingsResponse.prototype.bindings = $util.emptyArray;
+
+ /**
+ * ListBindingsResponse nextPageToken.
+ * @member {string} nextPageToken
+ * @memberof google.cloud.agentregistry.v1.ListBindingsResponse
+ * @instance
+ */
+ ListBindingsResponse.prototype.nextPageToken = "";
+
+ /**
+ * Creates a new ListBindingsResponse instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.ListBindingsResponse
+ * @static
+ * @param {google.cloud.agentregistry.v1.IListBindingsResponse=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.ListBindingsResponse} ListBindingsResponse instance
+ */
+ ListBindingsResponse.create = function create(properties) {
+ return new ListBindingsResponse(properties);
+ };
+
+ /**
+ * Encodes the specified ListBindingsResponse message. Does not implicitly {@link google.cloud.agentregistry.v1.ListBindingsResponse.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.ListBindingsResponse
+ * @static
+ * @param {google.cloud.agentregistry.v1.IListBindingsResponse} message ListBindingsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListBindingsResponse.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.bindings != null && message.bindings.length)
+ for (var i = 0; i < message.bindings.length; ++i)
+ $root.google.cloud.agentregistry.v1.Binding.encode(message.bindings[i], writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ListBindingsResponse message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.ListBindingsResponse.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.ListBindingsResponse
+ * @static
+ * @param {google.cloud.agentregistry.v1.IListBindingsResponse} message ListBindingsResponse message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ListBindingsResponse.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a ListBindingsResponse message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.ListBindingsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.ListBindingsResponse} ListBindingsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListBindingsResponse.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.ListBindingsResponse();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ if (!(message.bindings && message.bindings.length))
+ message.bindings = [];
+ message.bindings.push($root.google.cloud.agentregistry.v1.Binding.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 2: {
+ message.nextPageToken = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ListBindingsResponse message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.ListBindingsResponse
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.ListBindingsResponse} ListBindingsResponse
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ListBindingsResponse.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ListBindingsResponse message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.ListBindingsResponse
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ListBindingsResponse.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.bindings != null && Object.hasOwnProperty.call(message, "bindings")) {
+ if (!Array.isArray(message.bindings))
+ return "bindings: array expected";
+ for (var i = 0; i < message.bindings.length; ++i) {
+ var error = $root.google.cloud.agentregistry.v1.Binding.verify(message.bindings[i], long + 1);
+ if (error)
+ return "bindings." + error;
+ }
+ }
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ if (!$util.isString(message.nextPageToken))
+ return "nextPageToken: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a ListBindingsResponse message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.ListBindingsResponse
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.ListBindingsResponse} ListBindingsResponse
+ */
+ ListBindingsResponse.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.ListBindingsResponse)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.ListBindingsResponse: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.ListBindingsResponse();
+ if (object.bindings) {
+ if (!Array.isArray(object.bindings))
+ throw TypeError(".google.cloud.agentregistry.v1.ListBindingsResponse.bindings: array expected");
+ message.bindings = [];
+ for (var i = 0; i < object.bindings.length; ++i) {
+ if (!$util.isObject(object.bindings[i]))
+ throw TypeError(".google.cloud.agentregistry.v1.ListBindingsResponse.bindings: object expected");
+ message.bindings[i] = $root.google.cloud.agentregistry.v1.Binding.fromObject(object.bindings[i], long + 1);
+ }
+ }
+ if (object.nextPageToken != null)
+ message.nextPageToken = String(object.nextPageToken);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ListBindingsResponse message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.ListBindingsResponse
+ * @static
+ * @param {google.cloud.agentregistry.v1.ListBindingsResponse} message ListBindingsResponse
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ListBindingsResponse.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.bindings = [];
+ if (options.defaults)
+ object.nextPageToken = "";
+ if (message.bindings && message.bindings.length) {
+ object.bindings = [];
+ for (var j = 0; j < message.bindings.length; ++j)
+ object.bindings[j] = $root.google.cloud.agentregistry.v1.Binding.toObject(message.bindings[j], options, q + 1);
+ }
+ if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken"))
+ object.nextPageToken = message.nextPageToken;
+ return object;
+ };
+
+ /**
+ * Converts this ListBindingsResponse to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.ListBindingsResponse
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ListBindingsResponse.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ListBindingsResponse
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.ListBindingsResponse
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ListBindingsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.ListBindingsResponse";
+ };
+
+ return ListBindingsResponse;
+ })();
+
+ v1.GetBindingRequest = (function() {
+
+ /**
+ * Properties of a GetBindingRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface IGetBindingRequest
+ * @property {string|null} [name] GetBindingRequest name
+ */
+
+ /**
+ * Constructs a new GetBindingRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents a GetBindingRequest.
+ * @implements IGetBindingRequest
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.IGetBindingRequest=} [properties] Properties to set
+ */
+ function GetBindingRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * GetBindingRequest name.
+ * @member {string} name
+ * @memberof google.cloud.agentregistry.v1.GetBindingRequest
+ * @instance
+ */
+ GetBindingRequest.prototype.name = "";
+
+ /**
+ * Creates a new GetBindingRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.GetBindingRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IGetBindingRequest=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.GetBindingRequest} GetBindingRequest instance
+ */
+ GetBindingRequest.create = function create(properties) {
+ return new GetBindingRequest(properties);
+ };
+
+ /**
+ * Encodes the specified GetBindingRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.GetBindingRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.GetBindingRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IGetBindingRequest} message GetBindingRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetBindingRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified GetBindingRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.GetBindingRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.GetBindingRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IGetBindingRequest} message GetBindingRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ GetBindingRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a GetBindingRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.GetBindingRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.GetBindingRequest} GetBindingRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetBindingRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.GetBindingRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a GetBindingRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.GetBindingRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.GetBindingRequest} GetBindingRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ GetBindingRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a GetBindingRequest message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.GetBindingRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ GetBindingRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a GetBindingRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.GetBindingRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.GetBindingRequest} GetBindingRequest
+ */
+ GetBindingRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.GetBindingRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.GetBindingRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.GetBindingRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a GetBindingRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.GetBindingRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.GetBindingRequest} message GetBindingRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ GetBindingRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults)
+ object.name = "";
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ object.name = message.name;
+ return object;
+ };
+
+ /**
+ * Converts this GetBindingRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.GetBindingRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ GetBindingRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for GetBindingRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.GetBindingRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ GetBindingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.GetBindingRequest";
+ };
+
+ return GetBindingRequest;
+ })();
+
+ v1.CreateBindingRequest = (function() {
+
+ /**
+ * Properties of a CreateBindingRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface ICreateBindingRequest
+ * @property {string|null} [parent] CreateBindingRequest parent
+ * @property {string|null} [bindingId] CreateBindingRequest bindingId
+ * @property {google.cloud.agentregistry.v1.IBinding|null} [binding] CreateBindingRequest binding
+ * @property {string|null} [requestId] CreateBindingRequest requestId
+ */
+
+ /**
+ * Constructs a new CreateBindingRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents a CreateBindingRequest.
+ * @implements ICreateBindingRequest
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.ICreateBindingRequest=} [properties] Properties to set
+ */
+ function CreateBindingRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * CreateBindingRequest parent.
+ * @member {string} parent
+ * @memberof google.cloud.agentregistry.v1.CreateBindingRequest
+ * @instance
+ */
+ CreateBindingRequest.prototype.parent = "";
+
+ /**
+ * CreateBindingRequest bindingId.
+ * @member {string} bindingId
+ * @memberof google.cloud.agentregistry.v1.CreateBindingRequest
+ * @instance
+ */
+ CreateBindingRequest.prototype.bindingId = "";
+
+ /**
+ * CreateBindingRequest binding.
+ * @member {google.cloud.agentregistry.v1.IBinding|null|undefined} binding
+ * @memberof google.cloud.agentregistry.v1.CreateBindingRequest
+ * @instance
+ */
+ CreateBindingRequest.prototype.binding = null;
+
+ /**
+ * CreateBindingRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.agentregistry.v1.CreateBindingRequest
+ * @instance
+ */
+ CreateBindingRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new CreateBindingRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.CreateBindingRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.ICreateBindingRequest=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.CreateBindingRequest} CreateBindingRequest instance
+ */
+ CreateBindingRequest.create = function create(properties) {
+ return new CreateBindingRequest(properties);
+ };
+
+ /**
+ * Encodes the specified CreateBindingRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.CreateBindingRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.CreateBindingRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.ICreateBindingRequest} message CreateBindingRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateBindingRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent);
+ if (message.bindingId != null && Object.hasOwnProperty.call(message, "bindingId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.bindingId);
+ if (message.binding != null && Object.hasOwnProperty.call(message, "binding"))
+ $root.google.cloud.agentregistry.v1.Binding.encode(message.binding, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim();
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified CreateBindingRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.CreateBindingRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.CreateBindingRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.ICreateBindingRequest} message CreateBindingRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ CreateBindingRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a CreateBindingRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.CreateBindingRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.CreateBindingRequest} CreateBindingRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateBindingRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.CreateBindingRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.parent = reader.string();
+ break;
+ }
+ case 2: {
+ message.bindingId = reader.string();
+ break;
+ }
+ case 3: {
+ message.binding = $root.google.cloud.agentregistry.v1.Binding.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 4: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a CreateBindingRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.CreateBindingRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.CreateBindingRequest} CreateBindingRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ CreateBindingRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a CreateBindingRequest message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.CreateBindingRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ CreateBindingRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ if (!$util.isString(message.parent))
+ return "parent: string expected";
+ if (message.bindingId != null && Object.hasOwnProperty.call(message, "bindingId"))
+ if (!$util.isString(message.bindingId))
+ return "bindingId: string expected";
+ if (message.binding != null && Object.hasOwnProperty.call(message, "binding")) {
+ var error = $root.google.cloud.agentregistry.v1.Binding.verify(message.binding, long + 1);
+ if (error)
+ return "binding." + error;
+ }
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a CreateBindingRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.CreateBindingRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.CreateBindingRequest} CreateBindingRequest
+ */
+ CreateBindingRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.CreateBindingRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.CreateBindingRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.CreateBindingRequest();
+ if (object.parent != null)
+ message.parent = String(object.parent);
+ if (object.bindingId != null)
+ message.bindingId = String(object.bindingId);
+ if (object.binding != null) {
+ if (!$util.isObject(object.binding))
+ throw TypeError(".google.cloud.agentregistry.v1.CreateBindingRequest.binding: object expected");
+ message.binding = $root.google.cloud.agentregistry.v1.Binding.fromObject(object.binding, long + 1);
+ }
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a CreateBindingRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.CreateBindingRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.CreateBindingRequest} message CreateBindingRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ CreateBindingRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.parent = "";
+ object.bindingId = "";
+ object.binding = null;
+ object.requestId = "";
+ }
+ if (message.parent != null && Object.hasOwnProperty.call(message, "parent"))
+ object.parent = message.parent;
+ if (message.bindingId != null && Object.hasOwnProperty.call(message, "bindingId"))
+ object.bindingId = message.bindingId;
+ if (message.binding != null && Object.hasOwnProperty.call(message, "binding"))
+ object.binding = $root.google.cloud.agentregistry.v1.Binding.toObject(message.binding, options, q + 1);
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this CreateBindingRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.CreateBindingRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ CreateBindingRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for CreateBindingRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.CreateBindingRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ CreateBindingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.CreateBindingRequest";
+ };
+
+ return CreateBindingRequest;
+ })();
+
+ v1.UpdateBindingRequest = (function() {
+
+ /**
+ * Properties of an UpdateBindingRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface IUpdateBindingRequest
+ * @property {google.cloud.agentregistry.v1.IBinding|null} [binding] UpdateBindingRequest binding
+ * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateBindingRequest updateMask
+ * @property {string|null} [requestId] UpdateBindingRequest requestId
+ */
+
+ /**
+ * Constructs a new UpdateBindingRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents an UpdateBindingRequest.
+ * @implements IUpdateBindingRequest
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.IUpdateBindingRequest=} [properties] Properties to set
+ */
+ function UpdateBindingRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * UpdateBindingRequest binding.
+ * @member {google.cloud.agentregistry.v1.IBinding|null|undefined} binding
+ * @memberof google.cloud.agentregistry.v1.UpdateBindingRequest
+ * @instance
+ */
+ UpdateBindingRequest.prototype.binding = null;
+
+ /**
+ * UpdateBindingRequest updateMask.
+ * @member {google.protobuf.IFieldMask|null|undefined} updateMask
+ * @memberof google.cloud.agentregistry.v1.UpdateBindingRequest
+ * @instance
+ */
+ UpdateBindingRequest.prototype.updateMask = null;
+
+ /**
+ * UpdateBindingRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.agentregistry.v1.UpdateBindingRequest
+ * @instance
+ */
+ UpdateBindingRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new UpdateBindingRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.UpdateBindingRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IUpdateBindingRequest=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.UpdateBindingRequest} UpdateBindingRequest instance
+ */
+ UpdateBindingRequest.create = function create(properties) {
+ return new UpdateBindingRequest(properties);
+ };
+
+ /**
+ * Encodes the specified UpdateBindingRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.UpdateBindingRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.UpdateBindingRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IUpdateBindingRequest} message UpdateBindingRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateBindingRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.binding != null && Object.hasOwnProperty.call(message, "binding"))
+ $root.google.cloud.agentregistry.v1.Binding.encode(message.binding, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
+ $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim();
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified UpdateBindingRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.UpdateBindingRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.UpdateBindingRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IUpdateBindingRequest} message UpdateBindingRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ UpdateBindingRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes an UpdateBindingRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.UpdateBindingRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.UpdateBindingRequest} UpdateBindingRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateBindingRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.UpdateBindingRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.binding = $root.google.cloud.agentregistry.v1.Binding.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 2: {
+ message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 3: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an UpdateBindingRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.UpdateBindingRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.UpdateBindingRequest} UpdateBindingRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ UpdateBindingRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an UpdateBindingRequest message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.UpdateBindingRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ UpdateBindingRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.binding != null && Object.hasOwnProperty.call(message, "binding")) {
+ var error = $root.google.cloud.agentregistry.v1.Binding.verify(message.binding, long + 1);
+ if (error)
+ return "binding." + error;
+ }
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) {
+ var error = $root.google.protobuf.FieldMask.verify(message.updateMask, long + 1);
+ if (error)
+ return "updateMask." + error;
+ }
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an UpdateBindingRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.UpdateBindingRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.UpdateBindingRequest} UpdateBindingRequest
+ */
+ UpdateBindingRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.UpdateBindingRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.UpdateBindingRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.UpdateBindingRequest();
+ if (object.binding != null) {
+ if (!$util.isObject(object.binding))
+ throw TypeError(".google.cloud.agentregistry.v1.UpdateBindingRequest.binding: object expected");
+ message.binding = $root.google.cloud.agentregistry.v1.Binding.fromObject(object.binding, long + 1);
+ }
+ if (object.updateMask != null) {
+ if (!$util.isObject(object.updateMask))
+ throw TypeError(".google.cloud.agentregistry.v1.UpdateBindingRequest.updateMask: object expected");
+ message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask, long + 1);
+ }
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an UpdateBindingRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.UpdateBindingRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.UpdateBindingRequest} message UpdateBindingRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ UpdateBindingRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.binding = null;
+ object.updateMask = null;
+ object.requestId = "";
+ }
+ if (message.binding != null && Object.hasOwnProperty.call(message, "binding"))
+ object.binding = $root.google.cloud.agentregistry.v1.Binding.toObject(message.binding, options, q + 1);
+ if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask"))
+ object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options, q + 1);
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this UpdateBindingRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.UpdateBindingRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ UpdateBindingRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for UpdateBindingRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.UpdateBindingRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ UpdateBindingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.UpdateBindingRequest";
+ };
+
+ return UpdateBindingRequest;
+ })();
+
+ v1.DeleteBindingRequest = (function() {
+
+ /**
+ * Properties of a DeleteBindingRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface IDeleteBindingRequest
+ * @property {string|null} [name] DeleteBindingRequest name
+ * @property {string|null} [requestId] DeleteBindingRequest requestId
+ */
+
+ /**
+ * Constructs a new DeleteBindingRequest.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents a DeleteBindingRequest.
+ * @implements IDeleteBindingRequest
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.IDeleteBindingRequest=} [properties] Properties to set
+ */
+ function DeleteBindingRequest(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * DeleteBindingRequest name.
+ * @member {string} name
+ * @memberof google.cloud.agentregistry.v1.DeleteBindingRequest
+ * @instance
+ */
+ DeleteBindingRequest.prototype.name = "";
+
+ /**
+ * DeleteBindingRequest requestId.
+ * @member {string} requestId
+ * @memberof google.cloud.agentregistry.v1.DeleteBindingRequest
+ * @instance
+ */
+ DeleteBindingRequest.prototype.requestId = "";
+
+ /**
+ * Creates a new DeleteBindingRequest instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.DeleteBindingRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IDeleteBindingRequest=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.DeleteBindingRequest} DeleteBindingRequest instance
+ */
+ DeleteBindingRequest.create = function create(properties) {
+ return new DeleteBindingRequest(properties);
+ };
+
+ /**
+ * Encodes the specified DeleteBindingRequest message. Does not implicitly {@link google.cloud.agentregistry.v1.DeleteBindingRequest.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.DeleteBindingRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IDeleteBindingRequest} message DeleteBindingRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteBindingRequest.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.requestId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified DeleteBindingRequest message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.DeleteBindingRequest.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.DeleteBindingRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.IDeleteBindingRequest} message DeleteBindingRequest message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ DeleteBindingRequest.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a DeleteBindingRequest message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.DeleteBindingRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.DeleteBindingRequest} DeleteBindingRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteBindingRequest.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.DeleteBindingRequest();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.requestId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a DeleteBindingRequest message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.DeleteBindingRequest
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.DeleteBindingRequest} DeleteBindingRequest
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ DeleteBindingRequest.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a DeleteBindingRequest message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.DeleteBindingRequest
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ DeleteBindingRequest.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ if (!$util.isString(message.requestId))
+ return "requestId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a DeleteBindingRequest message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.DeleteBindingRequest
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.DeleteBindingRequest} DeleteBindingRequest
+ */
+ DeleteBindingRequest.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.DeleteBindingRequest)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.DeleteBindingRequest: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.DeleteBindingRequest();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.requestId != null)
+ message.requestId = String(object.requestId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a DeleteBindingRequest message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.DeleteBindingRequest
+ * @static
+ * @param {google.cloud.agentregistry.v1.DeleteBindingRequest} message DeleteBindingRequest
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ DeleteBindingRequest.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.requestId = "";
+ }
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ object.name = message.name;
+ if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId"))
+ object.requestId = message.requestId;
+ return object;
+ };
+
+ /**
+ * Converts this DeleteBindingRequest to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.DeleteBindingRequest
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ DeleteBindingRequest.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for DeleteBindingRequest
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.DeleteBindingRequest
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ DeleteBindingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.DeleteBindingRequest";
+ };
+
+ return DeleteBindingRequest;
+ })();
+
+ v1.Binding = (function() {
+
+ /**
+ * Properties of a Binding.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface IBinding
+ * @property {google.cloud.agentregistry.v1.Binding.IAuthProviderBinding|null} [authProviderBinding] Binding authProviderBinding
+ * @property {string|null} [name] Binding name
+ * @property {string|null} [displayName] Binding displayName
+ * @property {string|null} [description] Binding description
+ * @property {google.cloud.agentregistry.v1.Binding.ISource|null} [source] Binding source
+ * @property {google.cloud.agentregistry.v1.Binding.ITarget|null} [target] Binding target
+ * @property {google.protobuf.ITimestamp|null} [createTime] Binding createTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] Binding updateTime
+ */
+
+ /**
+ * Constructs a new Binding.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents a Binding.
+ * @implements IBinding
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.IBinding=} [properties] Properties to set
+ */
+ function Binding(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Binding authProviderBinding.
+ * @member {google.cloud.agentregistry.v1.Binding.IAuthProviderBinding|null|undefined} authProviderBinding
+ * @memberof google.cloud.agentregistry.v1.Binding
+ * @instance
+ */
+ Binding.prototype.authProviderBinding = null;
+
+ /**
+ * Binding name.
+ * @member {string} name
+ * @memberof google.cloud.agentregistry.v1.Binding
+ * @instance
+ */
+ Binding.prototype.name = "";
+
+ /**
+ * Binding displayName.
+ * @member {string} displayName
+ * @memberof google.cloud.agentregistry.v1.Binding
+ * @instance
+ */
+ Binding.prototype.displayName = "";
+
+ /**
+ * Binding description.
+ * @member {string} description
+ * @memberof google.cloud.agentregistry.v1.Binding
+ * @instance
+ */
+ Binding.prototype.description = "";
+
+ /**
+ * Binding source.
+ * @member {google.cloud.agentregistry.v1.Binding.ISource|null|undefined} source
+ * @memberof google.cloud.agentregistry.v1.Binding
+ * @instance
+ */
+ Binding.prototype.source = null;
+
+ /**
+ * Binding target.
+ * @member {google.cloud.agentregistry.v1.Binding.ITarget|null|undefined} target
+ * @memberof google.cloud.agentregistry.v1.Binding
+ * @instance
+ */
+ Binding.prototype.target = null;
+
+ /**
+ * Binding createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.agentregistry.v1.Binding
+ * @instance
+ */
+ Binding.prototype.createTime = null;
+
+ /**
+ * Binding updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.agentregistry.v1.Binding
+ * @instance
+ */
+ Binding.prototype.updateTime = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * Binding binding.
+ * @member {"authProviderBinding"|undefined} binding
+ * @memberof google.cloud.agentregistry.v1.Binding
+ * @instance
+ */
+ Object.defineProperty(Binding.prototype, "binding", {
+ get: $util.oneOfGetter($oneOfFields = ["authProviderBinding"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new Binding instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.Binding
+ * @static
+ * @param {google.cloud.agentregistry.v1.IBinding=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.Binding} Binding instance
+ */
+ Binding.create = function create(properties) {
+ return new Binding(properties);
+ };
+
+ /**
+ * Encodes the specified Binding message. Does not implicitly {@link google.cloud.agentregistry.v1.Binding.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.Binding
+ * @static
+ * @param {google.cloud.agentregistry.v1.IBinding} message Binding message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Binding.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.description);
+ if (message.source != null && Object.hasOwnProperty.call(message, "source"))
+ $root.google.cloud.agentregistry.v1.Binding.Source.encode(message.source, writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim();
+ if (message.target != null && Object.hasOwnProperty.call(message, "target"))
+ $root.google.cloud.agentregistry.v1.Binding.Target.encode(message.target, writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim();
+ if (message.authProviderBinding != null && Object.hasOwnProperty.call(message, "authProviderBinding"))
+ $root.google.cloud.agentregistry.v1.Binding.AuthProviderBinding.encode(message.authProviderBinding, writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim();
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim();
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 8, wireType 2 =*/66).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Binding message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.Binding.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.Binding
+ * @static
+ * @param {google.cloud.agentregistry.v1.IBinding} message Binding message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Binding.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a Binding message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.Binding
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.Binding} Binding
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Binding.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.Binding();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 6: {
+ message.authProviderBinding = $root.google.cloud.agentregistry.v1.Binding.AuthProviderBinding.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.displayName = reader.string();
+ break;
+ }
+ case 3: {
+ message.description = reader.string();
+ break;
+ }
+ case 4: {
+ message.source = $root.google.cloud.agentregistry.v1.Binding.Source.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 5: {
+ message.target = $root.google.cloud.agentregistry.v1.Binding.Target.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 7: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 8: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Binding message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.Binding
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.Binding} Binding
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Binding.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Binding message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.Binding
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Binding.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ var properties = {};
+ if (message.authProviderBinding != null && Object.hasOwnProperty.call(message, "authProviderBinding")) {
+ properties.binding = 1;
+ {
+ var error = $root.google.cloud.agentregistry.v1.Binding.AuthProviderBinding.verify(message.authProviderBinding, long + 1);
+ if (error)
+ return "authProviderBinding." + error;
+ }
+ }
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ if (!$util.isString(message.displayName))
+ return "displayName: string expected";
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.source != null && Object.hasOwnProperty.call(message, "source")) {
+ var error = $root.google.cloud.agentregistry.v1.Binding.Source.verify(message.source, long + 1);
+ if (error)
+ return "source." + error;
+ }
+ if (message.target != null && Object.hasOwnProperty.call(message, "target")) {
+ var error = $root.google.cloud.agentregistry.v1.Binding.Target.verify(message.target, long + 1);
+ if (error)
+ return "target." + error;
+ }
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime, long + 1);
+ if (error)
+ return "createTime." + error;
+ }
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime, long + 1);
+ if (error)
+ return "updateTime." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Binding message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.Binding
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.Binding} Binding
+ */
+ Binding.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.Binding)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.Binding: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.Binding();
+ if (object.authProviderBinding != null) {
+ if (!$util.isObject(object.authProviderBinding))
+ throw TypeError(".google.cloud.agentregistry.v1.Binding.authProviderBinding: object expected");
+ message.authProviderBinding = $root.google.cloud.agentregistry.v1.Binding.AuthProviderBinding.fromObject(object.authProviderBinding, long + 1);
+ }
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.displayName != null)
+ message.displayName = String(object.displayName);
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.source != null) {
+ if (!$util.isObject(object.source))
+ throw TypeError(".google.cloud.agentregistry.v1.Binding.source: object expected");
+ message.source = $root.google.cloud.agentregistry.v1.Binding.Source.fromObject(object.source, long + 1);
+ }
+ if (object.target != null) {
+ if (!$util.isObject(object.target))
+ throw TypeError(".google.cloud.agentregistry.v1.Binding.target: object expected");
+ message.target = $root.google.cloud.agentregistry.v1.Binding.Target.fromObject(object.target, long + 1);
+ }
+ if (object.createTime != null) {
+ if (!$util.isObject(object.createTime))
+ throw TypeError(".google.cloud.agentregistry.v1.Binding.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime, long + 1);
+ }
+ if (object.updateTime != null) {
+ if (!$util.isObject(object.updateTime))
+ throw TypeError(".google.cloud.agentregistry.v1.Binding.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Binding message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.Binding
+ * @static
+ * @param {google.cloud.agentregistry.v1.Binding} message Binding
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Binding.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.displayName = "";
+ object.description = "";
+ object.source = null;
+ object.target = null;
+ object.createTime = null;
+ object.updateTime = null;
+ }
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ object.name = message.name;
+ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ object.displayName = message.displayName;
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ object.description = message.description;
+ if (message.source != null && Object.hasOwnProperty.call(message, "source"))
+ object.source = $root.google.cloud.agentregistry.v1.Binding.Source.toObject(message.source, options, q + 1);
+ if (message.target != null && Object.hasOwnProperty.call(message, "target"))
+ object.target = $root.google.cloud.agentregistry.v1.Binding.Target.toObject(message.target, options, q + 1);
+ if (message.authProviderBinding != null && Object.hasOwnProperty.call(message, "authProviderBinding")) {
+ object.authProviderBinding = $root.google.cloud.agentregistry.v1.Binding.AuthProviderBinding.toObject(message.authProviderBinding, options, q + 1);
+ if (options.oneofs)
+ object.binding = "authProviderBinding";
+ }
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options, q + 1);
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options, q + 1);
+ return object;
+ };
+
+ /**
+ * Converts this Binding to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.Binding
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Binding.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Binding
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.Binding
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Binding.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.Binding";
+ };
+
+ Binding.Source = (function() {
+
+ /**
+ * Properties of a Source.
+ * @memberof google.cloud.agentregistry.v1.Binding
+ * @interface ISource
+ * @property {string|null} [identifier] Source identifier
+ */
+
+ /**
+ * Constructs a new Source.
+ * @memberof google.cloud.agentregistry.v1.Binding
+ * @classdesc Represents a Source.
+ * @implements ISource
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.Binding.ISource=} [properties] Properties to set
+ */
+ function Source(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Source identifier.
+ * @member {string|null|undefined} identifier
+ * @memberof google.cloud.agentregistry.v1.Binding.Source
+ * @instance
+ */
+ Source.prototype.identifier = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * Source sourceType.
+ * @member {"identifier"|undefined} sourceType
+ * @memberof google.cloud.agentregistry.v1.Binding.Source
+ * @instance
+ */
+ Object.defineProperty(Source.prototype, "sourceType", {
+ get: $util.oneOfGetter($oneOfFields = ["identifier"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new Source instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.Binding.Source
+ * @static
+ * @param {google.cloud.agentregistry.v1.Binding.ISource=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.Binding.Source} Source instance
+ */
+ Source.create = function create(properties) {
+ return new Source(properties);
+ };
+
+ /**
+ * Encodes the specified Source message. Does not implicitly {@link google.cloud.agentregistry.v1.Binding.Source.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.Binding.Source
+ * @static
+ * @param {google.cloud.agentregistry.v1.Binding.ISource} message Source message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Source.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.identifier != null && Object.hasOwnProperty.call(message, "identifier"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.identifier);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Source message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.Binding.Source.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.Binding.Source
+ * @static
+ * @param {google.cloud.agentregistry.v1.Binding.ISource} message Source message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Source.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a Source message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.Binding.Source
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.Binding.Source} Source
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Source.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.Binding.Source();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.identifier = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Source message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.Binding.Source
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.Binding.Source} Source
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Source.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Source message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.Binding.Source
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Source.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ var properties = {};
+ if (message.identifier != null && Object.hasOwnProperty.call(message, "identifier")) {
+ properties.sourceType = 1;
+ if (!$util.isString(message.identifier))
+ return "identifier: string expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Source message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.Binding.Source
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.Binding.Source} Source
+ */
+ Source.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.Binding.Source)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.Binding.Source: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.Binding.Source();
+ if (object.identifier != null)
+ message.identifier = String(object.identifier);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Source message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.Binding.Source
+ * @static
+ * @param {google.cloud.agentregistry.v1.Binding.Source} message Source
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Source.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (message.identifier != null && Object.hasOwnProperty.call(message, "identifier")) {
+ object.identifier = message.identifier;
+ if (options.oneofs)
+ object.sourceType = "identifier";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this Source to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.Binding.Source
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Source.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Source
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.Binding.Source
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Source.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.Binding.Source";
+ };
+
+ return Source;
+ })();
+
+ Binding.Target = (function() {
+
+ /**
+ * Properties of a Target.
+ * @memberof google.cloud.agentregistry.v1.Binding
+ * @interface ITarget
+ * @property {string|null} [identifier] Target identifier
+ */
+
+ /**
+ * Constructs a new Target.
+ * @memberof google.cloud.agentregistry.v1.Binding
+ * @classdesc Represents a Target.
+ * @implements ITarget
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.Binding.ITarget=} [properties] Properties to set
+ */
+ function Target(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Target identifier.
+ * @member {string|null|undefined} identifier
+ * @memberof google.cloud.agentregistry.v1.Binding.Target
+ * @instance
+ */
+ Target.prototype.identifier = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * Target targetType.
+ * @member {"identifier"|undefined} targetType
+ * @memberof google.cloud.agentregistry.v1.Binding.Target
+ * @instance
+ */
+ Object.defineProperty(Target.prototype, "targetType", {
+ get: $util.oneOfGetter($oneOfFields = ["identifier"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new Target instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.Binding.Target
+ * @static
+ * @param {google.cloud.agentregistry.v1.Binding.ITarget=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.Binding.Target} Target instance
+ */
+ Target.create = function create(properties) {
+ return new Target(properties);
+ };
+
+ /**
+ * Encodes the specified Target message. Does not implicitly {@link google.cloud.agentregistry.v1.Binding.Target.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.Binding.Target
+ * @static
+ * @param {google.cloud.agentregistry.v1.Binding.ITarget} message Target message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Target.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.identifier != null && Object.hasOwnProperty.call(message, "identifier"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.identifier);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Target message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.Binding.Target.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.Binding.Target
+ * @static
+ * @param {google.cloud.agentregistry.v1.Binding.ITarget} message Target message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Target.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a Target message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.Binding.Target
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.Binding.Target} Target
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Target.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.Binding.Target();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.identifier = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Target message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.Binding.Target
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.Binding.Target} Target
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Target.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Target message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.Binding.Target
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Target.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ var properties = {};
+ if (message.identifier != null && Object.hasOwnProperty.call(message, "identifier")) {
+ properties.targetType = 1;
+ if (!$util.isString(message.identifier))
+ return "identifier: string expected";
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Target message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.Binding.Target
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.Binding.Target} Target
+ */
+ Target.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.Binding.Target)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.Binding.Target: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.Binding.Target();
+ if (object.identifier != null)
+ message.identifier = String(object.identifier);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Target message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.Binding.Target
+ * @static
+ * @param {google.cloud.agentregistry.v1.Binding.Target} message Target
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Target.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (message.identifier != null && Object.hasOwnProperty.call(message, "identifier")) {
+ object.identifier = message.identifier;
+ if (options.oneofs)
+ object.targetType = "identifier";
+ }
+ return object;
+ };
+
+ /**
+ * Converts this Target to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.Binding.Target
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Target.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Target
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.Binding.Target
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Target.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.Binding.Target";
+ };
+
+ return Target;
+ })();
+
+ Binding.AuthProviderBinding = (function() {
+
+ /**
+ * Properties of an AuthProviderBinding.
+ * @memberof google.cloud.agentregistry.v1.Binding
+ * @interface IAuthProviderBinding
+ * @property {string|null} [authProvider] AuthProviderBinding authProvider
+ * @property {Array.|null} [scopes] AuthProviderBinding scopes
+ * @property {string|null} [continueUri] AuthProviderBinding continueUri
+ */
+
+ /**
+ * Constructs a new AuthProviderBinding.
+ * @memberof google.cloud.agentregistry.v1.Binding
+ * @classdesc Represents an AuthProviderBinding.
+ * @implements IAuthProviderBinding
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.Binding.IAuthProviderBinding=} [properties] Properties to set
+ */
+ function AuthProviderBinding(properties) {
+ this.scopes = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * AuthProviderBinding authProvider.
+ * @member {string} authProvider
+ * @memberof google.cloud.agentregistry.v1.Binding.AuthProviderBinding
+ * @instance
+ */
+ AuthProviderBinding.prototype.authProvider = "";
+
+ /**
+ * AuthProviderBinding scopes.
+ * @member {Array.} scopes
+ * @memberof google.cloud.agentregistry.v1.Binding.AuthProviderBinding
+ * @instance
+ */
+ AuthProviderBinding.prototype.scopes = $util.emptyArray;
+
+ /**
+ * AuthProviderBinding continueUri.
+ * @member {string} continueUri
+ * @memberof google.cloud.agentregistry.v1.Binding.AuthProviderBinding
+ * @instance
+ */
+ AuthProviderBinding.prototype.continueUri = "";
+
+ /**
+ * Creates a new AuthProviderBinding instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.Binding.AuthProviderBinding
+ * @static
+ * @param {google.cloud.agentregistry.v1.Binding.IAuthProviderBinding=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.Binding.AuthProviderBinding} AuthProviderBinding instance
+ */
+ AuthProviderBinding.create = function create(properties) {
+ return new AuthProviderBinding(properties);
+ };
+
+ /**
+ * Encodes the specified AuthProviderBinding message. Does not implicitly {@link google.cloud.agentregistry.v1.Binding.AuthProviderBinding.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.Binding.AuthProviderBinding
+ * @static
+ * @param {google.cloud.agentregistry.v1.Binding.IAuthProviderBinding} message AuthProviderBinding message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AuthProviderBinding.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.authProvider != null && Object.hasOwnProperty.call(message, "authProvider"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.authProvider);
+ if (message.scopes != null && message.scopes.length)
+ for (var i = 0; i < message.scopes.length; ++i)
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.scopes[i]);
+ if (message.continueUri != null && Object.hasOwnProperty.call(message, "continueUri"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.continueUri);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified AuthProviderBinding message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.Binding.AuthProviderBinding.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.Binding.AuthProviderBinding
+ * @static
+ * @param {google.cloud.agentregistry.v1.Binding.IAuthProviderBinding} message AuthProviderBinding message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ AuthProviderBinding.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes an AuthProviderBinding message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.Binding.AuthProviderBinding
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.Binding.AuthProviderBinding} AuthProviderBinding
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AuthProviderBinding.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.Binding.AuthProviderBinding();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.authProvider = reader.string();
+ break;
+ }
+ case 2: {
+ if (!(message.scopes && message.scopes.length))
+ message.scopes = [];
+ message.scopes.push(reader.string());
+ break;
+ }
+ case 3: {
+ message.continueUri = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an AuthProviderBinding message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.Binding.AuthProviderBinding
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.Binding.AuthProviderBinding} AuthProviderBinding
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ AuthProviderBinding.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an AuthProviderBinding message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.Binding.AuthProviderBinding
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ AuthProviderBinding.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.authProvider != null && Object.hasOwnProperty.call(message, "authProvider"))
+ if (!$util.isString(message.authProvider))
+ return "authProvider: string expected";
+ if (message.scopes != null && Object.hasOwnProperty.call(message, "scopes")) {
+ if (!Array.isArray(message.scopes))
+ return "scopes: array expected";
+ for (var i = 0; i < message.scopes.length; ++i)
+ if (!$util.isString(message.scopes[i]))
+ return "scopes: string[] expected";
+ }
+ if (message.continueUri != null && Object.hasOwnProperty.call(message, "continueUri"))
+ if (!$util.isString(message.continueUri))
+ return "continueUri: string expected";
+ return null;
+ };
+
+ /**
+ * Creates an AuthProviderBinding message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.Binding.AuthProviderBinding
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.Binding.AuthProviderBinding} AuthProviderBinding
+ */
+ AuthProviderBinding.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.Binding.AuthProviderBinding)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.Binding.AuthProviderBinding: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.Binding.AuthProviderBinding();
+ if (object.authProvider != null)
+ message.authProvider = String(object.authProvider);
+ if (object.scopes) {
+ if (!Array.isArray(object.scopes))
+ throw TypeError(".google.cloud.agentregistry.v1.Binding.AuthProviderBinding.scopes: array expected");
+ message.scopes = [];
+ for (var i = 0; i < object.scopes.length; ++i)
+ message.scopes[i] = String(object.scopes[i]);
+ }
+ if (object.continueUri != null)
+ message.continueUri = String(object.continueUri);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an AuthProviderBinding message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.Binding.AuthProviderBinding
+ * @static
+ * @param {google.cloud.agentregistry.v1.Binding.AuthProviderBinding} message AuthProviderBinding
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ AuthProviderBinding.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.scopes = [];
+ if (options.defaults) {
+ object.authProvider = "";
+ object.continueUri = "";
+ }
+ if (message.authProvider != null && Object.hasOwnProperty.call(message, "authProvider"))
+ object.authProvider = message.authProvider;
+ if (message.scopes && message.scopes.length) {
+ object.scopes = [];
+ for (var j = 0; j < message.scopes.length; ++j)
+ object.scopes[j] = message.scopes[j];
+ }
+ if (message.continueUri != null && Object.hasOwnProperty.call(message, "continueUri"))
+ object.continueUri = message.continueUri;
+ return object;
+ };
+
+ /**
+ * Converts this AuthProviderBinding to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.Binding.AuthProviderBinding
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ AuthProviderBinding.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for AuthProviderBinding
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.Binding.AuthProviderBinding
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ AuthProviderBinding.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.Binding.AuthProviderBinding";
+ };
+
+ return AuthProviderBinding;
+ })();
+
+ return Binding;
+ })();
+
+ v1.Endpoint = (function() {
+
+ /**
+ * Properties of an Endpoint.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface IEndpoint
+ * @property {string|null} [name] Endpoint name
+ * @property {string|null} [endpointId] Endpoint endpointId
+ * @property {string|null} [displayName] Endpoint displayName
+ * @property {string|null} [description] Endpoint description
+ * @property {Array.|null} [interfaces] Endpoint interfaces
+ * @property {google.protobuf.ITimestamp|null} [createTime] Endpoint createTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] Endpoint updateTime
+ * @property {Object.|null} [attributes] Endpoint attributes
+ */
+
+ /**
+ * Constructs a new Endpoint.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents an Endpoint.
+ * @implements IEndpoint
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.IEndpoint=} [properties] Properties to set
+ */
+ function Endpoint(properties) {
+ this.interfaces = [];
+ this.attributes = {};
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Endpoint name.
+ * @member {string} name
+ * @memberof google.cloud.agentregistry.v1.Endpoint
+ * @instance
+ */
+ Endpoint.prototype.name = "";
+
+ /**
+ * Endpoint endpointId.
+ * @member {string} endpointId
+ * @memberof google.cloud.agentregistry.v1.Endpoint
+ * @instance
+ */
+ Endpoint.prototype.endpointId = "";
+
+ /**
+ * Endpoint displayName.
+ * @member {string} displayName
+ * @memberof google.cloud.agentregistry.v1.Endpoint
+ * @instance
+ */
+ Endpoint.prototype.displayName = "";
+
+ /**
+ * Endpoint description.
+ * @member {string} description
+ * @memberof google.cloud.agentregistry.v1.Endpoint
+ * @instance
+ */
+ Endpoint.prototype.description = "";
+
+ /**
+ * Endpoint interfaces.
+ * @member {Array.} interfaces
+ * @memberof google.cloud.agentregistry.v1.Endpoint
+ * @instance
+ */
+ Endpoint.prototype.interfaces = $util.emptyArray;
+
+ /**
+ * Endpoint createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.agentregistry.v1.Endpoint
+ * @instance
+ */
+ Endpoint.prototype.createTime = null;
+
+ /**
+ * Endpoint updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.agentregistry.v1.Endpoint
+ * @instance
+ */
+ Endpoint.prototype.updateTime = null;
+
+ /**
+ * Endpoint attributes.
+ * @member {Object.} attributes
+ * @memberof google.cloud.agentregistry.v1.Endpoint
+ * @instance
+ */
+ Endpoint.prototype.attributes = $util.emptyObject;
+
+ /**
+ * Creates a new Endpoint instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.Endpoint
+ * @static
+ * @param {google.cloud.agentregistry.v1.IEndpoint=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.Endpoint} Endpoint instance
+ */
+ Endpoint.create = function create(properties) {
+ return new Endpoint(properties);
+ };
+
+ /**
+ * Encodes the specified Endpoint message. Does not implicitly {@link google.cloud.agentregistry.v1.Endpoint.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.Endpoint
+ * @static
+ * @param {google.cloud.agentregistry.v1.IEndpoint} message Endpoint message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Endpoint.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.description);
+ if (message.interfaces != null && message.interfaces.length)
+ for (var i = 0; i < message.interfaces.length; ++i)
+ $root.google.cloud.agentregistry.v1.Interface.encode(message.interfaces[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim();
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim();
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim();
+ if (message.attributes != null && Object.hasOwnProperty.call(message, "attributes"))
+ for (var keys = Object.keys(message.attributes), i = 0; i < keys.length; ++i) {
+ writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
+ $root.google.protobuf.Struct.encode(message.attributes[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim().ldelim();
+ }
+ if (message.endpointId != null && Object.hasOwnProperty.call(message, "endpointId"))
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.endpointId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Endpoint message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.Endpoint.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.Endpoint
+ * @static
+ * @param {google.cloud.agentregistry.v1.IEndpoint} message Endpoint message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Endpoint.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes an Endpoint message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.Endpoint
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.Endpoint} Endpoint
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Endpoint.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.Endpoint(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 8: {
+ message.endpointId = reader.string();
+ break;
+ }
+ case 2: {
+ message.displayName = reader.string();
+ break;
+ }
+ case 3: {
+ message.description = reader.string();
+ break;
+ }
+ case 4: {
+ if (!(message.interfaces && message.interfaces.length))
+ message.interfaces = [];
+ message.interfaces.push($root.google.cloud.agentregistry.v1.Interface.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 5: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 6: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 7: {
+ if (message.attributes === $util.emptyObject)
+ message.attributes = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = "";
+ value = null;
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.string();
+ break;
+ case 2:
+ value = $root.google.protobuf.Struct.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ default:
+ reader.skipType(tag2 & 7, long);
+ break;
+ }
+ }
+ if (key === "__proto__")
+ $util.makeProp(message.attributes, key);
+ message.attributes[key] = value;
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Endpoint message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.Endpoint
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.Endpoint} Endpoint
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Endpoint.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Endpoint message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.Endpoint
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Endpoint.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.endpointId != null && Object.hasOwnProperty.call(message, "endpointId"))
+ if (!$util.isString(message.endpointId))
+ return "endpointId: string expected";
+ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ if (!$util.isString(message.displayName))
+ return "displayName: string expected";
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.interfaces != null && Object.hasOwnProperty.call(message, "interfaces")) {
+ if (!Array.isArray(message.interfaces))
+ return "interfaces: array expected";
+ for (var i = 0; i < message.interfaces.length; ++i) {
+ var error = $root.google.cloud.agentregistry.v1.Interface.verify(message.interfaces[i], long + 1);
+ if (error)
+ return "interfaces." + error;
+ }
+ }
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime, long + 1);
+ if (error)
+ return "createTime." + error;
+ }
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime, long + 1);
+ if (error)
+ return "updateTime." + error;
+ }
+ if (message.attributes != null && Object.hasOwnProperty.call(message, "attributes")) {
+ if (!$util.isObject(message.attributes))
+ return "attributes: object expected";
+ var key = Object.keys(message.attributes);
+ for (var i = 0; i < key.length; ++i) {
+ var error = $root.google.protobuf.Struct.verify(message.attributes[key[i]], long + 1);
+ if (error)
+ return "attributes." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates an Endpoint message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.Endpoint
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.Endpoint} Endpoint
+ */
+ Endpoint.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.Endpoint)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.Endpoint: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.Endpoint();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.endpointId != null)
+ message.endpointId = String(object.endpointId);
+ if (object.displayName != null)
+ message.displayName = String(object.displayName);
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.interfaces) {
+ if (!Array.isArray(object.interfaces))
+ throw TypeError(".google.cloud.agentregistry.v1.Endpoint.interfaces: array expected");
+ message.interfaces = [];
+ for (var i = 0; i < object.interfaces.length; ++i) {
+ if (!$util.isObject(object.interfaces[i]))
+ throw TypeError(".google.cloud.agentregistry.v1.Endpoint.interfaces: object expected");
+ message.interfaces[i] = $root.google.cloud.agentregistry.v1.Interface.fromObject(object.interfaces[i], long + 1);
+ }
+ }
+ if (object.createTime != null) {
+ if (!$util.isObject(object.createTime))
+ throw TypeError(".google.cloud.agentregistry.v1.Endpoint.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime, long + 1);
+ }
+ if (object.updateTime != null) {
+ if (!$util.isObject(object.updateTime))
+ throw TypeError(".google.cloud.agentregistry.v1.Endpoint.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime, long + 1);
+ }
+ if (object.attributes) {
+ if (!$util.isObject(object.attributes))
+ throw TypeError(".google.cloud.agentregistry.v1.Endpoint.attributes: object expected");
+ message.attributes = {};
+ for (var keys = Object.keys(object.attributes), i = 0; i < keys.length; ++i) {
+ if (keys[i] === "__proto__")
+ $util.makeProp(message.attributes, keys[i]);
+ if (!$util.isObject(object.attributes[keys[i]]))
+ throw TypeError(".google.cloud.agentregistry.v1.Endpoint.attributes: object expected");
+ message.attributes[keys[i]] = $root.google.protobuf.Struct.fromObject(object.attributes[keys[i]], long + 1);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Endpoint message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.Endpoint
+ * @static
+ * @param {google.cloud.agentregistry.v1.Endpoint} message Endpoint
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Endpoint.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults)
+ object.interfaces = [];
+ if (options.objects || options.defaults)
+ object.attributes = {};
+ if (options.defaults) {
+ object.name = "";
+ object.displayName = "";
+ object.description = "";
+ object.createTime = null;
+ object.updateTime = null;
+ object.endpointId = "";
+ }
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ object.name = message.name;
+ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ object.displayName = message.displayName;
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ object.description = message.description;
+ if (message.interfaces && message.interfaces.length) {
+ object.interfaces = [];
+ for (var j = 0; j < message.interfaces.length; ++j)
+ object.interfaces[j] = $root.google.cloud.agentregistry.v1.Interface.toObject(message.interfaces[j], options, q + 1);
+ }
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options, q + 1);
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options, q + 1);
+ var keys2;
+ if (message.attributes && (keys2 = Object.keys(message.attributes)).length) {
+ object.attributes = {};
+ for (var j = 0; j < keys2.length; ++j) {
+ if (keys2[j] === "__proto__")
+ $util.makeProp(object.attributes, keys2[j]);
+ object.attributes[keys2[j]] = $root.google.protobuf.Struct.toObject(message.attributes[keys2[j]], options, q + 1);
+ }
+ }
+ if (message.endpointId != null && Object.hasOwnProperty.call(message, "endpointId"))
+ object.endpointId = message.endpointId;
+ return object;
+ };
+
+ /**
+ * Converts this Endpoint to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.Endpoint
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Endpoint.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Endpoint
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.Endpoint
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Endpoint.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.Endpoint";
+ };
+
+ return Endpoint;
+ })();
+
+ v1.McpServer = (function() {
+
+ /**
+ * Properties of a McpServer.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface IMcpServer
+ * @property {string|null} [name] McpServer name
+ * @property {string|null} [mcpServerId] McpServer mcpServerId
+ * @property {string|null} [displayName] McpServer displayName
+ * @property {string|null} [description] McpServer description
+ * @property {Array.|null} [interfaces] McpServer interfaces
+ * @property {Array.|null} [tools] McpServer tools
+ * @property {google.protobuf.ITimestamp|null} [createTime] McpServer createTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] McpServer updateTime
+ * @property {Object.|null} [attributes] McpServer attributes
+ */
+
+ /**
+ * Constructs a new McpServer.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents a McpServer.
+ * @implements IMcpServer
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.IMcpServer=} [properties] Properties to set
+ */
+ function McpServer(properties) {
+ this.interfaces = [];
+ this.tools = [];
+ this.attributes = {};
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * McpServer name.
+ * @member {string} name
+ * @memberof google.cloud.agentregistry.v1.McpServer
+ * @instance
+ */
+ McpServer.prototype.name = "";
+
+ /**
+ * McpServer mcpServerId.
+ * @member {string} mcpServerId
+ * @memberof google.cloud.agentregistry.v1.McpServer
+ * @instance
+ */
+ McpServer.prototype.mcpServerId = "";
+
+ /**
+ * McpServer displayName.
+ * @member {string} displayName
+ * @memberof google.cloud.agentregistry.v1.McpServer
+ * @instance
+ */
+ McpServer.prototype.displayName = "";
+
+ /**
+ * McpServer description.
+ * @member {string} description
+ * @memberof google.cloud.agentregistry.v1.McpServer
+ * @instance
+ */
+ McpServer.prototype.description = "";
+
+ /**
+ * McpServer interfaces.
+ * @member {Array.} interfaces
+ * @memberof google.cloud.agentregistry.v1.McpServer
+ * @instance
+ */
+ McpServer.prototype.interfaces = $util.emptyArray;
+
+ /**
+ * McpServer tools.
+ * @member {Array.} tools
+ * @memberof google.cloud.agentregistry.v1.McpServer
+ * @instance
+ */
+ McpServer.prototype.tools = $util.emptyArray;
+
+ /**
+ * McpServer createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.agentregistry.v1.McpServer
+ * @instance
+ */
+ McpServer.prototype.createTime = null;
+
+ /**
+ * McpServer updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.agentregistry.v1.McpServer
+ * @instance
+ */
+ McpServer.prototype.updateTime = null;
+
+ /**
+ * McpServer attributes.
+ * @member {Object.} attributes
+ * @memberof google.cloud.agentregistry.v1.McpServer
+ * @instance
+ */
+ McpServer.prototype.attributes = $util.emptyObject;
+
+ /**
+ * Creates a new McpServer instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.McpServer
+ * @static
+ * @param {google.cloud.agentregistry.v1.IMcpServer=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.McpServer} McpServer instance
+ */
+ McpServer.create = function create(properties) {
+ return new McpServer(properties);
+ };
+
+ /**
+ * Encodes the specified McpServer message. Does not implicitly {@link google.cloud.agentregistry.v1.McpServer.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.McpServer
+ * @static
+ * @param {google.cloud.agentregistry.v1.IMcpServer} message McpServer message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ McpServer.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.description);
+ if (message.interfaces != null && message.interfaces.length)
+ for (var i = 0; i < message.interfaces.length; ++i)
+ $root.google.cloud.agentregistry.v1.Interface.encode(message.interfaces[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim();
+ if (message.tools != null && message.tools.length)
+ for (var i = 0; i < message.tools.length; ++i)
+ $root.google.cloud.agentregistry.v1.McpServer.Tool.encode(message.tools[i], writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim();
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim();
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim();
+ if (message.attributes != null && Object.hasOwnProperty.call(message, "attributes"))
+ for (var keys = Object.keys(message.attributes), i = 0; i < keys.length; ++i) {
+ writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
+ $root.google.protobuf.Struct.encode(message.attributes[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork(), q + 1).ldelim().ldelim();
+ }
+ if (message.mcpServerId != null && Object.hasOwnProperty.call(message, "mcpServerId"))
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.mcpServerId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified McpServer message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.McpServer.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.McpServer
+ * @static
+ * @param {google.cloud.agentregistry.v1.IMcpServer} message McpServer message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ McpServer.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a McpServer message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.McpServer
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.McpServer} McpServer
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ McpServer.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.McpServer(), key, value;
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 9: {
+ message.mcpServerId = reader.string();
+ break;
+ }
+ case 2: {
+ message.displayName = reader.string();
+ break;
+ }
+ case 3: {
+ message.description = reader.string();
+ break;
+ }
+ case 4: {
+ if (!(message.interfaces && message.interfaces.length))
+ message.interfaces = [];
+ message.interfaces.push($root.google.cloud.agentregistry.v1.Interface.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 5: {
+ if (!(message.tools && message.tools.length))
+ message.tools = [];
+ message.tools.push($root.google.cloud.agentregistry.v1.McpServer.Tool.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 6: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 7: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 8: {
+ if (message.attributes === $util.emptyObject)
+ message.attributes = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = "";
+ value = null;
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.string();
+ break;
+ case 2:
+ value = $root.google.protobuf.Struct.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ default:
+ reader.skipType(tag2 & 7, long);
+ break;
+ }
+ }
+ if (key === "__proto__")
+ $util.makeProp(message.attributes, key);
+ message.attributes[key] = value;
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a McpServer message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.McpServer
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.McpServer} McpServer
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ McpServer.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a McpServer message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.McpServer
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ McpServer.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.mcpServerId != null && Object.hasOwnProperty.call(message, "mcpServerId"))
+ if (!$util.isString(message.mcpServerId))
+ return "mcpServerId: string expected";
+ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ if (!$util.isString(message.displayName))
+ return "displayName: string expected";
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.interfaces != null && Object.hasOwnProperty.call(message, "interfaces")) {
+ if (!Array.isArray(message.interfaces))
+ return "interfaces: array expected";
+ for (var i = 0; i < message.interfaces.length; ++i) {
+ var error = $root.google.cloud.agentregistry.v1.Interface.verify(message.interfaces[i], long + 1);
+ if (error)
+ return "interfaces." + error;
+ }
+ }
+ if (message.tools != null && Object.hasOwnProperty.call(message, "tools")) {
+ if (!Array.isArray(message.tools))
+ return "tools: array expected";
+ for (var i = 0; i < message.tools.length; ++i) {
+ var error = $root.google.cloud.agentregistry.v1.McpServer.Tool.verify(message.tools[i], long + 1);
+ if (error)
+ return "tools." + error;
+ }
+ }
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime, long + 1);
+ if (error)
+ return "createTime." + error;
+ }
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime, long + 1);
+ if (error)
+ return "updateTime." + error;
+ }
+ if (message.attributes != null && Object.hasOwnProperty.call(message, "attributes")) {
+ if (!$util.isObject(message.attributes))
+ return "attributes: object expected";
+ var key = Object.keys(message.attributes);
+ for (var i = 0; i < key.length; ++i) {
+ var error = $root.google.protobuf.Struct.verify(message.attributes[key[i]], long + 1);
+ if (error)
+ return "attributes." + error;
+ }
+ }
+ return null;
+ };
+
+ /**
+ * Creates a McpServer message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.McpServer
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.McpServer} McpServer
+ */
+ McpServer.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.McpServer)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.McpServer: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.McpServer();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.mcpServerId != null)
+ message.mcpServerId = String(object.mcpServerId);
+ if (object.displayName != null)
+ message.displayName = String(object.displayName);
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.interfaces) {
+ if (!Array.isArray(object.interfaces))
+ throw TypeError(".google.cloud.agentregistry.v1.McpServer.interfaces: array expected");
+ message.interfaces = [];
+ for (var i = 0; i < object.interfaces.length; ++i) {
+ if (!$util.isObject(object.interfaces[i]))
+ throw TypeError(".google.cloud.agentregistry.v1.McpServer.interfaces: object expected");
+ message.interfaces[i] = $root.google.cloud.agentregistry.v1.Interface.fromObject(object.interfaces[i], long + 1);
+ }
+ }
+ if (object.tools) {
+ if (!Array.isArray(object.tools))
+ throw TypeError(".google.cloud.agentregistry.v1.McpServer.tools: array expected");
+ message.tools = [];
+ for (var i = 0; i < object.tools.length; ++i) {
+ if (!$util.isObject(object.tools[i]))
+ throw TypeError(".google.cloud.agentregistry.v1.McpServer.tools: object expected");
+ message.tools[i] = $root.google.cloud.agentregistry.v1.McpServer.Tool.fromObject(object.tools[i], long + 1);
+ }
+ }
+ if (object.createTime != null) {
+ if (!$util.isObject(object.createTime))
+ throw TypeError(".google.cloud.agentregistry.v1.McpServer.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime, long + 1);
+ }
+ if (object.updateTime != null) {
+ if (!$util.isObject(object.updateTime))
+ throw TypeError(".google.cloud.agentregistry.v1.McpServer.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime, long + 1);
+ }
+ if (object.attributes) {
+ if (!$util.isObject(object.attributes))
+ throw TypeError(".google.cloud.agentregistry.v1.McpServer.attributes: object expected");
+ message.attributes = {};
+ for (var keys = Object.keys(object.attributes), i = 0; i < keys.length; ++i) {
+ if (keys[i] === "__proto__")
+ $util.makeProp(message.attributes, keys[i]);
+ if (!$util.isObject(object.attributes[keys[i]]))
+ throw TypeError(".google.cloud.agentregistry.v1.McpServer.attributes: object expected");
+ message.attributes[keys[i]] = $root.google.protobuf.Struct.fromObject(object.attributes[keys[i]], long + 1);
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a McpServer message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.McpServer
+ * @static
+ * @param {google.cloud.agentregistry.v1.McpServer} message McpServer
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ McpServer.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.arrays || options.defaults) {
+ object.interfaces = [];
+ object.tools = [];
+ }
+ if (options.objects || options.defaults)
+ object.attributes = {};
+ if (options.defaults) {
+ object.name = "";
+ object.displayName = "";
+ object.description = "";
+ object.createTime = null;
+ object.updateTime = null;
+ object.mcpServerId = "";
+ }
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ object.name = message.name;
+ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ object.displayName = message.displayName;
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ object.description = message.description;
+ if (message.interfaces && message.interfaces.length) {
+ object.interfaces = [];
+ for (var j = 0; j < message.interfaces.length; ++j)
+ object.interfaces[j] = $root.google.cloud.agentregistry.v1.Interface.toObject(message.interfaces[j], options, q + 1);
+ }
+ if (message.tools && message.tools.length) {
+ object.tools = [];
+ for (var j = 0; j < message.tools.length; ++j)
+ object.tools[j] = $root.google.cloud.agentregistry.v1.McpServer.Tool.toObject(message.tools[j], options, q + 1);
+ }
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options, q + 1);
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options, q + 1);
+ var keys2;
+ if (message.attributes && (keys2 = Object.keys(message.attributes)).length) {
+ object.attributes = {};
+ for (var j = 0; j < keys2.length; ++j) {
+ if (keys2[j] === "__proto__")
+ $util.makeProp(object.attributes, keys2[j]);
+ object.attributes[keys2[j]] = $root.google.protobuf.Struct.toObject(message.attributes[keys2[j]], options, q + 1);
+ }
+ }
+ if (message.mcpServerId != null && Object.hasOwnProperty.call(message, "mcpServerId"))
+ object.mcpServerId = message.mcpServerId;
+ return object;
+ };
+
+ /**
+ * Converts this McpServer to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.McpServer
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ McpServer.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for McpServer
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.McpServer
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ McpServer.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.McpServer";
+ };
+
+ McpServer.Tool = (function() {
+
+ /**
+ * Properties of a Tool.
+ * @memberof google.cloud.agentregistry.v1.McpServer
+ * @interface ITool
+ * @property {string|null} [name] Tool name
+ * @property {string|null} [description] Tool description
+ * @property {google.cloud.agentregistry.v1.McpServer.Tool.IAnnotations|null} [annotations] Tool annotations
+ */
+
+ /**
+ * Constructs a new Tool.
+ * @memberof google.cloud.agentregistry.v1.McpServer
+ * @classdesc Represents a Tool.
+ * @implements ITool
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.McpServer.ITool=} [properties] Properties to set
+ */
+ function Tool(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Tool name.
+ * @member {string} name
+ * @memberof google.cloud.agentregistry.v1.McpServer.Tool
+ * @instance
+ */
+ Tool.prototype.name = "";
+
+ /**
+ * Tool description.
+ * @member {string} description
+ * @memberof google.cloud.agentregistry.v1.McpServer.Tool
+ * @instance
+ */
+ Tool.prototype.description = "";
+
+ /**
+ * Tool annotations.
+ * @member {google.cloud.agentregistry.v1.McpServer.Tool.IAnnotations|null|undefined} annotations
+ * @memberof google.cloud.agentregistry.v1.McpServer.Tool
+ * @instance
+ */
+ Tool.prototype.annotations = null;
+
+ /**
+ * Creates a new Tool instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.McpServer.Tool
+ * @static
+ * @param {google.cloud.agentregistry.v1.McpServer.ITool=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.McpServer.Tool} Tool instance
+ */
+ Tool.create = function create(properties) {
+ return new Tool(properties);
+ };
+
+ /**
+ * Encodes the specified Tool message. Does not implicitly {@link google.cloud.agentregistry.v1.McpServer.Tool.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.McpServer.Tool
+ * @static
+ * @param {google.cloud.agentregistry.v1.McpServer.ITool} message Tool message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Tool.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
+ if (message.annotations != null && Object.hasOwnProperty.call(message, "annotations"))
+ $root.google.cloud.agentregistry.v1.McpServer.Tool.Annotations.encode(message.annotations, writer.uint32(/* id 3, wireType 2 =*/26).fork(), q + 1).ldelim();
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Tool message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.McpServer.Tool.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.McpServer.Tool
+ * @static
+ * @param {google.cloud.agentregistry.v1.McpServer.ITool} message Tool message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Tool.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a Tool message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.McpServer.Tool
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.McpServer.Tool} Tool
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Tool.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.McpServer.Tool();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.description = reader.string();
+ break;
+ }
+ case 3: {
+ message.annotations = $root.google.cloud.agentregistry.v1.McpServer.Tool.Annotations.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Tool message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.McpServer.Tool
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.McpServer.Tool} Tool
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Tool.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Tool message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.McpServer.Tool
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Tool.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.annotations != null && Object.hasOwnProperty.call(message, "annotations")) {
+ var error = $root.google.cloud.agentregistry.v1.McpServer.Tool.Annotations.verify(message.annotations, long + 1);
+ if (error)
+ return "annotations." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Tool message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.McpServer.Tool
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.McpServer.Tool} Tool
+ */
+ Tool.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.McpServer.Tool)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.McpServer.Tool: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.McpServer.Tool();
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.annotations != null) {
+ if (!$util.isObject(object.annotations))
+ throw TypeError(".google.cloud.agentregistry.v1.McpServer.Tool.annotations: object expected");
+ message.annotations = $root.google.cloud.agentregistry.v1.McpServer.Tool.Annotations.fromObject(object.annotations, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Tool message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.McpServer.Tool
+ * @static
+ * @param {google.cloud.agentregistry.v1.McpServer.Tool} message Tool
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Tool.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.name = "";
+ object.description = "";
+ object.annotations = null;
+ }
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ object.name = message.name;
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ object.description = message.description;
+ if (message.annotations != null && Object.hasOwnProperty.call(message, "annotations"))
+ object.annotations = $root.google.cloud.agentregistry.v1.McpServer.Tool.Annotations.toObject(message.annotations, options, q + 1);
+ return object;
+ };
+
+ /**
+ * Converts this Tool to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.McpServer.Tool
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Tool.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Tool
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.McpServer.Tool
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Tool.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.McpServer.Tool";
+ };
+
+ Tool.Annotations = (function() {
+
+ /**
+ * Properties of an Annotations.
+ * @memberof google.cloud.agentregistry.v1.McpServer.Tool
+ * @interface IAnnotations
+ * @property {string|null} [title] Annotations title
+ * @property {boolean|null} [destructiveHint] Annotations destructiveHint
+ * @property {boolean|null} [idempotentHint] Annotations idempotentHint
+ * @property {boolean|null} [openWorldHint] Annotations openWorldHint
+ * @property {boolean|null} [readOnlyHint] Annotations readOnlyHint
+ */
+
+ /**
+ * Constructs a new Annotations.
+ * @memberof google.cloud.agentregistry.v1.McpServer.Tool
+ * @classdesc Represents an Annotations.
+ * @implements IAnnotations
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.McpServer.Tool.IAnnotations=} [properties] Properties to set
+ */
+ function Annotations(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Annotations title.
+ * @member {string} title
+ * @memberof google.cloud.agentregistry.v1.McpServer.Tool.Annotations
+ * @instance
+ */
+ Annotations.prototype.title = "";
+
+ /**
+ * Annotations destructiveHint.
+ * @member {boolean} destructiveHint
+ * @memberof google.cloud.agentregistry.v1.McpServer.Tool.Annotations
+ * @instance
+ */
+ Annotations.prototype.destructiveHint = false;
+
+ /**
+ * Annotations idempotentHint.
+ * @member {boolean} idempotentHint
+ * @memberof google.cloud.agentregistry.v1.McpServer.Tool.Annotations
+ * @instance
+ */
+ Annotations.prototype.idempotentHint = false;
+
+ /**
+ * Annotations openWorldHint.
+ * @member {boolean} openWorldHint
+ * @memberof google.cloud.agentregistry.v1.McpServer.Tool.Annotations
+ * @instance
+ */
+ Annotations.prototype.openWorldHint = false;
+
+ /**
+ * Annotations readOnlyHint.
+ * @member {boolean} readOnlyHint
+ * @memberof google.cloud.agentregistry.v1.McpServer.Tool.Annotations
+ * @instance
+ */
+ Annotations.prototype.readOnlyHint = false;
+
+ /**
+ * Creates a new Annotations instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.McpServer.Tool.Annotations
+ * @static
+ * @param {google.cloud.agentregistry.v1.McpServer.Tool.IAnnotations=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.McpServer.Tool.Annotations} Annotations instance
+ */
+ Annotations.create = function create(properties) {
+ return new Annotations(properties);
+ };
+
+ /**
+ * Encodes the specified Annotations message. Does not implicitly {@link google.cloud.agentregistry.v1.McpServer.Tool.Annotations.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.McpServer.Tool.Annotations
+ * @static
+ * @param {google.cloud.agentregistry.v1.McpServer.Tool.IAnnotations} message Annotations message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Annotations.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.title != null && Object.hasOwnProperty.call(message, "title"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.title);
+ if (message.destructiveHint != null && Object.hasOwnProperty.call(message, "destructiveHint"))
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.destructiveHint);
+ if (message.idempotentHint != null && Object.hasOwnProperty.call(message, "idempotentHint"))
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.idempotentHint);
+ if (message.openWorldHint != null && Object.hasOwnProperty.call(message, "openWorldHint"))
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.openWorldHint);
+ if (message.readOnlyHint != null && Object.hasOwnProperty.call(message, "readOnlyHint"))
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.readOnlyHint);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Annotations message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.McpServer.Tool.Annotations.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.McpServer.Tool.Annotations
+ * @static
+ * @param {google.cloud.agentregistry.v1.McpServer.Tool.IAnnotations} message Annotations message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Annotations.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes an Annotations message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.McpServer.Tool.Annotations
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.McpServer.Tool.Annotations} Annotations
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Annotations.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.McpServer.Tool.Annotations();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 1: {
+ message.title = reader.string();
+ break;
+ }
+ case 2: {
+ message.destructiveHint = reader.bool();
+ break;
+ }
+ case 3: {
+ message.idempotentHint = reader.bool();
+ break;
+ }
+ case 4: {
+ message.openWorldHint = reader.bool();
+ break;
+ }
+ case 5: {
+ message.readOnlyHint = reader.bool();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Annotations message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.McpServer.Tool.Annotations
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.McpServer.Tool.Annotations} Annotations
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Annotations.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Annotations message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.McpServer.Tool.Annotations
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Annotations.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ if (message.title != null && Object.hasOwnProperty.call(message, "title"))
+ if (!$util.isString(message.title))
+ return "title: string expected";
+ if (message.destructiveHint != null && Object.hasOwnProperty.call(message, "destructiveHint"))
+ if (typeof message.destructiveHint !== "boolean")
+ return "destructiveHint: boolean expected";
+ if (message.idempotentHint != null && Object.hasOwnProperty.call(message, "idempotentHint"))
+ if (typeof message.idempotentHint !== "boolean")
+ return "idempotentHint: boolean expected";
+ if (message.openWorldHint != null && Object.hasOwnProperty.call(message, "openWorldHint"))
+ if (typeof message.openWorldHint !== "boolean")
+ return "openWorldHint: boolean expected";
+ if (message.readOnlyHint != null && Object.hasOwnProperty.call(message, "readOnlyHint"))
+ if (typeof message.readOnlyHint !== "boolean")
+ return "readOnlyHint: boolean expected";
+ return null;
+ };
+
+ /**
+ * Creates an Annotations message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.McpServer.Tool.Annotations
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.McpServer.Tool.Annotations} Annotations
+ */
+ Annotations.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.McpServer.Tool.Annotations)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.McpServer.Tool.Annotations: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.McpServer.Tool.Annotations();
+ if (object.title != null)
+ message.title = String(object.title);
+ if (object.destructiveHint != null)
+ message.destructiveHint = Boolean(object.destructiveHint);
+ if (object.idempotentHint != null)
+ message.idempotentHint = Boolean(object.idempotentHint);
+ if (object.openWorldHint != null)
+ message.openWorldHint = Boolean(object.openWorldHint);
+ if (object.readOnlyHint != null)
+ message.readOnlyHint = Boolean(object.readOnlyHint);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Annotations message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.McpServer.Tool.Annotations
+ * @static
+ * @param {google.cloud.agentregistry.v1.McpServer.Tool.Annotations} message Annotations
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Annotations.toObject = function toObject(message, options, q) {
+ if (!options)
+ options = {};
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ var object = {};
+ if (options.defaults) {
+ object.title = "";
+ object.destructiveHint = false;
+ object.idempotentHint = false;
+ object.openWorldHint = false;
+ object.readOnlyHint = false;
+ }
+ if (message.title != null && Object.hasOwnProperty.call(message, "title"))
+ object.title = message.title;
+ if (message.destructiveHint != null && Object.hasOwnProperty.call(message, "destructiveHint"))
+ object.destructiveHint = message.destructiveHint;
+ if (message.idempotentHint != null && Object.hasOwnProperty.call(message, "idempotentHint"))
+ object.idempotentHint = message.idempotentHint;
+ if (message.openWorldHint != null && Object.hasOwnProperty.call(message, "openWorldHint"))
+ object.openWorldHint = message.openWorldHint;
+ if (message.readOnlyHint != null && Object.hasOwnProperty.call(message, "readOnlyHint"))
+ object.readOnlyHint = message.readOnlyHint;
+ return object;
+ };
+
+ /**
+ * Converts this Annotations to JSON.
+ * @function toJSON
+ * @memberof google.cloud.agentregistry.v1.McpServer.Tool.Annotations
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Annotations.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Annotations
+ * @function getTypeUrl
+ * @memberof google.cloud.agentregistry.v1.McpServer.Tool.Annotations
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Annotations.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.agentregistry.v1.McpServer.Tool.Annotations";
+ };
+
+ return Annotations;
+ })();
+
+ return Tool;
+ })();
+
+ return McpServer;
+ })();
+
+ v1.Service = (function() {
+
+ /**
+ * Properties of a Service.
+ * @memberof google.cloud.agentregistry.v1
+ * @interface IService
+ * @property {google.cloud.agentregistry.v1.Service.IAgentSpec|null} [agentSpec] Service agentSpec
+ * @property {google.cloud.agentregistry.v1.Service.IMcpServerSpec|null} [mcpServerSpec] Service mcpServerSpec
+ * @property {google.cloud.agentregistry.v1.Service.IEndpointSpec|null} [endpointSpec] Service endpointSpec
+ * @property {string|null} [name] Service name
+ * @property {string|null} [displayName] Service displayName
+ * @property {string|null} [description] Service description
+ * @property {Array.|null} [interfaces] Service interfaces
+ * @property {string|null} [registryResource] Service registryResource
+ * @property {google.protobuf.ITimestamp|null} [createTime] Service createTime
+ * @property {google.protobuf.ITimestamp|null} [updateTime] Service updateTime
+ */
+
+ /**
+ * Constructs a new Service.
+ * @memberof google.cloud.agentregistry.v1
+ * @classdesc Represents a Service.
+ * @implements IService
+ * @constructor
+ * @param {google.cloud.agentregistry.v1.IService=} [properties] Properties to set
+ */
+ function Service(properties) {
+ this.interfaces = [];
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Service agentSpec.
+ * @member {google.cloud.agentregistry.v1.Service.IAgentSpec|null|undefined} agentSpec
+ * @memberof google.cloud.agentregistry.v1.Service
+ * @instance
+ */
+ Service.prototype.agentSpec = null;
+
+ /**
+ * Service mcpServerSpec.
+ * @member {google.cloud.agentregistry.v1.Service.IMcpServerSpec|null|undefined} mcpServerSpec
+ * @memberof google.cloud.agentregistry.v1.Service
+ * @instance
+ */
+ Service.prototype.mcpServerSpec = null;
+
+ /**
+ * Service endpointSpec.
+ * @member {google.cloud.agentregistry.v1.Service.IEndpointSpec|null|undefined} endpointSpec
+ * @memberof google.cloud.agentregistry.v1.Service
+ * @instance
+ */
+ Service.prototype.endpointSpec = null;
+
+ /**
+ * Service name.
+ * @member {string} name
+ * @memberof google.cloud.agentregistry.v1.Service
+ * @instance
+ */
+ Service.prototype.name = "";
+
+ /**
+ * Service displayName.
+ * @member {string} displayName
+ * @memberof google.cloud.agentregistry.v1.Service
+ * @instance
+ */
+ Service.prototype.displayName = "";
+
+ /**
+ * Service description.
+ * @member {string} description
+ * @memberof google.cloud.agentregistry.v1.Service
+ * @instance
+ */
+ Service.prototype.description = "";
+
+ /**
+ * Service interfaces.
+ * @member {Array.} interfaces
+ * @memberof google.cloud.agentregistry.v1.Service
+ * @instance
+ */
+ Service.prototype.interfaces = $util.emptyArray;
+
+ /**
+ * Service registryResource.
+ * @member {string} registryResource
+ * @memberof google.cloud.agentregistry.v1.Service
+ * @instance
+ */
+ Service.prototype.registryResource = "";
+
+ /**
+ * Service createTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} createTime
+ * @memberof google.cloud.agentregistry.v1.Service
+ * @instance
+ */
+ Service.prototype.createTime = null;
+
+ /**
+ * Service updateTime.
+ * @member {google.protobuf.ITimestamp|null|undefined} updateTime
+ * @memberof google.cloud.agentregistry.v1.Service
+ * @instance
+ */
+ Service.prototype.updateTime = null;
+
+ // OneOf field names bound to virtual getters and setters
+ var $oneOfFields;
+
+ /**
+ * Service spec.
+ * @member {"agentSpec"|"mcpServerSpec"|"endpointSpec"|undefined} spec
+ * @memberof google.cloud.agentregistry.v1.Service
+ * @instance
+ */
+ Object.defineProperty(Service.prototype, "spec", {
+ get: $util.oneOfGetter($oneOfFields = ["agentSpec", "mcpServerSpec", "endpointSpec"]),
+ set: $util.oneOfSetter($oneOfFields)
+ });
+
+ /**
+ * Creates a new Service instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.agentregistry.v1.Service
+ * @static
+ * @param {google.cloud.agentregistry.v1.IService=} [properties] Properties to set
+ * @returns {google.cloud.agentregistry.v1.Service} Service instance
+ */
+ Service.create = function create(properties) {
+ return new Service(properties);
+ };
+
+ /**
+ * Encodes the specified Service message. Does not implicitly {@link google.cloud.agentregistry.v1.Service.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.agentregistry.v1.Service
+ * @static
+ * @param {google.cloud.agentregistry.v1.IService} message Service message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Service.encode = function encode(message, writer, q) {
+ if (!writer)
+ writer = $Writer.create();
+ if (q === undefined)
+ q = 0;
+ if (q > $util.recursionLimit)
+ throw Error("max depth exceeded");
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
+ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName);
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.description);
+ if (message.interfaces != null && message.interfaces.length)
+ for (var i = 0; i < message.interfaces.length; ++i)
+ $root.google.cloud.agentregistry.v1.Interface.encode(message.interfaces[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim();
+ if (message.agentSpec != null && Object.hasOwnProperty.call(message, "agentSpec"))
+ $root.google.cloud.agentregistry.v1.Service.AgentSpec.encode(message.agentSpec, writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim();
+ if (message.mcpServerSpec != null && Object.hasOwnProperty.call(message, "mcpServerSpec"))
+ $root.google.cloud.agentregistry.v1.Service.McpServerSpec.encode(message.mcpServerSpec, writer.uint32(/* id 6, wireType 2 =*/50).fork(), q + 1).ldelim();
+ if (message.endpointSpec != null && Object.hasOwnProperty.call(message, "endpointSpec"))
+ $root.google.cloud.agentregistry.v1.Service.EndpointSpec.encode(message.endpointSpec, writer.uint32(/* id 7, wireType 2 =*/58).fork(), q + 1).ldelim();
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime"))
+ $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 8, wireType 2 =*/66).fork(), q + 1).ldelim();
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime"))
+ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 9, wireType 2 =*/74).fork(), q + 1).ldelim();
+ if (message.registryResource != null && Object.hasOwnProperty.call(message, "registryResource"))
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.registryResource);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Service message, length delimited. Does not implicitly {@link google.cloud.agentregistry.v1.Service.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.agentregistry.v1.Service
+ * @static
+ * @param {google.cloud.agentregistry.v1.IService} message Service message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Service.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
+ };
+
+ /**
+ * Decodes a Service message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.agentregistry.v1.Service
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.agentregistry.v1.Service} Service
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Service.decode = function decode(reader, length, error, long) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ if (long === undefined)
+ long = 0;
+ if (long > $Reader.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.agentregistry.v1.Service();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ if (tag === error)
+ break;
+ switch (tag >>> 3) {
+ case 5: {
+ message.agentSpec = $root.google.cloud.agentregistry.v1.Service.AgentSpec.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 6: {
+ message.mcpServerSpec = $root.google.cloud.agentregistry.v1.Service.McpServerSpec.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 7: {
+ message.endpointSpec = $root.google.cloud.agentregistry.v1.Service.EndpointSpec.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 1: {
+ message.name = reader.string();
+ break;
+ }
+ case 2: {
+ message.displayName = reader.string();
+ break;
+ }
+ case 3: {
+ message.description = reader.string();
+ break;
+ }
+ case 4: {
+ if (!(message.interfaces && message.interfaces.length))
+ message.interfaces = [];
+ message.interfaces.push($root.google.cloud.agentregistry.v1.Interface.decode(reader, reader.uint32(), undefined, long + 1));
+ break;
+ }
+ case 10: {
+ message.registryResource = reader.string();
+ break;
+ }
+ case 8: {
+ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ case 9: {
+ message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32(), undefined, long + 1);
+ break;
+ }
+ default:
+ reader.skipType(tag & 7, long);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a Service message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.agentregistry.v1.Service
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.agentregistry.v1.Service} Service
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Service.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a Service message.
+ * @function verify
+ * @memberof google.cloud.agentregistry.v1.Service
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Service.verify = function verify(message, long) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ return "maximum nesting depth exceeded";
+ var properties = {};
+ if (message.agentSpec != null && Object.hasOwnProperty.call(message, "agentSpec")) {
+ properties.spec = 1;
+ {
+ var error = $root.google.cloud.agentregistry.v1.Service.AgentSpec.verify(message.agentSpec, long + 1);
+ if (error)
+ return "agentSpec." + error;
+ }
+ }
+ if (message.mcpServerSpec != null && Object.hasOwnProperty.call(message, "mcpServerSpec")) {
+ if (properties.spec === 1)
+ return "spec: multiple values";
+ properties.spec = 1;
+ {
+ var error = $root.google.cloud.agentregistry.v1.Service.McpServerSpec.verify(message.mcpServerSpec, long + 1);
+ if (error)
+ return "mcpServerSpec." + error;
+ }
+ }
+ if (message.endpointSpec != null && Object.hasOwnProperty.call(message, "endpointSpec")) {
+ if (properties.spec === 1)
+ return "spec: multiple values";
+ properties.spec = 1;
+ {
+ var error = $root.google.cloud.agentregistry.v1.Service.EndpointSpec.verify(message.endpointSpec, long + 1);
+ if (error)
+ return "endpointSpec." + error;
+ }
+ }
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
+ if (!$util.isString(message.name))
+ return "name: string expected";
+ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName"))
+ if (!$util.isString(message.displayName))
+ return "displayName: string expected";
+ if (message.description != null && Object.hasOwnProperty.call(message, "description"))
+ if (!$util.isString(message.description))
+ return "description: string expected";
+ if (message.interfaces != null && Object.hasOwnProperty.call(message, "interfaces")) {
+ if (!Array.isArray(message.interfaces))
+ return "interfaces: array expected";
+ for (var i = 0; i < message.interfaces.length; ++i) {
+ var error = $root.google.cloud.agentregistry.v1.Interface.verify(message.interfaces[i], long + 1);
+ if (error)
+ return "interfaces." + error;
+ }
+ }
+ if (message.registryResource != null && Object.hasOwnProperty.call(message, "registryResource"))
+ if (!$util.isString(message.registryResource))
+ return "registryResource: string expected";
+ if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.createTime, long + 1);
+ if (error)
+ return "createTime." + error;
+ }
+ if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) {
+ var error = $root.google.protobuf.Timestamp.verify(message.updateTime, long + 1);
+ if (error)
+ return "updateTime." + error;
+ }
+ return null;
+ };
+
+ /**
+ * Creates a Service message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.agentregistry.v1.Service
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.agentregistry.v1.Service} Service
+ */
+ Service.fromObject = function fromObject(object, long) {
+ if (object instanceof $root.google.cloud.agentregistry.v1.Service)
+ return object;
+ if (!$util.isObject(object))
+ throw TypeError(".google.cloud.agentregistry.v1.Service: object expected");
+ if (long === undefined)
+ long = 0;
+ if (long > $util.recursionLimit)
+ throw Error("maximum nesting depth exceeded");
+ var message = new $root.google.cloud.agentregistry.v1.Service();
+ if (object.agentSpec != null) {
+ if (!$util.isObject(object.agentSpec))
+ throw TypeError(".google.cloud.agentregistry.v1.Service.agentSpec: object expected");
+ message.agentSpec = $root.google.cloud.agentregistry.v1.Service.AgentSpec.fromObject(object.agentSpec, long + 1);
+ }
+ if (object.mcpServerSpec != null) {
+ if (!$util.isObject(object.mcpServerSpec))
+ throw TypeError(".google.cloud.agentregistry.v1.Service.mcpServerSpec: object expected");
+ message.mcpServerSpec = $root.google.cloud.agentregistry.v1.Service.McpServerSpec.fromObject(object.mcpServerSpec, long + 1);
+ }
+ if (object.endpointSpec != null) {
+ if (!$util.isObject(object.endpointSpec))
+ throw TypeError(".google.cloud.agentregistry.v1.Service.endpointSpec: object expected");
+ message.endpointSpec = $root.google.cloud.agentregistry.v1.Service.EndpointSpec.fromObject(object.endpointSpec, long + 1);
+ }
+ if (object.name != null)
+ message.name = String(object.name);
+ if (object.displayName != null)
+ message.displayName = String(object.displayName);
+ if (object.description != null)
+ message.description = String(object.description);
+ if (object.interfaces) {
+ if (!Array.isArray(object.interfaces))
+ throw TypeError(".google.cloud.agentregistry.v1.Service.interfaces: array expected");
+ message.interfaces = [];
+ for (var i = 0; i < object.interfaces.length; ++i) {
+ if (!$util.isObject(object.interfaces[i]))
+ throw TypeError(".google.cloud.agentregistry.v1.Service.interfaces: object expected");
+ message.interfaces[i] = $root.google.cloud.agentregistry.v1.Interface.fromObject(object.interfaces[i], long + 1);
+ }
+ }
+ if (object.registryResource != null)
+ message.registryResource = String(object.registryResource);
+ if (object.createTime != null) {
+ if (!$util.isObject(object.createTime))
+ throw TypeError(".google.cloud.agentregistry.v1.Service.createTime: object expected");
+ message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime, long + 1);
+ }
+ if (object.updateTime != null) {
+ if (!$util.isObject(object.updateTime))
+ throw TypeError(".google.cloud.agentregistry.v1.Service.updateTime: object expected");
+ message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime, long + 1);
+ }
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a Service message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.agentregistry.v1.Service
+ * @static
+ * @param {google.cloud.agentregistry.v1.Service} message Service
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.