From 343a64cda6ad3f13f64540648efebeae7c1514a2 Mon Sep 17 00:00:00 2001 From: rkavitha-hcl Date: Mon, 2 Dec 2024 10:55:52 +0000 Subject: [PATCH] Modified gnoi as a sub-module for gnoi reboot feature --- .gitmodules | 3 + src/sonic-framework/Makefile.am | 15 +- src/sonic-framework/gnoi | 1 + src/sonic-framework/gnoi/BUILD.bazel | 28 - src/sonic-framework/gnoi/CONTRIBUTING.md | 26 - src/sonic-framework/gnoi/CONTRIBUTORS | 1 - src/sonic-framework/gnoi/LICENSE | 201 - src/sonic-framework/gnoi/MODULE.bazel | 6 - src/sonic-framework/gnoi/MODULE.bazel.lock | 1273 ----- src/sonic-framework/gnoi/README.md | 7 - src/sonic-framework/gnoi/WORKSPACE | 101 - src/sonic-framework/gnoi/bgp/BUILD.bazel | 63 - src/sonic-framework/gnoi/bgp/bgp.pb.go | 287 -- src/sonic-framework/gnoi/bgp/bgp.proto | 48 - src/sonic-framework/gnoi/bgp/bgp_grpc.pb.go | 105 - .../gnoi/bootconfig/BUILD.bazel | 74 - .../gnoi/bootconfig/bootconfig.pb.go | 426 -- .../gnoi/bootconfig/bootconfig.proto | 63 - .../gnoi/bootconfig/bootconfig_grpc.pb.go | 141 - src/sonic-framework/gnoi/cert/BUILD.bazel | 61 - src/sonic-framework/gnoi/cert/cert.pb.go | 2319 --------- src/sonic-framework/gnoi/cert/cert.proto | 466 -- src/sonic-framework/gnoi/cert/cert_grpc.pb.go | 446 -- src/sonic-framework/gnoi/common.bzl | 29 - src/sonic-framework/gnoi/common/BUILD.bazel | 55 - src/sonic-framework/gnoi/common/common.pb.go | 259 - src/sonic-framework/gnoi/common/common.proto | 52 - .../gnoi/containerz/BUILD.bazel | 70 - src/sonic-framework/gnoi/containerz/README.md | 40 - .../gnoi/containerz/containerz.pb.go | 4278 ----------------- .../gnoi/containerz/containerz.proto | 630 --- .../gnoi/containerz/containerz_grpc.pb.go | 642 --- src/sonic-framework/gnoi/debug/BUILD.bazel | 64 - src/sonic-framework/gnoi/debug/README.md | 40 - src/sonic-framework/gnoi/debug/debug.pb.go | 465 -- src/sonic-framework/gnoi/debug/debug.proto | 77 - .../gnoi/debug/debug_grpc.pb.go | 132 - src/sonic-framework/gnoi/diag/BUILD.bazel | 63 - src/sonic-framework/gnoi/diag/diag.pb.go | 1316 ----- src/sonic-framework/gnoi/diag/diag.proto | 253 - src/sonic-framework/gnoi/diag/diag_grpc.pb.go | 177 - src/sonic-framework/gnoi/docs/README.md | 6 - .../gnoi/docs/best_practices.md | 237 - .../gnoi/docs/img/bootstrapping_state.png | Bin 41556 -> 0 bytes .../gnoi/docs/reserved_port.md | 9 - .../gnoi/docs/simplified_bootstrapping.md | 111 - .../gnoi/docs/simplified_security_model.md | 108 - .../gnoi/factory_reset/BUILD.bazel | 63 - .../gnoi/factory_reset/factory_reset.pb.go | 435 -- .../gnoi/factory_reset/factory_reset.proto | 62 - .../factory_reset/factory_reset_grpc.pb.go | 105 - src/sonic-framework/gnoi/file/BUILD.bazel | 67 - src/sonic-framework/gnoi/file/file.pb.go | 1026 ---- src/sonic-framework/gnoi/file/file.proto | 163 - src/sonic-framework/gnoi/file/file_grpc.pb.go | 311 -- src/sonic-framework/gnoi/gnoi_deps.bzl | 476 -- src/sonic-framework/gnoi/go.mod | 19 - src/sonic-framework/gnoi/go.sum | 22 - src/sonic-framework/gnoi/healthz/BUILD.bazel | 69 - src/sonic-framework/gnoi/healthz/README.md | 305 -- .../gnoi/healthz/healthz.pb.go | 1448 ------ .../gnoi/healthz/healthz.proto | 208 - .../gnoi/healthz/healthz_grpc.pb.go | 277 -- src/sonic-framework/gnoi/layer2/BUILD.bazel | 61 - src/sonic-framework/gnoi/layer2/layer2.pb.go | 887 ---- src/sonic-framework/gnoi/layer2/layer2.proto | 112 - .../gnoi/layer2/layer2_grpc.pb.go | 277 -- src/sonic-framework/gnoi/mpls/BUILD.bazel | 61 - src/sonic-framework/gnoi/mpls/mpls.pb.go | 970 ---- src/sonic-framework/gnoi/mpls/mpls.proto | 159 - src/sonic-framework/gnoi/mpls/mpls_grpc.pb.go | 205 - src/sonic-framework/gnoi/os/BUILD.bazel | 61 - src/sonic-framework/gnoi/os/os.pb.go | 1793 ------- src/sonic-framework/gnoi/os/os.proto | 425 -- src/sonic-framework/gnoi/os/os_grpc.pb.go | 210 - src/sonic-framework/gnoi/otdr/BUILD.bazel | 61 - src/sonic-framework/gnoi/otdr/otdr.pb.go | 1111 ----- src/sonic-framework/gnoi/otdr/otdr.proto | 174 - src/sonic-framework/gnoi/otdr/otdr_grpc.pb.go | 132 - .../gnoi/packet_capture/BUILD.bazel | 56 - .../gnoi/packet_capture/packet_capture.pb.go | 1284 ----- .../gnoi/packet_capture/packet_capture.proto | 176 - .../packet_capture/packet_capture_grpc.pb.go | 132 - .../packet_link_qualification/BUILD.bazel | 67 - .../img/link_qual.svg | 1 - .../img/link_qual_ntp.svg | 1 - .../gnoi/packet_link_qualification/index.md | 379 -- .../packet_link_qualification.pb.go | 2720 ----------- .../packet_link_qualification.proto | 382 -- .../packet_link_qualification_grpc.pb.go | 249 - src/sonic-framework/gnoi/regenerate-files.sh | 56 - src/sonic-framework/gnoi/system/BUILD.bazel | 67 - src/sonic-framework/gnoi/system/system.pb.go | 2493 ---------- src/sonic-framework/gnoi/system/system.proto | 369 -- .../gnoi/system/system_grpc.pb.go | 482 -- src/sonic-framework/gnoi/test/BUILD.bazel | 21 - src/sonic-framework/gnoi/test/simple.go | 16 - src/sonic-framework/gnoi/test/simple_test.go | 76 - src/sonic-framework/gnoi/types/BUILD.bazel | 54 - src/sonic-framework/gnoi/types/types.pb.go | 565 --- src/sonic-framework/gnoi/types/types.proto | 77 - .../gnoi/wavelength_router/BUILD.bazel | 61 - .../wavelength_router/wavelength_router.pb.go | 1223 ----- .../wavelength_router/wavelength_router.proto | 197 - .../wavelength_router_grpc.pb.go | 274 -- src/sonic-framework/rebootbackend/Makefile.am | 8 +- src/sonic-framework/tests/Makefile.am | 18 +- 107 files changed, 28 insertions(+), 38505 deletions(-) create mode 160000 src/sonic-framework/gnoi delete mode 100644 src/sonic-framework/gnoi/BUILD.bazel delete mode 100644 src/sonic-framework/gnoi/CONTRIBUTING.md delete mode 100644 src/sonic-framework/gnoi/CONTRIBUTORS delete mode 100644 src/sonic-framework/gnoi/LICENSE delete mode 100644 src/sonic-framework/gnoi/MODULE.bazel delete mode 100644 src/sonic-framework/gnoi/MODULE.bazel.lock delete mode 100644 src/sonic-framework/gnoi/README.md delete mode 100644 src/sonic-framework/gnoi/WORKSPACE delete mode 100644 src/sonic-framework/gnoi/bgp/BUILD.bazel delete mode 100644 src/sonic-framework/gnoi/bgp/bgp.pb.go delete mode 100644 src/sonic-framework/gnoi/bgp/bgp.proto delete mode 100755 src/sonic-framework/gnoi/bgp/bgp_grpc.pb.go delete mode 100644 src/sonic-framework/gnoi/bootconfig/BUILD.bazel delete mode 100644 src/sonic-framework/gnoi/bootconfig/bootconfig.pb.go delete mode 100644 src/sonic-framework/gnoi/bootconfig/bootconfig.proto delete mode 100755 src/sonic-framework/gnoi/bootconfig/bootconfig_grpc.pb.go delete mode 100644 src/sonic-framework/gnoi/cert/BUILD.bazel delete mode 100644 src/sonic-framework/gnoi/cert/cert.pb.go delete mode 100644 src/sonic-framework/gnoi/cert/cert.proto delete mode 100755 src/sonic-framework/gnoi/cert/cert_grpc.pb.go delete mode 100644 src/sonic-framework/gnoi/common.bzl delete mode 100644 src/sonic-framework/gnoi/common/BUILD.bazel delete mode 100644 src/sonic-framework/gnoi/common/common.pb.go delete mode 100644 src/sonic-framework/gnoi/common/common.proto delete mode 100644 src/sonic-framework/gnoi/containerz/BUILD.bazel delete mode 100644 src/sonic-framework/gnoi/containerz/README.md delete mode 100644 src/sonic-framework/gnoi/containerz/containerz.pb.go delete mode 100644 src/sonic-framework/gnoi/containerz/containerz.proto delete mode 100755 src/sonic-framework/gnoi/containerz/containerz_grpc.pb.go delete mode 100644 src/sonic-framework/gnoi/debug/BUILD.bazel delete mode 100644 src/sonic-framework/gnoi/debug/README.md delete mode 100644 src/sonic-framework/gnoi/debug/debug.pb.go delete mode 100644 src/sonic-framework/gnoi/debug/debug.proto delete mode 100755 src/sonic-framework/gnoi/debug/debug_grpc.pb.go delete mode 100644 src/sonic-framework/gnoi/diag/BUILD.bazel delete mode 100644 src/sonic-framework/gnoi/diag/diag.pb.go delete mode 100644 src/sonic-framework/gnoi/diag/diag.proto delete mode 100755 src/sonic-framework/gnoi/diag/diag_grpc.pb.go delete mode 100644 src/sonic-framework/gnoi/docs/README.md delete mode 100644 src/sonic-framework/gnoi/docs/best_practices.md delete mode 100644 src/sonic-framework/gnoi/docs/img/bootstrapping_state.png delete mode 100644 src/sonic-framework/gnoi/docs/reserved_port.md delete mode 100644 src/sonic-framework/gnoi/docs/simplified_bootstrapping.md delete mode 100644 src/sonic-framework/gnoi/docs/simplified_security_model.md delete mode 100644 src/sonic-framework/gnoi/factory_reset/BUILD.bazel delete mode 100644 src/sonic-framework/gnoi/factory_reset/factory_reset.pb.go delete mode 100644 src/sonic-framework/gnoi/factory_reset/factory_reset.proto delete mode 100755 src/sonic-framework/gnoi/factory_reset/factory_reset_grpc.pb.go delete mode 100644 src/sonic-framework/gnoi/file/BUILD.bazel delete mode 100644 src/sonic-framework/gnoi/file/file.pb.go delete mode 100644 src/sonic-framework/gnoi/file/file.proto delete mode 100755 src/sonic-framework/gnoi/file/file_grpc.pb.go delete mode 100644 src/sonic-framework/gnoi/gnoi_deps.bzl delete mode 100644 src/sonic-framework/gnoi/go.mod delete mode 100644 src/sonic-framework/gnoi/go.sum delete mode 100644 src/sonic-framework/gnoi/healthz/BUILD.bazel delete mode 100644 src/sonic-framework/gnoi/healthz/README.md delete mode 100644 src/sonic-framework/gnoi/healthz/healthz.pb.go delete mode 100644 src/sonic-framework/gnoi/healthz/healthz.proto delete mode 100755 src/sonic-framework/gnoi/healthz/healthz_grpc.pb.go delete mode 100644 src/sonic-framework/gnoi/layer2/BUILD.bazel delete mode 100644 src/sonic-framework/gnoi/layer2/layer2.pb.go delete mode 100644 src/sonic-framework/gnoi/layer2/layer2.proto delete mode 100755 src/sonic-framework/gnoi/layer2/layer2_grpc.pb.go delete mode 100644 src/sonic-framework/gnoi/mpls/BUILD.bazel delete mode 100644 src/sonic-framework/gnoi/mpls/mpls.pb.go delete mode 100644 src/sonic-framework/gnoi/mpls/mpls.proto delete mode 100755 src/sonic-framework/gnoi/mpls/mpls_grpc.pb.go delete mode 100644 src/sonic-framework/gnoi/os/BUILD.bazel delete mode 100644 src/sonic-framework/gnoi/os/os.pb.go delete mode 100644 src/sonic-framework/gnoi/os/os.proto delete mode 100755 src/sonic-framework/gnoi/os/os_grpc.pb.go delete mode 100644 src/sonic-framework/gnoi/otdr/BUILD.bazel delete mode 100644 src/sonic-framework/gnoi/otdr/otdr.pb.go delete mode 100644 src/sonic-framework/gnoi/otdr/otdr.proto delete mode 100755 src/sonic-framework/gnoi/otdr/otdr_grpc.pb.go delete mode 100644 src/sonic-framework/gnoi/packet_capture/BUILD.bazel delete mode 100644 src/sonic-framework/gnoi/packet_capture/packet_capture.pb.go delete mode 100644 src/sonic-framework/gnoi/packet_capture/packet_capture.proto delete mode 100755 src/sonic-framework/gnoi/packet_capture/packet_capture_grpc.pb.go delete mode 100644 src/sonic-framework/gnoi/packet_link_qualification/BUILD.bazel delete mode 100644 src/sonic-framework/gnoi/packet_link_qualification/img/link_qual.svg delete mode 100644 src/sonic-framework/gnoi/packet_link_qualification/img/link_qual_ntp.svg delete mode 100644 src/sonic-framework/gnoi/packet_link_qualification/index.md delete mode 100644 src/sonic-framework/gnoi/packet_link_qualification/packet_link_qualification.pb.go delete mode 100644 src/sonic-framework/gnoi/packet_link_qualification/packet_link_qualification.proto delete mode 100755 src/sonic-framework/gnoi/packet_link_qualification/packet_link_qualification_grpc.pb.go delete mode 100755 src/sonic-framework/gnoi/regenerate-files.sh delete mode 100644 src/sonic-framework/gnoi/system/BUILD.bazel delete mode 100644 src/sonic-framework/gnoi/system/system.pb.go delete mode 100644 src/sonic-framework/gnoi/system/system.proto delete mode 100755 src/sonic-framework/gnoi/system/system_grpc.pb.go delete mode 100644 src/sonic-framework/gnoi/test/BUILD.bazel delete mode 100644 src/sonic-framework/gnoi/test/simple.go delete mode 100644 src/sonic-framework/gnoi/test/simple_test.go delete mode 100644 src/sonic-framework/gnoi/types/BUILD.bazel delete mode 100644 src/sonic-framework/gnoi/types/types.pb.go delete mode 100644 src/sonic-framework/gnoi/types/types.proto delete mode 100644 src/sonic-framework/gnoi/wavelength_router/BUILD.bazel delete mode 100644 src/sonic-framework/gnoi/wavelength_router/wavelength_router.pb.go delete mode 100644 src/sonic-framework/gnoi/wavelength_router/wavelength_router.proto delete mode 100755 src/sonic-framework/gnoi/wavelength_router/wavelength_router_grpc.pb.go diff --git a/.gitmodules b/.gitmodules index 050d14baf3aa..c884540415a9 100644 --- a/.gitmodules +++ b/.gitmodules @@ -130,3 +130,6 @@ [submodule "src/sonic-stp"] path = src/sonic-stp url = https://github.com/sonic-net/sonic-stp +[submodule "src/sonic-framework/gnoi"] + path = src/sonic-framework/gnoi + url = https://github.com/openconfig/gnoi diff --git a/src/sonic-framework/Makefile.am b/src/sonic-framework/Makefile.am index 23051da40f3c..9dd2321a52a0 100644 --- a/src/sonic-framework/Makefile.am +++ b/src/sonic-framework/Makefile.am @@ -1,19 +1,26 @@ .PHONY: compile_protobufs AUTOMAKE_OPTIONS = subdir-objects -INCLUDES = -I ../sonic-swss-common/common +INCLUDES = -I ../sonic-swss-common/common -Ibuild/gen -Ibuild/gen/github.com/openconfig/gnoi BUILT_SOURCES = rebootbackend_protobuf_compilation rebootbackend_dbus_compilation compile_protobufs: rebootbackend_protobuf_compilation rebootbackend_dbus_compilation rebootbackend_protobuf_compilation: - /usr/bin/protoc --cpp_out=rebootbackend \ - --proto_path=gnoi \ + mkdir -p build/gen + /usr/bin/protoc --cpp_out=build/gen \ + --proto_path=github.com/openconfig/gnoi=gnoi \ gnoi/types/types.proto \ gnoi/common/common.proto \ gnoi/system/system.proto -rebootbackend_dbus_compilation: +rebootbackend_dbus_compilation: build/gen/librebgnoi.la /usr/bin/dbusxx-xml2cpp rebootbackend/gnoi_reboot.xml \ --proxy=rebootbackend/gnoi_reboot_dbus.h +lib_LTLIBRARIES = build/gen/librebgnoi.la +build_gen_librebgnoi_la_SOURCES = \ + build/gen/github.com/openconfig/gnoi/system/system.pb.cc \ + build/gen/github.com/openconfig/gnoi/types/types.pb.cc \ + build/gen/github.com/openconfig/gnoi/common/common.pb.cc + SUBDIRS = rebootbackend diff --git a/src/sonic-framework/gnoi b/src/sonic-framework/gnoi new file mode 160000 index 000000000000..73a1e7675c5f --- /dev/null +++ b/src/sonic-framework/gnoi @@ -0,0 +1 @@ +Subproject commit 73a1e7675c5f963e7810bd3828203f2758eb47e8 diff --git a/src/sonic-framework/gnoi/BUILD.bazel b/src/sonic-framework/gnoi/BUILD.bazel deleted file mode 100644 index 805bd137468b..000000000000 --- a/src/sonic-framework/gnoi/BUILD.bazel +++ /dev/null @@ -1,28 +0,0 @@ -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.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. -# -# Supporting infrastructure for implementing and testing PINS. -load("@bazel_gazelle//:def.bzl", "gazelle") - -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -exports_files(["LICENSE"]) - -# gazelle:prefix github.com/openconfig/gnoi -gazelle(name = "gazelle") - -# gazelle:exclude **.pb.go diff --git a/src/sonic-framework/gnoi/CONTRIBUTING.md b/src/sonic-framework/gnoi/CONTRIBUTING.md deleted file mode 100644 index 4bb0d8374d6d..000000000000 --- a/src/sonic-framework/gnoi/CONTRIBUTING.md +++ /dev/null @@ -1,26 +0,0 @@ -``` -# How to contribute - -In order to contribute to this project, please follow the -guidelines below. - -## Contributor License Agreement - -Contributions to this project must be accompanied by a Contributor License -Agreement. You (or your employer) retain the copyright to your contribution, -this simply gives us permission to use and redistribute your contributions as -part of the project. Head over to to see -your current agreements on file or to sign a new one. - -You generally only need to submit a CLA once, so if you've already submitted one -(even if it was for a different project), you probably don't need to do it -again. - -## Code reviews - -All submissions, including submissions by project members, require review. We -use GitHub pull requests for this purpose. Consult -[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more -information on using pull requests. - -``` \ No newline at end of file diff --git a/src/sonic-framework/gnoi/CONTRIBUTORS b/src/sonic-framework/gnoi/CONTRIBUTORS deleted file mode 100644 index d27bcca7ae95..000000000000 --- a/src/sonic-framework/gnoi/CONTRIBUTORS +++ /dev/null @@ -1 +0,0 @@ -Google, Inc. diff --git a/src/sonic-framework/gnoi/LICENSE b/src/sonic-framework/gnoi/LICENSE deleted file mode 100644 index 8dada3edaf50..000000000000 --- a/src/sonic-framework/gnoi/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright {yyyy} {name of copyright owner} - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/src/sonic-framework/gnoi/MODULE.bazel b/src/sonic-framework/gnoi/MODULE.bazel deleted file mode 100644 index 00bb18361f7f..000000000000 --- a/src/sonic-framework/gnoi/MODULE.bazel +++ /dev/null @@ -1,6 +0,0 @@ -############################################################################### -# Bazel now uses Bzlmod by default to manage external dependencies. -# Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel. -# -# For more details, please check https://github.com/bazelbuild/bazel/issues/18958 -############################################################################### diff --git a/src/sonic-framework/gnoi/MODULE.bazel.lock b/src/sonic-framework/gnoi/MODULE.bazel.lock deleted file mode 100644 index 524a898c5a7e..000000000000 --- a/src/sonic-framework/gnoi/MODULE.bazel.lock +++ /dev/null @@ -1,1273 +0,0 @@ -{ - "lockFileVersion": 3, - "moduleFileHash": "0e3e315145ac7ee7a4e0ac825e1c5e03c068ec1254dd42c3caaecb27e921dc4d", - "flags": { - "cmdRegistries": [ - "https://bcr.bazel.build/" - ], - "cmdModuleOverrides": {}, - "allowedYankedVersions": [], - "envVarAllowedYankedVersions": "", - "ignoreDevDependency": false, - "directDependenciesMode": "WARNING", - "compatibilityMode": "ERROR" - }, - "localOverrideHashes": { - "bazel_tools": "922ea6752dc9105de5af957f7a99a6933c0a6a712d23df6aad16a9c399f7e787" - }, - "moduleDepGraph": { - "": { - "name": "", - "version": "", - "key": "", - "repoName": "", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [], - "extensionUsages": [], - "deps": { - "bazel_tools": "bazel_tools@_", - "local_config_platform": "local_config_platform@_" - } - }, - "bazel_tools@_": { - "name": "bazel_tools", - "version": "", - "key": "bazel_tools@_", - "repoName": "bazel_tools", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [ - "@local_config_cc_toolchains//:all", - "@local_config_sh//:local_sh_toolchain" - ], - "extensionUsages": [ - { - "extensionBzlFile": "@bazel_tools//tools/cpp:cc_configure.bzl", - "extensionName": "cc_configure_extension", - "usingModule": "bazel_tools@_", - "location": { - "file": "@@bazel_tools//:MODULE.bazel", - "line": 17, - "column": 29 - }, - "imports": { - "local_config_cc": "local_config_cc", - "local_config_cc_toolchains": "local_config_cc_toolchains" - }, - "devImports": [], - "tags": [], - "hasDevUseExtension": false, - "hasNonDevUseExtension": true - }, - { - "extensionBzlFile": "@bazel_tools//tools/osx:xcode_configure.bzl", - "extensionName": "xcode_configure_extension", - "usingModule": "bazel_tools@_", - "location": { - "file": "@@bazel_tools//:MODULE.bazel", - "line": 21, - "column": 32 - }, - "imports": { - "local_config_xcode": "local_config_xcode" - }, - "devImports": [], - "tags": [], - "hasDevUseExtension": false, - "hasNonDevUseExtension": true - }, - { - "extensionBzlFile": "@rules_java//java:extensions.bzl", - "extensionName": "toolchains", - "usingModule": "bazel_tools@_", - "location": { - "file": "@@bazel_tools//:MODULE.bazel", - "line": 24, - "column": 32 - }, - "imports": { - "local_jdk": "local_jdk", - "remote_java_tools": "remote_java_tools", - "remote_java_tools_linux": "remote_java_tools_linux", - "remote_java_tools_windows": "remote_java_tools_windows", - "remote_java_tools_darwin_x86_64": "remote_java_tools_darwin_x86_64", - "remote_java_tools_darwin_arm64": "remote_java_tools_darwin_arm64" - }, - "devImports": [], - "tags": [], - "hasDevUseExtension": false, - "hasNonDevUseExtension": true - }, - { - "extensionBzlFile": "@bazel_tools//tools/sh:sh_configure.bzl", - "extensionName": "sh_configure_extension", - "usingModule": "bazel_tools@_", - "location": { - "file": "@@bazel_tools//:MODULE.bazel", - "line": 35, - "column": 39 - }, - "imports": { - "local_config_sh": "local_config_sh" - }, - "devImports": [], - "tags": [], - "hasDevUseExtension": false, - "hasNonDevUseExtension": true - }, - { - "extensionBzlFile": "@bazel_tools//tools/test:extensions.bzl", - "extensionName": "remote_coverage_tools_extension", - "usingModule": "bazel_tools@_", - "location": { - "file": "@@bazel_tools//:MODULE.bazel", - "line": 39, - "column": 48 - }, - "imports": { - "remote_coverage_tools": "remote_coverage_tools" - }, - "devImports": [], - "tags": [], - "hasDevUseExtension": false, - "hasNonDevUseExtension": true - }, - { - "extensionBzlFile": "@bazel_tools//tools/android:android_extensions.bzl", - "extensionName": "remote_android_tools_extensions", - "usingModule": "bazel_tools@_", - "location": { - "file": "@@bazel_tools//:MODULE.bazel", - "line": 42, - "column": 42 - }, - "imports": { - "android_gmaven_r8": "android_gmaven_r8", - "android_tools": "android_tools" - }, - "devImports": [], - "tags": [], - "hasDevUseExtension": false, - "hasNonDevUseExtension": true - } - ], - "deps": { - "rules_cc": "rules_cc@0.0.9", - "rules_java": "rules_java@7.1.0", - "rules_license": "rules_license@0.0.7", - "rules_proto": "rules_proto@4.0.0", - "rules_python": "rules_python@0.4.0", - "platforms": "platforms@0.0.7", - "com_google_protobuf": "protobuf@3.19.6", - "zlib": "zlib@1.3", - "build_bazel_apple_support": "apple_support@1.5.0", - "local_config_platform": "local_config_platform@_" - } - }, - "local_config_platform@_": { - "name": "local_config_platform", - "version": "", - "key": "local_config_platform@_", - "repoName": "local_config_platform", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [], - "extensionUsages": [], - "deps": { - "platforms": "platforms@0.0.7", - "bazel_tools": "bazel_tools@_" - } - }, - "rules_cc@0.0.9": { - "name": "rules_cc", - "version": "0.0.9", - "key": "rules_cc@0.0.9", - "repoName": "rules_cc", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [ - "@local_config_cc_toolchains//:all" - ], - "extensionUsages": [ - { - "extensionBzlFile": "@bazel_tools//tools/cpp:cc_configure.bzl", - "extensionName": "cc_configure_extension", - "usingModule": "rules_cc@0.0.9", - "location": { - "file": "https://bcr.bazel.build/modules/rules_cc/0.0.9/MODULE.bazel", - "line": 9, - "column": 29 - }, - "imports": { - "local_config_cc_toolchains": "local_config_cc_toolchains" - }, - "devImports": [], - "tags": [], - "hasDevUseExtension": false, - "hasNonDevUseExtension": true - } - ], - "deps": { - "platforms": "platforms@0.0.7", - "bazel_tools": "bazel_tools@_", - "local_config_platform": "local_config_platform@_" - }, - "repoSpec": { - "bzlFile": "@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_cc~0.0.9", - "urls": [ - "https://github.com/bazelbuild/rules_cc/releases/download/0.0.9/rules_cc-0.0.9.tar.gz" - ], - "integrity": "sha256-IDeHW5pEVtzkp50RKorohbvEqtlo5lh9ym5k86CQDN8=", - "strip_prefix": "rules_cc-0.0.9", - "remote_patches": { - "https://bcr.bazel.build/modules/rules_cc/0.0.9/patches/module_dot_bazel_version.patch": "sha256-mM+qzOI0SgAdaJBlWOSMwMPKpaA9b7R37Hj/tp5bb4g=" - }, - "remote_patch_strip": 0 - } - } - }, - "rules_java@7.1.0": { - "name": "rules_java", - "version": "7.1.0", - "key": "rules_java@7.1.0", - "repoName": "rules_java", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [ - "//toolchains:all", - "@local_jdk//:runtime_toolchain_definition", - "@local_jdk//:bootstrap_runtime_toolchain_definition", - "@remotejdk11_linux_toolchain_config_repo//:all", - "@remotejdk11_linux_aarch64_toolchain_config_repo//:all", - "@remotejdk11_linux_ppc64le_toolchain_config_repo//:all", - "@remotejdk11_linux_s390x_toolchain_config_repo//:all", - "@remotejdk11_macos_toolchain_config_repo//:all", - "@remotejdk11_macos_aarch64_toolchain_config_repo//:all", - "@remotejdk11_win_toolchain_config_repo//:all", - "@remotejdk11_win_arm64_toolchain_config_repo//:all", - "@remotejdk17_linux_toolchain_config_repo//:all", - "@remotejdk17_linux_aarch64_toolchain_config_repo//:all", - "@remotejdk17_linux_ppc64le_toolchain_config_repo//:all", - "@remotejdk17_linux_s390x_toolchain_config_repo//:all", - "@remotejdk17_macos_toolchain_config_repo//:all", - "@remotejdk17_macos_aarch64_toolchain_config_repo//:all", - "@remotejdk17_win_toolchain_config_repo//:all", - "@remotejdk17_win_arm64_toolchain_config_repo//:all", - "@remotejdk21_linux_toolchain_config_repo//:all", - "@remotejdk21_linux_aarch64_toolchain_config_repo//:all", - "@remotejdk21_macos_toolchain_config_repo//:all", - "@remotejdk21_macos_aarch64_toolchain_config_repo//:all", - "@remotejdk21_win_toolchain_config_repo//:all" - ], - "extensionUsages": [ - { - "extensionBzlFile": "@rules_java//java:extensions.bzl", - "extensionName": "toolchains", - "usingModule": "rules_java@7.1.0", - "location": { - "file": "https://bcr.bazel.build/modules/rules_java/7.1.0/MODULE.bazel", - "line": 19, - "column": 27 - }, - "imports": { - "remote_java_tools": "remote_java_tools", - "remote_java_tools_linux": "remote_java_tools_linux", - "remote_java_tools_windows": "remote_java_tools_windows", - "remote_java_tools_darwin_x86_64": "remote_java_tools_darwin_x86_64", - "remote_java_tools_darwin_arm64": "remote_java_tools_darwin_arm64", - "local_jdk": "local_jdk", - "remotejdk11_linux_toolchain_config_repo": "remotejdk11_linux_toolchain_config_repo", - "remotejdk11_linux_aarch64_toolchain_config_repo": "remotejdk11_linux_aarch64_toolchain_config_repo", - "remotejdk11_linux_ppc64le_toolchain_config_repo": "remotejdk11_linux_ppc64le_toolchain_config_repo", - "remotejdk11_linux_s390x_toolchain_config_repo": "remotejdk11_linux_s390x_toolchain_config_repo", - "remotejdk11_macos_toolchain_config_repo": "remotejdk11_macos_toolchain_config_repo", - "remotejdk11_macos_aarch64_toolchain_config_repo": "remotejdk11_macos_aarch64_toolchain_config_repo", - "remotejdk11_win_toolchain_config_repo": "remotejdk11_win_toolchain_config_repo", - "remotejdk11_win_arm64_toolchain_config_repo": "remotejdk11_win_arm64_toolchain_config_repo", - "remotejdk17_linux_toolchain_config_repo": "remotejdk17_linux_toolchain_config_repo", - "remotejdk17_linux_aarch64_toolchain_config_repo": "remotejdk17_linux_aarch64_toolchain_config_repo", - "remotejdk17_linux_ppc64le_toolchain_config_repo": "remotejdk17_linux_ppc64le_toolchain_config_repo", - "remotejdk17_linux_s390x_toolchain_config_repo": "remotejdk17_linux_s390x_toolchain_config_repo", - "remotejdk17_macos_toolchain_config_repo": "remotejdk17_macos_toolchain_config_repo", - "remotejdk17_macos_aarch64_toolchain_config_repo": "remotejdk17_macos_aarch64_toolchain_config_repo", - "remotejdk17_win_toolchain_config_repo": "remotejdk17_win_toolchain_config_repo", - "remotejdk17_win_arm64_toolchain_config_repo": "remotejdk17_win_arm64_toolchain_config_repo", - "remotejdk21_linux_toolchain_config_repo": "remotejdk21_linux_toolchain_config_repo", - "remotejdk21_linux_aarch64_toolchain_config_repo": "remotejdk21_linux_aarch64_toolchain_config_repo", - "remotejdk21_macos_toolchain_config_repo": "remotejdk21_macos_toolchain_config_repo", - "remotejdk21_macos_aarch64_toolchain_config_repo": "remotejdk21_macos_aarch64_toolchain_config_repo", - "remotejdk21_win_toolchain_config_repo": "remotejdk21_win_toolchain_config_repo" - }, - "devImports": [], - "tags": [], - "hasDevUseExtension": false, - "hasNonDevUseExtension": true - } - ], - "deps": { - "platforms": "platforms@0.0.7", - "rules_cc": "rules_cc@0.0.9", - "bazel_skylib": "bazel_skylib@1.3.0", - "rules_proto": "rules_proto@4.0.0", - "rules_license": "rules_license@0.0.7", - "bazel_tools": "bazel_tools@_", - "local_config_platform": "local_config_platform@_" - }, - "repoSpec": { - "bzlFile": "@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_java~7.1.0", - "urls": [ - "https://github.com/bazelbuild/rules_java/releases/download/7.1.0/rules_java-7.1.0.tar.gz" - ], - "integrity": "sha256-o3pOX2OrgnFuXdau75iO2EYcegC46TYnImKJn1h81OE=", - "strip_prefix": "", - "remote_patches": {}, - "remote_patch_strip": 0 - } - } - }, - "rules_license@0.0.7": { - "name": "rules_license", - "version": "0.0.7", - "key": "rules_license@0.0.7", - "repoName": "rules_license", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [], - "extensionUsages": [], - "deps": { - "bazel_tools": "bazel_tools@_", - "local_config_platform": "local_config_platform@_" - }, - "repoSpec": { - "bzlFile": "@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_license~0.0.7", - "urls": [ - "https://github.com/bazelbuild/rules_license/releases/download/0.0.7/rules_license-0.0.7.tar.gz" - ], - "integrity": "sha256-RTHezLkTY5ww5cdRKgVNXYdWmNrrddjPkPKEN1/nw2A=", - "strip_prefix": "", - "remote_patches": {}, - "remote_patch_strip": 0 - } - } - }, - "rules_proto@4.0.0": { - "name": "rules_proto", - "version": "4.0.0", - "key": "rules_proto@4.0.0", - "repoName": "rules_proto", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [], - "extensionUsages": [], - "deps": { - "bazel_skylib": "bazel_skylib@1.3.0", - "rules_cc": "rules_cc@0.0.9", - "bazel_tools": "bazel_tools@_", - "local_config_platform": "local_config_platform@_" - }, - "repoSpec": { - "bzlFile": "@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_proto~4.0.0", - "urls": [ - "https://github.com/bazelbuild/rules_proto/archive/refs/tags/4.0.0.zip" - ], - "integrity": "sha256-Lr5z6xyuRA19pNtRYMGjKaynwQpck4H/lwYyVjyhoq4=", - "strip_prefix": "rules_proto-4.0.0", - "remote_patches": { - "https://bcr.bazel.build/modules/rules_proto/4.0.0/patches/module_dot_bazel.patch": "sha256-MclJO7tIAM2ElDAmscNId9pKTpOuDGHgVlW/9VBOIp0=" - }, - "remote_patch_strip": 0 - } - } - }, - "rules_python@0.4.0": { - "name": "rules_python", - "version": "0.4.0", - "key": "rules_python@0.4.0", - "repoName": "rules_python", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [ - "@bazel_tools//tools/python:autodetecting_toolchain" - ], - "extensionUsages": [ - { - "extensionBzlFile": "@rules_python//bzlmod:extensions.bzl", - "extensionName": "pip_install", - "usingModule": "rules_python@0.4.0", - "location": { - "file": "https://bcr.bazel.build/modules/rules_python/0.4.0/MODULE.bazel", - "line": 7, - "column": 28 - }, - "imports": { - "pypi__click": "pypi__click", - "pypi__pip": "pypi__pip", - "pypi__pip_tools": "pypi__pip_tools", - "pypi__pkginfo": "pypi__pkginfo", - "pypi__setuptools": "pypi__setuptools", - "pypi__wheel": "pypi__wheel" - }, - "devImports": [], - "tags": [], - "hasDevUseExtension": false, - "hasNonDevUseExtension": true - } - ], - "deps": { - "bazel_tools": "bazel_tools@_", - "local_config_platform": "local_config_platform@_" - }, - "repoSpec": { - "bzlFile": "@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_python~0.4.0", - "urls": [ - "https://github.com/bazelbuild/rules_python/releases/download/0.4.0/rules_python-0.4.0.tar.gz" - ], - "integrity": "sha256-lUqom0kb5KCDMEosuDgBnIuMNyCnq7nEy4GseiQjDOo=", - "strip_prefix": "", - "remote_patches": { - "https://bcr.bazel.build/modules/rules_python/0.4.0/patches/propagate_pip_install_dependencies.patch": "sha256-v7S/dem/mixg63MF4KoRGDA4KEol9ab/tIVp+6Xq0D0=", - "https://bcr.bazel.build/modules/rules_python/0.4.0/patches/module_dot_bazel.patch": "sha256-kG4VIfWxQazzTuh50mvsx6pmyoRVA4lfH5rkto/Oq+Y=" - }, - "remote_patch_strip": 1 - } - } - }, - "platforms@0.0.7": { - "name": "platforms", - "version": "0.0.7", - "key": "platforms@0.0.7", - "repoName": "platforms", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [], - "extensionUsages": [], - "deps": { - "rules_license": "rules_license@0.0.7", - "bazel_tools": "bazel_tools@_", - "local_config_platform": "local_config_platform@_" - }, - "repoSpec": { - "bzlFile": "@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "platforms", - "urls": [ - "https://github.com/bazelbuild/platforms/releases/download/0.0.7/platforms-0.0.7.tar.gz" - ], - "integrity": "sha256-OlYcmee9vpFzqmU/1Xn+hJ8djWc5V4CrR3Cx84FDHVE=", - "strip_prefix": "", - "remote_patches": {}, - "remote_patch_strip": 0 - } - } - }, - "protobuf@3.19.6": { - "name": "protobuf", - "version": "3.19.6", - "key": "protobuf@3.19.6", - "repoName": "protobuf", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [], - "extensionUsages": [], - "deps": { - "bazel_skylib": "bazel_skylib@1.3.0", - "zlib": "zlib@1.3", - "rules_python": "rules_python@0.4.0", - "rules_cc": "rules_cc@0.0.9", - "rules_proto": "rules_proto@4.0.0", - "rules_java": "rules_java@7.1.0", - "bazel_tools": "bazel_tools@_", - "local_config_platform": "local_config_platform@_" - }, - "repoSpec": { - "bzlFile": "@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "protobuf~3.19.6", - "urls": [ - "https://github.com/protocolbuffers/protobuf/archive/refs/tags/v3.19.6.zip" - ], - "integrity": "sha256-OH4sVZuyx8G8N5jE5s/wFTgaebJ1hpavy/johzC0c4k=", - "strip_prefix": "protobuf-3.19.6", - "remote_patches": { - "https://bcr.bazel.build/modules/protobuf/3.19.6/patches/relative_repo_names.patch": "sha256-w/5gw/zGv8NFId+669hcdw1Uus2lxgYpulATHIwIByI=", - "https://bcr.bazel.build/modules/protobuf/3.19.6/patches/remove_dependency_on_rules_jvm_external.patch": "sha256-THUTnVgEBmjA0W7fKzIyZOVG58DnW9HQTkr4D2zKUUc=", - "https://bcr.bazel.build/modules/protobuf/3.19.6/patches/add_module_dot_bazel_for_examples.patch": "sha256-s/b1gi3baK3LsXefI2rQilhmkb2R5jVJdnT6zEcdfHY=", - "https://bcr.bazel.build/modules/protobuf/3.19.6/patches/module_dot_bazel.patch": "sha256-S0DEni8zgx7rHscW3z/rCEubQnYec0XhNet640cw0h4=" - }, - "remote_patch_strip": 1 - } - } - }, - "zlib@1.3": { - "name": "zlib", - "version": "1.3", - "key": "zlib@1.3", - "repoName": "zlib", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [], - "extensionUsages": [], - "deps": { - "platforms": "platforms@0.0.7", - "rules_cc": "rules_cc@0.0.9", - "bazel_tools": "bazel_tools@_", - "local_config_platform": "local_config_platform@_" - }, - "repoSpec": { - "bzlFile": "@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "zlib~1.3", - "urls": [ - "https://github.com/madler/zlib/releases/download/v1.3/zlib-1.3.tar.gz" - ], - "integrity": "sha256-/wukwpIBPbwnUws6geH5qBPNOd4Byl4Pi/NVcC76WT4=", - "strip_prefix": "zlib-1.3", - "remote_patches": { - "https://bcr.bazel.build/modules/zlib/1.3/patches/add_build_file.patch": "sha256-Ei+FYaaOo7A3jTKunMEodTI0Uw5NXQyZEcboMC8JskY=", - "https://bcr.bazel.build/modules/zlib/1.3/patches/module_dot_bazel.patch": "sha256-fPWLM+2xaF/kuy+kZc1YTfW6hNjrkG400Ho7gckuyJk=" - }, - "remote_patch_strip": 0 - } - } - }, - "apple_support@1.5.0": { - "name": "apple_support", - "version": "1.5.0", - "key": "apple_support@1.5.0", - "repoName": "build_bazel_apple_support", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [ - "@local_config_apple_cc_toolchains//:all" - ], - "extensionUsages": [ - { - "extensionBzlFile": "@build_bazel_apple_support//crosstool:setup.bzl", - "extensionName": "apple_cc_configure_extension", - "usingModule": "apple_support@1.5.0", - "location": { - "file": "https://bcr.bazel.build/modules/apple_support/1.5.0/MODULE.bazel", - "line": 17, - "column": 35 - }, - "imports": { - "local_config_apple_cc": "local_config_apple_cc", - "local_config_apple_cc_toolchains": "local_config_apple_cc_toolchains" - }, - "devImports": [], - "tags": [], - "hasDevUseExtension": false, - "hasNonDevUseExtension": true - } - ], - "deps": { - "bazel_skylib": "bazel_skylib@1.3.0", - "platforms": "platforms@0.0.7", - "bazel_tools": "bazel_tools@_", - "local_config_platform": "local_config_platform@_" - }, - "repoSpec": { - "bzlFile": "@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "apple_support~1.5.0", - "urls": [ - "https://github.com/bazelbuild/apple_support/releases/download/1.5.0/apple_support.1.5.0.tar.gz" - ], - "integrity": "sha256-miM41vja0yRPgj8txghKA+TQ+7J8qJLclw5okNW0gYQ=", - "strip_prefix": "", - "remote_patches": {}, - "remote_patch_strip": 0 - } - } - }, - "bazel_skylib@1.3.0": { - "name": "bazel_skylib", - "version": "1.3.0", - "key": "bazel_skylib@1.3.0", - "repoName": "bazel_skylib", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [ - "//toolchains/unittest:cmd_toolchain", - "//toolchains/unittest:bash_toolchain" - ], - "extensionUsages": [], - "deps": { - "platforms": "platforms@0.0.7", - "bazel_tools": "bazel_tools@_", - "local_config_platform": "local_config_platform@_" - }, - "repoSpec": { - "bzlFile": "@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "bazel_skylib~1.3.0", - "urls": [ - "https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz" - ], - "integrity": "sha256-dNVE2W9KW7Yw1GXKi7z+Ix41lOWq5X4e2/F6brPKJQY=", - "strip_prefix": "", - "remote_patches": {}, - "remote_patch_strip": 0 - } - } - } - }, - "moduleExtensions": { - "@@apple_support~1.5.0//crosstool:setup.bzl%apple_cc_configure_extension": { - "general": { - "bzlTransitiveDigest": "pMLFCYaRPkgXPQ8vtuNkMfiHfPmRBy6QJfnid4sWfv0=", - "accumulatedFileDigests": {}, - "envVariables": {}, - "generatedRepoSpecs": { - "local_config_apple_cc": { - "bzlFile": "@@apple_support~1.5.0//crosstool:setup.bzl", - "ruleClassName": "_apple_cc_autoconf", - "attributes": { - "name": "apple_support~1.5.0~apple_cc_configure_extension~local_config_apple_cc" - } - }, - "local_config_apple_cc_toolchains": { - "bzlFile": "@@apple_support~1.5.0//crosstool:setup.bzl", - "ruleClassName": "_apple_cc_autoconf_toolchains", - "attributes": { - "name": "apple_support~1.5.0~apple_cc_configure_extension~local_config_apple_cc_toolchains" - } - } - }, - "recordedRepoMappingEntries": [ - [ - "apple_support~1.5.0", - "bazel_tools", - "bazel_tools" - ] - ] - } - }, - "@@bazel_tools//tools/cpp:cc_configure.bzl%cc_configure_extension": { - "general": { - "bzlTransitiveDigest": "mcsWHq3xORJexV5/4eCvNOLxFOQKV6eli3fkr+tEaqE=", - "accumulatedFileDigests": {}, - "envVariables": {}, - "generatedRepoSpecs": { - "local_config_cc": { - "bzlFile": "@@bazel_tools//tools/cpp:cc_configure.bzl", - "ruleClassName": "cc_autoconf", - "attributes": { - "name": "bazel_tools~cc_configure_extension~local_config_cc" - } - }, - "local_config_cc_toolchains": { - "bzlFile": "@@bazel_tools//tools/cpp:cc_configure.bzl", - "ruleClassName": "cc_autoconf_toolchains", - "attributes": { - "name": "bazel_tools~cc_configure_extension~local_config_cc_toolchains" - } - } - }, - "recordedRepoMappingEntries": [ - [ - "bazel_tools", - "bazel_tools", - "bazel_tools" - ] - ] - } - }, - "@@bazel_tools//tools/osx:xcode_configure.bzl%xcode_configure_extension": { - "general": { - "bzlTransitiveDigest": "Qh2bWTU6QW6wkrd87qrU4YeY+SG37Nvw3A0PR4Y0L2Y=", - "accumulatedFileDigests": {}, - "envVariables": {}, - "generatedRepoSpecs": { - "local_config_xcode": { - "bzlFile": "@@bazel_tools//tools/osx:xcode_configure.bzl", - "ruleClassName": "xcode_autoconf", - "attributes": { - "name": "bazel_tools~xcode_configure_extension~local_config_xcode", - "xcode_locator": "@bazel_tools//tools/osx:xcode_locator.m", - "remote_xcode": "" - } - } - }, - "recordedRepoMappingEntries": [] - } - }, - "@@bazel_tools//tools/sh:sh_configure.bzl%sh_configure_extension": { - "general": { - "bzlTransitiveDigest": "hp4NgmNjEg5+xgvzfh6L83bt9/aiiWETuNpwNuF1MSU=", - "accumulatedFileDigests": {}, - "envVariables": {}, - "generatedRepoSpecs": { - "local_config_sh": { - "bzlFile": "@@bazel_tools//tools/sh:sh_configure.bzl", - "ruleClassName": "sh_config", - "attributes": { - "name": "bazel_tools~sh_configure_extension~local_config_sh" - } - } - }, - "recordedRepoMappingEntries": [] - } - }, - "@@rules_java~7.1.0//java:extensions.bzl%toolchains": { - "general": { - "bzlTransitiveDigest": "D02GmifxnV/IhYgspsJMDZ/aE8HxAjXgek5gi6FSto4=", - "accumulatedFileDigests": {}, - "envVariables": {}, - "generatedRepoSpecs": { - "remotejdk21_linux_toolchain_config_repo": { - "bzlFile": "@@rules_java~7.1.0//toolchains:remote_java_repository.bzl", - "ruleClassName": "_toolchain_config", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk21_linux_toolchain_config_repo", - "build_file": "\nconfig_setting(\n name = \"prefix_version_setting\",\n values = {\"java_runtime_version\": \"remotejdk_21\"},\n visibility = [\"//visibility:private\"],\n)\nconfig_setting(\n name = \"version_setting\",\n values = {\"java_runtime_version\": \"21\"},\n visibility = [\"//visibility:private\"],\n)\nalias(\n name = \"version_or_prefix_version_setting\",\n actual = select({\n \":version_setting\": \":version_setting\",\n \"//conditions:default\": \":prefix_version_setting\",\n }),\n visibility = [\"//visibility:private\"],\n)\ntoolchain(\n name = \"toolchain\",\n target_compatible_with = [\"@platforms//os:linux\", \"@platforms//cpu:x86_64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:runtime_toolchain_type\",\n toolchain = \"@remotejdk21_linux//:jdk\",\n)\ntoolchain(\n name = \"bootstrap_runtime_toolchain\",\n # These constraints are not required for correctness, but prevent fetches of remote JDK for\n # different architectures. As every Java compilation toolchain depends on a bootstrap runtime in\n # the same configuration, this constraint will not result in toolchain resolution failures.\n exec_compatible_with = [\"@platforms//os:linux\", \"@platforms//cpu:x86_64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:bootstrap_runtime_toolchain_type\",\n toolchain = \"@remotejdk21_linux//:jdk\",\n)\n" - } - }, - "remotejdk17_linux_s390x_toolchain_config_repo": { - "bzlFile": "@@rules_java~7.1.0//toolchains:remote_java_repository.bzl", - "ruleClassName": "_toolchain_config", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk17_linux_s390x_toolchain_config_repo", - "build_file": "\nconfig_setting(\n name = \"prefix_version_setting\",\n values = {\"java_runtime_version\": \"remotejdk_17\"},\n visibility = [\"//visibility:private\"],\n)\nconfig_setting(\n name = \"version_setting\",\n values = {\"java_runtime_version\": \"17\"},\n visibility = [\"//visibility:private\"],\n)\nalias(\n name = \"version_or_prefix_version_setting\",\n actual = select({\n \":version_setting\": \":version_setting\",\n \"//conditions:default\": \":prefix_version_setting\",\n }),\n visibility = [\"//visibility:private\"],\n)\ntoolchain(\n name = \"toolchain\",\n target_compatible_with = [\"@platforms//os:linux\", \"@platforms//cpu:s390x\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:runtime_toolchain_type\",\n toolchain = \"@remotejdk17_linux_s390x//:jdk\",\n)\ntoolchain(\n name = \"bootstrap_runtime_toolchain\",\n # These constraints are not required for correctness, but prevent fetches of remote JDK for\n # different architectures. As every Java compilation toolchain depends on a bootstrap runtime in\n # the same configuration, this constraint will not result in toolchain resolution failures.\n exec_compatible_with = [\"@platforms//os:linux\", \"@platforms//cpu:s390x\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:bootstrap_runtime_toolchain_type\",\n toolchain = \"@remotejdk17_linux_s390x//:jdk\",\n)\n" - } - }, - "remotejdk17_macos_toolchain_config_repo": { - "bzlFile": "@@rules_java~7.1.0//toolchains:remote_java_repository.bzl", - "ruleClassName": "_toolchain_config", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk17_macos_toolchain_config_repo", - "build_file": "\nconfig_setting(\n name = \"prefix_version_setting\",\n values = {\"java_runtime_version\": \"remotejdk_17\"},\n visibility = [\"//visibility:private\"],\n)\nconfig_setting(\n name = \"version_setting\",\n values = {\"java_runtime_version\": \"17\"},\n visibility = [\"//visibility:private\"],\n)\nalias(\n name = \"version_or_prefix_version_setting\",\n actual = select({\n \":version_setting\": \":version_setting\",\n \"//conditions:default\": \":prefix_version_setting\",\n }),\n visibility = [\"//visibility:private\"],\n)\ntoolchain(\n name = \"toolchain\",\n target_compatible_with = [\"@platforms//os:macos\", \"@platforms//cpu:x86_64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:runtime_toolchain_type\",\n toolchain = \"@remotejdk17_macos//:jdk\",\n)\ntoolchain(\n name = \"bootstrap_runtime_toolchain\",\n # These constraints are not required for correctness, but prevent fetches of remote JDK for\n # different architectures. As every Java compilation toolchain depends on a bootstrap runtime in\n # the same configuration, this constraint will not result in toolchain resolution failures.\n exec_compatible_with = [\"@platforms//os:macos\", \"@platforms//cpu:x86_64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:bootstrap_runtime_toolchain_type\",\n toolchain = \"@remotejdk17_macos//:jdk\",\n)\n" - } - }, - "remotejdk21_macos_aarch64_toolchain_config_repo": { - "bzlFile": "@@rules_java~7.1.0//toolchains:remote_java_repository.bzl", - "ruleClassName": "_toolchain_config", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk21_macos_aarch64_toolchain_config_repo", - "build_file": "\nconfig_setting(\n name = \"prefix_version_setting\",\n values = {\"java_runtime_version\": \"remotejdk_21\"},\n visibility = [\"//visibility:private\"],\n)\nconfig_setting(\n name = \"version_setting\",\n values = {\"java_runtime_version\": \"21\"},\n visibility = [\"//visibility:private\"],\n)\nalias(\n name = \"version_or_prefix_version_setting\",\n actual = select({\n \":version_setting\": \":version_setting\",\n \"//conditions:default\": \":prefix_version_setting\",\n }),\n visibility = [\"//visibility:private\"],\n)\ntoolchain(\n name = \"toolchain\",\n target_compatible_with = [\"@platforms//os:macos\", \"@platforms//cpu:aarch64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:runtime_toolchain_type\",\n toolchain = \"@remotejdk21_macos_aarch64//:jdk\",\n)\ntoolchain(\n name = \"bootstrap_runtime_toolchain\",\n # These constraints are not required for correctness, but prevent fetches of remote JDK for\n # different architectures. As every Java compilation toolchain depends on a bootstrap runtime in\n # the same configuration, this constraint will not result in toolchain resolution failures.\n exec_compatible_with = [\"@platforms//os:macos\", \"@platforms//cpu:aarch64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:bootstrap_runtime_toolchain_type\",\n toolchain = \"@remotejdk21_macos_aarch64//:jdk\",\n)\n" - } - }, - "remotejdk17_linux_aarch64_toolchain_config_repo": { - "bzlFile": "@@rules_java~7.1.0//toolchains:remote_java_repository.bzl", - "ruleClassName": "_toolchain_config", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk17_linux_aarch64_toolchain_config_repo", - "build_file": "\nconfig_setting(\n name = \"prefix_version_setting\",\n values = {\"java_runtime_version\": \"remotejdk_17\"},\n visibility = [\"//visibility:private\"],\n)\nconfig_setting(\n name = \"version_setting\",\n values = {\"java_runtime_version\": \"17\"},\n visibility = [\"//visibility:private\"],\n)\nalias(\n name = \"version_or_prefix_version_setting\",\n actual = select({\n \":version_setting\": \":version_setting\",\n \"//conditions:default\": \":prefix_version_setting\",\n }),\n visibility = [\"//visibility:private\"],\n)\ntoolchain(\n name = \"toolchain\",\n target_compatible_with = [\"@platforms//os:linux\", \"@platforms//cpu:aarch64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:runtime_toolchain_type\",\n toolchain = \"@remotejdk17_linux_aarch64//:jdk\",\n)\ntoolchain(\n name = \"bootstrap_runtime_toolchain\",\n # These constraints are not required for correctness, but prevent fetches of remote JDK for\n # different architectures. As every Java compilation toolchain depends on a bootstrap runtime in\n # the same configuration, this constraint will not result in toolchain resolution failures.\n exec_compatible_with = [\"@platforms//os:linux\", \"@platforms//cpu:aarch64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:bootstrap_runtime_toolchain_type\",\n toolchain = \"@remotejdk17_linux_aarch64//:jdk\",\n)\n" - } - }, - "remotejdk21_macos_aarch64": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk21_macos_aarch64", - "build_file_content": "load(\"@rules_java//java:defs.bzl\", \"java_runtime\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\nexports_files([\"WORKSPACE\", \"BUILD.bazel\"])\n\nfilegroup(\n name = \"jre\",\n srcs = glob(\n [\n \"jre/bin/**\",\n \"jre/lib/**\",\n ],\n allow_empty = True,\n # In some configurations, Java browser plugin is considered harmful and\n # common antivirus software blocks access to npjp2.dll interfering with Bazel,\n # so do not include it in JRE on Windows.\n exclude = [\"jre/bin/plugin2/**\"],\n ),\n)\n\nfilegroup(\n name = \"jdk-bin\",\n srcs = glob(\n [\"bin/**\"],\n # The JDK on Windows sometimes contains a directory called\n # \"%systemroot%\", which is not a valid label.\n exclude = [\"**/*%*/**\"],\n ),\n)\n\n# This folder holds security policies.\nfilegroup(\n name = \"jdk-conf\",\n srcs = glob(\n [\"conf/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-include\",\n srcs = glob(\n [\"include/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-lib\",\n srcs = glob(\n [\"lib/**\", \"release\"],\n allow_empty = True,\n exclude = [\n \"lib/missioncontrol/**\",\n \"lib/visualvm/**\",\n ],\n ),\n)\n\njava_runtime(\n name = \"jdk\",\n srcs = [\n \":jdk-bin\",\n \":jdk-conf\",\n \":jdk-include\",\n \":jdk-lib\",\n \":jre\",\n ],\n # Provide the 'java` binary explicitly so that the correct path is used by\n # Bazel even when the host platform differs from the execution platform.\n # Exactly one of the two globs will be empty depending on the host platform.\n # When --incompatible_disallow_empty_glob is enabled, each individual empty\n # glob will fail without allow_empty = True, even if the overall result is\n # non-empty.\n java = glob([\"bin/java.exe\", \"bin/java\"], allow_empty = True)[0],\n version = 21,\n)\n", - "sha256": "2a7a99a3ea263dbd8d32a67d1e6e363ba8b25c645c826f5e167a02bbafaff1fa", - "strip_prefix": "zulu21.28.85-ca-jdk21.0.0-macosx_aarch64", - "urls": [ - "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu21.28.85-ca-jdk21.0.0-macosx_aarch64.tar.gz", - "https://cdn.azul.com/zulu/bin/zulu21.28.85-ca-jdk21.0.0-macosx_aarch64.tar.gz" - ] - } - }, - "remotejdk17_linux_toolchain_config_repo": { - "bzlFile": "@@rules_java~7.1.0//toolchains:remote_java_repository.bzl", - "ruleClassName": "_toolchain_config", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk17_linux_toolchain_config_repo", - "build_file": "\nconfig_setting(\n name = \"prefix_version_setting\",\n values = {\"java_runtime_version\": \"remotejdk_17\"},\n visibility = [\"//visibility:private\"],\n)\nconfig_setting(\n name = \"version_setting\",\n values = {\"java_runtime_version\": \"17\"},\n visibility = [\"//visibility:private\"],\n)\nalias(\n name = \"version_or_prefix_version_setting\",\n actual = select({\n \":version_setting\": \":version_setting\",\n \"//conditions:default\": \":prefix_version_setting\",\n }),\n visibility = [\"//visibility:private\"],\n)\ntoolchain(\n name = \"toolchain\",\n target_compatible_with = [\"@platforms//os:linux\", \"@platforms//cpu:x86_64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:runtime_toolchain_type\",\n toolchain = \"@remotejdk17_linux//:jdk\",\n)\ntoolchain(\n name = \"bootstrap_runtime_toolchain\",\n # These constraints are not required for correctness, but prevent fetches of remote JDK for\n # different architectures. As every Java compilation toolchain depends on a bootstrap runtime in\n # the same configuration, this constraint will not result in toolchain resolution failures.\n exec_compatible_with = [\"@platforms//os:linux\", \"@platforms//cpu:x86_64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:bootstrap_runtime_toolchain_type\",\n toolchain = \"@remotejdk17_linux//:jdk\",\n)\n" - } - }, - "remotejdk17_macos_aarch64": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk17_macos_aarch64", - "build_file_content": "load(\"@rules_java//java:defs.bzl\", \"java_runtime\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\nexports_files([\"WORKSPACE\", \"BUILD.bazel\"])\n\nfilegroup(\n name = \"jre\",\n srcs = glob(\n [\n \"jre/bin/**\",\n \"jre/lib/**\",\n ],\n allow_empty = True,\n # In some configurations, Java browser plugin is considered harmful and\n # common antivirus software blocks access to npjp2.dll interfering with Bazel,\n # so do not include it in JRE on Windows.\n exclude = [\"jre/bin/plugin2/**\"],\n ),\n)\n\nfilegroup(\n name = \"jdk-bin\",\n srcs = glob(\n [\"bin/**\"],\n # The JDK on Windows sometimes contains a directory called\n # \"%systemroot%\", which is not a valid label.\n exclude = [\"**/*%*/**\"],\n ),\n)\n\n# This folder holds security policies.\nfilegroup(\n name = \"jdk-conf\",\n srcs = glob(\n [\"conf/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-include\",\n srcs = glob(\n [\"include/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-lib\",\n srcs = glob(\n [\"lib/**\", \"release\"],\n allow_empty = True,\n exclude = [\n \"lib/missioncontrol/**\",\n \"lib/visualvm/**\",\n ],\n ),\n)\n\njava_runtime(\n name = \"jdk\",\n srcs = [\n \":jdk-bin\",\n \":jdk-conf\",\n \":jdk-include\",\n \":jdk-lib\",\n \":jre\",\n ],\n # Provide the 'java` binary explicitly so that the correct path is used by\n # Bazel even when the host platform differs from the execution platform.\n # Exactly one of the two globs will be empty depending on the host platform.\n # When --incompatible_disallow_empty_glob is enabled, each individual empty\n # glob will fail without allow_empty = True, even if the overall result is\n # non-empty.\n java = glob([\"bin/java.exe\", \"bin/java\"], allow_empty = True)[0],\n version = 17,\n)\n", - "sha256": "314b04568ec0ae9b36ba03c9cbd42adc9e1265f74678923b19297d66eb84dcca", - "strip_prefix": "zulu17.44.53-ca-jdk17.0.8.1-macosx_aarch64", - "urls": [ - "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu17.44.53-ca-jdk17.0.8.1-macosx_aarch64.tar.gz", - "https://cdn.azul.com/zulu/bin/zulu17.44.53-ca-jdk17.0.8.1-macosx_aarch64.tar.gz" - ] - } - }, - "remote_java_tools_windows": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remote_java_tools_windows", - "sha256": "c5c70c214a350f12cbf52da8270fa43ba629b795f3dd328028a38f8f0d39c2a1", - "urls": [ - "https://mirror.bazel.build/bazel_java_tools/releases/java/v13.1/java_tools_windows-v13.1.zip", - "https://github.com/bazelbuild/java_tools/releases/download/java_v13.1/java_tools_windows-v13.1.zip" - ] - } - }, - "remotejdk11_win": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk11_win", - "build_file_content": "load(\"@rules_java//java:defs.bzl\", \"java_runtime\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\nexports_files([\"WORKSPACE\", \"BUILD.bazel\"])\n\nfilegroup(\n name = \"jre\",\n srcs = glob(\n [\n \"jre/bin/**\",\n \"jre/lib/**\",\n ],\n allow_empty = True,\n # In some configurations, Java browser plugin is considered harmful and\n # common antivirus software blocks access to npjp2.dll interfering with Bazel,\n # so do not include it in JRE on Windows.\n exclude = [\"jre/bin/plugin2/**\"],\n ),\n)\n\nfilegroup(\n name = \"jdk-bin\",\n srcs = glob(\n [\"bin/**\"],\n # The JDK on Windows sometimes contains a directory called\n # \"%systemroot%\", which is not a valid label.\n exclude = [\"**/*%*/**\"],\n ),\n)\n\n# This folder holds security policies.\nfilegroup(\n name = \"jdk-conf\",\n srcs = glob(\n [\"conf/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-include\",\n srcs = glob(\n [\"include/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-lib\",\n srcs = glob(\n [\"lib/**\", \"release\"],\n allow_empty = True,\n exclude = [\n \"lib/missioncontrol/**\",\n \"lib/visualvm/**\",\n ],\n ),\n)\n\njava_runtime(\n name = \"jdk\",\n srcs = [\n \":jdk-bin\",\n \":jdk-conf\",\n \":jdk-include\",\n \":jdk-lib\",\n \":jre\",\n ],\n # Provide the 'java` binary explicitly so that the correct path is used by\n # Bazel even when the host platform differs from the execution platform.\n # Exactly one of the two globs will be empty depending on the host platform.\n # When --incompatible_disallow_empty_glob is enabled, each individual empty\n # glob will fail without allow_empty = True, even if the overall result is\n # non-empty.\n java = glob([\"bin/java.exe\", \"bin/java\"], allow_empty = True)[0],\n version = 11,\n)\n", - "sha256": "43408193ce2fa0862819495b5ae8541085b95660153f2adcf91a52d3a1710e83", - "strip_prefix": "zulu11.66.15-ca-jdk11.0.20-win_x64", - "urls": [ - "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu11.66.15-ca-jdk11.0.20-win_x64.zip", - "https://cdn.azul.com/zulu/bin/zulu11.66.15-ca-jdk11.0.20-win_x64.zip" - ] - } - }, - "remotejdk11_win_toolchain_config_repo": { - "bzlFile": "@@rules_java~7.1.0//toolchains:remote_java_repository.bzl", - "ruleClassName": "_toolchain_config", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk11_win_toolchain_config_repo", - "build_file": "\nconfig_setting(\n name = \"prefix_version_setting\",\n values = {\"java_runtime_version\": \"remotejdk_11\"},\n visibility = [\"//visibility:private\"],\n)\nconfig_setting(\n name = \"version_setting\",\n values = {\"java_runtime_version\": \"11\"},\n visibility = [\"//visibility:private\"],\n)\nalias(\n name = \"version_or_prefix_version_setting\",\n actual = select({\n \":version_setting\": \":version_setting\",\n \"//conditions:default\": \":prefix_version_setting\",\n }),\n visibility = [\"//visibility:private\"],\n)\ntoolchain(\n name = \"toolchain\",\n target_compatible_with = [\"@platforms//os:windows\", \"@platforms//cpu:x86_64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:runtime_toolchain_type\",\n toolchain = \"@remotejdk11_win//:jdk\",\n)\ntoolchain(\n name = \"bootstrap_runtime_toolchain\",\n # These constraints are not required for correctness, but prevent fetches of remote JDK for\n # different architectures. As every Java compilation toolchain depends on a bootstrap runtime in\n # the same configuration, this constraint will not result in toolchain resolution failures.\n exec_compatible_with = [\"@platforms//os:windows\", \"@platforms//cpu:x86_64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:bootstrap_runtime_toolchain_type\",\n toolchain = \"@remotejdk11_win//:jdk\",\n)\n" - } - }, - "remotejdk11_linux_aarch64": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk11_linux_aarch64", - "build_file_content": "load(\"@rules_java//java:defs.bzl\", \"java_runtime\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\nexports_files([\"WORKSPACE\", \"BUILD.bazel\"])\n\nfilegroup(\n name = \"jre\",\n srcs = glob(\n [\n \"jre/bin/**\",\n \"jre/lib/**\",\n ],\n allow_empty = True,\n # In some configurations, Java browser plugin is considered harmful and\n # common antivirus software blocks access to npjp2.dll interfering with Bazel,\n # so do not include it in JRE on Windows.\n exclude = [\"jre/bin/plugin2/**\"],\n ),\n)\n\nfilegroup(\n name = \"jdk-bin\",\n srcs = glob(\n [\"bin/**\"],\n # The JDK on Windows sometimes contains a directory called\n # \"%systemroot%\", which is not a valid label.\n exclude = [\"**/*%*/**\"],\n ),\n)\n\n# This folder holds security policies.\nfilegroup(\n name = \"jdk-conf\",\n srcs = glob(\n [\"conf/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-include\",\n srcs = glob(\n [\"include/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-lib\",\n srcs = glob(\n [\"lib/**\", \"release\"],\n allow_empty = True,\n exclude = [\n \"lib/missioncontrol/**\",\n \"lib/visualvm/**\",\n ],\n ),\n)\n\njava_runtime(\n name = \"jdk\",\n srcs = [\n \":jdk-bin\",\n \":jdk-conf\",\n \":jdk-include\",\n \":jdk-lib\",\n \":jre\",\n ],\n # Provide the 'java` binary explicitly so that the correct path is used by\n # Bazel even when the host platform differs from the execution platform.\n # Exactly one of the two globs will be empty depending on the host platform.\n # When --incompatible_disallow_empty_glob is enabled, each individual empty\n # glob will fail without allow_empty = True, even if the overall result is\n # non-empty.\n java = glob([\"bin/java.exe\", \"bin/java\"], allow_empty = True)[0],\n version = 11,\n)\n", - "sha256": "54174439f2b3fddd11f1048c397fe7bb45d4c9d66d452d6889b013d04d21c4de", - "strip_prefix": "zulu11.66.15-ca-jdk11.0.20-linux_aarch64", - "urls": [ - "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu11.66.15-ca-jdk11.0.20-linux_aarch64.tar.gz", - "https://cdn.azul.com/zulu/bin/zulu11.66.15-ca-jdk11.0.20-linux_aarch64.tar.gz" - ] - } - }, - "remotejdk17_linux": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk17_linux", - "build_file_content": "load(\"@rules_java//java:defs.bzl\", \"java_runtime\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\nexports_files([\"WORKSPACE\", \"BUILD.bazel\"])\n\nfilegroup(\n name = \"jre\",\n srcs = glob(\n [\n \"jre/bin/**\",\n \"jre/lib/**\",\n ],\n allow_empty = True,\n # In some configurations, Java browser plugin is considered harmful and\n # common antivirus software blocks access to npjp2.dll interfering with Bazel,\n # so do not include it in JRE on Windows.\n exclude = [\"jre/bin/plugin2/**\"],\n ),\n)\n\nfilegroup(\n name = \"jdk-bin\",\n srcs = glob(\n [\"bin/**\"],\n # The JDK on Windows sometimes contains a directory called\n # \"%systemroot%\", which is not a valid label.\n exclude = [\"**/*%*/**\"],\n ),\n)\n\n# This folder holds security policies.\nfilegroup(\n name = \"jdk-conf\",\n srcs = glob(\n [\"conf/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-include\",\n srcs = glob(\n [\"include/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-lib\",\n srcs = glob(\n [\"lib/**\", \"release\"],\n allow_empty = True,\n exclude = [\n \"lib/missioncontrol/**\",\n \"lib/visualvm/**\",\n ],\n ),\n)\n\njava_runtime(\n name = \"jdk\",\n srcs = [\n \":jdk-bin\",\n \":jdk-conf\",\n \":jdk-include\",\n \":jdk-lib\",\n \":jre\",\n ],\n # Provide the 'java` binary explicitly so that the correct path is used by\n # Bazel even when the host platform differs from the execution platform.\n # Exactly one of the two globs will be empty depending on the host platform.\n # When --incompatible_disallow_empty_glob is enabled, each individual empty\n # glob will fail without allow_empty = True, even if the overall result is\n # non-empty.\n java = glob([\"bin/java.exe\", \"bin/java\"], allow_empty = True)[0],\n version = 17,\n)\n", - "sha256": "b9482f2304a1a68a614dfacddcf29569a72f0fac32e6c74f83dc1b9a157b8340", - "strip_prefix": "zulu17.44.53-ca-jdk17.0.8.1-linux_x64", - "urls": [ - "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu17.44.53-ca-jdk17.0.8.1-linux_x64.tar.gz", - "https://cdn.azul.com/zulu/bin/zulu17.44.53-ca-jdk17.0.8.1-linux_x64.tar.gz" - ] - } - }, - "remotejdk11_linux_s390x_toolchain_config_repo": { - "bzlFile": "@@rules_java~7.1.0//toolchains:remote_java_repository.bzl", - "ruleClassName": "_toolchain_config", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk11_linux_s390x_toolchain_config_repo", - "build_file": "\nconfig_setting(\n name = \"prefix_version_setting\",\n values = {\"java_runtime_version\": \"remotejdk_11\"},\n visibility = [\"//visibility:private\"],\n)\nconfig_setting(\n name = \"version_setting\",\n values = {\"java_runtime_version\": \"11\"},\n visibility = [\"//visibility:private\"],\n)\nalias(\n name = \"version_or_prefix_version_setting\",\n actual = select({\n \":version_setting\": \":version_setting\",\n \"//conditions:default\": \":prefix_version_setting\",\n }),\n visibility = [\"//visibility:private\"],\n)\ntoolchain(\n name = \"toolchain\",\n target_compatible_with = [\"@platforms//os:linux\", \"@platforms//cpu:s390x\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:runtime_toolchain_type\",\n toolchain = \"@remotejdk11_linux_s390x//:jdk\",\n)\ntoolchain(\n name = \"bootstrap_runtime_toolchain\",\n # These constraints are not required for correctness, but prevent fetches of remote JDK for\n # different architectures. As every Java compilation toolchain depends on a bootstrap runtime in\n # the same configuration, this constraint will not result in toolchain resolution failures.\n exec_compatible_with = [\"@platforms//os:linux\", \"@platforms//cpu:s390x\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:bootstrap_runtime_toolchain_type\",\n toolchain = \"@remotejdk11_linux_s390x//:jdk\",\n)\n" - } - }, - "remotejdk11_linux_toolchain_config_repo": { - "bzlFile": "@@rules_java~7.1.0//toolchains:remote_java_repository.bzl", - "ruleClassName": "_toolchain_config", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk11_linux_toolchain_config_repo", - "build_file": "\nconfig_setting(\n name = \"prefix_version_setting\",\n values = {\"java_runtime_version\": \"remotejdk_11\"},\n visibility = [\"//visibility:private\"],\n)\nconfig_setting(\n name = \"version_setting\",\n values = {\"java_runtime_version\": \"11\"},\n visibility = [\"//visibility:private\"],\n)\nalias(\n name = \"version_or_prefix_version_setting\",\n actual = select({\n \":version_setting\": \":version_setting\",\n \"//conditions:default\": \":prefix_version_setting\",\n }),\n visibility = [\"//visibility:private\"],\n)\ntoolchain(\n name = \"toolchain\",\n target_compatible_with = [\"@platforms//os:linux\", \"@platforms//cpu:x86_64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:runtime_toolchain_type\",\n toolchain = \"@remotejdk11_linux//:jdk\",\n)\ntoolchain(\n name = \"bootstrap_runtime_toolchain\",\n # These constraints are not required for correctness, but prevent fetches of remote JDK for\n # different architectures. As every Java compilation toolchain depends on a bootstrap runtime in\n # the same configuration, this constraint will not result in toolchain resolution failures.\n exec_compatible_with = [\"@platforms//os:linux\", \"@platforms//cpu:x86_64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:bootstrap_runtime_toolchain_type\",\n toolchain = \"@remotejdk11_linux//:jdk\",\n)\n" - } - }, - "remotejdk11_macos": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk11_macos", - "build_file_content": "load(\"@rules_java//java:defs.bzl\", \"java_runtime\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\nexports_files([\"WORKSPACE\", \"BUILD.bazel\"])\n\nfilegroup(\n name = \"jre\",\n srcs = glob(\n [\n \"jre/bin/**\",\n \"jre/lib/**\",\n ],\n allow_empty = True,\n # In some configurations, Java browser plugin is considered harmful and\n # common antivirus software blocks access to npjp2.dll interfering with Bazel,\n # so do not include it in JRE on Windows.\n exclude = [\"jre/bin/plugin2/**\"],\n ),\n)\n\nfilegroup(\n name = \"jdk-bin\",\n srcs = glob(\n [\"bin/**\"],\n # The JDK on Windows sometimes contains a directory called\n # \"%systemroot%\", which is not a valid label.\n exclude = [\"**/*%*/**\"],\n ),\n)\n\n# This folder holds security policies.\nfilegroup(\n name = \"jdk-conf\",\n srcs = glob(\n [\"conf/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-include\",\n srcs = glob(\n [\"include/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-lib\",\n srcs = glob(\n [\"lib/**\", \"release\"],\n allow_empty = True,\n exclude = [\n \"lib/missioncontrol/**\",\n \"lib/visualvm/**\",\n ],\n ),\n)\n\njava_runtime(\n name = \"jdk\",\n srcs = [\n \":jdk-bin\",\n \":jdk-conf\",\n \":jdk-include\",\n \":jdk-lib\",\n \":jre\",\n ],\n # Provide the 'java` binary explicitly so that the correct path is used by\n # Bazel even when the host platform differs from the execution platform.\n # Exactly one of the two globs will be empty depending on the host platform.\n # When --incompatible_disallow_empty_glob is enabled, each individual empty\n # glob will fail without allow_empty = True, even if the overall result is\n # non-empty.\n java = glob([\"bin/java.exe\", \"bin/java\"], allow_empty = True)[0],\n version = 11,\n)\n", - "sha256": "bcaab11cfe586fae7583c6d9d311c64384354fb2638eb9a012eca4c3f1a1d9fd", - "strip_prefix": "zulu11.66.15-ca-jdk11.0.20-macosx_x64", - "urls": [ - "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu11.66.15-ca-jdk11.0.20-macosx_x64.tar.gz", - "https://cdn.azul.com/zulu/bin/zulu11.66.15-ca-jdk11.0.20-macosx_x64.tar.gz" - ] - } - }, - "remotejdk11_win_arm64": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk11_win_arm64", - "build_file_content": "load(\"@rules_java//java:defs.bzl\", \"java_runtime\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\nexports_files([\"WORKSPACE\", \"BUILD.bazel\"])\n\nfilegroup(\n name = \"jre\",\n srcs = glob(\n [\n \"jre/bin/**\",\n \"jre/lib/**\",\n ],\n allow_empty = True,\n # In some configurations, Java browser plugin is considered harmful and\n # common antivirus software blocks access to npjp2.dll interfering with Bazel,\n # so do not include it in JRE on Windows.\n exclude = [\"jre/bin/plugin2/**\"],\n ),\n)\n\nfilegroup(\n name = \"jdk-bin\",\n srcs = glob(\n [\"bin/**\"],\n # The JDK on Windows sometimes contains a directory called\n # \"%systemroot%\", which is not a valid label.\n exclude = [\"**/*%*/**\"],\n ),\n)\n\n# This folder holds security policies.\nfilegroup(\n name = \"jdk-conf\",\n srcs = glob(\n [\"conf/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-include\",\n srcs = glob(\n [\"include/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-lib\",\n srcs = glob(\n [\"lib/**\", \"release\"],\n allow_empty = True,\n exclude = [\n \"lib/missioncontrol/**\",\n \"lib/visualvm/**\",\n ],\n ),\n)\n\njava_runtime(\n name = \"jdk\",\n srcs = [\n \":jdk-bin\",\n \":jdk-conf\",\n \":jdk-include\",\n \":jdk-lib\",\n \":jre\",\n ],\n # Provide the 'java` binary explicitly so that the correct path is used by\n # Bazel even when the host platform differs from the execution platform.\n # Exactly one of the two globs will be empty depending on the host platform.\n # When --incompatible_disallow_empty_glob is enabled, each individual empty\n # glob will fail without allow_empty = True, even if the overall result is\n # non-empty.\n java = glob([\"bin/java.exe\", \"bin/java\"], allow_empty = True)[0],\n version = 11,\n)\n", - "sha256": "b8a28e6e767d90acf793ea6f5bed0bb595ba0ba5ebdf8b99f395266161e53ec2", - "strip_prefix": "jdk-11.0.13+8", - "urls": [ - "https://mirror.bazel.build/aka.ms/download-jdk/microsoft-jdk-11.0.13.8.1-windows-aarch64.zip" - ] - } - }, - "remotejdk17_macos": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk17_macos", - "build_file_content": "load(\"@rules_java//java:defs.bzl\", \"java_runtime\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\nexports_files([\"WORKSPACE\", \"BUILD.bazel\"])\n\nfilegroup(\n name = \"jre\",\n srcs = glob(\n [\n \"jre/bin/**\",\n \"jre/lib/**\",\n ],\n allow_empty = True,\n # In some configurations, Java browser plugin is considered harmful and\n # common antivirus software blocks access to npjp2.dll interfering with Bazel,\n # so do not include it in JRE on Windows.\n exclude = [\"jre/bin/plugin2/**\"],\n ),\n)\n\nfilegroup(\n name = \"jdk-bin\",\n srcs = glob(\n [\"bin/**\"],\n # The JDK on Windows sometimes contains a directory called\n # \"%systemroot%\", which is not a valid label.\n exclude = [\"**/*%*/**\"],\n ),\n)\n\n# This folder holds security policies.\nfilegroup(\n name = \"jdk-conf\",\n srcs = glob(\n [\"conf/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-include\",\n srcs = glob(\n [\"include/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-lib\",\n srcs = glob(\n [\"lib/**\", \"release\"],\n allow_empty = True,\n exclude = [\n \"lib/missioncontrol/**\",\n \"lib/visualvm/**\",\n ],\n ),\n)\n\njava_runtime(\n name = \"jdk\",\n srcs = [\n \":jdk-bin\",\n \":jdk-conf\",\n \":jdk-include\",\n \":jdk-lib\",\n \":jre\",\n ],\n # Provide the 'java` binary explicitly so that the correct path is used by\n # Bazel even when the host platform differs from the execution platform.\n # Exactly one of the two globs will be empty depending on the host platform.\n # When --incompatible_disallow_empty_glob is enabled, each individual empty\n # glob will fail without allow_empty = True, even if the overall result is\n # non-empty.\n java = glob([\"bin/java.exe\", \"bin/java\"], allow_empty = True)[0],\n version = 17,\n)\n", - "sha256": "640453e8afe8ffe0fb4dceb4535fb50db9c283c64665eebb0ba68b19e65f4b1f", - "strip_prefix": "zulu17.44.53-ca-jdk17.0.8.1-macosx_x64", - "urls": [ - "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu17.44.53-ca-jdk17.0.8.1-macosx_x64.tar.gz", - "https://cdn.azul.com/zulu/bin/zulu17.44.53-ca-jdk17.0.8.1-macosx_x64.tar.gz" - ] - } - }, - "remotejdk21_macos": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk21_macos", - "build_file_content": "load(\"@rules_java//java:defs.bzl\", \"java_runtime\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\nexports_files([\"WORKSPACE\", \"BUILD.bazel\"])\n\nfilegroup(\n name = \"jre\",\n srcs = glob(\n [\n \"jre/bin/**\",\n \"jre/lib/**\",\n ],\n allow_empty = True,\n # In some configurations, Java browser plugin is considered harmful and\n # common antivirus software blocks access to npjp2.dll interfering with Bazel,\n # so do not include it in JRE on Windows.\n exclude = [\"jre/bin/plugin2/**\"],\n ),\n)\n\nfilegroup(\n name = \"jdk-bin\",\n srcs = glob(\n [\"bin/**\"],\n # The JDK on Windows sometimes contains a directory called\n # \"%systemroot%\", which is not a valid label.\n exclude = [\"**/*%*/**\"],\n ),\n)\n\n# This folder holds security policies.\nfilegroup(\n name = \"jdk-conf\",\n srcs = glob(\n [\"conf/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-include\",\n srcs = glob(\n [\"include/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-lib\",\n srcs = glob(\n [\"lib/**\", \"release\"],\n allow_empty = True,\n exclude = [\n \"lib/missioncontrol/**\",\n \"lib/visualvm/**\",\n ],\n ),\n)\n\njava_runtime(\n name = \"jdk\",\n srcs = [\n \":jdk-bin\",\n \":jdk-conf\",\n \":jdk-include\",\n \":jdk-lib\",\n \":jre\",\n ],\n # Provide the 'java` binary explicitly so that the correct path is used by\n # Bazel even when the host platform differs from the execution platform.\n # Exactly one of the two globs will be empty depending on the host platform.\n # When --incompatible_disallow_empty_glob is enabled, each individual empty\n # glob will fail without allow_empty = True, even if the overall result is\n # non-empty.\n java = glob([\"bin/java.exe\", \"bin/java\"], allow_empty = True)[0],\n version = 21,\n)\n", - "sha256": "9639b87db586d0c89f7a9892ae47f421e442c64b97baebdff31788fbe23265bd", - "strip_prefix": "zulu21.28.85-ca-jdk21.0.0-macosx_x64", - "urls": [ - "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu21.28.85-ca-jdk21.0.0-macosx_x64.tar.gz", - "https://cdn.azul.com/zulu/bin/zulu21.28.85-ca-jdk21.0.0-macosx_x64.tar.gz" - ] - } - }, - "remotejdk21_macos_toolchain_config_repo": { - "bzlFile": "@@rules_java~7.1.0//toolchains:remote_java_repository.bzl", - "ruleClassName": "_toolchain_config", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk21_macos_toolchain_config_repo", - "build_file": "\nconfig_setting(\n name = \"prefix_version_setting\",\n values = {\"java_runtime_version\": \"remotejdk_21\"},\n visibility = [\"//visibility:private\"],\n)\nconfig_setting(\n name = \"version_setting\",\n values = {\"java_runtime_version\": \"21\"},\n visibility = [\"//visibility:private\"],\n)\nalias(\n name = \"version_or_prefix_version_setting\",\n actual = select({\n \":version_setting\": \":version_setting\",\n \"//conditions:default\": \":prefix_version_setting\",\n }),\n visibility = [\"//visibility:private\"],\n)\ntoolchain(\n name = \"toolchain\",\n target_compatible_with = [\"@platforms//os:macos\", \"@platforms//cpu:x86_64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:runtime_toolchain_type\",\n toolchain = \"@remotejdk21_macos//:jdk\",\n)\ntoolchain(\n name = \"bootstrap_runtime_toolchain\",\n # These constraints are not required for correctness, but prevent fetches of remote JDK for\n # different architectures. As every Java compilation toolchain depends on a bootstrap runtime in\n # the same configuration, this constraint will not result in toolchain resolution failures.\n exec_compatible_with = [\"@platforms//os:macos\", \"@platforms//cpu:x86_64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:bootstrap_runtime_toolchain_type\",\n toolchain = \"@remotejdk21_macos//:jdk\",\n)\n" - } - }, - "remotejdk17_macos_aarch64_toolchain_config_repo": { - "bzlFile": "@@rules_java~7.1.0//toolchains:remote_java_repository.bzl", - "ruleClassName": "_toolchain_config", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk17_macos_aarch64_toolchain_config_repo", - "build_file": "\nconfig_setting(\n name = \"prefix_version_setting\",\n values = {\"java_runtime_version\": \"remotejdk_17\"},\n visibility = [\"//visibility:private\"],\n)\nconfig_setting(\n name = \"version_setting\",\n values = {\"java_runtime_version\": \"17\"},\n visibility = [\"//visibility:private\"],\n)\nalias(\n name = \"version_or_prefix_version_setting\",\n actual = select({\n \":version_setting\": \":version_setting\",\n \"//conditions:default\": \":prefix_version_setting\",\n }),\n visibility = [\"//visibility:private\"],\n)\ntoolchain(\n name = \"toolchain\",\n target_compatible_with = [\"@platforms//os:macos\", \"@platforms//cpu:aarch64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:runtime_toolchain_type\",\n toolchain = \"@remotejdk17_macos_aarch64//:jdk\",\n)\ntoolchain(\n name = \"bootstrap_runtime_toolchain\",\n # These constraints are not required for correctness, but prevent fetches of remote JDK for\n # different architectures. As every Java compilation toolchain depends on a bootstrap runtime in\n # the same configuration, this constraint will not result in toolchain resolution failures.\n exec_compatible_with = [\"@platforms//os:macos\", \"@platforms//cpu:aarch64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:bootstrap_runtime_toolchain_type\",\n toolchain = \"@remotejdk17_macos_aarch64//:jdk\",\n)\n" - } - }, - "remotejdk17_win": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk17_win", - "build_file_content": "load(\"@rules_java//java:defs.bzl\", \"java_runtime\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\nexports_files([\"WORKSPACE\", \"BUILD.bazel\"])\n\nfilegroup(\n name = \"jre\",\n srcs = glob(\n [\n \"jre/bin/**\",\n \"jre/lib/**\",\n ],\n allow_empty = True,\n # In some configurations, Java browser plugin is considered harmful and\n # common antivirus software blocks access to npjp2.dll interfering with Bazel,\n # so do not include it in JRE on Windows.\n exclude = [\"jre/bin/plugin2/**\"],\n ),\n)\n\nfilegroup(\n name = \"jdk-bin\",\n srcs = glob(\n [\"bin/**\"],\n # The JDK on Windows sometimes contains a directory called\n # \"%systemroot%\", which is not a valid label.\n exclude = [\"**/*%*/**\"],\n ),\n)\n\n# This folder holds security policies.\nfilegroup(\n name = \"jdk-conf\",\n srcs = glob(\n [\"conf/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-include\",\n srcs = glob(\n [\"include/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-lib\",\n srcs = glob(\n [\"lib/**\", \"release\"],\n allow_empty = True,\n exclude = [\n \"lib/missioncontrol/**\",\n \"lib/visualvm/**\",\n ],\n ),\n)\n\njava_runtime(\n name = \"jdk\",\n srcs = [\n \":jdk-bin\",\n \":jdk-conf\",\n \":jdk-include\",\n \":jdk-lib\",\n \":jre\",\n ],\n # Provide the 'java` binary explicitly so that the correct path is used by\n # Bazel even when the host platform differs from the execution platform.\n # Exactly one of the two globs will be empty depending on the host platform.\n # When --incompatible_disallow_empty_glob is enabled, each individual empty\n # glob will fail without allow_empty = True, even if the overall result is\n # non-empty.\n java = glob([\"bin/java.exe\", \"bin/java\"], allow_empty = True)[0],\n version = 17,\n)\n", - "sha256": "192f2afca57701de6ec496234f7e45d971bf623ff66b8ee4a5c81582054e5637", - "strip_prefix": "zulu17.44.53-ca-jdk17.0.8.1-win_x64", - "urls": [ - "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu17.44.53-ca-jdk17.0.8.1-win_x64.zip", - "https://cdn.azul.com/zulu/bin/zulu17.44.53-ca-jdk17.0.8.1-win_x64.zip" - ] - } - }, - "remotejdk11_macos_aarch64_toolchain_config_repo": { - "bzlFile": "@@rules_java~7.1.0//toolchains:remote_java_repository.bzl", - "ruleClassName": "_toolchain_config", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk11_macos_aarch64_toolchain_config_repo", - "build_file": "\nconfig_setting(\n name = \"prefix_version_setting\",\n values = {\"java_runtime_version\": \"remotejdk_11\"},\n visibility = [\"//visibility:private\"],\n)\nconfig_setting(\n name = \"version_setting\",\n values = {\"java_runtime_version\": \"11\"},\n visibility = [\"//visibility:private\"],\n)\nalias(\n name = \"version_or_prefix_version_setting\",\n actual = select({\n \":version_setting\": \":version_setting\",\n \"//conditions:default\": \":prefix_version_setting\",\n }),\n visibility = [\"//visibility:private\"],\n)\ntoolchain(\n name = \"toolchain\",\n target_compatible_with = [\"@platforms//os:macos\", \"@platforms//cpu:aarch64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:runtime_toolchain_type\",\n toolchain = \"@remotejdk11_macos_aarch64//:jdk\",\n)\ntoolchain(\n name = \"bootstrap_runtime_toolchain\",\n # These constraints are not required for correctness, but prevent fetches of remote JDK for\n # different architectures. As every Java compilation toolchain depends on a bootstrap runtime in\n # the same configuration, this constraint will not result in toolchain resolution failures.\n exec_compatible_with = [\"@platforms//os:macos\", \"@platforms//cpu:aarch64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:bootstrap_runtime_toolchain_type\",\n toolchain = \"@remotejdk11_macos_aarch64//:jdk\",\n)\n" - } - }, - "remotejdk11_linux_ppc64le_toolchain_config_repo": { - "bzlFile": "@@rules_java~7.1.0//toolchains:remote_java_repository.bzl", - "ruleClassName": "_toolchain_config", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk11_linux_ppc64le_toolchain_config_repo", - "build_file": "\nconfig_setting(\n name = \"prefix_version_setting\",\n values = {\"java_runtime_version\": \"remotejdk_11\"},\n visibility = [\"//visibility:private\"],\n)\nconfig_setting(\n name = \"version_setting\",\n values = {\"java_runtime_version\": \"11\"},\n visibility = [\"//visibility:private\"],\n)\nalias(\n name = \"version_or_prefix_version_setting\",\n actual = select({\n \":version_setting\": \":version_setting\",\n \"//conditions:default\": \":prefix_version_setting\",\n }),\n visibility = [\"//visibility:private\"],\n)\ntoolchain(\n name = \"toolchain\",\n target_compatible_with = [\"@platforms//os:linux\", \"@platforms//cpu:ppc\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:runtime_toolchain_type\",\n toolchain = \"@remotejdk11_linux_ppc64le//:jdk\",\n)\ntoolchain(\n name = \"bootstrap_runtime_toolchain\",\n # These constraints are not required for correctness, but prevent fetches of remote JDK for\n # different architectures. As every Java compilation toolchain depends on a bootstrap runtime in\n # the same configuration, this constraint will not result in toolchain resolution failures.\n exec_compatible_with = [\"@platforms//os:linux\", \"@platforms//cpu:ppc\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:bootstrap_runtime_toolchain_type\",\n toolchain = \"@remotejdk11_linux_ppc64le//:jdk\",\n)\n" - } - }, - "remotejdk21_linux": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk21_linux", - "build_file_content": "load(\"@rules_java//java:defs.bzl\", \"java_runtime\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\nexports_files([\"WORKSPACE\", \"BUILD.bazel\"])\n\nfilegroup(\n name = \"jre\",\n srcs = glob(\n [\n \"jre/bin/**\",\n \"jre/lib/**\",\n ],\n allow_empty = True,\n # In some configurations, Java browser plugin is considered harmful and\n # common antivirus software blocks access to npjp2.dll interfering with Bazel,\n # so do not include it in JRE on Windows.\n exclude = [\"jre/bin/plugin2/**\"],\n ),\n)\n\nfilegroup(\n name = \"jdk-bin\",\n srcs = glob(\n [\"bin/**\"],\n # The JDK on Windows sometimes contains a directory called\n # \"%systemroot%\", which is not a valid label.\n exclude = [\"**/*%*/**\"],\n ),\n)\n\n# This folder holds security policies.\nfilegroup(\n name = \"jdk-conf\",\n srcs = glob(\n [\"conf/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-include\",\n srcs = glob(\n [\"include/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-lib\",\n srcs = glob(\n [\"lib/**\", \"release\"],\n allow_empty = True,\n exclude = [\n \"lib/missioncontrol/**\",\n \"lib/visualvm/**\",\n ],\n ),\n)\n\njava_runtime(\n name = \"jdk\",\n srcs = [\n \":jdk-bin\",\n \":jdk-conf\",\n \":jdk-include\",\n \":jdk-lib\",\n \":jre\",\n ],\n # Provide the 'java` binary explicitly so that the correct path is used by\n # Bazel even when the host platform differs from the execution platform.\n # Exactly one of the two globs will be empty depending on the host platform.\n # When --incompatible_disallow_empty_glob is enabled, each individual empty\n # glob will fail without allow_empty = True, even if the overall result is\n # non-empty.\n java = glob([\"bin/java.exe\", \"bin/java\"], allow_empty = True)[0],\n version = 21,\n)\n", - "sha256": "0c0eadfbdc47a7ca64aeab51b9c061f71b6e4d25d2d87674512e9b6387e9e3a6", - "strip_prefix": "zulu21.28.85-ca-jdk21.0.0-linux_x64", - "urls": [ - "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu21.28.85-ca-jdk21.0.0-linux_x64.tar.gz", - "https://cdn.azul.com/zulu/bin/zulu21.28.85-ca-jdk21.0.0-linux_x64.tar.gz" - ] - } - }, - "remote_java_tools_linux": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remote_java_tools_linux", - "sha256": "d134da9b04c9023fb6e56a5d4bffccee73f7bc9572ddc4e747778dacccd7a5a7", - "urls": [ - "https://mirror.bazel.build/bazel_java_tools/releases/java/v13.1/java_tools_linux-v13.1.zip", - "https://github.com/bazelbuild/java_tools/releases/download/java_v13.1/java_tools_linux-v13.1.zip" - ] - } - }, - "remotejdk21_win": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk21_win", - "build_file_content": "load(\"@rules_java//java:defs.bzl\", \"java_runtime\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\nexports_files([\"WORKSPACE\", \"BUILD.bazel\"])\n\nfilegroup(\n name = \"jre\",\n srcs = glob(\n [\n \"jre/bin/**\",\n \"jre/lib/**\",\n ],\n allow_empty = True,\n # In some configurations, Java browser plugin is considered harmful and\n # common antivirus software blocks access to npjp2.dll interfering with Bazel,\n # so do not include it in JRE on Windows.\n exclude = [\"jre/bin/plugin2/**\"],\n ),\n)\n\nfilegroup(\n name = \"jdk-bin\",\n srcs = glob(\n [\"bin/**\"],\n # The JDK on Windows sometimes contains a directory called\n # \"%systemroot%\", which is not a valid label.\n exclude = [\"**/*%*/**\"],\n ),\n)\n\n# This folder holds security policies.\nfilegroup(\n name = \"jdk-conf\",\n srcs = glob(\n [\"conf/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-include\",\n srcs = glob(\n [\"include/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-lib\",\n srcs = glob(\n [\"lib/**\", \"release\"],\n allow_empty = True,\n exclude = [\n \"lib/missioncontrol/**\",\n \"lib/visualvm/**\",\n ],\n ),\n)\n\njava_runtime(\n name = \"jdk\",\n srcs = [\n \":jdk-bin\",\n \":jdk-conf\",\n \":jdk-include\",\n \":jdk-lib\",\n \":jre\",\n ],\n # Provide the 'java` binary explicitly so that the correct path is used by\n # Bazel even when the host platform differs from the execution platform.\n # Exactly one of the two globs will be empty depending on the host platform.\n # When --incompatible_disallow_empty_glob is enabled, each individual empty\n # glob will fail without allow_empty = True, even if the overall result is\n # non-empty.\n java = glob([\"bin/java.exe\", \"bin/java\"], allow_empty = True)[0],\n version = 21,\n)\n", - "sha256": "e9959d500a0d9a7694ac243baf657761479da132f0f94720cbffd092150bd802", - "strip_prefix": "zulu21.28.85-ca-jdk21.0.0-win_x64", - "urls": [ - "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu21.28.85-ca-jdk21.0.0-win_x64.zip", - "https://cdn.azul.com/zulu/bin/zulu21.28.85-ca-jdk21.0.0-win_x64.zip" - ] - } - }, - "remotejdk21_linux_aarch64": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk21_linux_aarch64", - "build_file_content": "load(\"@rules_java//java:defs.bzl\", \"java_runtime\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\nexports_files([\"WORKSPACE\", \"BUILD.bazel\"])\n\nfilegroup(\n name = \"jre\",\n srcs = glob(\n [\n \"jre/bin/**\",\n \"jre/lib/**\",\n ],\n allow_empty = True,\n # In some configurations, Java browser plugin is considered harmful and\n # common antivirus software blocks access to npjp2.dll interfering with Bazel,\n # so do not include it in JRE on Windows.\n exclude = [\"jre/bin/plugin2/**\"],\n ),\n)\n\nfilegroup(\n name = \"jdk-bin\",\n srcs = glob(\n [\"bin/**\"],\n # The JDK on Windows sometimes contains a directory called\n # \"%systemroot%\", which is not a valid label.\n exclude = [\"**/*%*/**\"],\n ),\n)\n\n# This folder holds security policies.\nfilegroup(\n name = \"jdk-conf\",\n srcs = glob(\n [\"conf/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-include\",\n srcs = glob(\n [\"include/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-lib\",\n srcs = glob(\n [\"lib/**\", \"release\"],\n allow_empty = True,\n exclude = [\n \"lib/missioncontrol/**\",\n \"lib/visualvm/**\",\n ],\n ),\n)\n\njava_runtime(\n name = \"jdk\",\n srcs = [\n \":jdk-bin\",\n \":jdk-conf\",\n \":jdk-include\",\n \":jdk-lib\",\n \":jre\",\n ],\n # Provide the 'java` binary explicitly so that the correct path is used by\n # Bazel even when the host platform differs from the execution platform.\n # Exactly one of the two globs will be empty depending on the host platform.\n # When --incompatible_disallow_empty_glob is enabled, each individual empty\n # glob will fail without allow_empty = True, even if the overall result is\n # non-empty.\n java = glob([\"bin/java.exe\", \"bin/java\"], allow_empty = True)[0],\n version = 21,\n)\n", - "sha256": "1fb64b8036c5d463d8ab59af06bf5b6b006811e6012e3b0eb6bccf57f1c55835", - "strip_prefix": "zulu21.28.85-ca-jdk21.0.0-linux_aarch64", - "urls": [ - "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu21.28.85-ca-jdk21.0.0-linux_aarch64.tar.gz", - "https://cdn.azul.com/zulu/bin/zulu21.28.85-ca-jdk21.0.0-linux_aarch64.tar.gz" - ] - } - }, - "remotejdk11_linux_aarch64_toolchain_config_repo": { - "bzlFile": "@@rules_java~7.1.0//toolchains:remote_java_repository.bzl", - "ruleClassName": "_toolchain_config", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk11_linux_aarch64_toolchain_config_repo", - "build_file": "\nconfig_setting(\n name = \"prefix_version_setting\",\n values = {\"java_runtime_version\": \"remotejdk_11\"},\n visibility = [\"//visibility:private\"],\n)\nconfig_setting(\n name = \"version_setting\",\n values = {\"java_runtime_version\": \"11\"},\n visibility = [\"//visibility:private\"],\n)\nalias(\n name = \"version_or_prefix_version_setting\",\n actual = select({\n \":version_setting\": \":version_setting\",\n \"//conditions:default\": \":prefix_version_setting\",\n }),\n visibility = [\"//visibility:private\"],\n)\ntoolchain(\n name = \"toolchain\",\n target_compatible_with = [\"@platforms//os:linux\", \"@platforms//cpu:aarch64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:runtime_toolchain_type\",\n toolchain = \"@remotejdk11_linux_aarch64//:jdk\",\n)\ntoolchain(\n name = \"bootstrap_runtime_toolchain\",\n # These constraints are not required for correctness, but prevent fetches of remote JDK for\n # different architectures. As every Java compilation toolchain depends on a bootstrap runtime in\n # the same configuration, this constraint will not result in toolchain resolution failures.\n exec_compatible_with = [\"@platforms//os:linux\", \"@platforms//cpu:aarch64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:bootstrap_runtime_toolchain_type\",\n toolchain = \"@remotejdk11_linux_aarch64//:jdk\",\n)\n" - } - }, - "remotejdk11_linux_s390x": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk11_linux_s390x", - "build_file_content": "load(\"@rules_java//java:defs.bzl\", \"java_runtime\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\nexports_files([\"WORKSPACE\", \"BUILD.bazel\"])\n\nfilegroup(\n name = \"jre\",\n srcs = glob(\n [\n \"jre/bin/**\",\n \"jre/lib/**\",\n ],\n allow_empty = True,\n # In some configurations, Java browser plugin is considered harmful and\n # common antivirus software blocks access to npjp2.dll interfering with Bazel,\n # so do not include it in JRE on Windows.\n exclude = [\"jre/bin/plugin2/**\"],\n ),\n)\n\nfilegroup(\n name = \"jdk-bin\",\n srcs = glob(\n [\"bin/**\"],\n # The JDK on Windows sometimes contains a directory called\n # \"%systemroot%\", which is not a valid label.\n exclude = [\"**/*%*/**\"],\n ),\n)\n\n# This folder holds security policies.\nfilegroup(\n name = \"jdk-conf\",\n srcs = glob(\n [\"conf/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-include\",\n srcs = glob(\n [\"include/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-lib\",\n srcs = glob(\n [\"lib/**\", \"release\"],\n allow_empty = True,\n exclude = [\n \"lib/missioncontrol/**\",\n \"lib/visualvm/**\",\n ],\n ),\n)\n\njava_runtime(\n name = \"jdk\",\n srcs = [\n \":jdk-bin\",\n \":jdk-conf\",\n \":jdk-include\",\n \":jdk-lib\",\n \":jre\",\n ],\n # Provide the 'java` binary explicitly so that the correct path is used by\n # Bazel even when the host platform differs from the execution platform.\n # Exactly one of the two globs will be empty depending on the host platform.\n # When --incompatible_disallow_empty_glob is enabled, each individual empty\n # glob will fail without allow_empty = True, even if the overall result is\n # non-empty.\n java = glob([\"bin/java.exe\", \"bin/java\"], allow_empty = True)[0],\n version = 11,\n)\n", - "sha256": "a58fc0361966af0a5d5a31a2d8a208e3c9bb0f54f345596fd80b99ea9a39788b", - "strip_prefix": "jdk-11.0.15+10", - "urls": [ - "https://mirror.bazel.build/github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.15+10/OpenJDK11U-jdk_s390x_linux_hotspot_11.0.15_10.tar.gz", - "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.15+10/OpenJDK11U-jdk_s390x_linux_hotspot_11.0.15_10.tar.gz" - ] - } - }, - "remotejdk17_linux_aarch64": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk17_linux_aarch64", - "build_file_content": "load(\"@rules_java//java:defs.bzl\", \"java_runtime\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\nexports_files([\"WORKSPACE\", \"BUILD.bazel\"])\n\nfilegroup(\n name = \"jre\",\n srcs = glob(\n [\n \"jre/bin/**\",\n \"jre/lib/**\",\n ],\n allow_empty = True,\n # In some configurations, Java browser plugin is considered harmful and\n # common antivirus software blocks access to npjp2.dll interfering with Bazel,\n # so do not include it in JRE on Windows.\n exclude = [\"jre/bin/plugin2/**\"],\n ),\n)\n\nfilegroup(\n name = \"jdk-bin\",\n srcs = glob(\n [\"bin/**\"],\n # The JDK on Windows sometimes contains a directory called\n # \"%systemroot%\", which is not a valid label.\n exclude = [\"**/*%*/**\"],\n ),\n)\n\n# This folder holds security policies.\nfilegroup(\n name = \"jdk-conf\",\n srcs = glob(\n [\"conf/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-include\",\n srcs = glob(\n [\"include/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-lib\",\n srcs = glob(\n [\"lib/**\", \"release\"],\n allow_empty = True,\n exclude = [\n \"lib/missioncontrol/**\",\n \"lib/visualvm/**\",\n ],\n ),\n)\n\njava_runtime(\n name = \"jdk\",\n srcs = [\n \":jdk-bin\",\n \":jdk-conf\",\n \":jdk-include\",\n \":jdk-lib\",\n \":jre\",\n ],\n # Provide the 'java` binary explicitly so that the correct path is used by\n # Bazel even when the host platform differs from the execution platform.\n # Exactly one of the two globs will be empty depending on the host platform.\n # When --incompatible_disallow_empty_glob is enabled, each individual empty\n # glob will fail without allow_empty = True, even if the overall result is\n # non-empty.\n java = glob([\"bin/java.exe\", \"bin/java\"], allow_empty = True)[0],\n version = 17,\n)\n", - "sha256": "6531cef61e416d5a7b691555c8cf2bdff689201b8a001ff45ab6740062b44313", - "strip_prefix": "zulu17.44.53-ca-jdk17.0.8.1-linux_aarch64", - "urls": [ - "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu17.44.53-ca-jdk17.0.8.1-linux_aarch64.tar.gz", - "https://cdn.azul.com/zulu/bin/zulu17.44.53-ca-jdk17.0.8.1-linux_aarch64.tar.gz" - ] - } - }, - "remotejdk17_win_arm64_toolchain_config_repo": { - "bzlFile": "@@rules_java~7.1.0//toolchains:remote_java_repository.bzl", - "ruleClassName": "_toolchain_config", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk17_win_arm64_toolchain_config_repo", - "build_file": "\nconfig_setting(\n name = \"prefix_version_setting\",\n values = {\"java_runtime_version\": \"remotejdk_17\"},\n visibility = [\"//visibility:private\"],\n)\nconfig_setting(\n name = \"version_setting\",\n values = {\"java_runtime_version\": \"17\"},\n visibility = [\"//visibility:private\"],\n)\nalias(\n name = \"version_or_prefix_version_setting\",\n actual = select({\n \":version_setting\": \":version_setting\",\n \"//conditions:default\": \":prefix_version_setting\",\n }),\n visibility = [\"//visibility:private\"],\n)\ntoolchain(\n name = \"toolchain\",\n target_compatible_with = [\"@platforms//os:windows\", \"@platforms//cpu:arm64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:runtime_toolchain_type\",\n toolchain = \"@remotejdk17_win_arm64//:jdk\",\n)\ntoolchain(\n name = \"bootstrap_runtime_toolchain\",\n # These constraints are not required for correctness, but prevent fetches of remote JDK for\n # different architectures. As every Java compilation toolchain depends on a bootstrap runtime in\n # the same configuration, this constraint will not result in toolchain resolution failures.\n exec_compatible_with = [\"@platforms//os:windows\", \"@platforms//cpu:arm64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:bootstrap_runtime_toolchain_type\",\n toolchain = \"@remotejdk17_win_arm64//:jdk\",\n)\n" - } - }, - "remotejdk11_linux": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk11_linux", - "build_file_content": "load(\"@rules_java//java:defs.bzl\", \"java_runtime\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\nexports_files([\"WORKSPACE\", \"BUILD.bazel\"])\n\nfilegroup(\n name = \"jre\",\n srcs = glob(\n [\n \"jre/bin/**\",\n \"jre/lib/**\",\n ],\n allow_empty = True,\n # In some configurations, Java browser plugin is considered harmful and\n # common antivirus software blocks access to npjp2.dll interfering with Bazel,\n # so do not include it in JRE on Windows.\n exclude = [\"jre/bin/plugin2/**\"],\n ),\n)\n\nfilegroup(\n name = \"jdk-bin\",\n srcs = glob(\n [\"bin/**\"],\n # The JDK on Windows sometimes contains a directory called\n # \"%systemroot%\", which is not a valid label.\n exclude = [\"**/*%*/**\"],\n ),\n)\n\n# This folder holds security policies.\nfilegroup(\n name = \"jdk-conf\",\n srcs = glob(\n [\"conf/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-include\",\n srcs = glob(\n [\"include/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-lib\",\n srcs = glob(\n [\"lib/**\", \"release\"],\n allow_empty = True,\n exclude = [\n \"lib/missioncontrol/**\",\n \"lib/visualvm/**\",\n ],\n ),\n)\n\njava_runtime(\n name = \"jdk\",\n srcs = [\n \":jdk-bin\",\n \":jdk-conf\",\n \":jdk-include\",\n \":jdk-lib\",\n \":jre\",\n ],\n # Provide the 'java` binary explicitly so that the correct path is used by\n # Bazel even when the host platform differs from the execution platform.\n # Exactly one of the two globs will be empty depending on the host platform.\n # When --incompatible_disallow_empty_glob is enabled, each individual empty\n # glob will fail without allow_empty = True, even if the overall result is\n # non-empty.\n java = glob([\"bin/java.exe\", \"bin/java\"], allow_empty = True)[0],\n version = 11,\n)\n", - "sha256": "a34b404f87a08a61148b38e1416d837189e1df7a040d949e743633daf4695a3c", - "strip_prefix": "zulu11.66.15-ca-jdk11.0.20-linux_x64", - "urls": [ - "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu11.66.15-ca-jdk11.0.20-linux_x64.tar.gz", - "https://cdn.azul.com/zulu/bin/zulu11.66.15-ca-jdk11.0.20-linux_x64.tar.gz" - ] - } - }, - "remotejdk11_macos_toolchain_config_repo": { - "bzlFile": "@@rules_java~7.1.0//toolchains:remote_java_repository.bzl", - "ruleClassName": "_toolchain_config", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk11_macos_toolchain_config_repo", - "build_file": "\nconfig_setting(\n name = \"prefix_version_setting\",\n values = {\"java_runtime_version\": \"remotejdk_11\"},\n visibility = [\"//visibility:private\"],\n)\nconfig_setting(\n name = \"version_setting\",\n values = {\"java_runtime_version\": \"11\"},\n visibility = [\"//visibility:private\"],\n)\nalias(\n name = \"version_or_prefix_version_setting\",\n actual = select({\n \":version_setting\": \":version_setting\",\n \"//conditions:default\": \":prefix_version_setting\",\n }),\n visibility = [\"//visibility:private\"],\n)\ntoolchain(\n name = \"toolchain\",\n target_compatible_with = [\"@platforms//os:macos\", \"@platforms//cpu:x86_64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:runtime_toolchain_type\",\n toolchain = \"@remotejdk11_macos//:jdk\",\n)\ntoolchain(\n name = \"bootstrap_runtime_toolchain\",\n # These constraints are not required for correctness, but prevent fetches of remote JDK for\n # different architectures. As every Java compilation toolchain depends on a bootstrap runtime in\n # the same configuration, this constraint will not result in toolchain resolution failures.\n exec_compatible_with = [\"@platforms//os:macos\", \"@platforms//cpu:x86_64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:bootstrap_runtime_toolchain_type\",\n toolchain = \"@remotejdk11_macos//:jdk\",\n)\n" - } - }, - "remotejdk17_linux_ppc64le_toolchain_config_repo": { - "bzlFile": "@@rules_java~7.1.0//toolchains:remote_java_repository.bzl", - "ruleClassName": "_toolchain_config", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk17_linux_ppc64le_toolchain_config_repo", - "build_file": "\nconfig_setting(\n name = \"prefix_version_setting\",\n values = {\"java_runtime_version\": \"remotejdk_17\"},\n visibility = [\"//visibility:private\"],\n)\nconfig_setting(\n name = \"version_setting\",\n values = {\"java_runtime_version\": \"17\"},\n visibility = [\"//visibility:private\"],\n)\nalias(\n name = \"version_or_prefix_version_setting\",\n actual = select({\n \":version_setting\": \":version_setting\",\n \"//conditions:default\": \":prefix_version_setting\",\n }),\n visibility = [\"//visibility:private\"],\n)\ntoolchain(\n name = \"toolchain\",\n target_compatible_with = [\"@platforms//os:linux\", \"@platforms//cpu:ppc\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:runtime_toolchain_type\",\n toolchain = \"@remotejdk17_linux_ppc64le//:jdk\",\n)\ntoolchain(\n name = \"bootstrap_runtime_toolchain\",\n # These constraints are not required for correctness, but prevent fetches of remote JDK for\n # different architectures. As every Java compilation toolchain depends on a bootstrap runtime in\n # the same configuration, this constraint will not result in toolchain resolution failures.\n exec_compatible_with = [\"@platforms//os:linux\", \"@platforms//cpu:ppc\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:bootstrap_runtime_toolchain_type\",\n toolchain = \"@remotejdk17_linux_ppc64le//:jdk\",\n)\n" - } - }, - "remotejdk17_win_arm64": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk17_win_arm64", - "build_file_content": "load(\"@rules_java//java:defs.bzl\", \"java_runtime\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\nexports_files([\"WORKSPACE\", \"BUILD.bazel\"])\n\nfilegroup(\n name = \"jre\",\n srcs = glob(\n [\n \"jre/bin/**\",\n \"jre/lib/**\",\n ],\n allow_empty = True,\n # In some configurations, Java browser plugin is considered harmful and\n # common antivirus software blocks access to npjp2.dll interfering with Bazel,\n # so do not include it in JRE on Windows.\n exclude = [\"jre/bin/plugin2/**\"],\n ),\n)\n\nfilegroup(\n name = \"jdk-bin\",\n srcs = glob(\n [\"bin/**\"],\n # The JDK on Windows sometimes contains a directory called\n # \"%systemroot%\", which is not a valid label.\n exclude = [\"**/*%*/**\"],\n ),\n)\n\n# This folder holds security policies.\nfilegroup(\n name = \"jdk-conf\",\n srcs = glob(\n [\"conf/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-include\",\n srcs = glob(\n [\"include/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-lib\",\n srcs = glob(\n [\"lib/**\", \"release\"],\n allow_empty = True,\n exclude = [\n \"lib/missioncontrol/**\",\n \"lib/visualvm/**\",\n ],\n ),\n)\n\njava_runtime(\n name = \"jdk\",\n srcs = [\n \":jdk-bin\",\n \":jdk-conf\",\n \":jdk-include\",\n \":jdk-lib\",\n \":jre\",\n ],\n # Provide the 'java` binary explicitly so that the correct path is used by\n # Bazel even when the host platform differs from the execution platform.\n # Exactly one of the two globs will be empty depending on the host platform.\n # When --incompatible_disallow_empty_glob is enabled, each individual empty\n # glob will fail without allow_empty = True, even if the overall result is\n # non-empty.\n java = glob([\"bin/java.exe\", \"bin/java\"], allow_empty = True)[0],\n version = 17,\n)\n", - "sha256": "6802c99eae0d788e21f52d03cab2e2b3bf42bc334ca03cbf19f71eb70ee19f85", - "strip_prefix": "zulu17.44.53-ca-jdk17.0.8.1-win_aarch64", - "urls": [ - "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu17.44.53-ca-jdk17.0.8.1-win_aarch64.zip", - "https://cdn.azul.com/zulu/bin/zulu17.44.53-ca-jdk17.0.8.1-win_aarch64.zip" - ] - } - }, - "remote_java_tools_darwin_arm64": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remote_java_tools_darwin_arm64", - "sha256": "dab5bb87ec43e980faea6e1cec14bafb217b8e2f5346f53aa784fd715929a930", - "urls": [ - "https://mirror.bazel.build/bazel_java_tools/releases/java/v13.1/java_tools_darwin_arm64-v13.1.zip", - "https://github.com/bazelbuild/java_tools/releases/download/java_v13.1/java_tools_darwin_arm64-v13.1.zip" - ] - } - }, - "remotejdk17_linux_ppc64le": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk17_linux_ppc64le", - "build_file_content": "load(\"@rules_java//java:defs.bzl\", \"java_runtime\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\nexports_files([\"WORKSPACE\", \"BUILD.bazel\"])\n\nfilegroup(\n name = \"jre\",\n srcs = glob(\n [\n \"jre/bin/**\",\n \"jre/lib/**\",\n ],\n allow_empty = True,\n # In some configurations, Java browser plugin is considered harmful and\n # common antivirus software blocks access to npjp2.dll interfering with Bazel,\n # so do not include it in JRE on Windows.\n exclude = [\"jre/bin/plugin2/**\"],\n ),\n)\n\nfilegroup(\n name = \"jdk-bin\",\n srcs = glob(\n [\"bin/**\"],\n # The JDK on Windows sometimes contains a directory called\n # \"%systemroot%\", which is not a valid label.\n exclude = [\"**/*%*/**\"],\n ),\n)\n\n# This folder holds security policies.\nfilegroup(\n name = \"jdk-conf\",\n srcs = glob(\n [\"conf/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-include\",\n srcs = glob(\n [\"include/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-lib\",\n srcs = glob(\n [\"lib/**\", \"release\"],\n allow_empty = True,\n exclude = [\n \"lib/missioncontrol/**\",\n \"lib/visualvm/**\",\n ],\n ),\n)\n\njava_runtime(\n name = \"jdk\",\n srcs = [\n \":jdk-bin\",\n \":jdk-conf\",\n \":jdk-include\",\n \":jdk-lib\",\n \":jre\",\n ],\n # Provide the 'java` binary explicitly so that the correct path is used by\n # Bazel even when the host platform differs from the execution platform.\n # Exactly one of the two globs will be empty depending on the host platform.\n # When --incompatible_disallow_empty_glob is enabled, each individual empty\n # glob will fail without allow_empty = True, even if the overall result is\n # non-empty.\n java = glob([\"bin/java.exe\", \"bin/java\"], allow_empty = True)[0],\n version = 17,\n)\n", - "sha256": "00a4c07603d0218cd678461b5b3b7e25b3253102da4022d31fc35907f21a2efd", - "strip_prefix": "jdk-17.0.8.1+1", - "urls": [ - "https://mirror.bazel.build/github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.8.1%2B1/OpenJDK17U-jdk_ppc64le_linux_hotspot_17.0.8.1_1.tar.gz", - "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.8.1%2B1/OpenJDK17U-jdk_ppc64le_linux_hotspot_17.0.8.1_1.tar.gz" - ] - } - }, - "remotejdk21_linux_aarch64_toolchain_config_repo": { - "bzlFile": "@@rules_java~7.1.0//toolchains:remote_java_repository.bzl", - "ruleClassName": "_toolchain_config", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk21_linux_aarch64_toolchain_config_repo", - "build_file": "\nconfig_setting(\n name = \"prefix_version_setting\",\n values = {\"java_runtime_version\": \"remotejdk_21\"},\n visibility = [\"//visibility:private\"],\n)\nconfig_setting(\n name = \"version_setting\",\n values = {\"java_runtime_version\": \"21\"},\n visibility = [\"//visibility:private\"],\n)\nalias(\n name = \"version_or_prefix_version_setting\",\n actual = select({\n \":version_setting\": \":version_setting\",\n \"//conditions:default\": \":prefix_version_setting\",\n }),\n visibility = [\"//visibility:private\"],\n)\ntoolchain(\n name = \"toolchain\",\n target_compatible_with = [\"@platforms//os:linux\", \"@platforms//cpu:aarch64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:runtime_toolchain_type\",\n toolchain = \"@remotejdk21_linux_aarch64//:jdk\",\n)\ntoolchain(\n name = \"bootstrap_runtime_toolchain\",\n # These constraints are not required for correctness, but prevent fetches of remote JDK for\n # different architectures. As every Java compilation toolchain depends on a bootstrap runtime in\n # the same configuration, this constraint will not result in toolchain resolution failures.\n exec_compatible_with = [\"@platforms//os:linux\", \"@platforms//cpu:aarch64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:bootstrap_runtime_toolchain_type\",\n toolchain = \"@remotejdk21_linux_aarch64//:jdk\",\n)\n" - } - }, - "remotejdk11_win_arm64_toolchain_config_repo": { - "bzlFile": "@@rules_java~7.1.0//toolchains:remote_java_repository.bzl", - "ruleClassName": "_toolchain_config", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk11_win_arm64_toolchain_config_repo", - "build_file": "\nconfig_setting(\n name = \"prefix_version_setting\",\n values = {\"java_runtime_version\": \"remotejdk_11\"},\n visibility = [\"//visibility:private\"],\n)\nconfig_setting(\n name = \"version_setting\",\n values = {\"java_runtime_version\": \"11\"},\n visibility = [\"//visibility:private\"],\n)\nalias(\n name = \"version_or_prefix_version_setting\",\n actual = select({\n \":version_setting\": \":version_setting\",\n \"//conditions:default\": \":prefix_version_setting\",\n }),\n visibility = [\"//visibility:private\"],\n)\ntoolchain(\n name = \"toolchain\",\n target_compatible_with = [\"@platforms//os:windows\", \"@platforms//cpu:arm64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:runtime_toolchain_type\",\n toolchain = \"@remotejdk11_win_arm64//:jdk\",\n)\ntoolchain(\n name = \"bootstrap_runtime_toolchain\",\n # These constraints are not required for correctness, but prevent fetches of remote JDK for\n # different architectures. As every Java compilation toolchain depends on a bootstrap runtime in\n # the same configuration, this constraint will not result in toolchain resolution failures.\n exec_compatible_with = [\"@platforms//os:windows\", \"@platforms//cpu:arm64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:bootstrap_runtime_toolchain_type\",\n toolchain = \"@remotejdk11_win_arm64//:jdk\",\n)\n" - } - }, - "local_jdk": { - "bzlFile": "@@rules_java~7.1.0//toolchains:local_java_repository.bzl", - "ruleClassName": "_local_java_repository_rule", - "attributes": { - "name": "rules_java~7.1.0~toolchains~local_jdk", - "java_home": "", - "version": "", - "build_file_content": "load(\"@rules_java//java:defs.bzl\", \"java_runtime\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\nexports_files([\"WORKSPACE\", \"BUILD.bazel\"])\n\nfilegroup(\n name = \"jre\",\n srcs = glob(\n [\n \"jre/bin/**\",\n \"jre/lib/**\",\n ],\n allow_empty = True,\n # In some configurations, Java browser plugin is considered harmful and\n # common antivirus software blocks access to npjp2.dll interfering with Bazel,\n # so do not include it in JRE on Windows.\n exclude = [\"jre/bin/plugin2/**\"],\n ),\n)\n\nfilegroup(\n name = \"jdk-bin\",\n srcs = glob(\n [\"bin/**\"],\n # The JDK on Windows sometimes contains a directory called\n # \"%systemroot%\", which is not a valid label.\n exclude = [\"**/*%*/**\"],\n ),\n)\n\n# This folder holds security policies.\nfilegroup(\n name = \"jdk-conf\",\n srcs = glob(\n [\"conf/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-include\",\n srcs = glob(\n [\"include/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-lib\",\n srcs = glob(\n [\"lib/**\", \"release\"],\n allow_empty = True,\n exclude = [\n \"lib/missioncontrol/**\",\n \"lib/visualvm/**\",\n ],\n ),\n)\n\njava_runtime(\n name = \"jdk\",\n srcs = [\n \":jdk-bin\",\n \":jdk-conf\",\n \":jdk-include\",\n \":jdk-lib\",\n \":jre\",\n ],\n # Provide the 'java` binary explicitly so that the correct path is used by\n # Bazel even when the host platform differs from the execution platform.\n # Exactly one of the two globs will be empty depending on the host platform.\n # When --incompatible_disallow_empty_glob is enabled, each individual empty\n # glob will fail without allow_empty = True, even if the overall result is\n # non-empty.\n java = glob([\"bin/java.exe\", \"bin/java\"], allow_empty = True)[0],\n version = {RUNTIME_VERSION},\n)\n" - } - }, - "remote_java_tools_darwin_x86_64": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remote_java_tools_darwin_x86_64", - "sha256": "0db40d8505a2b65ef0ed46e4256757807db8162f7acff16225be57c1d5726dbc", - "urls": [ - "https://mirror.bazel.build/bazel_java_tools/releases/java/v13.1/java_tools_darwin_x86_64-v13.1.zip", - "https://github.com/bazelbuild/java_tools/releases/download/java_v13.1/java_tools_darwin_x86_64-v13.1.zip" - ] - } - }, - "remote_java_tools": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remote_java_tools", - "sha256": "286bdbbd66e616fc4ed3f90101418729a73baa7e8c23a98ffbef558f74c0ad14", - "urls": [ - "https://mirror.bazel.build/bazel_java_tools/releases/java/v13.1/java_tools-v13.1.zip", - "https://github.com/bazelbuild/java_tools/releases/download/java_v13.1/java_tools-v13.1.zip" - ] - } - }, - "remotejdk17_linux_s390x": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk17_linux_s390x", - "build_file_content": "load(\"@rules_java//java:defs.bzl\", \"java_runtime\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\nexports_files([\"WORKSPACE\", \"BUILD.bazel\"])\n\nfilegroup(\n name = \"jre\",\n srcs = glob(\n [\n \"jre/bin/**\",\n \"jre/lib/**\",\n ],\n allow_empty = True,\n # In some configurations, Java browser plugin is considered harmful and\n # common antivirus software blocks access to npjp2.dll interfering with Bazel,\n # so do not include it in JRE on Windows.\n exclude = [\"jre/bin/plugin2/**\"],\n ),\n)\n\nfilegroup(\n name = \"jdk-bin\",\n srcs = glob(\n [\"bin/**\"],\n # The JDK on Windows sometimes contains a directory called\n # \"%systemroot%\", which is not a valid label.\n exclude = [\"**/*%*/**\"],\n ),\n)\n\n# This folder holds security policies.\nfilegroup(\n name = \"jdk-conf\",\n srcs = glob(\n [\"conf/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-include\",\n srcs = glob(\n [\"include/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-lib\",\n srcs = glob(\n [\"lib/**\", \"release\"],\n allow_empty = True,\n exclude = [\n \"lib/missioncontrol/**\",\n \"lib/visualvm/**\",\n ],\n ),\n)\n\njava_runtime(\n name = \"jdk\",\n srcs = [\n \":jdk-bin\",\n \":jdk-conf\",\n \":jdk-include\",\n \":jdk-lib\",\n \":jre\",\n ],\n # Provide the 'java` binary explicitly so that the correct path is used by\n # Bazel even when the host platform differs from the execution platform.\n # Exactly one of the two globs will be empty depending on the host platform.\n # When --incompatible_disallow_empty_glob is enabled, each individual empty\n # glob will fail without allow_empty = True, even if the overall result is\n # non-empty.\n java = glob([\"bin/java.exe\", \"bin/java\"], allow_empty = True)[0],\n version = 17,\n)\n", - "sha256": "ffacba69c6843d7ca70d572489d6cc7ab7ae52c60f0852cedf4cf0d248b6fc37", - "strip_prefix": "jdk-17.0.8.1+1", - "urls": [ - "https://mirror.bazel.build/github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.8.1%2B1/OpenJDK17U-jdk_s390x_linux_hotspot_17.0.8.1_1.tar.gz", - "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.8.1%2B1/OpenJDK17U-jdk_s390x_linux_hotspot_17.0.8.1_1.tar.gz" - ] - } - }, - "remotejdk17_win_toolchain_config_repo": { - "bzlFile": "@@rules_java~7.1.0//toolchains:remote_java_repository.bzl", - "ruleClassName": "_toolchain_config", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk17_win_toolchain_config_repo", - "build_file": "\nconfig_setting(\n name = \"prefix_version_setting\",\n values = {\"java_runtime_version\": \"remotejdk_17\"},\n visibility = [\"//visibility:private\"],\n)\nconfig_setting(\n name = \"version_setting\",\n values = {\"java_runtime_version\": \"17\"},\n visibility = [\"//visibility:private\"],\n)\nalias(\n name = \"version_or_prefix_version_setting\",\n actual = select({\n \":version_setting\": \":version_setting\",\n \"//conditions:default\": \":prefix_version_setting\",\n }),\n visibility = [\"//visibility:private\"],\n)\ntoolchain(\n name = \"toolchain\",\n target_compatible_with = [\"@platforms//os:windows\", \"@platforms//cpu:x86_64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:runtime_toolchain_type\",\n toolchain = \"@remotejdk17_win//:jdk\",\n)\ntoolchain(\n name = \"bootstrap_runtime_toolchain\",\n # These constraints are not required for correctness, but prevent fetches of remote JDK for\n # different architectures. As every Java compilation toolchain depends on a bootstrap runtime in\n # the same configuration, this constraint will not result in toolchain resolution failures.\n exec_compatible_with = [\"@platforms//os:windows\", \"@platforms//cpu:x86_64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:bootstrap_runtime_toolchain_type\",\n toolchain = \"@remotejdk17_win//:jdk\",\n)\n" - } - }, - "remotejdk11_linux_ppc64le": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk11_linux_ppc64le", - "build_file_content": "load(\"@rules_java//java:defs.bzl\", \"java_runtime\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\nexports_files([\"WORKSPACE\", \"BUILD.bazel\"])\n\nfilegroup(\n name = \"jre\",\n srcs = glob(\n [\n \"jre/bin/**\",\n \"jre/lib/**\",\n ],\n allow_empty = True,\n # In some configurations, Java browser plugin is considered harmful and\n # common antivirus software blocks access to npjp2.dll interfering with Bazel,\n # so do not include it in JRE on Windows.\n exclude = [\"jre/bin/plugin2/**\"],\n ),\n)\n\nfilegroup(\n name = \"jdk-bin\",\n srcs = glob(\n [\"bin/**\"],\n # The JDK on Windows sometimes contains a directory called\n # \"%systemroot%\", which is not a valid label.\n exclude = [\"**/*%*/**\"],\n ),\n)\n\n# This folder holds security policies.\nfilegroup(\n name = \"jdk-conf\",\n srcs = glob(\n [\"conf/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-include\",\n srcs = glob(\n [\"include/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-lib\",\n srcs = glob(\n [\"lib/**\", \"release\"],\n allow_empty = True,\n exclude = [\n \"lib/missioncontrol/**\",\n \"lib/visualvm/**\",\n ],\n ),\n)\n\njava_runtime(\n name = \"jdk\",\n srcs = [\n \":jdk-bin\",\n \":jdk-conf\",\n \":jdk-include\",\n \":jdk-lib\",\n \":jre\",\n ],\n # Provide the 'java` binary explicitly so that the correct path is used by\n # Bazel even when the host platform differs from the execution platform.\n # Exactly one of the two globs will be empty depending on the host platform.\n # When --incompatible_disallow_empty_glob is enabled, each individual empty\n # glob will fail without allow_empty = True, even if the overall result is\n # non-empty.\n java = glob([\"bin/java.exe\", \"bin/java\"], allow_empty = True)[0],\n version = 11,\n)\n", - "sha256": "a8fba686f6eb8ae1d1a9566821dbd5a85a1108b96ad857fdbac5c1e4649fc56f", - "strip_prefix": "jdk-11.0.15+10", - "urls": [ - "https://mirror.bazel.build/github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.15+10/OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.15_10.tar.gz", - "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.15+10/OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.15_10.tar.gz" - ] - } - }, - "remotejdk11_macos_aarch64": { - "bzlFile": "@@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk11_macos_aarch64", - "build_file_content": "load(\"@rules_java//java:defs.bzl\", \"java_runtime\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\nexports_files([\"WORKSPACE\", \"BUILD.bazel\"])\n\nfilegroup(\n name = \"jre\",\n srcs = glob(\n [\n \"jre/bin/**\",\n \"jre/lib/**\",\n ],\n allow_empty = True,\n # In some configurations, Java browser plugin is considered harmful and\n # common antivirus software blocks access to npjp2.dll interfering with Bazel,\n # so do not include it in JRE on Windows.\n exclude = [\"jre/bin/plugin2/**\"],\n ),\n)\n\nfilegroup(\n name = \"jdk-bin\",\n srcs = glob(\n [\"bin/**\"],\n # The JDK on Windows sometimes contains a directory called\n # \"%systemroot%\", which is not a valid label.\n exclude = [\"**/*%*/**\"],\n ),\n)\n\n# This folder holds security policies.\nfilegroup(\n name = \"jdk-conf\",\n srcs = glob(\n [\"conf/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-include\",\n srcs = glob(\n [\"include/**\"],\n allow_empty = True,\n ),\n)\n\nfilegroup(\n name = \"jdk-lib\",\n srcs = glob(\n [\"lib/**\", \"release\"],\n allow_empty = True,\n exclude = [\n \"lib/missioncontrol/**\",\n \"lib/visualvm/**\",\n ],\n ),\n)\n\njava_runtime(\n name = \"jdk\",\n srcs = [\n \":jdk-bin\",\n \":jdk-conf\",\n \":jdk-include\",\n \":jdk-lib\",\n \":jre\",\n ],\n # Provide the 'java` binary explicitly so that the correct path is used by\n # Bazel even when the host platform differs from the execution platform.\n # Exactly one of the two globs will be empty depending on the host platform.\n # When --incompatible_disallow_empty_glob is enabled, each individual empty\n # glob will fail without allow_empty = True, even if the overall result is\n # non-empty.\n java = glob([\"bin/java.exe\", \"bin/java\"], allow_empty = True)[0],\n version = 11,\n)\n", - "sha256": "7632bc29f8a4b7d492b93f3bc75a7b61630894db85d136456035ab2a24d38885", - "strip_prefix": "zulu11.66.15-ca-jdk11.0.20-macosx_aarch64", - "urls": [ - "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu11.66.15-ca-jdk11.0.20-macosx_aarch64.tar.gz", - "https://cdn.azul.com/zulu/bin/zulu11.66.15-ca-jdk11.0.20-macosx_aarch64.tar.gz" - ] - } - }, - "remotejdk21_win_toolchain_config_repo": { - "bzlFile": "@@rules_java~7.1.0//toolchains:remote_java_repository.bzl", - "ruleClassName": "_toolchain_config", - "attributes": { - "name": "rules_java~7.1.0~toolchains~remotejdk21_win_toolchain_config_repo", - "build_file": "\nconfig_setting(\n name = \"prefix_version_setting\",\n values = {\"java_runtime_version\": \"remotejdk_21\"},\n visibility = [\"//visibility:private\"],\n)\nconfig_setting(\n name = \"version_setting\",\n values = {\"java_runtime_version\": \"21\"},\n visibility = [\"//visibility:private\"],\n)\nalias(\n name = \"version_or_prefix_version_setting\",\n actual = select({\n \":version_setting\": \":version_setting\",\n \"//conditions:default\": \":prefix_version_setting\",\n }),\n visibility = [\"//visibility:private\"],\n)\ntoolchain(\n name = \"toolchain\",\n target_compatible_with = [\"@platforms//os:windows\", \"@platforms//cpu:x86_64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:runtime_toolchain_type\",\n toolchain = \"@remotejdk21_win//:jdk\",\n)\ntoolchain(\n name = \"bootstrap_runtime_toolchain\",\n # These constraints are not required for correctness, but prevent fetches of remote JDK for\n # different architectures. As every Java compilation toolchain depends on a bootstrap runtime in\n # the same configuration, this constraint will not result in toolchain resolution failures.\n exec_compatible_with = [\"@platforms//os:windows\", \"@platforms//cpu:x86_64\"],\n target_settings = [\":version_or_prefix_version_setting\"],\n toolchain_type = \"@bazel_tools//tools/jdk:bootstrap_runtime_toolchain_type\",\n toolchain = \"@remotejdk21_win//:jdk\",\n)\n" - } - } - }, - "recordedRepoMappingEntries": [ - [ - "rules_java~7.1.0", - "bazel_tools", - "bazel_tools" - ], - [ - "rules_java~7.1.0", - "remote_java_tools", - "rules_java~7.1.0~toolchains~remote_java_tools" - ] - ] - } - } - } -} diff --git a/src/sonic-framework/gnoi/README.md b/src/sonic-framework/gnoi/README.md deleted file mode 100644 index 8bed1f5d0912..000000000000 --- a/src/sonic-framework/gnoi/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# gNOI - gRPC Network Operations Interface -gNOI defines a set of gRPC-based microservices for executing operational commands on network devices. - -# Rebuild *.pb.go files -``` -./regenerate-files.sh -```` diff --git a/src/sonic-framework/gnoi/WORKSPACE b/src/sonic-framework/gnoi/WORKSPACE deleted file mode 100644 index 6bb13a4c9235..000000000000 --- a/src/sonic-framework/gnoi/WORKSPACE +++ /dev/null @@ -1,101 +0,0 @@ -workspace(name = "com_github_openconfig_gnoi") - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - -### Bazel rules for many languages to compile PROTO into gRPC libraries -http_archive( - name = "rules_proto_grpc", - sha256 = "c0d718f4d892c524025504e67a5bfe83360b3a982e654bc71fed7514eb8ac8ad", - strip_prefix = "rules_proto_grpc-4.6.0", - urls = ["https://github.com/rules-proto-grpc/rules_proto_grpc/archive/4.6.0.tar.gz"], -) - -http_archive( - name = "com_google_googleapis", - sha256 = "9fc03150d86501d7da35eefa989d5553bdd77a95cfe4373cdafe8eee92f6bfb1", - strip_prefix = "googleapis-870a5ed7e141b4faf70e2a0858854e9b5bb18612", - urls = ["https://github.com/googleapis/googleapis/archive/870a5ed7e141b4faf70e2a0858854e9b5bb18612.tar.gz"], -) - -load("@com_google_googleapis//:repository_rules.bzl", "switched_rules_by_language") - -switched_rules_by_language( - name = "com_google_googleapis_imports", - cc = True, - go = True, -) - -load( - "@rules_proto_grpc//:repositories.bzl", - "bazel_gazelle", - "io_bazel_rules_go", - "rules_proto_grpc_repos", - "rules_proto_grpc_toolchains", -) - -rules_proto_grpc_toolchains() - -rules_proto_grpc_repos() - -load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains") - -rules_proto_dependencies() - -rules_proto_toolchains() - -### Golang -io_bazel_rules_go() - -load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") - -go_rules_dependencies() - -go_register_toolchains(go_version = "1.20") - -# gazelle:repo bazel_gazelle -bazel_gazelle() - -load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") -load("//:gnoi_deps.bzl", "gnoi_deps") - -# gazelle:repository_macro gnoi_deps.bzl%gnoi_deps -gnoi_deps() - -load("@rules_proto_grpc//go:repositories.bzl", rules_proto_grpc_go_repos = "go_repos") - -rules_proto_grpc_go_repos() - -# Load gazelle_dependencies last, so that the newer version of org_golang_google_grpc is used. -# see https://github.com/rules-proto-grpc/rules_proto_grpc/issues/160 -gazelle_dependencies() - -### C++ -load("@rules_proto_grpc//cpp:repositories.bzl", rules_proto_grpc_cpp_repos = "cpp_repos") - -rules_proto_grpc_cpp_repos() - -load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps") - -grpc_deps() - -# open-config YANG files -http_archive( - name = "github_openconfig_yang", - build_file_content = """exports_files(glob(["release/models/**/*.yang"]), visibility = ["//visibility:public"])""", - sha256 = "f6b2b6c0ffe0b66881287bcd43241a57583f353cc5cc41cba973601c32232f45", - strip_prefix = "public-bf737a5567ec248456cb528efcd63cab15e8fc69", - urls = [ - "https://github.com/openconfig/public/archive/bf737a5567ec248456cb528efcd63cab15e8fc69.zip", - ], -) - -# YANG files from other standard bodies. -http_archive( - name = "github_yang", - build_file_content = """exports_files(glob(["standard/**/*.yang"]), visibility = ["//visibility:public"])""", - sha256 = "55913058f64a1ec7fe9e6e70d7128f08e66b20c859803b1fb02dbaf7eef2c64d", - strip_prefix = "yang-2fa291d6bdb4b281d4e1b3dfa3254ffa7257d800", - urls = [ - "https://github.com/YangModels/yang/archive/2fa291d6bdb4b281d4e1b3dfa3254ffa7257d800.zip", - ], -) diff --git a/src/sonic-framework/gnoi/bgp/BUILD.bazel b/src/sonic-framework/gnoi/bgp/BUILD.bazel deleted file mode 100644 index 4d746acbec33..000000000000 --- a/src/sonic-framework/gnoi/bgp/BUILD.bazel +++ /dev/null @@ -1,63 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") -load("//:common.bzl", "use_new_compilers") - -#Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# 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. - -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -use_new_compilers() - -proto_library( - name = "bgp_proto", - srcs = ["bgp.proto"], - deps = [ - "//types:types_proto", - ], -) - -cc_proto_library( - name = "bgp_cc_proto", - deps = [":bgp_proto"], -) - -cc_grpc_library( - name = "bgp_cc_grpc_proto", - srcs = [":bgp_proto"], - grpc_only = True, - deps = [":bgp_cc_proto"], -) - -go_proto_library( - name = "bgp_go_proto", - compilers = [ - "go_protoc_gen_go", - "go_protoc_gen_go_grpc", - ], - importpath = "github.com/openconfig/gnoi/bgp", - proto = ":bgp_proto", - deps = ["//types"], -) - -go_library( - name = "bgp", - embed = [":bgp_go_proto"], - importpath = "github.com/openconfig/gnoi/bgp", -) diff --git a/src/sonic-framework/gnoi/bgp/bgp.pb.go b/src/sonic-framework/gnoi/bgp/bgp.pb.go deleted file mode 100644 index 11f6683b94e5..000000000000 --- a/src/sonic-framework/gnoi/bgp/bgp.pb.go +++ /dev/null @@ -1,287 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v3.21.10 -// source: bgp/bgp.proto - -package bgp - -import ( - _ "github.com/openconfig/gnoi/types" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type ClearBGPNeighborRequest_Mode int32 - -const ( - ClearBGPNeighborRequest_SOFT ClearBGPNeighborRequest_Mode = 0 - ClearBGPNeighborRequest_SOFTIN ClearBGPNeighborRequest_Mode = 1 - ClearBGPNeighborRequest_HARD ClearBGPNeighborRequest_Mode = 2 -) - -// Enum value maps for ClearBGPNeighborRequest_Mode. -var ( - ClearBGPNeighborRequest_Mode_name = map[int32]string{ - 0: "SOFT", - 1: "SOFTIN", - 2: "HARD", - } - ClearBGPNeighborRequest_Mode_value = map[string]int32{ - "SOFT": 0, - "SOFTIN": 1, - "HARD": 2, - } -) - -func (x ClearBGPNeighborRequest_Mode) Enum() *ClearBGPNeighborRequest_Mode { - p := new(ClearBGPNeighborRequest_Mode) - *p = x - return p -} - -func (x ClearBGPNeighborRequest_Mode) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ClearBGPNeighborRequest_Mode) Descriptor() protoreflect.EnumDescriptor { - return file_bgp_bgp_proto_enumTypes[0].Descriptor() -} - -func (ClearBGPNeighborRequest_Mode) Type() protoreflect.EnumType { - return &file_bgp_bgp_proto_enumTypes[0] -} - -func (x ClearBGPNeighborRequest_Mode) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ClearBGPNeighborRequest_Mode.Descriptor instead. -func (ClearBGPNeighborRequest_Mode) EnumDescriptor() ([]byte, []int) { - return file_bgp_bgp_proto_rawDescGZIP(), []int{0, 0} -} - -type ClearBGPNeighborRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - RoutingInstance string `protobuf:"bytes,2,opt,name=routing_instance,json=routingInstance,proto3" json:"routing_instance,omitempty"` - Mode ClearBGPNeighborRequest_Mode `protobuf:"varint,3,opt,name=mode,proto3,enum=gnoi.bgp.ClearBGPNeighborRequest_Mode" json:"mode,omitempty"` -} - -func (x *ClearBGPNeighborRequest) Reset() { - *x = ClearBGPNeighborRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_bgp_bgp_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ClearBGPNeighborRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ClearBGPNeighborRequest) ProtoMessage() {} - -func (x *ClearBGPNeighborRequest) ProtoReflect() protoreflect.Message { - mi := &file_bgp_bgp_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ClearBGPNeighborRequest.ProtoReflect.Descriptor instead. -func (*ClearBGPNeighborRequest) Descriptor() ([]byte, []int) { - return file_bgp_bgp_proto_rawDescGZIP(), []int{0} -} - -func (x *ClearBGPNeighborRequest) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *ClearBGPNeighborRequest) GetRoutingInstance() string { - if x != nil { - return x.RoutingInstance - } - return "" -} - -func (x *ClearBGPNeighborRequest) GetMode() ClearBGPNeighborRequest_Mode { - if x != nil { - return x.Mode - } - return ClearBGPNeighborRequest_SOFT -} - -type ClearBGPNeighborResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ClearBGPNeighborResponse) Reset() { - *x = ClearBGPNeighborResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_bgp_bgp_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ClearBGPNeighborResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ClearBGPNeighborResponse) ProtoMessage() {} - -func (x *ClearBGPNeighborResponse) ProtoReflect() protoreflect.Message { - mi := &file_bgp_bgp_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ClearBGPNeighborResponse.ProtoReflect.Descriptor instead. -func (*ClearBGPNeighborResponse) Descriptor() ([]byte, []int) { - return file_bgp_bgp_proto_rawDescGZIP(), []int{1} -} - -var File_bgp_bgp_proto protoreflect.FileDescriptor - -var file_bgp_bgp_proto_rawDesc = []byte{ - 0x0a, 0x0d, 0x62, 0x67, 0x70, 0x2f, 0x62, 0x67, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x08, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x62, 0x67, 0x70, 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc2, 0x01, 0x0a, 0x17, 0x43, 0x6c, 0x65, 0x61, - 0x72, 0x42, 0x47, 0x50, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x29, 0x0a, - 0x10, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x3a, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x62, 0x67, - 0x70, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x42, 0x47, 0x50, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, - 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x04, - 0x6d, 0x6f, 0x64, 0x65, 0x22, 0x26, 0x0a, 0x04, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x08, 0x0a, 0x04, - 0x53, 0x4f, 0x46, 0x54, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x4f, 0x46, 0x54, 0x49, 0x4e, - 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x41, 0x52, 0x44, 0x10, 0x02, 0x22, 0x1a, 0x0a, 0x18, - 0x43, 0x6c, 0x65, 0x61, 0x72, 0x42, 0x47, 0x50, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, 0x72, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x62, 0x0a, 0x03, 0x42, 0x47, 0x50, 0x12, - 0x5b, 0x0a, 0x10, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x42, 0x47, 0x50, 0x4e, 0x65, 0x69, 0x67, 0x68, - 0x62, 0x6f, 0x72, 0x12, 0x21, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x62, 0x67, 0x70, 0x2e, 0x43, - 0x6c, 0x65, 0x61, 0x72, 0x42, 0x47, 0x50, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, 0x72, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x62, 0x67, - 0x70, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x42, 0x47, 0x50, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, - 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x28, 0xd2, 0x3e, - 0x05, 0x30, 0x2e, 0x31, 0x2e, 0x30, 0x5a, 0x1e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, - 0x6f, 0x69, 0x2f, 0x62, 0x67, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_bgp_bgp_proto_rawDescOnce sync.Once - file_bgp_bgp_proto_rawDescData = file_bgp_bgp_proto_rawDesc -) - -func file_bgp_bgp_proto_rawDescGZIP() []byte { - file_bgp_bgp_proto_rawDescOnce.Do(func() { - file_bgp_bgp_proto_rawDescData = protoimpl.X.CompressGZIP(file_bgp_bgp_proto_rawDescData) - }) - return file_bgp_bgp_proto_rawDescData -} - -var file_bgp_bgp_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_bgp_bgp_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_bgp_bgp_proto_goTypes = []interface{}{ - (ClearBGPNeighborRequest_Mode)(0), // 0: gnoi.bgp.ClearBGPNeighborRequest.Mode - (*ClearBGPNeighborRequest)(nil), // 1: gnoi.bgp.ClearBGPNeighborRequest - (*ClearBGPNeighborResponse)(nil), // 2: gnoi.bgp.ClearBGPNeighborResponse -} -var file_bgp_bgp_proto_depIdxs = []int32{ - 0, // 0: gnoi.bgp.ClearBGPNeighborRequest.mode:type_name -> gnoi.bgp.ClearBGPNeighborRequest.Mode - 1, // 1: gnoi.bgp.BGP.ClearBGPNeighbor:input_type -> gnoi.bgp.ClearBGPNeighborRequest - 2, // 2: gnoi.bgp.BGP.ClearBGPNeighbor:output_type -> gnoi.bgp.ClearBGPNeighborResponse - 2, // [2:3] is the sub-list for method output_type - 1, // [1:2] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_bgp_bgp_proto_init() } -func file_bgp_bgp_proto_init() { - if File_bgp_bgp_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_bgp_bgp_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClearBGPNeighborRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_bgp_bgp_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClearBGPNeighborResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_bgp_bgp_proto_rawDesc, - NumEnums: 1, - NumMessages: 2, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_bgp_bgp_proto_goTypes, - DependencyIndexes: file_bgp_bgp_proto_depIdxs, - EnumInfos: file_bgp_bgp_proto_enumTypes, - MessageInfos: file_bgp_bgp_proto_msgTypes, - }.Build() - File_bgp_bgp_proto = out.File - file_bgp_bgp_proto_rawDesc = nil - file_bgp_bgp_proto_goTypes = nil - file_bgp_bgp_proto_depIdxs = nil -} diff --git a/src/sonic-framework/gnoi/bgp/bgp.proto b/src/sonic-framework/gnoi/bgp/bgp.proto deleted file mode 100644 index 1a197024a59f..000000000000 --- a/src/sonic-framework/gnoi/bgp/bgp.proto +++ /dev/null @@ -1,48 +0,0 @@ -// -// Copyright 2017 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.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 gnoi.bgp; - -import "github.com/openconfig/gnoi/types/types.proto"; - -option go_package = "github.com/openconfig/gnoi/bgp"; - -// The current semantic version of the gNOI BGP service. -option (types.gnoi_version) = "0.1.0"; - -service BGP { - // ClearBGPNeighbor clears a BGP session. - rpc ClearBGPNeighbor(ClearBGPNeighborRequest) - returns (ClearBGPNeighborResponse) {} - -} - -message ClearBGPNeighborRequest { - string address = 1; // IPv4 or IPv6 BGP neighbor address to clear. - // Routing instance containing the neighbor. Defaults to the global routing - // table. - string routing_instance = 2; - enum Mode { - SOFT = 0; // Send route-refresh and reapply policy. - SOFTIN = 1; // Re-apply inbound policy on stored Adj-RIB-In. - HARD = 2; // Teardown and restart TCP connection. - } - Mode mode = 3; // Which mode to use for the clear operation. -} - -message ClearBGPNeighborResponse { -} diff --git a/src/sonic-framework/gnoi/bgp/bgp_grpc.pb.go b/src/sonic-framework/gnoi/bgp/bgp_grpc.pb.go deleted file mode 100755 index f66278c318bb..000000000000 --- a/src/sonic-framework/gnoi/bgp/bgp_grpc.pb.go +++ /dev/null @@ -1,105 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.21.10 -// source: bgp/bgp.proto - -package bgp - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// BGPClient is the client API for BGP service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type BGPClient interface { - ClearBGPNeighbor(ctx context.Context, in *ClearBGPNeighborRequest, opts ...grpc.CallOption) (*ClearBGPNeighborResponse, error) -} - -type bGPClient struct { - cc grpc.ClientConnInterface -} - -func NewBGPClient(cc grpc.ClientConnInterface) BGPClient { - return &bGPClient{cc} -} - -func (c *bGPClient) ClearBGPNeighbor(ctx context.Context, in *ClearBGPNeighborRequest, opts ...grpc.CallOption) (*ClearBGPNeighborResponse, error) { - out := new(ClearBGPNeighborResponse) - err := c.cc.Invoke(ctx, "/gnoi.bgp.BGP/ClearBGPNeighbor", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// BGPServer is the server API for BGP service. -// All implementations must embed UnimplementedBGPServer -// for forward compatibility -type BGPServer interface { - ClearBGPNeighbor(context.Context, *ClearBGPNeighborRequest) (*ClearBGPNeighborResponse, error) - mustEmbedUnimplementedBGPServer() -} - -// UnimplementedBGPServer must be embedded to have forward compatible implementations. -type UnimplementedBGPServer struct { -} - -func (UnimplementedBGPServer) ClearBGPNeighbor(context.Context, *ClearBGPNeighborRequest) (*ClearBGPNeighborResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ClearBGPNeighbor not implemented") -} -func (UnimplementedBGPServer) mustEmbedUnimplementedBGPServer() {} - -// UnsafeBGPServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to BGPServer will -// result in compilation errors. -type UnsafeBGPServer interface { - mustEmbedUnimplementedBGPServer() -} - -func RegisterBGPServer(s grpc.ServiceRegistrar, srv BGPServer) { - s.RegisterService(&BGP_ServiceDesc, srv) -} - -func _BGP_ClearBGPNeighbor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClearBGPNeighborRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(BGPServer).ClearBGPNeighbor(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.bgp.BGP/ClearBGPNeighbor", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(BGPServer).ClearBGPNeighbor(ctx, req.(*ClearBGPNeighborRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// BGP_ServiceDesc is the grpc.ServiceDesc for BGP service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var BGP_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.bgp.BGP", - HandlerType: (*BGPServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ClearBGPNeighbor", - Handler: _BGP_ClearBGPNeighbor_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "bgp/bgp.proto", -} diff --git a/src/sonic-framework/gnoi/bootconfig/BUILD.bazel b/src/sonic-framework/gnoi/bootconfig/BUILD.bazel deleted file mode 100644 index 76f2105f3db0..000000000000 --- a/src/sonic-framework/gnoi/bootconfig/BUILD.bazel +++ /dev/null @@ -1,74 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") -load("//:common.bzl", "use_new_compilers") - -#Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# 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. - -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -use_new_compilers() - -proto_library( - name = "bootconfig_proto", - srcs = ["bootconfig.proto"], - deps = [ - "//types:types_proto", - "@com_github_openconfig_bootz//proto:bootz_proto", - "@com_github_openconfig_gnsi//authz:authz_proto", - "@com_github_openconfig_gnsi//credentialz:credentialz_proto", - "@com_github_openconfig_gnsi//certz:certz_proto", - "@com_github_openconfig_gnsi//pathz:pathz_proto", - ], -) - -cc_proto_library( - name = "bootconfig_cc_proto", - deps = [":bootconfig_proto"], -) - -cc_grpc_library( - name = "bootconfig_cc_grpc_proto", - srcs = [":bootconfig_proto"], - grpc_only = True, - deps = [":bootconfig_cc_proto"], -) - -go_proto_library( - name = "bootconfig_go_proto", - compilers = [ - "go_protoc_gen_go", - "go_protoc_gen_go_grpc", - ], - importpath = "github.com/openconfig/gnoi/bootconfig", - proto = ":bootconfig_proto", - deps = [ - "//types", - "@com_github_openconfig_bootz//proto:bootz_go_proto", - "@com_github_openconfig_gnsi//authz:authz_go_proto", - "@com_github_openconfig_gnsi//certz:certz_go_proto", - "@com_github_openconfig_gnsi//pathz:pathz_go_proto", - ], -) - -go_library( - name = "bootconfig", - embed = [":bootconfig_go_proto"], - importpath = "github.com/openconfig/gnoi/bootconfig", -) diff --git a/src/sonic-framework/gnoi/bootconfig/bootconfig.pb.go b/src/sonic-framework/gnoi/bootconfig/bootconfig.pb.go deleted file mode 100644 index 3706e56eb048..000000000000 --- a/src/sonic-framework/gnoi/bootconfig/bootconfig.pb.go +++ /dev/null @@ -1,426 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v3.21.10 -// source: bootconfig/bootconfig.proto - -package bootconfig - -import ( - bootz "github.com/openconfig/bootz/proto/bootz" - _ "github.com/openconfig/gnoi/types" - authz "github.com/openconfig/gnsi/authz" - certz "github.com/openconfig/gnsi/certz" - pathz "github.com/openconfig/gnsi/pathz" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type GetBootConfigRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *GetBootConfigRequest) Reset() { - *x = GetBootConfigRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_bootconfig_bootconfig_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetBootConfigRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetBootConfigRequest) ProtoMessage() {} - -func (x *GetBootConfigRequest) ProtoReflect() protoreflect.Message { - mi := &file_bootconfig_bootconfig_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetBootConfigRequest.ProtoReflect.Descriptor instead. -func (*GetBootConfigRequest) Descriptor() ([]byte, []int) { - return file_bootconfig_bootconfig_proto_rawDescGZIP(), []int{0} -} - -type GetBootConfigResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - BootConfig *bootz.BootConfig `protobuf:"bytes,1,opt,name=boot_config,json=bootConfig,proto3" json:"boot_config,omitempty"` -} - -func (x *GetBootConfigResponse) Reset() { - *x = GetBootConfigResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_bootconfig_bootconfig_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetBootConfigResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetBootConfigResponse) ProtoMessage() {} - -func (x *GetBootConfigResponse) ProtoReflect() protoreflect.Message { - mi := &file_bootconfig_bootconfig_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetBootConfigResponse.ProtoReflect.Descriptor instead. -func (*GetBootConfigResponse) Descriptor() ([]byte, []int) { - return file_bootconfig_bootconfig_proto_rawDescGZIP(), []int{1} -} - -func (x *GetBootConfigResponse) GetBootConfig() *bootz.BootConfig { - if x != nil { - return x.BootConfig - } - return nil -} - -type SetBootConfigRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - BootConfig *bootz.BootConfig `protobuf:"bytes,1,opt,name=boot_config,json=bootConfig,proto3" json:"boot_config,omitempty"` - Credentials *bootz.Credentials `protobuf:"bytes,2,opt,name=credentials,proto3" json:"credentials,omitempty"` - Pathz *pathz.UploadRequest `protobuf:"bytes,3,opt,name=pathz,proto3" json:"pathz,omitempty"` - Authz *authz.UploadRequest `protobuf:"bytes,4,opt,name=authz,proto3" json:"authz,omitempty"` - // Deprecated: Marked as deprecated in bootconfig/bootconfig.proto. - Certificates *certz.UploadRequest `protobuf:"bytes,5,opt,name=certificates,proto3" json:"certificates,omitempty"` - Certz *bootz.CertzProfiles `protobuf:"bytes,6,opt,name=certz,proto3" json:"certz,omitempty"` -} - -func (x *SetBootConfigRequest) Reset() { - *x = SetBootConfigRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_bootconfig_bootconfig_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SetBootConfigRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SetBootConfigRequest) ProtoMessage() {} - -func (x *SetBootConfigRequest) ProtoReflect() protoreflect.Message { - mi := &file_bootconfig_bootconfig_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SetBootConfigRequest.ProtoReflect.Descriptor instead. -func (*SetBootConfigRequest) Descriptor() ([]byte, []int) { - return file_bootconfig_bootconfig_proto_rawDescGZIP(), []int{2} -} - -func (x *SetBootConfigRequest) GetBootConfig() *bootz.BootConfig { - if x != nil { - return x.BootConfig - } - return nil -} - -func (x *SetBootConfigRequest) GetCredentials() *bootz.Credentials { - if x != nil { - return x.Credentials - } - return nil -} - -func (x *SetBootConfigRequest) GetPathz() *pathz.UploadRequest { - if x != nil { - return x.Pathz - } - return nil -} - -func (x *SetBootConfigRequest) GetAuthz() *authz.UploadRequest { - if x != nil { - return x.Authz - } - return nil -} - -// Deprecated: Marked as deprecated in bootconfig/bootconfig.proto. -func (x *SetBootConfigRequest) GetCertificates() *certz.UploadRequest { - if x != nil { - return x.Certificates - } - return nil -} - -func (x *SetBootConfigRequest) GetCertz() *bootz.CertzProfiles { - if x != nil { - return x.Certz - } - return nil -} - -type SetBootConfigResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *SetBootConfigResponse) Reset() { - *x = SetBootConfigResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_bootconfig_bootconfig_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SetBootConfigResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SetBootConfigResponse) ProtoMessage() {} - -func (x *SetBootConfigResponse) ProtoReflect() protoreflect.Message { - mi := &file_bootconfig_bootconfig_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SetBootConfigResponse.ProtoReflect.Descriptor instead. -func (*SetBootConfigResponse) Descriptor() ([]byte, []int) { - return file_bootconfig_bootconfig_proto_rawDescGZIP(), []int{3} -} - -var File_bootconfig_bootconfig_proto protoreflect.FileDescriptor - -var file_bootconfig_bootconfig_proto_rawDesc = []byte{ - 0x0a, 0x1b, 0x62, 0x6f, 0x6f, 0x74, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x62, 0x6f, 0x6f, - 0x74, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x62, 0x6f, 0x6f, 0x74, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x2d, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x62, 0x6f, 0x6f, 0x74, 0x7a, 0x2f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2f, 0x62, 0x6f, 0x6f, 0x74, 0x7a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x73, 0x69, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x7a, 0x2f, 0x61, 0x75, - 0x74, 0x68, 0x7a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x2f, 0x67, 0x6e, 0x73, 0x69, 0x2f, 0x63, 0x65, 0x72, 0x74, 0x7a, 0x2f, 0x63, 0x65, 0x72, 0x74, - 0x7a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, - 0x6e, 0x73, 0x69, 0x2f, 0x70, 0x61, 0x74, 0x68, 0x7a, 0x2f, 0x70, 0x61, 0x74, 0x68, 0x7a, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x16, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x42, 0x6f, 0x6f, 0x74, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x4b, 0x0a, - 0x15, 0x47, 0x65, 0x74, 0x42, 0x6f, 0x6f, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x0b, 0x62, 0x6f, 0x6f, 0x74, 0x5f, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x62, 0x6f, - 0x6f, 0x74, 0x7a, 0x2e, 0x42, 0x6f, 0x6f, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0a, - 0x62, 0x6f, 0x6f, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xda, 0x02, 0x0a, 0x14, 0x53, - 0x65, 0x74, 0x42, 0x6f, 0x6f, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x0b, 0x62, 0x6f, 0x6f, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x62, 0x6f, 0x6f, 0x74, 0x7a, - 0x2e, 0x42, 0x6f, 0x6f, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0a, 0x62, 0x6f, 0x6f, - 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x34, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x62, - 0x6f, 0x6f, 0x74, 0x7a, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, - 0x52, 0x0b, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x12, 0x32, 0x0a, - 0x05, 0x70, 0x61, 0x74, 0x68, 0x7a, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, - 0x6e, 0x73, 0x69, 0x2e, 0x70, 0x61, 0x74, 0x68, 0x7a, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x6c, - 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x05, 0x70, 0x61, 0x74, 0x68, - 0x7a, 0x12, 0x32, 0x0a, 0x05, 0x61, 0x75, 0x74, 0x68, 0x7a, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1c, 0x2e, 0x67, 0x6e, 0x73, 0x69, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x7a, 0x2e, 0x76, 0x31, - 0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x05, - 0x61, 0x75, 0x74, 0x68, 0x7a, 0x12, 0x44, 0x0a, 0x0c, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6e, - 0x73, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x7a, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x6c, 0x6f, - 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0c, 0x63, - 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x12, 0x2a, 0x0a, 0x05, 0x63, - 0x65, 0x72, 0x74, 0x7a, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x62, 0x6f, 0x6f, - 0x74, 0x7a, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x7a, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x73, - 0x52, 0x05, 0x63, 0x65, 0x72, 0x74, 0x7a, 0x22, 0x17, 0x0a, 0x15, 0x53, 0x65, 0x74, 0x42, 0x6f, - 0x6f, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x32, 0xd0, 0x01, 0x0a, 0x0a, 0x42, 0x6f, 0x6f, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, - 0x60, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x42, 0x6f, 0x6f, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x12, 0x25, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x62, 0x6f, 0x6f, 0x74, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6f, 0x6f, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x62, - 0x6f, 0x6f, 0x74, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6f, 0x6f, - 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x60, 0x0a, 0x0d, 0x53, 0x65, 0x74, 0x42, 0x6f, 0x6f, 0x74, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x12, 0x25, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x62, 0x6f, 0x6f, 0x74, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x53, 0x65, 0x74, 0x42, 0x6f, 0x6f, 0x74, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x62, 0x6f, 0x6f, 0x74, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x53, 0x65, 0x74, 0x42, - 0x6f, 0x6f, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x42, 0x2f, 0xd2, 0x3e, 0x05, 0x30, 0x2e, 0x31, 0x2e, 0x30, 0x5a, 0x25, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x62, 0x6f, 0x6f, 0x74, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_bootconfig_bootconfig_proto_rawDescOnce sync.Once - file_bootconfig_bootconfig_proto_rawDescData = file_bootconfig_bootconfig_proto_rawDesc -) - -func file_bootconfig_bootconfig_proto_rawDescGZIP() []byte { - file_bootconfig_bootconfig_proto_rawDescOnce.Do(func() { - file_bootconfig_bootconfig_proto_rawDescData = protoimpl.X.CompressGZIP(file_bootconfig_bootconfig_proto_rawDescData) - }) - return file_bootconfig_bootconfig_proto_rawDescData -} - -var file_bootconfig_bootconfig_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_bootconfig_bootconfig_proto_goTypes = []interface{}{ - (*GetBootConfigRequest)(nil), // 0: gnoi.bootconfig.GetBootConfigRequest - (*GetBootConfigResponse)(nil), // 1: gnoi.bootconfig.GetBootConfigResponse - (*SetBootConfigRequest)(nil), // 2: gnoi.bootconfig.SetBootConfigRequest - (*SetBootConfigResponse)(nil), // 3: gnoi.bootconfig.SetBootConfigResponse - (*bootz.BootConfig)(nil), // 4: bootz.BootConfig - (*bootz.Credentials)(nil), // 5: bootz.Credentials - (*pathz.UploadRequest)(nil), // 6: gnsi.pathz.v1.UploadRequest - (*authz.UploadRequest)(nil), // 7: gnsi.authz.v1.UploadRequest - (*certz.UploadRequest)(nil), // 8: gnsi.certz.v1.UploadRequest - (*bootz.CertzProfiles)(nil), // 9: bootz.CertzProfiles -} -var file_bootconfig_bootconfig_proto_depIdxs = []int32{ - 4, // 0: gnoi.bootconfig.GetBootConfigResponse.boot_config:type_name -> bootz.BootConfig - 4, // 1: gnoi.bootconfig.SetBootConfigRequest.boot_config:type_name -> bootz.BootConfig - 5, // 2: gnoi.bootconfig.SetBootConfigRequest.credentials:type_name -> bootz.Credentials - 6, // 3: gnoi.bootconfig.SetBootConfigRequest.pathz:type_name -> gnsi.pathz.v1.UploadRequest - 7, // 4: gnoi.bootconfig.SetBootConfigRequest.authz:type_name -> gnsi.authz.v1.UploadRequest - 8, // 5: gnoi.bootconfig.SetBootConfigRequest.certificates:type_name -> gnsi.certz.v1.UploadRequest - 9, // 6: gnoi.bootconfig.SetBootConfigRequest.certz:type_name -> bootz.CertzProfiles - 0, // 7: gnoi.bootconfig.BootConfig.GetBootConfig:input_type -> gnoi.bootconfig.GetBootConfigRequest - 2, // 8: gnoi.bootconfig.BootConfig.SetBootConfig:input_type -> gnoi.bootconfig.SetBootConfigRequest - 1, // 9: gnoi.bootconfig.BootConfig.GetBootConfig:output_type -> gnoi.bootconfig.GetBootConfigResponse - 3, // 10: gnoi.bootconfig.BootConfig.SetBootConfig:output_type -> gnoi.bootconfig.SetBootConfigResponse - 9, // [9:11] is the sub-list for method output_type - 7, // [7:9] is the sub-list for method input_type - 7, // [7:7] is the sub-list for extension type_name - 7, // [7:7] is the sub-list for extension extendee - 0, // [0:7] is the sub-list for field type_name -} - -func init() { file_bootconfig_bootconfig_proto_init() } -func file_bootconfig_bootconfig_proto_init() { - if File_bootconfig_bootconfig_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_bootconfig_bootconfig_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBootConfigRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_bootconfig_bootconfig_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBootConfigResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_bootconfig_bootconfig_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetBootConfigRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_bootconfig_bootconfig_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetBootConfigResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_bootconfig_bootconfig_proto_rawDesc, - NumEnums: 0, - NumMessages: 4, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_bootconfig_bootconfig_proto_goTypes, - DependencyIndexes: file_bootconfig_bootconfig_proto_depIdxs, - MessageInfos: file_bootconfig_bootconfig_proto_msgTypes, - }.Build() - File_bootconfig_bootconfig_proto = out.File - file_bootconfig_bootconfig_proto_rawDesc = nil - file_bootconfig_bootconfig_proto_goTypes = nil - file_bootconfig_bootconfig_proto_depIdxs = nil -} diff --git a/src/sonic-framework/gnoi/bootconfig/bootconfig.proto b/src/sonic-framework/gnoi/bootconfig/bootconfig.proto deleted file mode 100644 index df08ce662be1..000000000000 --- a/src/sonic-framework/gnoi/bootconfig/bootconfig.proto +++ /dev/null @@ -1,63 +0,0 @@ -// -// Copyright 2024 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.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 gnoi.bootconfig; - -import "github.com/openconfig/bootz/proto/bootz.proto"; -import "github.com/openconfig/gnoi/types/types.proto"; -import "github.com/openconfig/gnsi/authz/authz.proto"; -import "github.com/openconfig/gnsi/certz/certz.proto"; -import "github.com/openconfig/gnsi/pathz/pathz.proto"; - -option go_package = "github.com/openconfig/gnoi/bootconfig"; - -// The current semantic version of the gNOI BootConfig service. -option (gnoi.types.gnoi_version) = "0.1.0"; - -// gNOI BootConfig service provides an API to update the boot configuration -// namespace as in the Bootz protocol (https://github.com/openconfig/bootz). -// This API is often used after the Bootz turnup workflow is finished. -service BootConfig { - // GetBootConfig gets the current boot config. - rpc GetBootConfig(GetBootConfigRequest) returns (GetBootConfigResponse) {} - - // SetBootConfig replaces the existing boot config with the new provided one. - rpc SetBootConfig(SetBootConfigRequest) returns (SetBootConfigResponse) {} -} - -// It is safe to assume that gNOI service is hosted on the primary Controller -// Card, and the boot config is synced automatically between primary and -// secondary Controller Cards. Therefore, we don't need to specify the -// Controller Card ID. -message GetBootConfigRequest { -} - -message GetBootConfigResponse { - bootz.BootConfig boot_config = 1; -} - -message SetBootConfigRequest { - bootz.BootConfig boot_config = 1; - bootz.Credentials credentials = 2; - gnsi.pathz.v1.UploadRequest pathz = 3; - gnsi.authz.v1.UploadRequest authz = 4; - gnsi.certz.v1.UploadRequest certificates = 5 [deprecated=true]; - bootz.CertzProfiles certz = 6; -} - -message SetBootConfigResponse { -} diff --git a/src/sonic-framework/gnoi/bootconfig/bootconfig_grpc.pb.go b/src/sonic-framework/gnoi/bootconfig/bootconfig_grpc.pb.go deleted file mode 100755 index 6649cca80dbc..000000000000 --- a/src/sonic-framework/gnoi/bootconfig/bootconfig_grpc.pb.go +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.21.10 -// source: bootconfig/bootconfig.proto - -package bootconfig - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// BootConfigClient is the client API for BootConfig service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type BootConfigClient interface { - GetBootConfig(ctx context.Context, in *GetBootConfigRequest, opts ...grpc.CallOption) (*GetBootConfigResponse, error) - SetBootConfig(ctx context.Context, in *SetBootConfigRequest, opts ...grpc.CallOption) (*SetBootConfigResponse, error) -} - -type bootConfigClient struct { - cc grpc.ClientConnInterface -} - -func NewBootConfigClient(cc grpc.ClientConnInterface) BootConfigClient { - return &bootConfigClient{cc} -} - -func (c *bootConfigClient) GetBootConfig(ctx context.Context, in *GetBootConfigRequest, opts ...grpc.CallOption) (*GetBootConfigResponse, error) { - out := new(GetBootConfigResponse) - err := c.cc.Invoke(ctx, "/gnoi.bootconfig.BootConfig/GetBootConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *bootConfigClient) SetBootConfig(ctx context.Context, in *SetBootConfigRequest, opts ...grpc.CallOption) (*SetBootConfigResponse, error) { - out := new(SetBootConfigResponse) - err := c.cc.Invoke(ctx, "/gnoi.bootconfig.BootConfig/SetBootConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// BootConfigServer is the server API for BootConfig service. -// All implementations must embed UnimplementedBootConfigServer -// for forward compatibility -type BootConfigServer interface { - GetBootConfig(context.Context, *GetBootConfigRequest) (*GetBootConfigResponse, error) - SetBootConfig(context.Context, *SetBootConfigRequest) (*SetBootConfigResponse, error) - mustEmbedUnimplementedBootConfigServer() -} - -// UnimplementedBootConfigServer must be embedded to have forward compatible implementations. -type UnimplementedBootConfigServer struct { -} - -func (UnimplementedBootConfigServer) GetBootConfig(context.Context, *GetBootConfigRequest) (*GetBootConfigResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetBootConfig not implemented") -} -func (UnimplementedBootConfigServer) SetBootConfig(context.Context, *SetBootConfigRequest) (*SetBootConfigResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetBootConfig not implemented") -} -func (UnimplementedBootConfigServer) mustEmbedUnimplementedBootConfigServer() {} - -// UnsafeBootConfigServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to BootConfigServer will -// result in compilation errors. -type UnsafeBootConfigServer interface { - mustEmbedUnimplementedBootConfigServer() -} - -func RegisterBootConfigServer(s grpc.ServiceRegistrar, srv BootConfigServer) { - s.RegisterService(&BootConfig_ServiceDesc, srv) -} - -func _BootConfig_GetBootConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetBootConfigRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(BootConfigServer).GetBootConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.bootconfig.BootConfig/GetBootConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(BootConfigServer).GetBootConfig(ctx, req.(*GetBootConfigRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _BootConfig_SetBootConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetBootConfigRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(BootConfigServer).SetBootConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.bootconfig.BootConfig/SetBootConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(BootConfigServer).SetBootConfig(ctx, req.(*SetBootConfigRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// BootConfig_ServiceDesc is the grpc.ServiceDesc for BootConfig service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var BootConfig_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.bootconfig.BootConfig", - HandlerType: (*BootConfigServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GetBootConfig", - Handler: _BootConfig_GetBootConfig_Handler, - }, - { - MethodName: "SetBootConfig", - Handler: _BootConfig_SetBootConfig_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "bootconfig/bootconfig.proto", -} diff --git a/src/sonic-framework/gnoi/cert/BUILD.bazel b/src/sonic-framework/gnoi/cert/BUILD.bazel deleted file mode 100644 index 5863db8d17ec..000000000000 --- a/src/sonic-framework/gnoi/cert/BUILD.bazel +++ /dev/null @@ -1,61 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") -load("//:common.bzl", "use_new_compilers") - -#Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# 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. - -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -use_new_compilers() - -proto_library( - name = "cert_proto", - srcs = ["cert.proto"], - deps = ["//types:types_proto"], -) - -cc_proto_library( - name = "cert_cc_proto", - deps = [":cert_proto"], -) - -cc_grpc_library( - name = "cert_cc_grpc_proto", - srcs = [":cert_proto"], - grpc_only = True, - deps = [":cert_cc_proto"], -) - -go_proto_library( - name = "cert_go_proto", - compilers = [ - "go_protoc_gen_go", - "go_protoc_gen_go_grpc", - ], - importpath = "github.com/openconfig/gnoi/cert", - proto = ":cert_proto", - deps = ["//types"], -) - -go_library( - name = "cert", - embed = [":cert_go_proto"], - importpath = "github.com/openconfig/gnoi/cert", -) diff --git a/src/sonic-framework/gnoi/cert/cert.pb.go b/src/sonic-framework/gnoi/cert/cert.pb.go deleted file mode 100644 index d1f6e73d4e1e..000000000000 --- a/src/sonic-framework/gnoi/cert/cert.pb.go +++ /dev/null @@ -1,2319 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v3.21.10 -// source: cert/cert.proto - -package cert - -import ( - _ "github.com/openconfig/gnoi/types" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type CertificateType int32 - -const ( - CertificateType_CT_UNKNOWN CertificateType = 0 - CertificateType_CT_X509 CertificateType = 1 -) - -// Enum value maps for CertificateType. -var ( - CertificateType_name = map[int32]string{ - 0: "CT_UNKNOWN", - 1: "CT_X509", - } - CertificateType_value = map[string]int32{ - "CT_UNKNOWN": 0, - "CT_X509": 1, - } -) - -func (x CertificateType) Enum() *CertificateType { - p := new(CertificateType) - *p = x - return p -} - -func (x CertificateType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (CertificateType) Descriptor() protoreflect.EnumDescriptor { - return file_cert_cert_proto_enumTypes[0].Descriptor() -} - -func (CertificateType) Type() protoreflect.EnumType { - return &file_cert_cert_proto_enumTypes[0] -} - -func (x CertificateType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use CertificateType.Descriptor instead. -func (CertificateType) EnumDescriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{0} -} - -type KeyType int32 - -const ( - KeyType_KT_UNKNOWN KeyType = 0 - KeyType_KT_RSA KeyType = 1 -) - -// Enum value maps for KeyType. -var ( - KeyType_name = map[int32]string{ - 0: "KT_UNKNOWN", - 1: "KT_RSA", - } - KeyType_value = map[string]int32{ - "KT_UNKNOWN": 0, - "KT_RSA": 1, - } -) - -func (x KeyType) Enum() *KeyType { - p := new(KeyType) - *p = x - return p -} - -func (x KeyType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (KeyType) Descriptor() protoreflect.EnumDescriptor { - return file_cert_cert_proto_enumTypes[1].Descriptor() -} - -func (KeyType) Type() protoreflect.EnumType { - return &file_cert_cert_proto_enumTypes[1] -} - -func (x KeyType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use KeyType.Descriptor instead. -func (KeyType) EnumDescriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{1} -} - -type Endpoint_Type int32 - -const ( - Endpoint_EP_UNSPECIFIED Endpoint_Type = 0 - Endpoint_EP_IPSEC_TUNNEL Endpoint_Type = 1 - Endpoint_EP_DAEMON Endpoint_Type = 2 -) - -// Enum value maps for Endpoint_Type. -var ( - Endpoint_Type_name = map[int32]string{ - 0: "EP_UNSPECIFIED", - 1: "EP_IPSEC_TUNNEL", - 2: "EP_DAEMON", - } - Endpoint_Type_value = map[string]int32{ - "EP_UNSPECIFIED": 0, - "EP_IPSEC_TUNNEL": 1, - "EP_DAEMON": 2, - } -) - -func (x Endpoint_Type) Enum() *Endpoint_Type { - p := new(Endpoint_Type) - *p = x - return p -} - -func (x Endpoint_Type) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Endpoint_Type) Descriptor() protoreflect.EnumDescriptor { - return file_cert_cert_proto_enumTypes[2].Descriptor() -} - -func (Endpoint_Type) Type() protoreflect.EnumType { - return &file_cert_cert_proto_enumTypes[2] -} - -func (x Endpoint_Type) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Endpoint_Type.Descriptor instead. -func (Endpoint_Type) EnumDescriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{23, 0} -} - -type RotateCertificateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to RotateRequest: - // - // *RotateCertificateRequest_GenerateCsr - // *RotateCertificateRequest_LoadCertificate - // *RotateCertificateRequest_FinalizeRotation - RotateRequest isRotateCertificateRequest_RotateRequest `protobuf_oneof:"rotate_request"` -} - -func (x *RotateCertificateRequest) Reset() { - *x = RotateCertificateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RotateCertificateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RotateCertificateRequest) ProtoMessage() {} - -func (x *RotateCertificateRequest) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RotateCertificateRequest.ProtoReflect.Descriptor instead. -func (*RotateCertificateRequest) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{0} -} - -func (m *RotateCertificateRequest) GetRotateRequest() isRotateCertificateRequest_RotateRequest { - if m != nil { - return m.RotateRequest - } - return nil -} - -func (x *RotateCertificateRequest) GetGenerateCsr() *GenerateCSRRequest { - if x, ok := x.GetRotateRequest().(*RotateCertificateRequest_GenerateCsr); ok { - return x.GenerateCsr - } - return nil -} - -func (x *RotateCertificateRequest) GetLoadCertificate() *LoadCertificateRequest { - if x, ok := x.GetRotateRequest().(*RotateCertificateRequest_LoadCertificate); ok { - return x.LoadCertificate - } - return nil -} - -func (x *RotateCertificateRequest) GetFinalizeRotation() *FinalizeRequest { - if x, ok := x.GetRotateRequest().(*RotateCertificateRequest_FinalizeRotation); ok { - return x.FinalizeRotation - } - return nil -} - -type isRotateCertificateRequest_RotateRequest interface { - isRotateCertificateRequest_RotateRequest() -} - -type RotateCertificateRequest_GenerateCsr struct { - GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,proto3,oneof"` -} - -type RotateCertificateRequest_LoadCertificate struct { - LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` -} - -type RotateCertificateRequest_FinalizeRotation struct { - FinalizeRotation *FinalizeRequest `protobuf:"bytes,3,opt,name=finalize_rotation,json=finalizeRotation,proto3,oneof"` -} - -func (*RotateCertificateRequest_GenerateCsr) isRotateCertificateRequest_RotateRequest() {} - -func (*RotateCertificateRequest_LoadCertificate) isRotateCertificateRequest_RotateRequest() {} - -func (*RotateCertificateRequest_FinalizeRotation) isRotateCertificateRequest_RotateRequest() {} - -type RotateCertificateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to RotateResponse: - // - // *RotateCertificateResponse_GeneratedCsr - // *RotateCertificateResponse_LoadCertificate - RotateResponse isRotateCertificateResponse_RotateResponse `protobuf_oneof:"rotate_response"` -} - -func (x *RotateCertificateResponse) Reset() { - *x = RotateCertificateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RotateCertificateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RotateCertificateResponse) ProtoMessage() {} - -func (x *RotateCertificateResponse) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RotateCertificateResponse.ProtoReflect.Descriptor instead. -func (*RotateCertificateResponse) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{1} -} - -func (m *RotateCertificateResponse) GetRotateResponse() isRotateCertificateResponse_RotateResponse { - if m != nil { - return m.RotateResponse - } - return nil -} - -func (x *RotateCertificateResponse) GetGeneratedCsr() *GenerateCSRResponse { - if x, ok := x.GetRotateResponse().(*RotateCertificateResponse_GeneratedCsr); ok { - return x.GeneratedCsr - } - return nil -} - -func (x *RotateCertificateResponse) GetLoadCertificate() *LoadCertificateResponse { - if x, ok := x.GetRotateResponse().(*RotateCertificateResponse_LoadCertificate); ok { - return x.LoadCertificate - } - return nil -} - -type isRotateCertificateResponse_RotateResponse interface { - isRotateCertificateResponse_RotateResponse() -} - -type RotateCertificateResponse_GeneratedCsr struct { - GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,proto3,oneof"` -} - -type RotateCertificateResponse_LoadCertificate struct { - LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` -} - -func (*RotateCertificateResponse_GeneratedCsr) isRotateCertificateResponse_RotateResponse() {} - -func (*RotateCertificateResponse_LoadCertificate) isRotateCertificateResponse_RotateResponse() {} - -type InstallCertificateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to InstallRequest: - // - // *InstallCertificateRequest_GenerateCsr - // *InstallCertificateRequest_LoadCertificate - InstallRequest isInstallCertificateRequest_InstallRequest `protobuf_oneof:"install_request"` -} - -func (x *InstallCertificateRequest) Reset() { - *x = InstallCertificateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InstallCertificateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InstallCertificateRequest) ProtoMessage() {} - -func (x *InstallCertificateRequest) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InstallCertificateRequest.ProtoReflect.Descriptor instead. -func (*InstallCertificateRequest) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{2} -} - -func (m *InstallCertificateRequest) GetInstallRequest() isInstallCertificateRequest_InstallRequest { - if m != nil { - return m.InstallRequest - } - return nil -} - -func (x *InstallCertificateRequest) GetGenerateCsr() *GenerateCSRRequest { - if x, ok := x.GetInstallRequest().(*InstallCertificateRequest_GenerateCsr); ok { - return x.GenerateCsr - } - return nil -} - -func (x *InstallCertificateRequest) GetLoadCertificate() *LoadCertificateRequest { - if x, ok := x.GetInstallRequest().(*InstallCertificateRequest_LoadCertificate); ok { - return x.LoadCertificate - } - return nil -} - -type isInstallCertificateRequest_InstallRequest interface { - isInstallCertificateRequest_InstallRequest() -} - -type InstallCertificateRequest_GenerateCsr struct { - GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,proto3,oneof"` -} - -type InstallCertificateRequest_LoadCertificate struct { - LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` -} - -func (*InstallCertificateRequest_GenerateCsr) isInstallCertificateRequest_InstallRequest() {} - -func (*InstallCertificateRequest_LoadCertificate) isInstallCertificateRequest_InstallRequest() {} - -type InstallCertificateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to InstallResponse: - // - // *InstallCertificateResponse_GeneratedCsr - // *InstallCertificateResponse_LoadCertificate - InstallResponse isInstallCertificateResponse_InstallResponse `protobuf_oneof:"install_response"` -} - -func (x *InstallCertificateResponse) Reset() { - *x = InstallCertificateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InstallCertificateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InstallCertificateResponse) ProtoMessage() {} - -func (x *InstallCertificateResponse) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InstallCertificateResponse.ProtoReflect.Descriptor instead. -func (*InstallCertificateResponse) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{3} -} - -func (m *InstallCertificateResponse) GetInstallResponse() isInstallCertificateResponse_InstallResponse { - if m != nil { - return m.InstallResponse - } - return nil -} - -func (x *InstallCertificateResponse) GetGeneratedCsr() *GenerateCSRResponse { - if x, ok := x.GetInstallResponse().(*InstallCertificateResponse_GeneratedCsr); ok { - return x.GeneratedCsr - } - return nil -} - -func (x *InstallCertificateResponse) GetLoadCertificate() *LoadCertificateResponse { - if x, ok := x.GetInstallResponse().(*InstallCertificateResponse_LoadCertificate); ok { - return x.LoadCertificate - } - return nil -} - -type isInstallCertificateResponse_InstallResponse interface { - isInstallCertificateResponse_InstallResponse() -} - -type InstallCertificateResponse_GeneratedCsr struct { - GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,proto3,oneof"` -} - -type InstallCertificateResponse_LoadCertificate struct { - LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` -} - -func (*InstallCertificateResponse_GeneratedCsr) isInstallCertificateResponse_InstallResponse() {} - -func (*InstallCertificateResponse_LoadCertificate) isInstallCertificateResponse_InstallResponse() {} - -type GenerateCSRRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CsrParams *CSRParams `protobuf:"bytes,1,opt,name=csr_params,json=csrParams,proto3" json:"csr_params,omitempty"` - CertificateId string `protobuf:"bytes,2,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` -} - -func (x *GenerateCSRRequest) Reset() { - *x = GenerateCSRRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GenerateCSRRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GenerateCSRRequest) ProtoMessage() {} - -func (x *GenerateCSRRequest) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GenerateCSRRequest.ProtoReflect.Descriptor instead. -func (*GenerateCSRRequest) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{4} -} - -func (x *GenerateCSRRequest) GetCsrParams() *CSRParams { - if x != nil { - return x.CsrParams - } - return nil -} - -func (x *GenerateCSRRequest) GetCertificateId() string { - if x != nil { - return x.CertificateId - } - return "" -} - -type CSRParams struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Type CertificateType `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` - MinKeySize uint32 `protobuf:"varint,2,opt,name=min_key_size,json=minKeySize,proto3" json:"min_key_size,omitempty"` - KeyType KeyType `protobuf:"varint,3,opt,name=key_type,json=keyType,proto3,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` - CommonName string `protobuf:"bytes,4,opt,name=common_name,json=commonName,proto3" json:"common_name,omitempty"` - Country string `protobuf:"bytes,5,opt,name=country,proto3" json:"country,omitempty"` - State string `protobuf:"bytes,6,opt,name=state,proto3" json:"state,omitempty"` - City string `protobuf:"bytes,7,opt,name=city,proto3" json:"city,omitempty"` - Organization string `protobuf:"bytes,8,opt,name=organization,proto3" json:"organization,omitempty"` - OrganizationalUnit string `protobuf:"bytes,9,opt,name=organizational_unit,json=organizationalUnit,proto3" json:"organizational_unit,omitempty"` - IpAddress string `protobuf:"bytes,10,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` - EmailId string `protobuf:"bytes,11,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` -} - -func (x *CSRParams) Reset() { - *x = CSRParams{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CSRParams) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CSRParams) ProtoMessage() {} - -func (x *CSRParams) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CSRParams.ProtoReflect.Descriptor instead. -func (*CSRParams) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{5} -} - -func (x *CSRParams) GetType() CertificateType { - if x != nil { - return x.Type - } - return CertificateType_CT_UNKNOWN -} - -func (x *CSRParams) GetMinKeySize() uint32 { - if x != nil { - return x.MinKeySize - } - return 0 -} - -func (x *CSRParams) GetKeyType() KeyType { - if x != nil { - return x.KeyType - } - return KeyType_KT_UNKNOWN -} - -func (x *CSRParams) GetCommonName() string { - if x != nil { - return x.CommonName - } - return "" -} - -func (x *CSRParams) GetCountry() string { - if x != nil { - return x.Country - } - return "" -} - -func (x *CSRParams) GetState() string { - if x != nil { - return x.State - } - return "" -} - -func (x *CSRParams) GetCity() string { - if x != nil { - return x.City - } - return "" -} - -func (x *CSRParams) GetOrganization() string { - if x != nil { - return x.Organization - } - return "" -} - -func (x *CSRParams) GetOrganizationalUnit() string { - if x != nil { - return x.OrganizationalUnit - } - return "" -} - -func (x *CSRParams) GetIpAddress() string { - if x != nil { - return x.IpAddress - } - return "" -} - -func (x *CSRParams) GetEmailId() string { - if x != nil { - return x.EmailId - } - return "" -} - -type GenerateCSRResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Csr *CSR `protobuf:"bytes,1,opt,name=csr,proto3" json:"csr,omitempty"` -} - -func (x *GenerateCSRResponse) Reset() { - *x = GenerateCSRResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GenerateCSRResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GenerateCSRResponse) ProtoMessage() {} - -func (x *GenerateCSRResponse) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GenerateCSRResponse.ProtoReflect.Descriptor instead. -func (*GenerateCSRResponse) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{6} -} - -func (x *GenerateCSRResponse) GetCsr() *CSR { - if x != nil { - return x.Csr - } - return nil -} - -type LoadCertificateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Certificate *Certificate `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"` - KeyPair *KeyPair `protobuf:"bytes,2,opt,name=key_pair,json=keyPair,proto3" json:"key_pair,omitempty"` - CertificateId string `protobuf:"bytes,3,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` - CaCertificates []*Certificate `protobuf:"bytes,4,rep,name=ca_certificates,json=caCertificates,proto3" json:"ca_certificates,omitempty"` -} - -func (x *LoadCertificateRequest) Reset() { - *x = LoadCertificateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LoadCertificateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LoadCertificateRequest) ProtoMessage() {} - -func (x *LoadCertificateRequest) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LoadCertificateRequest.ProtoReflect.Descriptor instead. -func (*LoadCertificateRequest) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{7} -} - -func (x *LoadCertificateRequest) GetCertificate() *Certificate { - if x != nil { - return x.Certificate - } - return nil -} - -func (x *LoadCertificateRequest) GetKeyPair() *KeyPair { - if x != nil { - return x.KeyPair - } - return nil -} - -func (x *LoadCertificateRequest) GetCertificateId() string { - if x != nil { - return x.CertificateId - } - return "" -} - -func (x *LoadCertificateRequest) GetCaCertificates() []*Certificate { - if x != nil { - return x.CaCertificates - } - return nil -} - -type LoadCertificateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *LoadCertificateResponse) Reset() { - *x = LoadCertificateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LoadCertificateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LoadCertificateResponse) ProtoMessage() {} - -func (x *LoadCertificateResponse) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LoadCertificateResponse.ProtoReflect.Descriptor instead. -func (*LoadCertificateResponse) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{8} -} - -type LoadCertificateAuthorityBundleRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CaCertificates []*Certificate `protobuf:"bytes,1,rep,name=ca_certificates,json=caCertificates,proto3" json:"ca_certificates,omitempty"` -} - -func (x *LoadCertificateAuthorityBundleRequest) Reset() { - *x = LoadCertificateAuthorityBundleRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LoadCertificateAuthorityBundleRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LoadCertificateAuthorityBundleRequest) ProtoMessage() {} - -func (x *LoadCertificateAuthorityBundleRequest) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LoadCertificateAuthorityBundleRequest.ProtoReflect.Descriptor instead. -func (*LoadCertificateAuthorityBundleRequest) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{9} -} - -func (x *LoadCertificateAuthorityBundleRequest) GetCaCertificates() []*Certificate { - if x != nil { - return x.CaCertificates - } - return nil -} - -type LoadCertificateAuthorityBundleResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *LoadCertificateAuthorityBundleResponse) Reset() { - *x = LoadCertificateAuthorityBundleResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LoadCertificateAuthorityBundleResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LoadCertificateAuthorityBundleResponse) ProtoMessage() {} - -func (x *LoadCertificateAuthorityBundleResponse) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LoadCertificateAuthorityBundleResponse.ProtoReflect.Descriptor instead. -func (*LoadCertificateAuthorityBundleResponse) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{10} -} - -type FinalizeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *FinalizeRequest) Reset() { - *x = FinalizeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FinalizeRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FinalizeRequest) ProtoMessage() {} - -func (x *FinalizeRequest) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FinalizeRequest.ProtoReflect.Descriptor instead. -func (*FinalizeRequest) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{11} -} - -type GetCertificatesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *GetCertificatesRequest) Reset() { - *x = GetCertificatesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetCertificatesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetCertificatesRequest) ProtoMessage() {} - -func (x *GetCertificatesRequest) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetCertificatesRequest.ProtoReflect.Descriptor instead. -func (*GetCertificatesRequest) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{12} -} - -type GetCertificatesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CertificateInfo []*CertificateInfo `protobuf:"bytes,1,rep,name=certificate_info,json=certificateInfo,proto3" json:"certificate_info,omitempty"` -} - -func (x *GetCertificatesResponse) Reset() { - *x = GetCertificatesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetCertificatesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetCertificatesResponse) ProtoMessage() {} - -func (x *GetCertificatesResponse) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetCertificatesResponse.ProtoReflect.Descriptor instead. -func (*GetCertificatesResponse) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{13} -} - -func (x *GetCertificatesResponse) GetCertificateInfo() []*CertificateInfo { - if x != nil { - return x.CertificateInfo - } - return nil -} - -type CertificateInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` - Certificate *Certificate `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` - Endpoints []*Endpoint `protobuf:"bytes,3,rep,name=endpoints,proto3" json:"endpoints,omitempty"` - ModificationTime int64 `protobuf:"varint,4,opt,name=modification_time,json=modificationTime,proto3" json:"modification_time,omitempty"` -} - -func (x *CertificateInfo) Reset() { - *x = CertificateInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CertificateInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CertificateInfo) ProtoMessage() {} - -func (x *CertificateInfo) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CertificateInfo.ProtoReflect.Descriptor instead. -func (*CertificateInfo) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{14} -} - -func (x *CertificateInfo) GetCertificateId() string { - if x != nil { - return x.CertificateId - } - return "" -} - -func (x *CertificateInfo) GetCertificate() *Certificate { - if x != nil { - return x.Certificate - } - return nil -} - -func (x *CertificateInfo) GetEndpoints() []*Endpoint { - if x != nil { - return x.Endpoints - } - return nil -} - -func (x *CertificateInfo) GetModificationTime() int64 { - if x != nil { - return x.ModificationTime - } - return 0 -} - -type RevokeCertificatesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CertificateId []string `protobuf:"bytes,1,rep,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` -} - -func (x *RevokeCertificatesRequest) Reset() { - *x = RevokeCertificatesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RevokeCertificatesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RevokeCertificatesRequest) ProtoMessage() {} - -func (x *RevokeCertificatesRequest) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RevokeCertificatesRequest.ProtoReflect.Descriptor instead. -func (*RevokeCertificatesRequest) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{15} -} - -func (x *RevokeCertificatesRequest) GetCertificateId() []string { - if x != nil { - return x.CertificateId - } - return nil -} - -type RevokeCertificatesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RevokedCertificateId []string `protobuf:"bytes,1,rep,name=revoked_certificate_id,json=revokedCertificateId,proto3" json:"revoked_certificate_id,omitempty"` - CertificateRevocationError []*CertificateRevocationError `protobuf:"bytes,2,rep,name=certificate_revocation_error,json=certificateRevocationError,proto3" json:"certificate_revocation_error,omitempty"` -} - -func (x *RevokeCertificatesResponse) Reset() { - *x = RevokeCertificatesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RevokeCertificatesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RevokeCertificatesResponse) ProtoMessage() {} - -func (x *RevokeCertificatesResponse) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RevokeCertificatesResponse.ProtoReflect.Descriptor instead. -func (*RevokeCertificatesResponse) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{16} -} - -func (x *RevokeCertificatesResponse) GetRevokedCertificateId() []string { - if x != nil { - return x.RevokedCertificateId - } - return nil -} - -func (x *RevokeCertificatesResponse) GetCertificateRevocationError() []*CertificateRevocationError { - if x != nil { - return x.CertificateRevocationError - } - return nil -} - -type CertificateRevocationError struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` - ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` -} - -func (x *CertificateRevocationError) Reset() { - *x = CertificateRevocationError{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CertificateRevocationError) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CertificateRevocationError) ProtoMessage() {} - -func (x *CertificateRevocationError) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CertificateRevocationError.ProtoReflect.Descriptor instead. -func (*CertificateRevocationError) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{17} -} - -func (x *CertificateRevocationError) GetCertificateId() string { - if x != nil { - return x.CertificateId - } - return "" -} - -func (x *CertificateRevocationError) GetErrorMessage() string { - if x != nil { - return x.ErrorMessage - } - return "" -} - -type CanGenerateCSRRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - KeyType KeyType `protobuf:"varint,1,opt,name=key_type,json=keyType,proto3,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` - CertificateType CertificateType `protobuf:"varint,2,opt,name=certificate_type,json=certificateType,proto3,enum=gnoi.certificate.CertificateType" json:"certificate_type,omitempty"` - KeySize uint32 `protobuf:"varint,3,opt,name=key_size,json=keySize,proto3" json:"key_size,omitempty"` -} - -func (x *CanGenerateCSRRequest) Reset() { - *x = CanGenerateCSRRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CanGenerateCSRRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CanGenerateCSRRequest) ProtoMessage() {} - -func (x *CanGenerateCSRRequest) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CanGenerateCSRRequest.ProtoReflect.Descriptor instead. -func (*CanGenerateCSRRequest) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{18} -} - -func (x *CanGenerateCSRRequest) GetKeyType() KeyType { - if x != nil { - return x.KeyType - } - return KeyType_KT_UNKNOWN -} - -func (x *CanGenerateCSRRequest) GetCertificateType() CertificateType { - if x != nil { - return x.CertificateType - } - return CertificateType_CT_UNKNOWN -} - -func (x *CanGenerateCSRRequest) GetKeySize() uint32 { - if x != nil { - return x.KeySize - } - return 0 -} - -type CanGenerateCSRResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CanGenerate bool `protobuf:"varint,4,opt,name=can_generate,json=canGenerate,proto3" json:"can_generate,omitempty"` -} - -func (x *CanGenerateCSRResponse) Reset() { - *x = CanGenerateCSRResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CanGenerateCSRResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CanGenerateCSRResponse) ProtoMessage() {} - -func (x *CanGenerateCSRResponse) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CanGenerateCSRResponse.ProtoReflect.Descriptor instead. -func (*CanGenerateCSRResponse) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{19} -} - -func (x *CanGenerateCSRResponse) GetCanGenerate() bool { - if x != nil { - return x.CanGenerate - } - return false -} - -type Certificate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Type CertificateType `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` - Certificate []byte `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` -} - -func (x *Certificate) Reset() { - *x = Certificate{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Certificate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Certificate) ProtoMessage() {} - -func (x *Certificate) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Certificate.ProtoReflect.Descriptor instead. -func (*Certificate) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{20} -} - -func (x *Certificate) GetType() CertificateType { - if x != nil { - return x.Type - } - return CertificateType_CT_UNKNOWN -} - -func (x *Certificate) GetCertificate() []byte { - if x != nil { - return x.Certificate - } - return nil -} - -type CSR struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Type CertificateType `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` - Csr []byte `protobuf:"bytes,2,opt,name=csr,proto3" json:"csr,omitempty"` -} - -func (x *CSR) Reset() { - *x = CSR{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CSR) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CSR) ProtoMessage() {} - -func (x *CSR) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CSR.ProtoReflect.Descriptor instead. -func (*CSR) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{21} -} - -func (x *CSR) GetType() CertificateType { - if x != nil { - return x.Type - } - return CertificateType_CT_UNKNOWN -} - -func (x *CSR) GetCsr() []byte { - if x != nil { - return x.Csr - } - return nil -} - -type KeyPair struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PrivateKey []byte `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` - PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` -} - -func (x *KeyPair) Reset() { - *x = KeyPair{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *KeyPair) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*KeyPair) ProtoMessage() {} - -func (x *KeyPair) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use KeyPair.ProtoReflect.Descriptor instead. -func (*KeyPair) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{22} -} - -func (x *KeyPair) GetPrivateKey() []byte { - if x != nil { - return x.PrivateKey - } - return nil -} - -func (x *KeyPair) GetPublicKey() []byte { - if x != nil { - return x.PublicKey - } - return nil -} - -type Endpoint struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Type Endpoint_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.Endpoint_Type" json:"type,omitempty"` - Endpoint string `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"` -} - -func (x *Endpoint) Reset() { - *x = Endpoint{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Endpoint) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Endpoint) ProtoMessage() {} - -func (x *Endpoint) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Endpoint.ProtoReflect.Descriptor instead. -func (*Endpoint) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{23} -} - -func (x *Endpoint) GetType() Endpoint_Type { - if x != nil { - return x.Type - } - return Endpoint_EP_UNSPECIFIED -} - -func (x *Endpoint) GetEndpoint() string { - if x != nil { - return x.Endpoint - } - return "" -} - -var File_cert_cert_proto protoreflect.FileDescriptor - -var file_cert_cert_proto_rawDesc = []byte{ - 0x0a, 0x0f, 0x63, 0x65, 0x72, 0x74, 0x2f, 0x63, 0x65, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x10, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x65, 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0xa0, 0x02, 0x0a, 0x18, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x43, 0x65, 0x72, 0x74, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x49, - 0x0a, 0x0c, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x63, 0x73, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, - 0x43, 0x53, 0x52, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x67, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x73, 0x72, 0x12, 0x55, 0x0a, 0x10, 0x6c, 0x6f, 0x61, - 0x64, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, - 0x0f, 0x6c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, - 0x12, 0x50, 0x0a, 0x11, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x5f, 0x72, 0x6f, 0x74, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x46, - 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, - 0x52, 0x10, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x42, 0x10, 0x0a, 0x0e, 0x72, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x22, 0xd4, 0x01, 0x0a, 0x19, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x43, - 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x0d, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x5f, - 0x63, 0x73, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x47, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x53, 0x52, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x48, 0x00, 0x52, 0x0c, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x43, 0x73, 0x72, - 0x12, 0x56, 0x0a, 0x10, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x6f, - 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0f, 0x6c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x42, 0x11, 0x0a, 0x0f, 0x72, 0x6f, 0x74, 0x61, - 0x74, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xd0, 0x01, 0x0a, 0x19, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x49, 0x0a, 0x0c, 0x67, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x63, 0x73, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x24, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x53, 0x52, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x65, 0x43, 0x73, 0x72, 0x12, 0x55, 0x0a, 0x10, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x63, 0x65, 0x72, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x65, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0f, 0x6c, 0x6f, 0x61, 0x64, - 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x42, 0x11, 0x0a, 0x0f, 0x69, - 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xd6, - 0x01, 0x0a, 0x1a, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, - 0x0d, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x73, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, - 0x43, 0x53, 0x52, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x67, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x43, 0x73, 0x72, 0x12, 0x56, 0x0a, 0x10, 0x6c, - 0x6f, 0x61, 0x64, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x48, 0x00, 0x52, 0x0f, 0x6c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x65, 0x42, 0x12, 0x0a, 0x10, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x5f, 0x72, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x77, 0x0a, 0x12, 0x47, 0x65, 0x6e, 0x65, 0x72, - 0x61, 0x74, 0x65, 0x43, 0x53, 0x52, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, - 0x0a, 0x63, 0x73, 0x72, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x53, 0x52, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x09, - 0x63, 0x73, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x65, 0x72, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0d, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x49, 0x64, - 0x22, 0x8e, 0x03, 0x0a, 0x09, 0x43, 0x53, 0x52, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x35, - 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, - 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, - 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0c, 0x6d, 0x69, 0x6e, 0x5f, 0x6b, 0x65, 0x79, - 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x6d, 0x69, 0x6e, - 0x4b, 0x65, 0x79, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x34, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x4b, 0x65, 0x79, - 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, - 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, - 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, - 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x12, - 0x0a, 0x04, 0x63, 0x69, 0x74, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, - 0x74, 0x79, 0x12, 0x22, 0x0a, 0x0c, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, - 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x13, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, - 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x18, 0x09, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x12, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x61, 0x6c, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x70, 0x5f, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x70, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x5f, - 0x69, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x49, - 0x64, 0x22, 0x3e, 0x0a, 0x13, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x53, 0x52, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x03, 0x63, 0x73, 0x72, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x53, 0x52, 0x52, 0x03, 0x63, 0x73, - 0x72, 0x22, 0xfe, 0x01, 0x0a, 0x16, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x0b, - 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, - 0x52, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x34, 0x0a, - 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x65, 0x2e, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x50, - 0x61, 0x69, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x65, 0x72, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x46, 0x0a, 0x0f, 0x63, 0x61, - 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x65, 0x52, 0x0e, 0x63, 0x61, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x65, 0x73, 0x22, 0x19, 0x0a, 0x17, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6f, 0x0a, - 0x25, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, - 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0f, 0x63, 0x61, 0x5f, 0x63, 0x65, 0x72, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x1d, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x65, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x0e, - 0x63, 0x61, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x22, 0x28, - 0x0a, 0x26, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x11, 0x0a, 0x0f, 0x46, 0x69, 0x6e, 0x61, - 0x6c, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x18, 0x0a, 0x16, 0x47, - 0x65, 0x74, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x67, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x43, 0x65, 0x72, 0x74, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x4c, 0x0a, 0x10, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, - 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x65, - 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0f, 0x63, - 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0xe0, - 0x01, 0x0a, 0x0f, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x49, 0x6e, - 0x66, 0x6f, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x65, 0x72, 0x74, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x0b, 0x63, 0x65, 0x72, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x65, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x0b, 0x63, - 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x65, 0x6e, - 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, - 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x09, 0x65, 0x6e, 0x64, 0x70, 0x6f, - 0x69, 0x6e, 0x74, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x10, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, - 0x65, 0x22, 0x42, 0x0a, 0x19, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x43, 0x65, 0x72, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, - 0x0a, 0x0e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x65, 0x49, 0x64, 0x22, 0xc2, 0x01, 0x0a, 0x1a, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, - 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x16, 0x72, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x64, 0x5f, - 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x14, 0x72, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x64, 0x43, 0x65, 0x72, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x6e, 0x0a, 0x1c, 0x63, 0x65, - 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x72, 0x65, 0x76, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x2c, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x65, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, - 0x65, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x1a, - 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76, 0x6f, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x68, 0x0a, 0x1a, 0x43, 0x65, - 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76, 0x6f, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x65, 0x72, 0x74, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0d, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, - 0x23, 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x22, 0xb6, 0x01, 0x0a, 0x15, 0x43, 0x61, 0x6e, 0x47, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x74, 0x65, 0x43, 0x53, 0x52, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, - 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x65, 0x2e, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x6b, 0x65, 0x79, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x4c, 0x0a, 0x10, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x65, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x0f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x3b, 0x0a, - 0x16, 0x43, 0x61, 0x6e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x53, 0x52, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x6e, 0x5f, 0x67, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x63, - 0x61, 0x6e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x22, 0x66, 0x0a, 0x0b, 0x43, 0x65, - 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x35, 0x0a, 0x04, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, - 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, - 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x65, 0x22, 0x4e, 0x0a, 0x03, 0x43, 0x53, 0x52, 0x12, 0x35, 0x0a, 0x04, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, - 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, - 0x12, 0x10, 0x0a, 0x03, 0x63, 0x73, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x63, - 0x73, 0x72, 0x22, 0x49, 0x0a, 0x07, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x12, 0x1f, 0x0a, - 0x0b, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x0a, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x1d, - 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x22, 0x9b, 0x01, - 0x0a, 0x08, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x33, 0x0a, 0x04, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x45, 0x6e, 0x64, 0x70, - 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, - 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x22, 0x3e, 0x0a, 0x04, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x0e, 0x45, 0x50, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, - 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x45, 0x50, 0x5f, 0x49, 0x50, - 0x53, 0x45, 0x43, 0x5f, 0x54, 0x55, 0x4e, 0x4e, 0x45, 0x4c, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, - 0x45, 0x50, 0x5f, 0x44, 0x41, 0x45, 0x4d, 0x4f, 0x4e, 0x10, 0x02, 0x2a, 0x2e, 0x0a, 0x0f, 0x43, - 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0e, - 0x0a, 0x0a, 0x43, 0x54, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, - 0x0a, 0x07, 0x43, 0x54, 0x5f, 0x58, 0x35, 0x30, 0x39, 0x10, 0x01, 0x2a, 0x25, 0x0a, 0x07, 0x4b, - 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x4b, 0x54, 0x5f, 0x55, 0x4e, 0x4b, - 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4b, 0x54, 0x5f, 0x52, 0x53, 0x41, - 0x10, 0x01, 0x32, 0xa8, 0x07, 0x0a, 0x15, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x65, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x6a, 0x0a, 0x06, - 0x52, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, - 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x65, - 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x43, 0x65, 0x72, 0x74, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x03, 0x88, 0x02, 0x01, 0x28, 0x01, 0x30, 0x01, 0x12, 0x6d, 0x0a, 0x07, 0x49, 0x6e, 0x73, 0x74, - 0x61, 0x6c, 0x6c, 0x12, 0x2b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x43, 0x65, - 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x2c, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x65, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x43, 0x65, 0x72, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, - 0x88, 0x02, 0x01, 0x28, 0x01, 0x30, 0x01, 0x12, 0x5f, 0x0a, 0x0b, 0x47, 0x65, 0x6e, 0x65, 0x72, - 0x61, 0x74, 0x65, 0x43, 0x53, 0x52, 0x12, 0x24, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, - 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, - 0x74, 0x65, 0x43, 0x53, 0x52, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, - 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x53, 0x52, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x6b, 0x0a, 0x0f, 0x4c, 0x6f, 0x61, 0x64, - 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x28, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x4c, - 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x98, 0x01, 0x0a, 0x1e, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, - 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, - 0x74, 0x79, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x37, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x6f, 0x61, 0x64, - 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x69, 0x74, 0x79, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x38, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x42, 0x75, 0x6e, - 0x64, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, - 0x12, 0x6b, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x65, 0x73, 0x12, 0x28, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, - 0x2e, 0x47, 0x65, 0x74, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x74, 0x0a, - 0x12, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x65, 0x73, 0x12, 0x2b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x43, 0x65, 0x72, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x2c, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, - 0x88, 0x02, 0x01, 0x12, 0x68, 0x0a, 0x0e, 0x43, 0x61, 0x6e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, - 0x74, 0x65, 0x43, 0x53, 0x52, 0x12, 0x27, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x47, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x74, 0x65, 0x43, 0x53, 0x52, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x53, 0x52, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x42, 0x29, 0xd2, - 0x3e, 0x05, 0x30, 0x2e, 0x32, 0x2e, 0x30, 0x5a, 0x1f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, - 0x6e, 0x6f, 0x69, 0x2f, 0x63, 0x65, 0x72, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cert_cert_proto_rawDescOnce sync.Once - file_cert_cert_proto_rawDescData = file_cert_cert_proto_rawDesc -) - -func file_cert_cert_proto_rawDescGZIP() []byte { - file_cert_cert_proto_rawDescOnce.Do(func() { - file_cert_cert_proto_rawDescData = protoimpl.X.CompressGZIP(file_cert_cert_proto_rawDescData) - }) - return file_cert_cert_proto_rawDescData -} - -var file_cert_cert_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_cert_cert_proto_msgTypes = make([]protoimpl.MessageInfo, 24) -var file_cert_cert_proto_goTypes = []interface{}{ - (CertificateType)(0), // 0: gnoi.certificate.CertificateType - (KeyType)(0), // 1: gnoi.certificate.KeyType - (Endpoint_Type)(0), // 2: gnoi.certificate.Endpoint.Type - (*RotateCertificateRequest)(nil), // 3: gnoi.certificate.RotateCertificateRequest - (*RotateCertificateResponse)(nil), // 4: gnoi.certificate.RotateCertificateResponse - (*InstallCertificateRequest)(nil), // 5: gnoi.certificate.InstallCertificateRequest - (*InstallCertificateResponse)(nil), // 6: gnoi.certificate.InstallCertificateResponse - (*GenerateCSRRequest)(nil), // 7: gnoi.certificate.GenerateCSRRequest - (*CSRParams)(nil), // 8: gnoi.certificate.CSRParams - (*GenerateCSRResponse)(nil), // 9: gnoi.certificate.GenerateCSRResponse - (*LoadCertificateRequest)(nil), // 10: gnoi.certificate.LoadCertificateRequest - (*LoadCertificateResponse)(nil), // 11: gnoi.certificate.LoadCertificateResponse - (*LoadCertificateAuthorityBundleRequest)(nil), // 12: gnoi.certificate.LoadCertificateAuthorityBundleRequest - (*LoadCertificateAuthorityBundleResponse)(nil), // 13: gnoi.certificate.LoadCertificateAuthorityBundleResponse - (*FinalizeRequest)(nil), // 14: gnoi.certificate.FinalizeRequest - (*GetCertificatesRequest)(nil), // 15: gnoi.certificate.GetCertificatesRequest - (*GetCertificatesResponse)(nil), // 16: gnoi.certificate.GetCertificatesResponse - (*CertificateInfo)(nil), // 17: gnoi.certificate.CertificateInfo - (*RevokeCertificatesRequest)(nil), // 18: gnoi.certificate.RevokeCertificatesRequest - (*RevokeCertificatesResponse)(nil), // 19: gnoi.certificate.RevokeCertificatesResponse - (*CertificateRevocationError)(nil), // 20: gnoi.certificate.CertificateRevocationError - (*CanGenerateCSRRequest)(nil), // 21: gnoi.certificate.CanGenerateCSRRequest - (*CanGenerateCSRResponse)(nil), // 22: gnoi.certificate.CanGenerateCSRResponse - (*Certificate)(nil), // 23: gnoi.certificate.Certificate - (*CSR)(nil), // 24: gnoi.certificate.CSR - (*KeyPair)(nil), // 25: gnoi.certificate.KeyPair - (*Endpoint)(nil), // 26: gnoi.certificate.Endpoint -} -var file_cert_cert_proto_depIdxs = []int32{ - 7, // 0: gnoi.certificate.RotateCertificateRequest.generate_csr:type_name -> gnoi.certificate.GenerateCSRRequest - 10, // 1: gnoi.certificate.RotateCertificateRequest.load_certificate:type_name -> gnoi.certificate.LoadCertificateRequest - 14, // 2: gnoi.certificate.RotateCertificateRequest.finalize_rotation:type_name -> gnoi.certificate.FinalizeRequest - 9, // 3: gnoi.certificate.RotateCertificateResponse.generated_csr:type_name -> gnoi.certificate.GenerateCSRResponse - 11, // 4: gnoi.certificate.RotateCertificateResponse.load_certificate:type_name -> gnoi.certificate.LoadCertificateResponse - 7, // 5: gnoi.certificate.InstallCertificateRequest.generate_csr:type_name -> gnoi.certificate.GenerateCSRRequest - 10, // 6: gnoi.certificate.InstallCertificateRequest.load_certificate:type_name -> gnoi.certificate.LoadCertificateRequest - 9, // 7: gnoi.certificate.InstallCertificateResponse.generated_csr:type_name -> gnoi.certificate.GenerateCSRResponse - 11, // 8: gnoi.certificate.InstallCertificateResponse.load_certificate:type_name -> gnoi.certificate.LoadCertificateResponse - 8, // 9: gnoi.certificate.GenerateCSRRequest.csr_params:type_name -> gnoi.certificate.CSRParams - 0, // 10: gnoi.certificate.CSRParams.type:type_name -> gnoi.certificate.CertificateType - 1, // 11: gnoi.certificate.CSRParams.key_type:type_name -> gnoi.certificate.KeyType - 24, // 12: gnoi.certificate.GenerateCSRResponse.csr:type_name -> gnoi.certificate.CSR - 23, // 13: gnoi.certificate.LoadCertificateRequest.certificate:type_name -> gnoi.certificate.Certificate - 25, // 14: gnoi.certificate.LoadCertificateRequest.key_pair:type_name -> gnoi.certificate.KeyPair - 23, // 15: gnoi.certificate.LoadCertificateRequest.ca_certificates:type_name -> gnoi.certificate.Certificate - 23, // 16: gnoi.certificate.LoadCertificateAuthorityBundleRequest.ca_certificates:type_name -> gnoi.certificate.Certificate - 17, // 17: gnoi.certificate.GetCertificatesResponse.certificate_info:type_name -> gnoi.certificate.CertificateInfo - 23, // 18: gnoi.certificate.CertificateInfo.certificate:type_name -> gnoi.certificate.Certificate - 26, // 19: gnoi.certificate.CertificateInfo.endpoints:type_name -> gnoi.certificate.Endpoint - 20, // 20: gnoi.certificate.RevokeCertificatesResponse.certificate_revocation_error:type_name -> gnoi.certificate.CertificateRevocationError - 1, // 21: gnoi.certificate.CanGenerateCSRRequest.key_type:type_name -> gnoi.certificate.KeyType - 0, // 22: gnoi.certificate.CanGenerateCSRRequest.certificate_type:type_name -> gnoi.certificate.CertificateType - 0, // 23: gnoi.certificate.Certificate.type:type_name -> gnoi.certificate.CertificateType - 0, // 24: gnoi.certificate.CSR.type:type_name -> gnoi.certificate.CertificateType - 2, // 25: gnoi.certificate.Endpoint.type:type_name -> gnoi.certificate.Endpoint.Type - 3, // 26: gnoi.certificate.CertificateManagement.Rotate:input_type -> gnoi.certificate.RotateCertificateRequest - 5, // 27: gnoi.certificate.CertificateManagement.Install:input_type -> gnoi.certificate.InstallCertificateRequest - 7, // 28: gnoi.certificate.CertificateManagement.GenerateCSR:input_type -> gnoi.certificate.GenerateCSRRequest - 10, // 29: gnoi.certificate.CertificateManagement.LoadCertificate:input_type -> gnoi.certificate.LoadCertificateRequest - 12, // 30: gnoi.certificate.CertificateManagement.LoadCertificateAuthorityBundle:input_type -> gnoi.certificate.LoadCertificateAuthorityBundleRequest - 15, // 31: gnoi.certificate.CertificateManagement.GetCertificates:input_type -> gnoi.certificate.GetCertificatesRequest - 18, // 32: gnoi.certificate.CertificateManagement.RevokeCertificates:input_type -> gnoi.certificate.RevokeCertificatesRequest - 21, // 33: gnoi.certificate.CertificateManagement.CanGenerateCSR:input_type -> gnoi.certificate.CanGenerateCSRRequest - 4, // 34: gnoi.certificate.CertificateManagement.Rotate:output_type -> gnoi.certificate.RotateCertificateResponse - 6, // 35: gnoi.certificate.CertificateManagement.Install:output_type -> gnoi.certificate.InstallCertificateResponse - 9, // 36: gnoi.certificate.CertificateManagement.GenerateCSR:output_type -> gnoi.certificate.GenerateCSRResponse - 11, // 37: gnoi.certificate.CertificateManagement.LoadCertificate:output_type -> gnoi.certificate.LoadCertificateResponse - 13, // 38: gnoi.certificate.CertificateManagement.LoadCertificateAuthorityBundle:output_type -> gnoi.certificate.LoadCertificateAuthorityBundleResponse - 16, // 39: gnoi.certificate.CertificateManagement.GetCertificates:output_type -> gnoi.certificate.GetCertificatesResponse - 19, // 40: gnoi.certificate.CertificateManagement.RevokeCertificates:output_type -> gnoi.certificate.RevokeCertificatesResponse - 22, // 41: gnoi.certificate.CertificateManagement.CanGenerateCSR:output_type -> gnoi.certificate.CanGenerateCSRResponse - 34, // [34:42] is the sub-list for method output_type - 26, // [26:34] is the sub-list for method input_type - 26, // [26:26] is the sub-list for extension type_name - 26, // [26:26] is the sub-list for extension extendee - 0, // [0:26] is the sub-list for field type_name -} - -func init() { file_cert_cert_proto_init() } -func file_cert_cert_proto_init() { - if File_cert_cert_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cert_cert_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RotateCertificateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RotateCertificateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InstallCertificateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InstallCertificateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenerateCSRRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CSRParams); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenerateCSRResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LoadCertificateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LoadCertificateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LoadCertificateAuthorityBundleRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LoadCertificateAuthorityBundleResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FinalizeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetCertificatesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetCertificatesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CertificateInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RevokeCertificatesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RevokeCertificatesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CertificateRevocationError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CanGenerateCSRRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CanGenerateCSRResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Certificate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CSR); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*KeyPair); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Endpoint); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_cert_cert_proto_msgTypes[0].OneofWrappers = []interface{}{ - (*RotateCertificateRequest_GenerateCsr)(nil), - (*RotateCertificateRequest_LoadCertificate)(nil), - (*RotateCertificateRequest_FinalizeRotation)(nil), - } - file_cert_cert_proto_msgTypes[1].OneofWrappers = []interface{}{ - (*RotateCertificateResponse_GeneratedCsr)(nil), - (*RotateCertificateResponse_LoadCertificate)(nil), - } - file_cert_cert_proto_msgTypes[2].OneofWrappers = []interface{}{ - (*InstallCertificateRequest_GenerateCsr)(nil), - (*InstallCertificateRequest_LoadCertificate)(nil), - } - file_cert_cert_proto_msgTypes[3].OneofWrappers = []interface{}{ - (*InstallCertificateResponse_GeneratedCsr)(nil), - (*InstallCertificateResponse_LoadCertificate)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cert_cert_proto_rawDesc, - NumEnums: 3, - NumMessages: 24, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_cert_cert_proto_goTypes, - DependencyIndexes: file_cert_cert_proto_depIdxs, - EnumInfos: file_cert_cert_proto_enumTypes, - MessageInfos: file_cert_cert_proto_msgTypes, - }.Build() - File_cert_cert_proto = out.File - file_cert_cert_proto_rawDesc = nil - file_cert_cert_proto_goTypes = nil - file_cert_cert_proto_depIdxs = nil -} diff --git a/src/sonic-framework/gnoi/cert/cert.proto b/src/sonic-framework/gnoi/cert/cert.proto deleted file mode 100644 index 3249d3a07b63..000000000000 --- a/src/sonic-framework/gnoi/cert/cert.proto +++ /dev/null @@ -1,466 +0,0 @@ -// -// Copyright 2017 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.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. -// -// DEPRECATION NOTICE: This API will be removed as it has been replaced via -// gNSI Certz service. This will be removed in the v1 release of the gNOI API. -// -// This file defines the gNOI API to be used for certificate installation and -// rotation. -syntax = "proto3"; - -package gnoi.certificate; - -import "github.com/openconfig/gnoi/types/types.proto"; - -option go_package = "github.com/openconfig/gnoi/cert"; - -option (types.gnoi_version) = "0.2.0"; - -// The Certificate Management Service exported by targets. -// -// The service primarily exports two main RPCs, Install & Rotate which are used -// for installation of a new certificate, and rotation of an existing -// certificate on a target, along with a few management related RPCs. -// -// In addition, the actions from the Install and Rotate RPCs are made available -// as separate RPCs. These use the same request/response protos. -service CertificateManagement { - - // Rotate will replace an existing Certificate on the target by creating a - // new CSR request and placing the new Certificate based on the CSR on the - // target. If the stream is broken or any steps in the process fail the - // target must rollback to the original Certificate. - // - // The following describes the sequence of messages that must be exchanged - // in the Rotate() RPC. - // - // Sequence of expected messages: - // Case 1: When Target generates the CSR. - // - // Step 1: Start the stream - // Client <---- Rotate() RPC stream begin ------> Target - // - // Step 2: CSR - // Client -----> GenerateCSRRequest----> Target - // Client <----- GenerateCSRResponse <--- Target - // - // Step 3: Certificate Signing - // Client gets the certificate signed by the CA. - // - // Step 4: Send Certificate to Target. - // Client --> LoadCertificateRequest ----> Target - // Client <-- LoadCertificateResponse <--- Target - // - // Step 5: Test/Validation by the client. - // This step should be to create a new connection to the target using - // The new certificate and validate that the certificate works. - // Once verfied, the client will then proceed to finalize the rotation. - // If the new connection cannot be completed the client will cancel the - // RPC thereby forcing the target to rollback the certificate. - // - // Step 6: Final commit. - // Client ---> FinalizeRequest ----> Target - // - // - // Case 2: When Client generates the CSR. - // Step 1: Start the stream - // Client <---- Rotate() RPC stream begin ----> Target - // - // Step 2: CSR - // Client generates its own certificate. - // - // Step 3: Certificate Signing - // Client gets the certificate signed by the CA. - // - // Step 4: Send Certificate to Target. - // Client ---> LoadCertificateRequest ----> Target - // Client <--- LoadCertificateResponse <--- Target - // - // Step 5: Test/Validation by the client. - // - // Step 6: Final commit. - // Client ---> FinalizeRequest ----> Target - rpc Rotate(stream RotateCertificateRequest) - returns (stream RotateCertificateResponse) { - option deprecated = true; - }; - - // Install will put a new Certificate on the target by creating a new CSR - // request and placing the new Certificate based on the CSR on the target.The - // new Certificate will be associated with a new Certificate Id on the target. - // If the target has a pre existing Certificate with the given Certificate Id, - // the operation should fail. - // If the stream is broken or any steps in the process fail the target must - // revert any changes in state. - // - // The following describes the sequence of messages that must be exchanged - // in the Install() RPC. - // - // Sequence of expected messages: - // Case 1: When Target generates the CSR-------------------------: - // - // Step 1: Start the stream - // Client <---- Install() RPC stream begin ------> Target - // - // Step 2: CSR - // Client -----> GenerateCSRRequest() ----> Target - // Client <---- GenerateCSRResponse() <---- Target - // - // Step 3: Certificate Signing - // Client gets the certificate signed by the CA. - // - // Step 4: Send Certificate to Target. - // Client -> LoadCertificateRequest() ----> Target - // Client <- LoadCertificateResponse() <--- Target - // - // Case 2: When Client generates the CSR-------------------------: - // Step 1: Start the stream - // Client <---- Install() RPC stream begin ------> Target - // - // Step 2: CSR - // Client generates its own certificate. - // - // Step 3: Certificate Signing - // Client gets the certificate signed by the CA. - // - // Step 4: Send Certificate to Target. - // Client -> LoadCertificateRequest() ----> Target - // Client <- LoadCertificateResponse() <--- Target - // - rpc Install(stream InstallCertificateRequest) - returns (stream InstallCertificateResponse) { - option deprecated = true; - }; - - // When credentials are generated on the device, generates a keypair and - // returns the Certificate Signing Request (CSR). The CSR has the public key, - // which when signed by the CA, becomes the Certificate. - rpc GenerateCSR(GenerateCSRRequest) returns (GenerateCSRResponse) { - option deprecated = true; - }; - - // Loads a certificate signed by a Certificate Authority (CA). - rpc LoadCertificate(LoadCertificateRequest) - returns (LoadCertificateResponse) { - option deprecated = true; - }; - - // Loads a bundle of CA certificates. - rpc LoadCertificateAuthorityBundle(LoadCertificateAuthorityBundleRequest) - returns (LoadCertificateAuthorityBundleResponse) { - option deprecated = true; - }; - - // An RPC to get the certificates on the target. - rpc GetCertificates(GetCertificatesRequest) - returns (GetCertificatesResponse) { - option deprecated = true; - }; - - // An RPC to revoke specific certificates. - // If a certificate is not present on the target, the request should silently - // succeed. Revoking a certificate should render the existing certificate - // unusable by any endpoints. - rpc RevokeCertificates(RevokeCertificatesRequest) - returns (RevokeCertificatesResponse) { - option deprecated = true; - }; - - // An RPC to ask a target if it can generate a Certificate. - rpc CanGenerateCSR(CanGenerateCSRRequest) returns (CanGenerateCSRResponse) { - option deprecated = true; - }; -} - -// Request messages to rotate existing certificates on the target. -message RotateCertificateRequest { - // Request Messages. - oneof rotate_request { - GenerateCSRRequest generate_csr = 1; - LoadCertificateRequest load_certificate = 2; - FinalizeRequest finalize_rotation = 3; - } -} - -// Response Messages from the target. -message RotateCertificateResponse { - // Response messages. - oneof rotate_response { - GenerateCSRResponse generated_csr = 1; - LoadCertificateResponse load_certificate = 2; - } -} - -// Request messages to install new certificates on the target. -message InstallCertificateRequest { - // Request Messages. - oneof install_request { - GenerateCSRRequest generate_csr = 1; - LoadCertificateRequest load_certificate = 2; - } -} - -// Response Messages from the target for the InstallCertificateRequest. -message InstallCertificateResponse { - // Response messages. - oneof install_response { - GenerateCSRResponse generated_csr = 1; - LoadCertificateResponse load_certificate = 2; - } -} - -// Request to generate the CSR. -// When this request is made for rotating an existing certificate as part of the -// Rotate() RPC, then the target must ensure that the "certificate_id" is -// already created and exists on the target. If the Certificate Rotation -// proceeds to load the certificate, it must associate the new certificate with -// the previously created "certificate_id". -// -// When this request is made for installing a completely new certificate as part -// of the Install() RPC , then the target must ensure that the "certificate_id" -// is completely new and no entities on the target are should be bound to this -// certificate_id. If any existing certificate matches the certificate_id, then -// this request should fail. -// -// If there is another ongoing Rotate/Install RPC with the same certificate_id, -// the GenerateCSRRequest should fail. -message GenerateCSRRequest { - // Parameters for creating a CSR. - CSRParams csr_params = 1; - // The certificate id with which this CSR will be associated. The target - // configuration should bind an entity which wants to use a certificate to - // the certificate_id it should use. - string certificate_id = 2; -} - -// Parameters to be used when generating a Certificate Signing Request. -message CSRParams { - // The type of certificate which will be associated for this CSR. - CertificateType type = 1; - - // Minimum size of the key to be used by the target when generating a - // public/private key pair. - uint32 min_key_size = 2; - - // If provided, the target must use the provided key type. If the target - // cannot use the algorithm specified in the key_type, it should cancel the - // stream with an Unimplemented error. - KeyType key_type = 3; - - // --- common set of parameters applicable for any type of certificate --- // - string common_name = 4; // e.g "device.corp.google.com" - string country = 5; // e.g "US" - string state = 6; // e.g "CA" - string city = 7; // e.g "Mountain View" - string organization = 8; // e.g "Google" - string organizational_unit = 9; // e.g "Security" - string ip_address = 10; - string email_id = 11; - - // TODO(lokagarw): Define a way to add any other parameters/extensions to be - // used for generating the CSR depending upon the type of certificate being - // requested. -} - -// GenerateCSRResponse contains the CSR associated with the Certificate ID -// supplied in the GenerateCSRRequest. When a Certificate is subsequently -// installed on the target in the same streaming RPC session, it must be -// associated to that Certificate ID. -// -// An Unimplemented error will be returned if the target cannot generate a CSR -// as per the request. In this case, the caller must generate its own key pair. -message GenerateCSRResponse { - CSR csr = 1; -} - -// LoadCertificateRequest instructs the target to store the given certificate. -// -// Case 1: Target Generated CSR and Key Pair. -// If the target generated the CSR (and the public/private key pair) during the -// GenerateCSR request, then the target must associate the certificate with the -// certificate ID specified in the preceding GenerateCSR request. -// -// Case 2: Externally Generated Key Pair. -// If the target can not generate a CSR, then the public/private key pair is -// generated externally. In this case provide the target with the key pair, -// and the certificate_id to be associated with the new certificate. -// -// If there is another ongoing Rotate/Install RPC with the same certificate_id, -// the LoadCertificateRequest must fail. -message LoadCertificateRequest { - // The certificate to be Loaded on the target. - Certificate certificate = 1; - - // The key pair to be used with the certificate. This is provided in the event - // that the target cannot generate a CSR (and the corresponding public/private - // keys). - KeyPair key_pair = 2; - - // Certificate Id of the above certificate. This is to be provided only when - // there is an externally generated key pair. - string certificate_id = 3; - - // Optional bundle of CA certificates. When not empty, the provided - // certificates should squash the existing bundle. This field provides a - // simplified means to provision a CA bundle that can be used to validate - // other peer's certificates. - // To improve performance in the Target, certificates can be ordered. - // Groups of chained certificates should be last, where within, the root - // certificate is the last one. E.g.: - // CertA, CertB, CertB-Root, CertC, CertC-Intermediate, CertC-Root - repeated Certificate ca_certificates = 4; -} - -// Response from target after Loading a Certificate. -// If the target could not load the certificate, it must end the RPC stream with -// a suitable RPC error about why the Certificate was not loaded. -message LoadCertificateResponse { -} - -// Bundle of CA certificates. Same as LoadCertificateRequest::ca_certificates. -message LoadCertificateAuthorityBundleRequest { - // Squashes the existing certificate bundle. - // To improve performance in the Target, certificates can be ordered. - // Groups of chained certificates should be last, where within, the root - // certificate is the last one. E.g.: - // CertA, CertB, CertB-Root, CertC, CertC-Intermediate, CertC-Root - repeated Certificate ca_certificates = 1; -} - -// Response from target after Loading a certificate authority bundle. -// If the target could not load the certificates, it must end the RPC stream -// with a suitable RPC error about why the Certificate was not loaded. -message LoadCertificateAuthorityBundleResponse { -} - -// A Finalize message is sent to the target to confirm the Rotation of -// the certificate and that the certificate should not be rolled back when -// the RPC concludes. The certificate must be rolled back if the target returns -// an error after receiving a Finalize message. -message FinalizeRequest { -} - -// The request to query all the certificates on the target. -message GetCertificatesRequest { -} - -// Response from the target about the certificates that exist on the target what -// what is using them. -message GetCertificatesResponse { - repeated CertificateInfo certificate_info = 1; -} - -message CertificateInfo { - string certificate_id = 1; - Certificate certificate = 2; - - // List of endpoints using this certificate. - repeated Endpoint endpoints = 3; - - // System modification time when the certificate was installed/rotated in - // nanoseconds since epoch. - int64 modification_time = 4; -} - -message RevokeCertificatesRequest { - // Certificates to revoke. - repeated string certificate_id = 1; -} - -message RevokeCertificatesResponse { - // List of certificates successfully revoked. - repeated string revoked_certificate_id = 1; - - // List of errors why certain certificates could not be revoked. - repeated CertificateRevocationError certificate_revocation_error = 2; -} - -// An error message indicating why a certificate id could not be revoked. -message CertificateRevocationError { - string certificate_id = 1; - string error_message = 2; -} - -// A request to ask the target if it can generate key pairs. -message CanGenerateCSRRequest { - KeyType key_type = 1; - CertificateType certificate_type = 2; - uint32 key_size = 3; -} - -// Response from the target about whether it can generate a CSR with the given -// parameters. -message CanGenerateCSRResponse { - bool can_generate = 4; -} - -// Types of certificates. -enum CertificateType { - // 1 - 500 for public use. - // 501 onwards for private use. - CT_UNKNOWN = 0; - CT_X509 = 1; -} - -// A certificate. -message Certificate { - // Type of certificate. - CertificateType type = 1; - - // Actual certificate. - // The exact encoding depends upon the type of certificate. - // for X509, this should be a PEM encoded Certificate. - bytes certificate = 2; -} - -// A Certificate Signing Request. -message CSR { - // Type of certificate. - CertificateType type = 1; - - // Bytes representing the CSR. - // The exact encoding depends upon the type of certificate requested. - // for X509: This should be the PEM encoded CSR. - bytes csr = 2; -} - -// A message representing a pair of public/private keys. -message KeyPair { - bytes private_key = 1; - bytes public_key = 2; -} - -// Algorithm to be used for generation the key pair. -enum KeyType { - // 1 - 500, for known types. - // 501 and onwards for private use. - KT_UNKNOWN = 0; - KT_RSA = 1; -} - -// An endpoint represents an entity on the target which can use a certificate. -message Endpoint { - // Type of endpoint that can use a cert. This list is to be extended based on - // conversation with vendors. - enum Type { - EP_UNSPECIFIED = 0; - EP_IPSEC_TUNNEL = 1; - EP_DAEMON = 2; - } - Type type = 1; - - // Human readable identifier for an endpoint. - string endpoint = 2; -} diff --git a/src/sonic-framework/gnoi/cert/cert_grpc.pb.go b/src/sonic-framework/gnoi/cert/cert_grpc.pb.go deleted file mode 100755 index a72031b3fecb..000000000000 --- a/src/sonic-framework/gnoi/cert/cert_grpc.pb.go +++ /dev/null @@ -1,446 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.21.10 -// source: cert/cert.proto - -package cert - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// CertificateManagementClient is the client API for CertificateManagement service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type CertificateManagementClient interface { - // Deprecated: Do not use. - Rotate(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_RotateClient, error) - // Deprecated: Do not use. - Install(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_InstallClient, error) - // Deprecated: Do not use. - GenerateCSR(ctx context.Context, in *GenerateCSRRequest, opts ...grpc.CallOption) (*GenerateCSRResponse, error) - // Deprecated: Do not use. - LoadCertificate(ctx context.Context, in *LoadCertificateRequest, opts ...grpc.CallOption) (*LoadCertificateResponse, error) - // Deprecated: Do not use. - LoadCertificateAuthorityBundle(ctx context.Context, in *LoadCertificateAuthorityBundleRequest, opts ...grpc.CallOption) (*LoadCertificateAuthorityBundleResponse, error) - // Deprecated: Do not use. - GetCertificates(ctx context.Context, in *GetCertificatesRequest, opts ...grpc.CallOption) (*GetCertificatesResponse, error) - // Deprecated: Do not use. - RevokeCertificates(ctx context.Context, in *RevokeCertificatesRequest, opts ...grpc.CallOption) (*RevokeCertificatesResponse, error) - // Deprecated: Do not use. - CanGenerateCSR(ctx context.Context, in *CanGenerateCSRRequest, opts ...grpc.CallOption) (*CanGenerateCSRResponse, error) -} - -type certificateManagementClient struct { - cc grpc.ClientConnInterface -} - -func NewCertificateManagementClient(cc grpc.ClientConnInterface) CertificateManagementClient { - return &certificateManagementClient{cc} -} - -// Deprecated: Do not use. -func (c *certificateManagementClient) Rotate(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_RotateClient, error) { - stream, err := c.cc.NewStream(ctx, &CertificateManagement_ServiceDesc.Streams[0], "/gnoi.certificate.CertificateManagement/Rotate", opts...) - if err != nil { - return nil, err - } - x := &certificateManagementRotateClient{stream} - return x, nil -} - -type CertificateManagement_RotateClient interface { - Send(*RotateCertificateRequest) error - Recv() (*RotateCertificateResponse, error) - grpc.ClientStream -} - -type certificateManagementRotateClient struct { - grpc.ClientStream -} - -func (x *certificateManagementRotateClient) Send(m *RotateCertificateRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *certificateManagementRotateClient) Recv() (*RotateCertificateResponse, error) { - m := new(RotateCertificateResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// Deprecated: Do not use. -func (c *certificateManagementClient) Install(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_InstallClient, error) { - stream, err := c.cc.NewStream(ctx, &CertificateManagement_ServiceDesc.Streams[1], "/gnoi.certificate.CertificateManagement/Install", opts...) - if err != nil { - return nil, err - } - x := &certificateManagementInstallClient{stream} - return x, nil -} - -type CertificateManagement_InstallClient interface { - Send(*InstallCertificateRequest) error - Recv() (*InstallCertificateResponse, error) - grpc.ClientStream -} - -type certificateManagementInstallClient struct { - grpc.ClientStream -} - -func (x *certificateManagementInstallClient) Send(m *InstallCertificateRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *certificateManagementInstallClient) Recv() (*InstallCertificateResponse, error) { - m := new(InstallCertificateResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// Deprecated: Do not use. -func (c *certificateManagementClient) GenerateCSR(ctx context.Context, in *GenerateCSRRequest, opts ...grpc.CallOption) (*GenerateCSRResponse, error) { - out := new(GenerateCSRResponse) - err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/GenerateCSR", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Deprecated: Do not use. -func (c *certificateManagementClient) LoadCertificate(ctx context.Context, in *LoadCertificateRequest, opts ...grpc.CallOption) (*LoadCertificateResponse, error) { - out := new(LoadCertificateResponse) - err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/LoadCertificate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Deprecated: Do not use. -func (c *certificateManagementClient) LoadCertificateAuthorityBundle(ctx context.Context, in *LoadCertificateAuthorityBundleRequest, opts ...grpc.CallOption) (*LoadCertificateAuthorityBundleResponse, error) { - out := new(LoadCertificateAuthorityBundleResponse) - err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/LoadCertificateAuthorityBundle", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Deprecated: Do not use. -func (c *certificateManagementClient) GetCertificates(ctx context.Context, in *GetCertificatesRequest, opts ...grpc.CallOption) (*GetCertificatesResponse, error) { - out := new(GetCertificatesResponse) - err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/GetCertificates", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Deprecated: Do not use. -func (c *certificateManagementClient) RevokeCertificates(ctx context.Context, in *RevokeCertificatesRequest, opts ...grpc.CallOption) (*RevokeCertificatesResponse, error) { - out := new(RevokeCertificatesResponse) - err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/RevokeCertificates", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Deprecated: Do not use. -func (c *certificateManagementClient) CanGenerateCSR(ctx context.Context, in *CanGenerateCSRRequest, opts ...grpc.CallOption) (*CanGenerateCSRResponse, error) { - out := new(CanGenerateCSRResponse) - err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/CanGenerateCSR", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// CertificateManagementServer is the server API for CertificateManagement service. -// All implementations must embed UnimplementedCertificateManagementServer -// for forward compatibility -type CertificateManagementServer interface { - // Deprecated: Do not use. - Rotate(CertificateManagement_RotateServer) error - // Deprecated: Do not use. - Install(CertificateManagement_InstallServer) error - // Deprecated: Do not use. - GenerateCSR(context.Context, *GenerateCSRRequest) (*GenerateCSRResponse, error) - // Deprecated: Do not use. - LoadCertificate(context.Context, *LoadCertificateRequest) (*LoadCertificateResponse, error) - // Deprecated: Do not use. - LoadCertificateAuthorityBundle(context.Context, *LoadCertificateAuthorityBundleRequest) (*LoadCertificateAuthorityBundleResponse, error) - // Deprecated: Do not use. - GetCertificates(context.Context, *GetCertificatesRequest) (*GetCertificatesResponse, error) - // Deprecated: Do not use. - RevokeCertificates(context.Context, *RevokeCertificatesRequest) (*RevokeCertificatesResponse, error) - // Deprecated: Do not use. - CanGenerateCSR(context.Context, *CanGenerateCSRRequest) (*CanGenerateCSRResponse, error) - mustEmbedUnimplementedCertificateManagementServer() -} - -// UnimplementedCertificateManagementServer must be embedded to have forward compatible implementations. -type UnimplementedCertificateManagementServer struct { -} - -func (UnimplementedCertificateManagementServer) Rotate(CertificateManagement_RotateServer) error { - return status.Errorf(codes.Unimplemented, "method Rotate not implemented") -} -func (UnimplementedCertificateManagementServer) Install(CertificateManagement_InstallServer) error { - return status.Errorf(codes.Unimplemented, "method Install not implemented") -} -func (UnimplementedCertificateManagementServer) GenerateCSR(context.Context, *GenerateCSRRequest) (*GenerateCSRResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GenerateCSR not implemented") -} -func (UnimplementedCertificateManagementServer) LoadCertificate(context.Context, *LoadCertificateRequest) (*LoadCertificateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method LoadCertificate not implemented") -} -func (UnimplementedCertificateManagementServer) LoadCertificateAuthorityBundle(context.Context, *LoadCertificateAuthorityBundleRequest) (*LoadCertificateAuthorityBundleResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method LoadCertificateAuthorityBundle not implemented") -} -func (UnimplementedCertificateManagementServer) GetCertificates(context.Context, *GetCertificatesRequest) (*GetCertificatesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetCertificates not implemented") -} -func (UnimplementedCertificateManagementServer) RevokeCertificates(context.Context, *RevokeCertificatesRequest) (*RevokeCertificatesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RevokeCertificates not implemented") -} -func (UnimplementedCertificateManagementServer) CanGenerateCSR(context.Context, *CanGenerateCSRRequest) (*CanGenerateCSRResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CanGenerateCSR not implemented") -} -func (UnimplementedCertificateManagementServer) mustEmbedUnimplementedCertificateManagementServer() {} - -// UnsafeCertificateManagementServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to CertificateManagementServer will -// result in compilation errors. -type UnsafeCertificateManagementServer interface { - mustEmbedUnimplementedCertificateManagementServer() -} - -func RegisterCertificateManagementServer(s grpc.ServiceRegistrar, srv CertificateManagementServer) { - s.RegisterService(&CertificateManagement_ServiceDesc, srv) -} - -func _CertificateManagement_Rotate_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(CertificateManagementServer).Rotate(&certificateManagementRotateServer{stream}) -} - -type CertificateManagement_RotateServer interface { - Send(*RotateCertificateResponse) error - Recv() (*RotateCertificateRequest, error) - grpc.ServerStream -} - -type certificateManagementRotateServer struct { - grpc.ServerStream -} - -func (x *certificateManagementRotateServer) Send(m *RotateCertificateResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *certificateManagementRotateServer) Recv() (*RotateCertificateRequest, error) { - m := new(RotateCertificateRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _CertificateManagement_Install_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(CertificateManagementServer).Install(&certificateManagementInstallServer{stream}) -} - -type CertificateManagement_InstallServer interface { - Send(*InstallCertificateResponse) error - Recv() (*InstallCertificateRequest, error) - grpc.ServerStream -} - -type certificateManagementInstallServer struct { - grpc.ServerStream -} - -func (x *certificateManagementInstallServer) Send(m *InstallCertificateResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *certificateManagementInstallServer) Recv() (*InstallCertificateRequest, error) { - m := new(InstallCertificateRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _CertificateManagement_GenerateCSR_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GenerateCSRRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CertificateManagementServer).GenerateCSR(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.certificate.CertificateManagement/GenerateCSR", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CertificateManagementServer).GenerateCSR(ctx, req.(*GenerateCSRRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CertificateManagement_LoadCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LoadCertificateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CertificateManagementServer).LoadCertificate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.certificate.CertificateManagement/LoadCertificate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CertificateManagementServer).LoadCertificate(ctx, req.(*LoadCertificateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CertificateManagement_LoadCertificateAuthorityBundle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LoadCertificateAuthorityBundleRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CertificateManagementServer).LoadCertificateAuthorityBundle(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.certificate.CertificateManagement/LoadCertificateAuthorityBundle", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CertificateManagementServer).LoadCertificateAuthorityBundle(ctx, req.(*LoadCertificateAuthorityBundleRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CertificateManagement_GetCertificates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetCertificatesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CertificateManagementServer).GetCertificates(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.certificate.CertificateManagement/GetCertificates", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CertificateManagementServer).GetCertificates(ctx, req.(*GetCertificatesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CertificateManagement_RevokeCertificates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RevokeCertificatesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CertificateManagementServer).RevokeCertificates(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.certificate.CertificateManagement/RevokeCertificates", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CertificateManagementServer).RevokeCertificates(ctx, req.(*RevokeCertificatesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CertificateManagement_CanGenerateCSR_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CanGenerateCSRRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CertificateManagementServer).CanGenerateCSR(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.certificate.CertificateManagement/CanGenerateCSR", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CertificateManagementServer).CanGenerateCSR(ctx, req.(*CanGenerateCSRRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// CertificateManagement_ServiceDesc is the grpc.ServiceDesc for CertificateManagement service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var CertificateManagement_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.certificate.CertificateManagement", - HandlerType: (*CertificateManagementServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GenerateCSR", - Handler: _CertificateManagement_GenerateCSR_Handler, - }, - { - MethodName: "LoadCertificate", - Handler: _CertificateManagement_LoadCertificate_Handler, - }, - { - MethodName: "LoadCertificateAuthorityBundle", - Handler: _CertificateManagement_LoadCertificateAuthorityBundle_Handler, - }, - { - MethodName: "GetCertificates", - Handler: _CertificateManagement_GetCertificates_Handler, - }, - { - MethodName: "RevokeCertificates", - Handler: _CertificateManagement_RevokeCertificates_Handler, - }, - { - MethodName: "CanGenerateCSR", - Handler: _CertificateManagement_CanGenerateCSR_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "Rotate", - Handler: _CertificateManagement_Rotate_Handler, - ServerStreams: true, - ClientStreams: true, - }, - { - StreamName: "Install", - Handler: _CertificateManagement_Install_Handler, - ServerStreams: true, - ClientStreams: true, - }, - }, - Metadata: "cert/cert.proto", -} diff --git a/src/sonic-framework/gnoi/common.bzl b/src/sonic-framework/gnoi/common.bzl deleted file mode 100644 index b40ec14a1382..000000000000 --- a/src/sonic-framework/gnoi/common.bzl +++ /dev/null @@ -1,29 +0,0 @@ -load("@io_bazel_rules_go//proto:compiler.bzl", "go_proto_compiler") -load("@io_bazel_rules_go//proto/wkt:well_known_types.bzl", "PROTO_RUNTIME_DEPS", "WELL_KNOWN_TYPES_APIV2") - -def use_new_compilers(): - go_proto_compiler( - name = "go_protoc_gen_go", - options = [ - "paths=source_relative", - ], - plugin = "@org_golang_google_protobuf//cmd/protoc-gen-go", - suffix = ".pb.go", - visibility = ["//visibility:public"], - deps = PROTO_RUNTIME_DEPS + WELL_KNOWN_TYPES_APIV2, - ) - go_proto_compiler( - name = "go_protoc_gen_go_grpc", - options = [ - "paths=source_relative", - ], - plugin = "@org_golang_google_grpc_cmd_protoc_gen_go_grpc//:protoc-gen-go-grpc", - suffix = "_grpc.pb.go", - visibility = ["//visibility:public"], - deps = PROTO_RUNTIME_DEPS + [ - "@org_golang_google_grpc//:go_default_library", - "@org_golang_google_grpc//codes:go_default_library", - "@org_golang_google_grpc//status:go_default_library", - ], - ) - diff --git a/src/sonic-framework/gnoi/common/BUILD.bazel b/src/sonic-framework/gnoi/common/BUILD.bazel deleted file mode 100644 index 13e56a8f8943..000000000000 --- a/src/sonic-framework/gnoi/common/BUILD.bazel +++ /dev/null @@ -1,55 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") -load("//:common.bzl", "use_new_compilers") - -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# 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. - -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -use_new_compilers() - -proto_library( - name = "common_proto", - srcs = ["common.proto"], - import_prefix = "github.com/openconfig/gnoi", - deps = ["//types:types_proto"], -) - -cc_proto_library( - name = "common_cc_proto", - deps = [":common_proto"], -) - -go_proto_library( - name = "common_go_proto", - compilers = [ - "go_protoc_gen_go", - "go_protoc_gen_go_grpc", - ], - importpath = "github.com/openconfig/gnoi/common", - proto = ":common_proto", - deps = ["//types"], -) - -go_library( - name = "common", - embed = [":common_go_proto"], - importpath = "github.com/openconfig/gnoi/common", -) diff --git a/src/sonic-framework/gnoi/common/common.pb.go b/src/sonic-framework/gnoi/common/common.pb.go deleted file mode 100644 index 76daf84fca81..000000000000 --- a/src/sonic-framework/gnoi/common/common.pb.go +++ /dev/null @@ -1,259 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v3.21.10 -// source: github.com/openconfig/gnoi/common/common.proto - -package common - -import ( - types "github.com/openconfig/gnoi/types" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type RemoteDownload_Protocol int32 - -const ( - RemoteDownload_UNKNOWN RemoteDownload_Protocol = 0 - RemoteDownload_SFTP RemoteDownload_Protocol = 1 - RemoteDownload_HTTP RemoteDownload_Protocol = 2 - RemoteDownload_HTTPS RemoteDownload_Protocol = 3 - RemoteDownload_SCP RemoteDownload_Protocol = 4 -) - -// Enum value maps for RemoteDownload_Protocol. -var ( - RemoteDownload_Protocol_name = map[int32]string{ - 0: "UNKNOWN", - 1: "SFTP", - 2: "HTTP", - 3: "HTTPS", - 4: "SCP", - } - RemoteDownload_Protocol_value = map[string]int32{ - "UNKNOWN": 0, - "SFTP": 1, - "HTTP": 2, - "HTTPS": 3, - "SCP": 4, - } -) - -func (x RemoteDownload_Protocol) Enum() *RemoteDownload_Protocol { - p := new(RemoteDownload_Protocol) - *p = x - return p -} - -func (x RemoteDownload_Protocol) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (RemoteDownload_Protocol) Descriptor() protoreflect.EnumDescriptor { - return file_github_com_openconfig_gnoi_common_common_proto_enumTypes[0].Descriptor() -} - -func (RemoteDownload_Protocol) Type() protoreflect.EnumType { - return &file_github_com_openconfig_gnoi_common_common_proto_enumTypes[0] -} - -func (x RemoteDownload_Protocol) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use RemoteDownload_Protocol.Descriptor instead. -func (RemoteDownload_Protocol) EnumDescriptor() ([]byte, []int) { - return file_github_com_openconfig_gnoi_common_common_proto_rawDescGZIP(), []int{0, 0} -} - -type RemoteDownload struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - Protocol RemoteDownload_Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=gnoi.common.RemoteDownload_Protocol" json:"protocol,omitempty"` - Credentials *types.Credentials `protobuf:"bytes,3,opt,name=credentials,proto3" json:"credentials,omitempty"` - SourceAddress string `protobuf:"bytes,4,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"` - SourceVrf string `protobuf:"bytes,5,opt,name=source_vrf,json=sourceVrf,proto3" json:"source_vrf,omitempty"` -} - -func (x *RemoteDownload) Reset() { - *x = RemoteDownload{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_openconfig_gnoi_common_common_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RemoteDownload) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RemoteDownload) ProtoMessage() {} - -func (x *RemoteDownload) ProtoReflect() protoreflect.Message { - mi := &file_github_com_openconfig_gnoi_common_common_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RemoteDownload.ProtoReflect.Descriptor instead. -func (*RemoteDownload) Descriptor() ([]byte, []int) { - return file_github_com_openconfig_gnoi_common_common_proto_rawDescGZIP(), []int{0} -} - -func (x *RemoteDownload) GetPath() string { - if x != nil { - return x.Path - } - return "" -} - -func (x *RemoteDownload) GetProtocol() RemoteDownload_Protocol { - if x != nil { - return x.Protocol - } - return RemoteDownload_UNKNOWN -} - -func (x *RemoteDownload) GetCredentials() *types.Credentials { - if x != nil { - return x.Credentials - } - return nil -} - -func (x *RemoteDownload) GetSourceAddress() string { - if x != nil { - return x.SourceAddress - } - return "" -} - -func (x *RemoteDownload) GetSourceVrf() string { - if x != nil { - return x.SourceVrf - } - return "" -} - -var File_github_com_openconfig_gnoi_common_common_proto protoreflect.FileDescriptor - -var file_github_com_openconfig_gnoi_common_common_proto_rawDesc = []byte{ - 0x0a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, - 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x63, 0x6f, 0x6d, - 0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x0b, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x1a, 0x2c, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa8, 0x02, 0x0a, 0x0e, - 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x12, - 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, - 0x74, 0x68, 0x12, 0x40, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, - 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, - 0x64, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x39, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x61, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, - 0x6c, 0x73, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x12, - 0x25, 0x0a, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x5f, 0x76, 0x72, 0x66, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x56, 0x72, 0x66, 0x22, 0x3f, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, - 0x6c, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x08, - 0x0a, 0x04, 0x53, 0x46, 0x54, 0x50, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x54, 0x54, 0x50, - 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x48, 0x54, 0x54, 0x50, 0x53, 0x10, 0x03, 0x12, 0x07, 0x0a, - 0x03, 0x53, 0x43, 0x50, 0x10, 0x04, 0x42, 0x23, 0x5a, 0x21, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, - 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, -} - -var ( - file_github_com_openconfig_gnoi_common_common_proto_rawDescOnce sync.Once - file_github_com_openconfig_gnoi_common_common_proto_rawDescData = file_github_com_openconfig_gnoi_common_common_proto_rawDesc -) - -func file_github_com_openconfig_gnoi_common_common_proto_rawDescGZIP() []byte { - file_github_com_openconfig_gnoi_common_common_proto_rawDescOnce.Do(func() { - file_github_com_openconfig_gnoi_common_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_openconfig_gnoi_common_common_proto_rawDescData) - }) - return file_github_com_openconfig_gnoi_common_common_proto_rawDescData -} - -var file_github_com_openconfig_gnoi_common_common_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_github_com_openconfig_gnoi_common_common_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_github_com_openconfig_gnoi_common_common_proto_goTypes = []interface{}{ - (RemoteDownload_Protocol)(0), // 0: gnoi.common.RemoteDownload.Protocol - (*RemoteDownload)(nil), // 1: gnoi.common.RemoteDownload - (*types.Credentials)(nil), // 2: gnoi.types.Credentials -} -var file_github_com_openconfig_gnoi_common_common_proto_depIdxs = []int32{ - 0, // 0: gnoi.common.RemoteDownload.protocol:type_name -> gnoi.common.RemoteDownload.Protocol - 2, // 1: gnoi.common.RemoteDownload.credentials:type_name -> gnoi.types.Credentials - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_github_com_openconfig_gnoi_common_common_proto_init() } -func file_github_com_openconfig_gnoi_common_common_proto_init() { - if File_github_com_openconfig_gnoi_common_common_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_github_com_openconfig_gnoi_common_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoteDownload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_github_com_openconfig_gnoi_common_common_proto_rawDesc, - NumEnums: 1, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_github_com_openconfig_gnoi_common_common_proto_goTypes, - DependencyIndexes: file_github_com_openconfig_gnoi_common_common_proto_depIdxs, - EnumInfos: file_github_com_openconfig_gnoi_common_common_proto_enumTypes, - MessageInfos: file_github_com_openconfig_gnoi_common_common_proto_msgTypes, - }.Build() - File_github_com_openconfig_gnoi_common_common_proto = out.File - file_github_com_openconfig_gnoi_common_common_proto_rawDesc = nil - file_github_com_openconfig_gnoi_common_common_proto_goTypes = nil - file_github_com_openconfig_gnoi_common_common_proto_depIdxs = nil -} diff --git a/src/sonic-framework/gnoi/common/common.proto b/src/sonic-framework/gnoi/common/common.proto deleted file mode 100644 index 913c9fc6163d..000000000000 --- a/src/sonic-framework/gnoi/common/common.proto +++ /dev/null @@ -1,52 +0,0 @@ -// -// Copyright 2018 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.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 gnoi.common; - -import "types/types.proto"; - -option go_package = "github.com/openconfig/gnoi/common"; - -// RemoteDownload defines the details for a device to initiate a file transfer -// from or to a remote location. -message RemoteDownload { - // The path information containing where to download the data from or to. - // For HTTP(S), this will be the URL (i.e. foo.com/file.tbz2). - // For SFTP and SCP, this will be the address:/path/to/file - // (i.e. host.foo.com:/bar/baz). - string path = 1; - - enum Protocol { - UNKNOWN = 0; - SFTP = 1; - HTTP = 2; - HTTPS = 3; - SCP = 4; - } - Protocol protocol = 2; - - types.Credentials credentials = 3; - - // Optional source address used to initiate connections from the device. - // It can be either an IPv4 address or an IPv6 address, depending on the - // connection's destination address. - string source_address = 4; - - // Optional source vrf used to initiate connections from the device. - string source_vrf = 5; -} diff --git a/src/sonic-framework/gnoi/containerz/BUILD.bazel b/src/sonic-framework/gnoi/containerz/BUILD.bazel deleted file mode 100644 index 557125bb22a0..000000000000 --- a/src/sonic-framework/gnoi/containerz/BUILD.bazel +++ /dev/null @@ -1,70 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") -load("//:common.bzl", "use_new_compilers") - -#Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# 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. - -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -use_new_compilers() - -proto_library( - name = "containerz_proto", - srcs = ["containerz.proto"], - deps = [ - "//common:common_proto", - "//types:types_proto", - "@com_google_protobuf//:timestamp_proto", - "@go_googleapis//google/rpc:status_proto", - ], -) - -cc_proto_library( - name = "containerz_cc_proto", - deps = [":containerz_proto"], -) - -cc_grpc_library( - name = "containerz_cc_grpc_proto", - srcs = [":containerz_proto"], - grpc_only = True, - deps = [":containerz_cc_proto"], -) - -go_proto_library( - name = "containerz_go_proto", - compilers = [ - "go_protoc_gen_go", - "go_protoc_gen_go_grpc", - ], - importpath = "github.com/openconfig/gnoi/containerz", - proto = ":containerz_proto", - deps = [ - "//common", - "//types", - "@go_googleapis//google/rpc:status_go_proto", - ], -) - -go_library( - name = "containerz", - embed = [":containerz_go_proto"], - importpath = "github.com/openconfig/gnoi/containerz", -) diff --git a/src/sonic-framework/gnoi/containerz/README.md b/src/sonic-framework/gnoi/containerz/README.md deleted file mode 100644 index fe994b53f4e5..000000000000 --- a/src/sonic-framework/gnoi/containerz/README.md +++ /dev/null @@ -1,40 +0,0 @@ -# gNOI `Containerz` -**Contributors**: alshabib@google.com, robjs@google.com, -morrowc@google.com -**Last Updated**: 2024-05-06 - -## Background Documentation - -* [gNOI Repository](https://github.com/openconfig/gnoi) -* [gNOI `Containerz` service](https://github.com/openconfig/gnoi/tree/master/containerz) -* [gNOI `Containerz` Reference Implementation](https://github.com/openconfig/containerz) -* [gNOI `Containerz` Motivation and Design](https://github.com/openconfig/containerz/blob/master/doc/motivation.md) - -## Use Case and Purpose - -The purpose of `Containerz` is to allow container operations over gRPC. -`Containerz` is intended to abstract the underlying container runtime system -(e.g. docker, kubernetes, etc.) thereby ensuring a common operational model -irrespective of the underlying architecture. - -Recent advances (including the availability of g* APIs) in vendor network -operating systems enable custom code to be executed on network devices as docker -containers. Running software as containers on network devices requires new -infrastructure to manage the container’s lifecycle. While this infrastructure -largely exists in the compute world, it is currently not available for network -devices. Furthermore, it is not immediately evident that the same approach as -the compute world for managing containers is desirable given this new context -where we do not want to enable arbitrary code execution but rather only -sanctioned applications. - -Currently, the common approach for transferring a container to a device is via -proprietary or CLI methods. This process is not appropriate for production since -under no circumstances should an operator log into a device to make changes, it -is also inconvenient when testing in the lab as the entire manual process is -complex and error prone. - -Finally, utilising gRPC for container operations allows for reuse of the same -security infrastructure as gNMI, gRIBI, and other gNOI services. Without -`Containerz` each container runtime would need to either implement or be -configured with the appropriate security method. - diff --git a/src/sonic-framework/gnoi/containerz/containerz.pb.go b/src/sonic-framework/gnoi/containerz/containerz.pb.go deleted file mode 100644 index 634337649f8f..000000000000 --- a/src/sonic-framework/gnoi/containerz/containerz.pb.go +++ /dev/null @@ -1,4278 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v3.21.10 -// source: containerz/containerz.proto - -package containerz - -import ( - common "github.com/openconfig/gnoi/common" - _ "github.com/openconfig/gnoi/types" - status "google.golang.org/genproto/googleapis/rpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type Driver int32 - -const ( - Driver_DS_UNSPECIFIED Driver = 0 - Driver_DS_LOCAL Driver = 1 -) - -// Enum value maps for Driver. -var ( - Driver_name = map[int32]string{ - 0: "DS_UNSPECIFIED", - 1: "DS_LOCAL", - } - Driver_value = map[string]int32{ - "DS_UNSPECIFIED": 0, - "DS_LOCAL": 1, - } -) - -func (x Driver) Enum() *Driver { - p := new(Driver) - *p = x - return p -} - -func (x Driver) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Driver) Descriptor() protoreflect.EnumDescriptor { - return file_containerz_containerz_proto_enumTypes[0].Descriptor() -} - -func (Driver) Type() protoreflect.EnumType { - return &file_containerz_containerz_proto_enumTypes[0] -} - -func (x Driver) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Driver.Descriptor instead. -func (Driver) EnumDescriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{0} -} - -type RemoveImageResponse_Code int32 - -const ( - RemoveImageResponse_UNSPECIFIED RemoveImageResponse_Code = 0 - RemoveImageResponse_UNKNOWN RemoveImageResponse_Code = 1 - RemoveImageResponse_NOT_FOUND RemoveImageResponse_Code = 2 - RemoveImageResponse_RUNNING RemoveImageResponse_Code = 3 - RemoveImageResponse_SUCCESS RemoveImageResponse_Code = 4 -) - -// Enum value maps for RemoveImageResponse_Code. -var ( - RemoveImageResponse_Code_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "UNKNOWN", - 2: "NOT_FOUND", - 3: "RUNNING", - 4: "SUCCESS", - } - RemoveImageResponse_Code_value = map[string]int32{ - "UNSPECIFIED": 0, - "UNKNOWN": 1, - "NOT_FOUND": 2, - "RUNNING": 3, - "SUCCESS": 4, - } -) - -func (x RemoveImageResponse_Code) Enum() *RemoveImageResponse_Code { - p := new(RemoveImageResponse_Code) - *p = x - return p -} - -func (x RemoveImageResponse_Code) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (RemoveImageResponse_Code) Descriptor() protoreflect.EnumDescriptor { - return file_containerz_containerz_proto_enumTypes[1].Descriptor() -} - -func (RemoveImageResponse_Code) Type() protoreflect.EnumType { - return &file_containerz_containerz_proto_enumTypes[1] -} - -func (x RemoveImageResponse_Code) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use RemoveImageResponse_Code.Descriptor instead. -func (RemoveImageResponse_Code) EnumDescriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{8, 0} -} - -type RemoveContainerResponse_Code int32 - -const ( - RemoveContainerResponse_UNSPECIFIED RemoveContainerResponse_Code = 0 - RemoveContainerResponse_NOT_FOUND RemoveContainerResponse_Code = 1 - RemoveContainerResponse_RUNNING RemoveContainerResponse_Code = 2 - RemoveContainerResponse_SUCCESS RemoveContainerResponse_Code = 3 -) - -// Enum value maps for RemoveContainerResponse_Code. -var ( - RemoveContainerResponse_Code_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "NOT_FOUND", - 2: "RUNNING", - 3: "SUCCESS", - } - RemoveContainerResponse_Code_value = map[string]int32{ - "UNSPECIFIED": 0, - "NOT_FOUND": 1, - "RUNNING": 2, - "SUCCESS": 3, - } -) - -func (x RemoveContainerResponse_Code) Enum() *RemoveContainerResponse_Code { - p := new(RemoveContainerResponse_Code) - *p = x - return p -} - -func (x RemoveContainerResponse_Code) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (RemoveContainerResponse_Code) Descriptor() protoreflect.EnumDescriptor { - return file_containerz_containerz_proto_enumTypes[2].Descriptor() -} - -func (RemoveContainerResponse_Code) Type() protoreflect.EnumType { - return &file_containerz_containerz_proto_enumTypes[2] -} - -func (x RemoveContainerResponse_Code) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use RemoveContainerResponse_Code.Descriptor instead. -func (RemoveContainerResponse_Code) EnumDescriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{10, 0} -} - -type ListContainerResponse_Status int32 - -const ( - ListContainerResponse_UNSPECIFIED ListContainerResponse_Status = 0 - ListContainerResponse_STOPPED ListContainerResponse_Status = 1 - ListContainerResponse_RUNNING ListContainerResponse_Status = 2 - ListContainerResponse_PRESENT ListContainerResponse_Status = 3 - ListContainerResponse_NOT_FOUND ListContainerResponse_Status = 4 -) - -// Enum value maps for ListContainerResponse_Status. -var ( - ListContainerResponse_Status_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "STOPPED", - 2: "RUNNING", - 3: "PRESENT", - 4: "NOT_FOUND", - } - ListContainerResponse_Status_value = map[string]int32{ - "UNSPECIFIED": 0, - "STOPPED": 1, - "RUNNING": 2, - "PRESENT": 3, - "NOT_FOUND": 4, - } -) - -func (x ListContainerResponse_Status) Enum() *ListContainerResponse_Status { - p := new(ListContainerResponse_Status) - *p = x - return p -} - -func (x ListContainerResponse_Status) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ListContainerResponse_Status) Descriptor() protoreflect.EnumDescriptor { - return file_containerz_containerz_proto_enumTypes[3].Descriptor() -} - -func (ListContainerResponse_Status) Type() protoreflect.EnumType { - return &file_containerz_containerz_proto_enumTypes[3] -} - -func (x ListContainerResponse_Status) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ListContainerResponse_Status.Descriptor instead. -func (ListContainerResponse_Status) EnumDescriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{14, 0} -} - -type StartContainerRequest_Restart_Policy int32 - -const ( - StartContainerRequest_Restart_NONE StartContainerRequest_Restart_Policy = 0 - StartContainerRequest_Restart_ALWAYS StartContainerRequest_Restart_Policy = 1 - StartContainerRequest_Restart_UNLESS_STOPPED StartContainerRequest_Restart_Policy = 2 - StartContainerRequest_Restart_ON_FAILURE StartContainerRequest_Restart_Policy = 3 -) - -// Enum value maps for StartContainerRequest_Restart_Policy. -var ( - StartContainerRequest_Restart_Policy_name = map[int32]string{ - 0: "NONE", - 1: "ALWAYS", - 2: "UNLESS_STOPPED", - 3: "ON_FAILURE", - } - StartContainerRequest_Restart_Policy_value = map[string]int32{ - "NONE": 0, - "ALWAYS": 1, - "UNLESS_STOPPED": 2, - "ON_FAILURE": 3, - } -) - -func (x StartContainerRequest_Restart_Policy) Enum() *StartContainerRequest_Restart_Policy { - p := new(StartContainerRequest_Restart_Policy) - *p = x - return p -} - -func (x StartContainerRequest_Restart_Policy) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (StartContainerRequest_Restart_Policy) Descriptor() protoreflect.EnumDescriptor { - return file_containerz_containerz_proto_enumTypes[4].Descriptor() -} - -func (StartContainerRequest_Restart_Policy) Type() protoreflect.EnumType { - return &file_containerz_containerz_proto_enumTypes[4] -} - -func (x StartContainerRequest_Restart_Policy) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use StartContainerRequest_Restart_Policy.Descriptor instead. -func (StartContainerRequest_Restart_Policy) EnumDescriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{16, 3, 0} -} - -type StartError_Code int32 - -const ( - StartError_UNSPECIFIED StartError_Code = 0 - StartError_UNKNOWN StartError_Code = 1 - StartError_NOT_FOUND StartError_Code = 2 - StartError_PORT_USED StartError_Code = 3 -) - -// Enum value maps for StartError_Code. -var ( - StartError_Code_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "UNKNOWN", - 2: "NOT_FOUND", - 3: "PORT_USED", - } - StartError_Code_value = map[string]int32{ - "UNSPECIFIED": 0, - "UNKNOWN": 1, - "NOT_FOUND": 2, - "PORT_USED": 3, - } -) - -func (x StartError_Code) Enum() *StartError_Code { - p := new(StartError_Code) - *p = x - return p -} - -func (x StartError_Code) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (StartError_Code) Descriptor() protoreflect.EnumDescriptor { - return file_containerz_containerz_proto_enumTypes[5].Descriptor() -} - -func (StartError_Code) Type() protoreflect.EnumType { - return &file_containerz_containerz_proto_enumTypes[5] -} - -func (x StartError_Code) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use StartError_Code.Descriptor instead. -func (StartError_Code) EnumDescriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{19, 0} -} - -type StopContainerResponse_Code int32 - -const ( - StopContainerResponse_UNSPECIFIED StopContainerResponse_Code = 0 - StopContainerResponse_BUSY StopContainerResponse_Code = 1 - StopContainerResponse_NOT_FOUND StopContainerResponse_Code = 2 - StopContainerResponse_SUCCESS StopContainerResponse_Code = 3 -) - -// Enum value maps for StopContainerResponse_Code. -var ( - StopContainerResponse_Code_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "BUSY", - 2: "NOT_FOUND", - 3: "SUCCESS", - } - StopContainerResponse_Code_value = map[string]int32{ - "UNSPECIFIED": 0, - "BUSY": 1, - "NOT_FOUND": 2, - "SUCCESS": 3, - } -) - -func (x StopContainerResponse_Code) Enum() *StopContainerResponse_Code { - p := new(StopContainerResponse_Code) - *p = x - return p -} - -func (x StopContainerResponse_Code) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (StopContainerResponse_Code) Descriptor() protoreflect.EnumDescriptor { - return file_containerz_containerz_proto_enumTypes[6].Descriptor() -} - -func (StopContainerResponse_Code) Type() protoreflect.EnumType { - return &file_containerz_containerz_proto_enumTypes[6] -} - -func (x StopContainerResponse_Code) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use StopContainerResponse_Code.Descriptor instead. -func (StopContainerResponse_Code) EnumDescriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{21, 0} -} - -type UpdateError_Code int32 - -const ( - UpdateError_UNSPECIFIED UpdateError_Code = 0 - UpdateError_NOT_FOUND UpdateError_Code = 1 - UpdateError_PORT_USED UpdateError_Code = 2 - UpdateError_NOT_RUNNING UpdateError_Code = 3 - UpdateError_NOT_UPDATED UpdateError_Code = 4 - UpdateError_FAILURE UpdateError_Code = 5 -) - -// Enum value maps for UpdateError_Code. -var ( - UpdateError_Code_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "NOT_FOUND", - 2: "PORT_USED", - 3: "NOT_RUNNING", - 4: "NOT_UPDATED", - 5: "FAILURE", - } - UpdateError_Code_value = map[string]int32{ - "UNSPECIFIED": 0, - "NOT_FOUND": 1, - "PORT_USED": 2, - "NOT_RUNNING": 3, - "NOT_UPDATED": 4, - "FAILURE": 5, - } -) - -func (x UpdateError_Code) Enum() *UpdateError_Code { - p := new(UpdateError_Code) - *p = x - return p -} - -func (x UpdateError_Code) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (UpdateError_Code) Descriptor() protoreflect.EnumDescriptor { - return file_containerz_containerz_proto_enumTypes[7].Descriptor() -} - -func (UpdateError_Code) Type() protoreflect.EnumType { - return &file_containerz_containerz_proto_enumTypes[7] -} - -func (x UpdateError_Code) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use UpdateError_Code.Descriptor instead. -func (UpdateError_Code) EnumDescriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{25, 0} -} - -type LocalDriverOptions_Type int32 - -const ( - LocalDriverOptions_TYPE_UNSPECIFIED LocalDriverOptions_Type = 0 - LocalDriverOptions_TYPE_NONE LocalDriverOptions_Type = 1 -) - -// Enum value maps for LocalDriverOptions_Type. -var ( - LocalDriverOptions_Type_name = map[int32]string{ - 0: "TYPE_UNSPECIFIED", - 1: "TYPE_NONE", - } - LocalDriverOptions_Type_value = map[string]int32{ - "TYPE_UNSPECIFIED": 0, - "TYPE_NONE": 1, - } -) - -func (x LocalDriverOptions_Type) Enum() *LocalDriverOptions_Type { - p := new(LocalDriverOptions_Type) - *p = x - return p -} - -func (x LocalDriverOptions_Type) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (LocalDriverOptions_Type) Descriptor() protoreflect.EnumDescriptor { - return file_containerz_containerz_proto_enumTypes[8].Descriptor() -} - -func (LocalDriverOptions_Type) Type() protoreflect.EnumType { - return &file_containerz_containerz_proto_enumTypes[8] -} - -func (x LocalDriverOptions_Type) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use LocalDriverOptions_Type.Descriptor instead. -func (LocalDriverOptions_Type) EnumDescriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{28, 0} -} - -type DeployRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Request: - // - // *DeployRequest_ImageTransfer - // *DeployRequest_Content - // *DeployRequest_ImageTransferEnd - Request isDeployRequest_Request `protobuf_oneof:"request"` -} - -func (x *DeployRequest) Reset() { - *x = DeployRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeployRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeployRequest) ProtoMessage() {} - -func (x *DeployRequest) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeployRequest.ProtoReflect.Descriptor instead. -func (*DeployRequest) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{0} -} - -func (m *DeployRequest) GetRequest() isDeployRequest_Request { - if m != nil { - return m.Request - } - return nil -} - -func (x *DeployRequest) GetImageTransfer() *ImageTransfer { - if x, ok := x.GetRequest().(*DeployRequest_ImageTransfer); ok { - return x.ImageTransfer - } - return nil -} - -func (x *DeployRequest) GetContent() []byte { - if x, ok := x.GetRequest().(*DeployRequest_Content); ok { - return x.Content - } - return nil -} - -func (x *DeployRequest) GetImageTransferEnd() *ImageTransferEnd { - if x, ok := x.GetRequest().(*DeployRequest_ImageTransferEnd); ok { - return x.ImageTransferEnd - } - return nil -} - -type isDeployRequest_Request interface { - isDeployRequest_Request() -} - -type DeployRequest_ImageTransfer struct { - ImageTransfer *ImageTransfer `protobuf:"bytes,1,opt,name=image_transfer,json=imageTransfer,proto3,oneof"` -} - -type DeployRequest_Content struct { - Content []byte `protobuf:"bytes,2,opt,name=content,proto3,oneof"` -} - -type DeployRequest_ImageTransferEnd struct { - ImageTransferEnd *ImageTransferEnd `protobuf:"bytes,3,opt,name=image_transfer_end,json=imageTransferEnd,proto3,oneof"` -} - -func (*DeployRequest_ImageTransfer) isDeployRequest_Request() {} - -func (*DeployRequest_Content) isDeployRequest_Request() {} - -func (*DeployRequest_ImageTransferEnd) isDeployRequest_Request() {} - -type ImageTransfer struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` - ImageSize uint64 `protobuf:"varint,3,opt,name=image_size,json=imageSize,proto3" json:"image_size,omitempty"` - RemoteDownload *common.RemoteDownload `protobuf:"bytes,4,opt,name=remote_download,json=remoteDownload,proto3" json:"remote_download,omitempty"` -} - -func (x *ImageTransfer) Reset() { - *x = ImageTransfer{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ImageTransfer) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ImageTransfer) ProtoMessage() {} - -func (x *ImageTransfer) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ImageTransfer.ProtoReflect.Descriptor instead. -func (*ImageTransfer) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{1} -} - -func (x *ImageTransfer) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *ImageTransfer) GetTag() string { - if x != nil { - return x.Tag - } - return "" -} - -func (x *ImageTransfer) GetImageSize() uint64 { - if x != nil { - return x.ImageSize - } - return 0 -} - -func (x *ImageTransfer) GetRemoteDownload() *common.RemoteDownload { - if x != nil { - return x.RemoteDownload - } - return nil -} - -type ImageTransferEnd struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ImageTransferEnd) Reset() { - *x = ImageTransferEnd{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ImageTransferEnd) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ImageTransferEnd) ProtoMessage() {} - -func (x *ImageTransferEnd) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ImageTransferEnd.ProtoReflect.Descriptor instead. -func (*ImageTransferEnd) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{2} -} - -type DeployResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Response: - // - // *DeployResponse_ImageTransferReady - // *DeployResponse_ImageTransferProgress - // *DeployResponse_ImageTransferSuccess - // *DeployResponse_ImageTransferError - Response isDeployResponse_Response `protobuf_oneof:"response"` -} - -func (x *DeployResponse) Reset() { - *x = DeployResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeployResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeployResponse) ProtoMessage() {} - -func (x *DeployResponse) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeployResponse.ProtoReflect.Descriptor instead. -func (*DeployResponse) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{3} -} - -func (m *DeployResponse) GetResponse() isDeployResponse_Response { - if m != nil { - return m.Response - } - return nil -} - -func (x *DeployResponse) GetImageTransferReady() *ImageTransferReady { - if x, ok := x.GetResponse().(*DeployResponse_ImageTransferReady); ok { - return x.ImageTransferReady - } - return nil -} - -func (x *DeployResponse) GetImageTransferProgress() *ImageTransferProgress { - if x, ok := x.GetResponse().(*DeployResponse_ImageTransferProgress); ok { - return x.ImageTransferProgress - } - return nil -} - -func (x *DeployResponse) GetImageTransferSuccess() *ImageTransferSuccess { - if x, ok := x.GetResponse().(*DeployResponse_ImageTransferSuccess); ok { - return x.ImageTransferSuccess - } - return nil -} - -func (x *DeployResponse) GetImageTransferError() *status.Status { - if x, ok := x.GetResponse().(*DeployResponse_ImageTransferError); ok { - return x.ImageTransferError - } - return nil -} - -type isDeployResponse_Response interface { - isDeployResponse_Response() -} - -type DeployResponse_ImageTransferReady struct { - ImageTransferReady *ImageTransferReady `protobuf:"bytes,1,opt,name=image_transfer_ready,json=imageTransferReady,proto3,oneof"` -} - -type DeployResponse_ImageTransferProgress struct { - ImageTransferProgress *ImageTransferProgress `protobuf:"bytes,2,opt,name=image_transfer_progress,json=imageTransferProgress,proto3,oneof"` -} - -type DeployResponse_ImageTransferSuccess struct { - ImageTransferSuccess *ImageTransferSuccess `protobuf:"bytes,3,opt,name=image_transfer_success,json=imageTransferSuccess,proto3,oneof"` -} - -type DeployResponse_ImageTransferError struct { - ImageTransferError *status.Status `protobuf:"bytes,4,opt,name=image_transfer_error,json=imageTransferError,proto3,oneof"` -} - -func (*DeployResponse_ImageTransferReady) isDeployResponse_Response() {} - -func (*DeployResponse_ImageTransferProgress) isDeployResponse_Response() {} - -func (*DeployResponse_ImageTransferSuccess) isDeployResponse_Response() {} - -func (*DeployResponse_ImageTransferError) isDeployResponse_Response() {} - -type ImageTransferReady struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ChunkSize int32 `protobuf:"varint,1,opt,name=chunk_size,json=chunkSize,proto3" json:"chunk_size,omitempty"` -} - -func (x *ImageTransferReady) Reset() { - *x = ImageTransferReady{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ImageTransferReady) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ImageTransferReady) ProtoMessage() {} - -func (x *ImageTransferReady) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ImageTransferReady.ProtoReflect.Descriptor instead. -func (*ImageTransferReady) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{4} -} - -func (x *ImageTransferReady) GetChunkSize() int32 { - if x != nil { - return x.ChunkSize - } - return 0 -} - -type ImageTransferProgress struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - BytesReceived uint64 `protobuf:"varint,1,opt,name=bytes_received,json=bytesReceived,proto3" json:"bytes_received,omitempty"` -} - -func (x *ImageTransferProgress) Reset() { - *x = ImageTransferProgress{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ImageTransferProgress) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ImageTransferProgress) ProtoMessage() {} - -func (x *ImageTransferProgress) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ImageTransferProgress.ProtoReflect.Descriptor instead. -func (*ImageTransferProgress) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{5} -} - -func (x *ImageTransferProgress) GetBytesReceived() uint64 { - if x != nil { - return x.BytesReceived - } - return 0 -} - -type ImageTransferSuccess struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` - ImageSize uint64 `protobuf:"varint,3,opt,name=image_size,json=imageSize,proto3" json:"image_size,omitempty"` -} - -func (x *ImageTransferSuccess) Reset() { - *x = ImageTransferSuccess{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ImageTransferSuccess) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ImageTransferSuccess) ProtoMessage() {} - -func (x *ImageTransferSuccess) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ImageTransferSuccess.ProtoReflect.Descriptor instead. -func (*ImageTransferSuccess) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{6} -} - -func (x *ImageTransferSuccess) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *ImageTransferSuccess) GetTag() string { - if x != nil { - return x.Tag - } - return "" -} - -func (x *ImageTransferSuccess) GetImageSize() uint64 { - if x != nil { - return x.ImageSize - } - return 0 -} - -type RemoveImageRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` - Force bool `protobuf:"varint,3,opt,name=force,proto3" json:"force,omitempty"` -} - -func (x *RemoveImageRequest) Reset() { - *x = RemoveImageRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RemoveImageRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RemoveImageRequest) ProtoMessage() {} - -func (x *RemoveImageRequest) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RemoveImageRequest.ProtoReflect.Descriptor instead. -func (*RemoveImageRequest) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{7} -} - -func (x *RemoveImageRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *RemoveImageRequest) GetTag() string { - if x != nil { - return x.Tag - } - return "" -} - -func (x *RemoveImageRequest) GetForce() bool { - if x != nil { - return x.Force - } - return false -} - -type RemoveImageResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Code RemoveImageResponse_Code `protobuf:"varint,1,opt,name=code,proto3,enum=gnoi.containerz.RemoveImageResponse_Code" json:"code,omitempty"` - Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` -} - -func (x *RemoveImageResponse) Reset() { - *x = RemoveImageResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RemoveImageResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RemoveImageResponse) ProtoMessage() {} - -func (x *RemoveImageResponse) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RemoveImageResponse.ProtoReflect.Descriptor instead. -func (*RemoveImageResponse) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{8} -} - -func (x *RemoveImageResponse) GetCode() RemoveImageResponse_Code { - if x != nil { - return x.Code - } - return RemoveImageResponse_UNSPECIFIED -} - -func (x *RemoveImageResponse) GetDetail() string { - if x != nil { - return x.Detail - } - return "" -} - -type RemoveContainerRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` - Force bool `protobuf:"varint,3,opt,name=force,proto3" json:"force,omitempty"` -} - -func (x *RemoveContainerRequest) Reset() { - *x = RemoveContainerRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RemoveContainerRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RemoveContainerRequest) ProtoMessage() {} - -func (x *RemoveContainerRequest) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RemoveContainerRequest.ProtoReflect.Descriptor instead. -func (*RemoveContainerRequest) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{9} -} - -func (x *RemoveContainerRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *RemoveContainerRequest) GetTag() string { - if x != nil { - return x.Tag - } - return "" -} - -func (x *RemoveContainerRequest) GetForce() bool { - if x != nil { - return x.Force - } - return false -} - -type RemoveContainerResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Code RemoveContainerResponse_Code `protobuf:"varint,1,opt,name=code,proto3,enum=gnoi.containerz.RemoveContainerResponse_Code" json:"code,omitempty"` - Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` -} - -func (x *RemoveContainerResponse) Reset() { - *x = RemoveContainerResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RemoveContainerResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RemoveContainerResponse) ProtoMessage() {} - -func (x *RemoveContainerResponse) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RemoveContainerResponse.ProtoReflect.Descriptor instead. -func (*RemoveContainerResponse) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{10} -} - -func (x *RemoveContainerResponse) GetCode() RemoveContainerResponse_Code { - if x != nil { - return x.Code - } - return RemoveContainerResponse_UNSPECIFIED -} - -func (x *RemoveContainerResponse) GetDetail() string { - if x != nil { - return x.Detail - } - return "" -} - -type ListImageRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Limit int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` - Filter []*ListImageRequest_Filter `protobuf:"bytes,3,rep,name=filter,proto3" json:"filter,omitempty"` -} - -func (x *ListImageRequest) Reset() { - *x = ListImageRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListImageRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListImageRequest) ProtoMessage() {} - -func (x *ListImageRequest) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListImageRequest.ProtoReflect.Descriptor instead. -func (*ListImageRequest) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{11} -} - -func (x *ListImageRequest) GetLimit() int32 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *ListImageRequest) GetFilter() []*ListImageRequest_Filter { - if x != nil { - return x.Filter - } - return nil -} - -type ListImageResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - ImageName string `protobuf:"bytes,2,opt,name=image_name,json=imageName,proto3" json:"image_name,omitempty"` - Tag string `protobuf:"bytes,3,opt,name=tag,proto3" json:"tag,omitempty"` -} - -func (x *ListImageResponse) Reset() { - *x = ListImageResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListImageResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListImageResponse) ProtoMessage() {} - -func (x *ListImageResponse) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListImageResponse.ProtoReflect.Descriptor instead. -func (*ListImageResponse) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{12} -} - -func (x *ListImageResponse) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *ListImageResponse) GetImageName() string { - if x != nil { - return x.ImageName - } - return "" -} - -func (x *ListImageResponse) GetTag() string { - if x != nil { - return x.Tag - } - return "" -} - -type ListContainerRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - All bool `protobuf:"varint,1,opt,name=all,proto3" json:"all,omitempty"` - Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - Filter []*ListContainerRequest_Filter `protobuf:"bytes,3,rep,name=filter,proto3" json:"filter,omitempty"` -} - -func (x *ListContainerRequest) Reset() { - *x = ListContainerRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListContainerRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListContainerRequest) ProtoMessage() {} - -func (x *ListContainerRequest) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListContainerRequest.ProtoReflect.Descriptor instead. -func (*ListContainerRequest) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{13} -} - -func (x *ListContainerRequest) GetAll() bool { - if x != nil { - return x.All - } - return false -} - -func (x *ListContainerRequest) GetLimit() int32 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *ListContainerRequest) GetFilter() []*ListContainerRequest_Filter { - if x != nil { - return x.Filter - } - return nil -} - -type ListContainerResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - ImageName string `protobuf:"bytes,3,opt,name=image_name,json=imageName,proto3" json:"image_name,omitempty"` - Status ListContainerResponse_Status `protobuf:"varint,4,opt,name=status,proto3,enum=gnoi.containerz.ListContainerResponse_Status" json:"status,omitempty"` -} - -func (x *ListContainerResponse) Reset() { - *x = ListContainerResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListContainerResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListContainerResponse) ProtoMessage() {} - -func (x *ListContainerResponse) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListContainerResponse.ProtoReflect.Descriptor instead. -func (*ListContainerResponse) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{14} -} - -func (x *ListContainerResponse) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *ListContainerResponse) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *ListContainerResponse) GetImageName() string { - if x != nil { - return x.ImageName - } - return "" -} - -func (x *ListContainerResponse) GetStatus() ListContainerResponse_Status { - if x != nil { - return x.Status - } - return ListContainerResponse_UNSPECIFIED -} - -type Volume struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - MountPoint string `protobuf:"bytes,2,opt,name=mount_point,json=mountPoint,proto3" json:"mount_point,omitempty"` - ReadOnly bool `protobuf:"varint,3,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"` -} - -func (x *Volume) Reset() { - *x = Volume{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Volume) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Volume) ProtoMessage() {} - -func (x *Volume) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Volume.ProtoReflect.Descriptor instead. -func (*Volume) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{15} -} - -func (x *Volume) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *Volume) GetMountPoint() string { - if x != nil { - return x.MountPoint - } - return "" -} - -func (x *Volume) GetReadOnly() bool { - if x != nil { - return x.ReadOnly - } - return false -} - -type StartContainerRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ImageName string `protobuf:"bytes,1,opt,name=image_name,json=imageName,proto3" json:"image_name,omitempty"` - Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` - Cmd string `protobuf:"bytes,3,opt,name=cmd,proto3" json:"cmd,omitempty"` - InstanceName string `protobuf:"bytes,4,opt,name=instance_name,json=instanceName,proto3" json:"instance_name,omitempty"` - Ports []*StartContainerRequest_Port `protobuf:"bytes,5,rep,name=ports,proto3" json:"ports,omitempty"` - Environment map[string]string `protobuf:"bytes,6,rep,name=environment,proto3" json:"environment,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Volumes []*Volume `protobuf:"bytes,7,rep,name=volumes,proto3" json:"volumes,omitempty"` - Network string `protobuf:"bytes,8,opt,name=network,proto3" json:"network,omitempty"` - Cap *StartContainerRequest_Capabilities `protobuf:"bytes,9,opt,name=cap,proto3" json:"cap,omitempty"` - Restart *StartContainerRequest_Restart `protobuf:"bytes,10,opt,name=restart,proto3" json:"restart,omitempty"` - RunAs *StartContainerRequest_RunAs `protobuf:"bytes,11,opt,name=run_as,json=runAs,proto3" json:"run_as,omitempty"` -} - -func (x *StartContainerRequest) Reset() { - *x = StartContainerRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StartContainerRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StartContainerRequest) ProtoMessage() {} - -func (x *StartContainerRequest) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StartContainerRequest.ProtoReflect.Descriptor instead. -func (*StartContainerRequest) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{16} -} - -func (x *StartContainerRequest) GetImageName() string { - if x != nil { - return x.ImageName - } - return "" -} - -func (x *StartContainerRequest) GetTag() string { - if x != nil { - return x.Tag - } - return "" -} - -func (x *StartContainerRequest) GetCmd() string { - if x != nil { - return x.Cmd - } - return "" -} - -func (x *StartContainerRequest) GetInstanceName() string { - if x != nil { - return x.InstanceName - } - return "" -} - -func (x *StartContainerRequest) GetPorts() []*StartContainerRequest_Port { - if x != nil { - return x.Ports - } - return nil -} - -func (x *StartContainerRequest) GetEnvironment() map[string]string { - if x != nil { - return x.Environment - } - return nil -} - -func (x *StartContainerRequest) GetVolumes() []*Volume { - if x != nil { - return x.Volumes - } - return nil -} - -func (x *StartContainerRequest) GetNetwork() string { - if x != nil { - return x.Network - } - return "" -} - -func (x *StartContainerRequest) GetCap() *StartContainerRequest_Capabilities { - if x != nil { - return x.Cap - } - return nil -} - -func (x *StartContainerRequest) GetRestart() *StartContainerRequest_Restart { - if x != nil { - return x.Restart - } - return nil -} - -func (x *StartContainerRequest) GetRunAs() *StartContainerRequest_RunAs { - if x != nil { - return x.RunAs - } - return nil -} - -type StartContainerResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Response: - // - // *StartContainerResponse_StartOk - // *StartContainerResponse_StartError - Response isStartContainerResponse_Response `protobuf_oneof:"response"` -} - -func (x *StartContainerResponse) Reset() { - *x = StartContainerResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StartContainerResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StartContainerResponse) ProtoMessage() {} - -func (x *StartContainerResponse) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StartContainerResponse.ProtoReflect.Descriptor instead. -func (*StartContainerResponse) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{17} -} - -func (m *StartContainerResponse) GetResponse() isStartContainerResponse_Response { - if m != nil { - return m.Response - } - return nil -} - -func (x *StartContainerResponse) GetStartOk() *StartOK { - if x, ok := x.GetResponse().(*StartContainerResponse_StartOk); ok { - return x.StartOk - } - return nil -} - -func (x *StartContainerResponse) GetStartError() *StartError { - if x, ok := x.GetResponse().(*StartContainerResponse_StartError); ok { - return x.StartError - } - return nil -} - -type isStartContainerResponse_Response interface { - isStartContainerResponse_Response() -} - -type StartContainerResponse_StartOk struct { - StartOk *StartOK `protobuf:"bytes,1,opt,name=start_ok,json=startOk,proto3,oneof"` -} - -type StartContainerResponse_StartError struct { - StartError *StartError `protobuf:"bytes,2,opt,name=start_error,json=startError,proto3,oneof"` -} - -func (*StartContainerResponse_StartOk) isStartContainerResponse_Response() {} - -func (*StartContainerResponse_StartError) isStartContainerResponse_Response() {} - -type StartOK struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - InstanceName string `protobuf:"bytes,1,opt,name=instance_name,json=instanceName,proto3" json:"instance_name,omitempty"` -} - -func (x *StartOK) Reset() { - *x = StartOK{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StartOK) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StartOK) ProtoMessage() {} - -func (x *StartOK) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StartOK.ProtoReflect.Descriptor instead. -func (*StartOK) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{18} -} - -func (x *StartOK) GetInstanceName() string { - if x != nil { - return x.InstanceName - } - return "" -} - -type StartError struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ErrorCode StartError_Code `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3,enum=gnoi.containerz.StartError_Code" json:"error_code,omitempty"` - Details string `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"` -} - -func (x *StartError) Reset() { - *x = StartError{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StartError) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StartError) ProtoMessage() {} - -func (x *StartError) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StartError.ProtoReflect.Descriptor instead. -func (*StartError) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{19} -} - -func (x *StartError) GetErrorCode() StartError_Code { - if x != nil { - return x.ErrorCode - } - return StartError_UNSPECIFIED -} - -func (x *StartError) GetDetails() string { - if x != nil { - return x.Details - } - return "" -} - -type StopContainerRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - InstanceName string `protobuf:"bytes,1,opt,name=instance_name,json=instanceName,proto3" json:"instance_name,omitempty"` - Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"` - Restart bool `protobuf:"varint,3,opt,name=restart,proto3" json:"restart,omitempty"` -} - -func (x *StopContainerRequest) Reset() { - *x = StopContainerRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StopContainerRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StopContainerRequest) ProtoMessage() {} - -func (x *StopContainerRequest) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StopContainerRequest.ProtoReflect.Descriptor instead. -func (*StopContainerRequest) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{20} -} - -func (x *StopContainerRequest) GetInstanceName() string { - if x != nil { - return x.InstanceName - } - return "" -} - -func (x *StopContainerRequest) GetForce() bool { - if x != nil { - return x.Force - } - return false -} - -func (x *StopContainerRequest) GetRestart() bool { - if x != nil { - return x.Restart - } - return false -} - -type StopContainerResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Code StopContainerResponse_Code `protobuf:"varint,1,opt,name=code,proto3,enum=gnoi.containerz.StopContainerResponse_Code" json:"code,omitempty"` - Details string `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"` -} - -func (x *StopContainerResponse) Reset() { - *x = StopContainerResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StopContainerResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StopContainerResponse) ProtoMessage() {} - -func (x *StopContainerResponse) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StopContainerResponse.ProtoReflect.Descriptor instead. -func (*StopContainerResponse) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{21} -} - -func (x *StopContainerResponse) GetCode() StopContainerResponse_Code { - if x != nil { - return x.Code - } - return StopContainerResponse_UNSPECIFIED -} - -func (x *StopContainerResponse) GetDetails() string { - if x != nil { - return x.Details - } - return "" -} - -type UpdateContainerRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - InstanceName string `protobuf:"bytes,1,opt,name=instance_name,json=instanceName,proto3" json:"instance_name,omitempty"` - ImageName string `protobuf:"bytes,2,opt,name=image_name,json=imageName,proto3" json:"image_name,omitempty"` - ImageTag string `protobuf:"bytes,3,opt,name=image_tag,json=imageTag,proto3" json:"image_tag,omitempty"` - Params *StartContainerRequest `protobuf:"bytes,4,opt,name=params,proto3" json:"params,omitempty"` - Async bool `protobuf:"varint,5,opt,name=async,proto3" json:"async,omitempty"` -} - -func (x *UpdateContainerRequest) Reset() { - *x = UpdateContainerRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateContainerRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateContainerRequest) ProtoMessage() {} - -func (x *UpdateContainerRequest) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateContainerRequest.ProtoReflect.Descriptor instead. -func (*UpdateContainerRequest) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{22} -} - -func (x *UpdateContainerRequest) GetInstanceName() string { - if x != nil { - return x.InstanceName - } - return "" -} - -func (x *UpdateContainerRequest) GetImageName() string { - if x != nil { - return x.ImageName - } - return "" -} - -func (x *UpdateContainerRequest) GetImageTag() string { - if x != nil { - return x.ImageTag - } - return "" -} - -func (x *UpdateContainerRequest) GetParams() *StartContainerRequest { - if x != nil { - return x.Params - } - return nil -} - -func (x *UpdateContainerRequest) GetAsync() bool { - if x != nil { - return x.Async - } - return false -} - -type UpdateContainerResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Response: - // - // *UpdateContainerResponse_UpdateOk - // *UpdateContainerResponse_UpdateError - Response isUpdateContainerResponse_Response `protobuf_oneof:"response"` -} - -func (x *UpdateContainerResponse) Reset() { - *x = UpdateContainerResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateContainerResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateContainerResponse) ProtoMessage() {} - -func (x *UpdateContainerResponse) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateContainerResponse.ProtoReflect.Descriptor instead. -func (*UpdateContainerResponse) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{23} -} - -func (m *UpdateContainerResponse) GetResponse() isUpdateContainerResponse_Response { - if m != nil { - return m.Response - } - return nil -} - -func (x *UpdateContainerResponse) GetUpdateOk() *UpdateOK { - if x, ok := x.GetResponse().(*UpdateContainerResponse_UpdateOk); ok { - return x.UpdateOk - } - return nil -} - -func (x *UpdateContainerResponse) GetUpdateError() *UpdateError { - if x, ok := x.GetResponse().(*UpdateContainerResponse_UpdateError); ok { - return x.UpdateError - } - return nil -} - -type isUpdateContainerResponse_Response interface { - isUpdateContainerResponse_Response() -} - -type UpdateContainerResponse_UpdateOk struct { - UpdateOk *UpdateOK `protobuf:"bytes,1,opt,name=update_ok,json=updateOk,proto3,oneof"` -} - -type UpdateContainerResponse_UpdateError struct { - UpdateError *UpdateError `protobuf:"bytes,2,opt,name=update_error,json=updateError,proto3,oneof"` -} - -func (*UpdateContainerResponse_UpdateOk) isUpdateContainerResponse_Response() {} - -func (*UpdateContainerResponse_UpdateError) isUpdateContainerResponse_Response() {} - -type UpdateOK struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - InstanceName string `protobuf:"bytes,1,opt,name=instance_name,json=instanceName,proto3" json:"instance_name,omitempty"` - IsAsync bool `protobuf:"varint,2,opt,name=is_async,json=isAsync,proto3" json:"is_async,omitempty"` -} - -func (x *UpdateOK) Reset() { - *x = UpdateOK{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateOK) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateOK) ProtoMessage() {} - -func (x *UpdateOK) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateOK.ProtoReflect.Descriptor instead. -func (*UpdateOK) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{24} -} - -func (x *UpdateOK) GetInstanceName() string { - if x != nil { - return x.InstanceName - } - return "" -} - -func (x *UpdateOK) GetIsAsync() bool { - if x != nil { - return x.IsAsync - } - return false -} - -type UpdateError struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ErrorCode UpdateError_Code `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3,enum=gnoi.containerz.UpdateError_Code" json:"error_code,omitempty"` - Details string `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"` -} - -func (x *UpdateError) Reset() { - *x = UpdateError{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateError) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateError) ProtoMessage() {} - -func (x *UpdateError) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateError.ProtoReflect.Descriptor instead. -func (*UpdateError) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{25} -} - -func (x *UpdateError) GetErrorCode() UpdateError_Code { - if x != nil { - return x.ErrorCode - } - return UpdateError_UNSPECIFIED -} - -func (x *UpdateError) GetDetails() string { - if x != nil { - return x.Details - } - return "" -} - -type LogRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - InstanceName string `protobuf:"bytes,1,opt,name=instance_name,json=instanceName,proto3" json:"instance_name,omitempty"` - Follow bool `protobuf:"varint,2,opt,name=follow,proto3" json:"follow,omitempty"` -} - -func (x *LogRequest) Reset() { - *x = LogRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LogRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LogRequest) ProtoMessage() {} - -func (x *LogRequest) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LogRequest.ProtoReflect.Descriptor instead. -func (*LogRequest) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{26} -} - -func (x *LogRequest) GetInstanceName() string { - if x != nil { - return x.InstanceName - } - return "" -} - -func (x *LogRequest) GetFollow() bool { - if x != nil { - return x.Follow - } - return false -} - -type LogResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` -} - -func (x *LogResponse) Reset() { - *x = LogResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LogResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LogResponse) ProtoMessage() {} - -func (x *LogResponse) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LogResponse.ProtoReflect.Descriptor instead. -func (*LogResponse) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{27} -} - -func (x *LogResponse) GetMsg() string { - if x != nil { - return x.Msg - } - return "" -} - -type LocalDriverOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Type LocalDriverOptions_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.containerz.LocalDriverOptions_Type" json:"type,omitempty"` - Options []string `protobuf:"bytes,2,rep,name=options,proto3" json:"options,omitempty"` - Mountpoint string `protobuf:"bytes,3,opt,name=mountpoint,proto3" json:"mountpoint,omitempty"` -} - -func (x *LocalDriverOptions) Reset() { - *x = LocalDriverOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LocalDriverOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LocalDriverOptions) ProtoMessage() {} - -func (x *LocalDriverOptions) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LocalDriverOptions.ProtoReflect.Descriptor instead. -func (*LocalDriverOptions) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{28} -} - -func (x *LocalDriverOptions) GetType() LocalDriverOptions_Type { - if x != nil { - return x.Type - } - return LocalDriverOptions_TYPE_UNSPECIFIED -} - -func (x *LocalDriverOptions) GetOptions() []string { - if x != nil { - return x.Options - } - return nil -} - -func (x *LocalDriverOptions) GetMountpoint() string { - if x != nil { - return x.Mountpoint - } - return "" -} - -type CreateVolumeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Driver Driver `protobuf:"varint,2,opt,name=driver,proto3,enum=gnoi.containerz.Driver" json:"driver,omitempty"` - // Types that are assignable to Options: - // - // *CreateVolumeRequest_LocalMountOptions - Options isCreateVolumeRequest_Options `protobuf_oneof:"options"` - Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *CreateVolumeRequest) Reset() { - *x = CreateVolumeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateVolumeRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateVolumeRequest) ProtoMessage() {} - -func (x *CreateVolumeRequest) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateVolumeRequest.ProtoReflect.Descriptor instead. -func (*CreateVolumeRequest) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{29} -} - -func (x *CreateVolumeRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *CreateVolumeRequest) GetDriver() Driver { - if x != nil { - return x.Driver - } - return Driver_DS_UNSPECIFIED -} - -func (m *CreateVolumeRequest) GetOptions() isCreateVolumeRequest_Options { - if m != nil { - return m.Options - } - return nil -} - -func (x *CreateVolumeRequest) GetLocalMountOptions() *LocalDriverOptions { - if x, ok := x.GetOptions().(*CreateVolumeRequest_LocalMountOptions); ok { - return x.LocalMountOptions - } - return nil -} - -func (x *CreateVolumeRequest) GetLabels() map[string]string { - if x != nil { - return x.Labels - } - return nil -} - -type isCreateVolumeRequest_Options interface { - isCreateVolumeRequest_Options() -} - -type CreateVolumeRequest_LocalMountOptions struct { - LocalMountOptions *LocalDriverOptions `protobuf:"bytes,3,opt,name=local_mount_options,json=localMountOptions,proto3,oneof"` -} - -func (*CreateVolumeRequest_LocalMountOptions) isCreateVolumeRequest_Options() {} - -type CreateVolumeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *CreateVolumeResponse) Reset() { - *x = CreateVolumeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateVolumeResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateVolumeResponse) ProtoMessage() {} - -func (x *CreateVolumeResponse) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateVolumeResponse.ProtoReflect.Descriptor instead. -func (*CreateVolumeResponse) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{30} -} - -func (x *CreateVolumeResponse) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -type RemoveVolumeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"` -} - -func (x *RemoveVolumeRequest) Reset() { - *x = RemoveVolumeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RemoveVolumeRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RemoveVolumeRequest) ProtoMessage() {} - -func (x *RemoveVolumeRequest) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RemoveVolumeRequest.ProtoReflect.Descriptor instead. -func (*RemoveVolumeRequest) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{31} -} - -func (x *RemoveVolumeRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *RemoveVolumeRequest) GetForce() bool { - if x != nil { - return x.Force - } - return false -} - -type RemoveVolumeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *RemoveVolumeResponse) Reset() { - *x = RemoveVolumeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RemoveVolumeResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RemoveVolumeResponse) ProtoMessage() {} - -func (x *RemoveVolumeResponse) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RemoveVolumeResponse.ProtoReflect.Descriptor instead. -func (*RemoveVolumeResponse) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{32} -} - -type ListVolumeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Filter []*ListVolumeRequest_Filter `protobuf:"bytes,1,rep,name=filter,proto3" json:"filter,omitempty"` -} - -func (x *ListVolumeRequest) Reset() { - *x = ListVolumeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListVolumeRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListVolumeRequest) ProtoMessage() {} - -func (x *ListVolumeRequest) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListVolumeRequest.ProtoReflect.Descriptor instead. -func (*ListVolumeRequest) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{33} -} - -func (x *ListVolumeRequest) GetFilter() []*ListVolumeRequest_Filter { - if x != nil { - return x.Filter - } - return nil -} - -type ListVolumeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Created *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created,proto3" json:"created,omitempty"` - Driver string `protobuf:"bytes,3,opt,name=driver,proto3" json:"driver,omitempty"` - Options map[string]string `protobuf:"bytes,4,rep,name=options,proto3" json:"options,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Labels map[string]string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *ListVolumeResponse) Reset() { - *x = ListVolumeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListVolumeResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListVolumeResponse) ProtoMessage() {} - -func (x *ListVolumeResponse) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListVolumeResponse.ProtoReflect.Descriptor instead. -func (*ListVolumeResponse) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{34} -} - -func (x *ListVolumeResponse) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *ListVolumeResponse) GetCreated() *timestamppb.Timestamp { - if x != nil { - return x.Created - } - return nil -} - -func (x *ListVolumeResponse) GetDriver() string { - if x != nil { - return x.Driver - } - return "" -} - -func (x *ListVolumeResponse) GetOptions() map[string]string { - if x != nil { - return x.Options - } - return nil -} - -func (x *ListVolumeResponse) GetLabels() map[string]string { - if x != nil { - return x.Labels - } - return nil -} - -type ListImageRequest_Filter struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value []string `protobuf:"bytes,2,rep,name=value,proto3" json:"value,omitempty"` -} - -func (x *ListImageRequest_Filter) Reset() { - *x = ListImageRequest_Filter{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListImageRequest_Filter) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListImageRequest_Filter) ProtoMessage() {} - -func (x *ListImageRequest_Filter) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[35] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListImageRequest_Filter.ProtoReflect.Descriptor instead. -func (*ListImageRequest_Filter) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{11, 0} -} - -func (x *ListImageRequest_Filter) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -func (x *ListImageRequest_Filter) GetValue() []string { - if x != nil { - return x.Value - } - return nil -} - -type ListContainerRequest_Filter struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value []string `protobuf:"bytes,2,rep,name=value,proto3" json:"value,omitempty"` -} - -func (x *ListContainerRequest_Filter) Reset() { - *x = ListContainerRequest_Filter{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListContainerRequest_Filter) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListContainerRequest_Filter) ProtoMessage() {} - -func (x *ListContainerRequest_Filter) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[36] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListContainerRequest_Filter.ProtoReflect.Descriptor instead. -func (*ListContainerRequest_Filter) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{13, 0} -} - -func (x *ListContainerRequest_Filter) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -func (x *ListContainerRequest_Filter) GetValue() []string { - if x != nil { - return x.Value - } - return nil -} - -type StartContainerRequest_Port struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Internal uint32 `protobuf:"varint,1,opt,name=internal,proto3" json:"internal,omitempty"` - External uint32 `protobuf:"varint,2,opt,name=external,proto3" json:"external,omitempty"` -} - -func (x *StartContainerRequest_Port) Reset() { - *x = StartContainerRequest_Port{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StartContainerRequest_Port) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StartContainerRequest_Port) ProtoMessage() {} - -func (x *StartContainerRequest_Port) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[37] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StartContainerRequest_Port.ProtoReflect.Descriptor instead. -func (*StartContainerRequest_Port) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{16, 0} -} - -func (x *StartContainerRequest_Port) GetInternal() uint32 { - if x != nil { - return x.Internal - } - return 0 -} - -func (x *StartContainerRequest_Port) GetExternal() uint32 { - if x != nil { - return x.External - } - return 0 -} - -type StartContainerRequest_Capabilities struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Add []string `protobuf:"bytes,1,rep,name=add,proto3" json:"add,omitempty"` - Remove []string `protobuf:"bytes,2,rep,name=remove,proto3" json:"remove,omitempty"` -} - -func (x *StartContainerRequest_Capabilities) Reset() { - *x = StartContainerRequest_Capabilities{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StartContainerRequest_Capabilities) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StartContainerRequest_Capabilities) ProtoMessage() {} - -func (x *StartContainerRequest_Capabilities) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[39] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StartContainerRequest_Capabilities.ProtoReflect.Descriptor instead. -func (*StartContainerRequest_Capabilities) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{16, 2} -} - -func (x *StartContainerRequest_Capabilities) GetAdd() []string { - if x != nil { - return x.Add - } - return nil -} - -func (x *StartContainerRequest_Capabilities) GetRemove() []string { - if x != nil { - return x.Remove - } - return nil -} - -type StartContainerRequest_Restart struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Policy StartContainerRequest_Restart_Policy `protobuf:"varint,1,opt,name=policy,proto3,enum=gnoi.containerz.StartContainerRequest_Restart_Policy" json:"policy,omitempty"` - Attempts uint32 `protobuf:"varint,2,opt,name=attempts,proto3" json:"attempts,omitempty"` -} - -func (x *StartContainerRequest_Restart) Reset() { - *x = StartContainerRequest_Restart{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StartContainerRequest_Restart) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StartContainerRequest_Restart) ProtoMessage() {} - -func (x *StartContainerRequest_Restart) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[40] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StartContainerRequest_Restart.ProtoReflect.Descriptor instead. -func (*StartContainerRequest_Restart) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{16, 3} -} - -func (x *StartContainerRequest_Restart) GetPolicy() StartContainerRequest_Restart_Policy { - if x != nil { - return x.Policy - } - return StartContainerRequest_Restart_NONE -} - -func (x *StartContainerRequest_Restart) GetAttempts() uint32 { - if x != nil { - return x.Attempts - } - return 0 -} - -type StartContainerRequest_RunAs struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` - Group string `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"` -} - -func (x *StartContainerRequest_RunAs) Reset() { - *x = StartContainerRequest_RunAs{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StartContainerRequest_RunAs) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StartContainerRequest_RunAs) ProtoMessage() {} - -func (x *StartContainerRequest_RunAs) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[41] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StartContainerRequest_RunAs.ProtoReflect.Descriptor instead. -func (*StartContainerRequest_RunAs) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{16, 4} -} - -func (x *StartContainerRequest_RunAs) GetUser() string { - if x != nil { - return x.User - } - return "" -} - -func (x *StartContainerRequest_RunAs) GetGroup() string { - if x != nil { - return x.Group - } - return "" -} - -type ListVolumeRequest_Filter struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value []string `protobuf:"bytes,2,rep,name=value,proto3" json:"value,omitempty"` -} - -func (x *ListVolumeRequest_Filter) Reset() { - *x = ListVolumeRequest_Filter{} - if protoimpl.UnsafeEnabled { - mi := &file_containerz_containerz_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListVolumeRequest_Filter) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListVolumeRequest_Filter) ProtoMessage() {} - -func (x *ListVolumeRequest_Filter) ProtoReflect() protoreflect.Message { - mi := &file_containerz_containerz_proto_msgTypes[43] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListVolumeRequest_Filter.ProtoReflect.Descriptor instead. -func (*ListVolumeRequest_Filter) Descriptor() ([]byte, []int) { - return file_containerz_containerz_proto_rawDescGZIP(), []int{33, 0} -} - -func (x *ListVolumeRequest_Filter) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -func (x *ListVolumeRequest_Filter) GetValue() []string { - if x != nil { - return x.Value - } - return nil -} - -var File_containerz_containerz_proto protoreflect.FileDescriptor - -var file_containerz_containerz_proto_rawDesc = []byte{ - 0x0a, 0x1b, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2f, 0x63, 0x6f, 0x6e, - 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x1a, 0x2e, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, - 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd2, 0x01, 0x0a, 0x0d, 0x44, 0x65, 0x70, 0x6c, 0x6f, - 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x47, 0x0a, 0x0e, 0x69, 0x6d, 0x61, 0x67, - 0x65, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, - 0x72, 0x7a, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, - 0x48, 0x00, 0x52, 0x0d, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, - 0x72, 0x12, 0x1a, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0c, 0x48, 0x00, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x51, 0x0a, - 0x12, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x5f, - 0x65, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x49, 0x6d, 0x61, 0x67, - 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x48, 0x00, 0x52, 0x10, - 0x69, 0x6d, 0x61, 0x67, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x45, 0x6e, 0x64, - 0x42, 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x9a, 0x01, 0x0a, 0x0d, - 0x49, 0x6d, 0x61, 0x67, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x12, 0x12, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x74, 0x61, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x53, 0x69, - 0x7a, 0x65, 0x12, 0x44, 0x0a, 0x0f, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x64, 0x6f, 0x77, - 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, - 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x0e, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, - 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x12, 0x0a, 0x10, 0x49, 0x6d, 0x61, 0x67, - 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x22, 0xfe, 0x02, 0x0a, - 0x0e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x57, 0x0a, 0x14, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, - 0x72, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, - 0x49, 0x6d, 0x61, 0x67, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x61, - 0x64, 0x79, 0x48, 0x00, 0x52, 0x12, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, - 0x66, 0x65, 0x72, 0x52, 0x65, 0x61, 0x64, 0x79, 0x12, 0x60, 0x0a, 0x17, 0x69, 0x6d, 0x61, 0x67, - 0x65, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, - 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x49, 0x6d, 0x61, 0x67, - 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, - 0x73, 0x48, 0x00, 0x52, 0x15, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, - 0x65, 0x72, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x5d, 0x0a, 0x16, 0x69, 0x6d, - 0x61, 0x67, 0x65, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x5f, 0x73, 0x75, 0x63, - 0x63, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x49, 0x6d, 0x61, - 0x67, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, - 0x73, 0x48, 0x00, 0x52, 0x14, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, - 0x65, 0x72, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x46, 0x0a, 0x14, 0x69, 0x6d, 0x61, - 0x67, 0x65, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x5f, 0x65, 0x72, 0x72, 0x6f, - 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x48, 0x00, 0x52, 0x12, 0x69, - 0x6d, 0x61, 0x67, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, - 0x72, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x0a, - 0x12, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, - 0x61, 0x64, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x5f, 0x73, 0x69, 0x7a, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x53, 0x69, - 0x7a, 0x65, 0x22, 0x3e, 0x0a, 0x15, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, - 0x66, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x62, - 0x79, 0x74, 0x65, 0x73, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x0d, 0x62, 0x79, 0x74, 0x65, 0x73, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, - 0x65, 0x64, 0x22, 0x5b, 0x0a, 0x14, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, - 0x66, 0x65, 0x72, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, - 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, - 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x22, - 0x50, 0x0a, 0x12, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x66, - 0x6f, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x66, 0x6f, 0x72, 0x63, - 0x65, 0x22, 0xbb, 0x01, 0x0a, 0x13, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x49, 0x6d, 0x61, 0x67, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x04, 0x63, 0x6f, 0x64, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, - 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, - 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x43, 0x6f, - 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, - 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, - 0x22, 0x4d, 0x0a, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, - 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, - 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, - 0x55, 0x4e, 0x44, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, - 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x04, 0x22, - 0x54, 0x0a, 0x16, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, - 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, - 0x03, 0x74, 0x61, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, - 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, - 0x66, 0x6f, 0x72, 0x63, 0x65, 0x22, 0xb6, 0x01, 0x0a, 0x17, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, - 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x41, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x2d, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, - 0x7a, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, - 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, - 0x63, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x22, 0x40, 0x0a, 0x04, - 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, - 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, - 0x4e, 0x44, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, - 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x03, 0x22, 0x9c, - 0x01, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x40, 0x0a, 0x06, 0x66, 0x69, 0x6c, - 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x4c, 0x69, 0x73, 0x74, - 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x69, 0x6c, - 0x74, 0x65, 0x72, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x1a, 0x30, 0x0a, 0x06, 0x46, - 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x54, 0x0a, - 0x11, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x74, 0x61, 0x67, 0x22, 0xb6, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, - 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, - 0x61, 0x6c, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x61, 0x6c, 0x6c, 0x12, 0x14, - 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, - 0x69, 0x6d, 0x69, 0x74, 0x12, 0x44, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, - 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, - 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x69, 0x6c, 0x74, - 0x65, 0x72, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x1a, 0x30, 0x0a, 0x06, 0x46, 0x69, - 0x6c, 0x74, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xf2, 0x01, 0x0a, - 0x15, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6d, - 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x69, 0x6d, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x45, 0x0a, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x4c, 0x69, 0x73, 0x74, - 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x22, 0x4f, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, - 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x53, - 0x54, 0x4f, 0x50, 0x50, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, - 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x52, 0x45, 0x53, 0x45, 0x4e, 0x54, - 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, - 0x04, 0x22, 0x5a, 0x0a, 0x06, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x1f, 0x0a, 0x0b, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x6f, 0x69, 0x6e, 0x74, - 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0xe8, 0x07, - 0x0a, 0x15, 0x53, 0x74, 0x61, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6d, 0x61, 0x67, 0x65, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6d, 0x61, - 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x6d, 0x64, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x63, 0x6d, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0c, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x41, 0x0a, 0x05, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, - 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x05, 0x70, 0x6f, 0x72, - 0x74, 0x73, 0x12, 0x59, 0x0a, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, - 0x74, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, - 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x43, - 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, - 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x52, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x31, 0x0a, - 0x07, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, - 0x2e, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x07, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x73, - 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x45, 0x0a, 0x03, 0x63, 0x61, - 0x70, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, - 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x43, - 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, - 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x03, 0x63, 0x61, - 0x70, 0x12, 0x48, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x0a, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, - 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, - 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x61, - 0x72, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x43, 0x0a, 0x06, 0x72, - 0x75, 0x6e, 0x5f, 0x61, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x53, 0x74, - 0x61, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x2e, 0x52, 0x75, 0x6e, 0x41, 0x73, 0x52, 0x05, 0x72, 0x75, 0x6e, 0x41, 0x73, - 0x1a, 0x3e, 0x0a, 0x04, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, - 0x72, 0x6e, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, - 0x72, 0x6e, 0x61, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, - 0x1a, 0x3e, 0x0a, 0x10, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, - 0x1a, 0x38, 0x0a, 0x0c, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, - 0x12, 0x10, 0x0a, 0x03, 0x61, 0x64, 0x64, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x61, - 0x64, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x1a, 0xb8, 0x01, 0x0a, 0x07, 0x52, - 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x4d, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x35, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, - 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x43, 0x6f, - 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x52, - 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, - 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, - 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, - 0x73, 0x22, 0x42, 0x0a, 0x06, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x08, 0x0a, 0x04, 0x4e, - 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x4c, 0x57, 0x41, 0x59, 0x53, 0x10, - 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x55, 0x4e, 0x4c, 0x45, 0x53, 0x53, 0x5f, 0x53, 0x54, 0x4f, 0x50, - 0x50, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, - 0x55, 0x52, 0x45, 0x10, 0x03, 0x1a, 0x31, 0x0a, 0x05, 0x52, 0x75, 0x6e, 0x41, 0x73, 0x12, 0x12, - 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, - 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x9b, 0x01, 0x0a, 0x16, 0x53, 0x74, 0x61, - 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6f, 0x6b, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, - 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4f, 0x4b, 0x48, - 0x00, 0x52, 0x07, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4f, 0x6b, 0x12, 0x3e, 0x0a, 0x0b, 0x73, 0x74, - 0x61, 0x72, 0x74, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, - 0x7a, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x0a, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, 0x0a, 0x07, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4f, - 0x4b, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xab, 0x01, 0x0a, 0x0a, 0x53, 0x74, 0x61, 0x72, 0x74, - 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x3f, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, - 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x53, 0x74, 0x61, 0x72, - 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x09, 0x65, 0x72, 0x72, - 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, - 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, - 0x22, 0x42, 0x0a, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, - 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, - 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, - 0x55, 0x4e, 0x44, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x55, 0x53, - 0x45, 0x44, 0x10, 0x03, 0x22, 0x6b, 0x0a, 0x14, 0x53, 0x74, 0x6f, 0x70, 0x43, 0x6f, 0x6e, 0x74, - 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, - 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0c, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x74, 0x61, - 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, - 0x74, 0x22, 0xb1, 0x01, 0x0a, 0x15, 0x53, 0x74, 0x6f, 0x70, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, - 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x04, 0x63, - 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x53, 0x74, 0x6f, 0x70, - 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, - 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, - 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x3d, 0x0a, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0f, - 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, - 0x08, 0x0a, 0x04, 0x42, 0x55, 0x53, 0x59, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x4e, 0x4f, 0x54, - 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x55, 0x43, 0x43, - 0x45, 0x53, 0x53, 0x10, 0x03, 0x22, 0xcf, 0x01, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6d, 0x61, 0x67, 0x65, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x61, - 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x54, 0x61, - 0x67, 0x12, 0x3e, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, - 0x65, 0x72, 0x7a, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, - 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x73, 0x79, 0x6e, 0x63, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x05, 0x61, 0x73, 0x79, 0x6e, 0x63, 0x22, 0xa2, 0x01, 0x0a, 0x17, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x6b, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, - 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, - 0x4b, 0x48, 0x00, 0x52, 0x08, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x6b, 0x12, 0x41, 0x0a, - 0x0c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, - 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, - 0x72, 0x48, 0x00, 0x52, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, - 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4a, 0x0a, 0x08, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x4b, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e, 0x73, 0x74, - 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0c, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, - 0x08, 0x69, 0x73, 0x5f, 0x61, 0x73, 0x79, 0x6e, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x07, 0x69, 0x73, 0x41, 0x73, 0x79, 0x6e, 0x63, 0x22, 0xcf, 0x01, 0x0a, 0x0b, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x40, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, - 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x52, - 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, - 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x65, 0x74, - 0x61, 0x69, 0x6c, 0x73, 0x22, 0x64, 0x0a, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0f, 0x0a, 0x0b, - 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, - 0x09, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, - 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x4e, - 0x4f, 0x54, 0x5f, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, - 0x4e, 0x4f, 0x54, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x44, 0x10, 0x04, 0x12, 0x0b, 0x0a, - 0x07, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x05, 0x22, 0x49, 0x0a, 0x0a, 0x4c, 0x6f, - 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e, 0x73, 0x74, - 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0c, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, - 0x06, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x66, - 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x22, 0x1f, 0x0a, 0x0b, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0xb9, 0x01, 0x0a, 0x12, 0x4c, 0x6f, 0x63, 0x61, 0x6c, - 0x44, 0x72, 0x69, 0x76, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3c, 0x0a, - 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x4c, 0x6f, - 0x63, 0x61, 0x6c, 0x44, 0x72, 0x69, 0x76, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x70, 0x6f, - 0x69, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x6f, 0x75, 0x6e, 0x74, - 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x22, 0x2b, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, - 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, - 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, - 0x10, 0x01, 0x22, 0xc1, 0x02, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x6f, 0x6c, - 0x75, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2f, - 0x0a, 0x06, 0x64, 0x72, 0x69, 0x76, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, - 0x2e, 0x44, 0x72, 0x69, 0x76, 0x65, 0x72, 0x52, 0x06, 0x64, 0x72, 0x69, 0x76, 0x65, 0x72, 0x12, - 0x55, 0x0a, 0x13, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x4c, - 0x6f, 0x63, 0x61, 0x6c, 0x44, 0x72, 0x69, 0x76, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x48, 0x00, 0x52, 0x11, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x4d, 0x6f, 0x75, 0x6e, 0x74, 0x4f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x48, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, - 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, - 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, - 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4c, 0x61, 0x62, - 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, - 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x6f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x2a, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, - 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x22, 0x3f, 0x0a, 0x13, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x56, 0x6f, 0x6c, 0x75, - 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, - 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x66, 0x6f, - 0x72, 0x63, 0x65, 0x22, 0x16, 0x0a, 0x14, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x56, 0x6f, 0x6c, - 0x75, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x88, 0x01, 0x0a, 0x11, - 0x4c, 0x69, 0x73, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x41, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, - 0x65, 0x72, 0x7a, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x06, 0x66, 0x69, - 0x6c, 0x74, 0x65, 0x72, 0x1a, 0x30, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x10, - 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, - 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x82, 0x03, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x56, - 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x34, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x72, 0x69, 0x76, 0x65, - 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x72, 0x69, 0x76, 0x65, 0x72, 0x12, - 0x4a, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x30, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, - 0x72, 0x7a, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x47, 0x0a, 0x06, 0x6c, - 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x4c, 0x69, - 0x73, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, - 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x3a, 0x0a, 0x0c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, - 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x2a, 0x2a, 0x0a, 0x06, 0x44, - 0x72, 0x69, 0x76, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x0e, 0x44, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, - 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x53, 0x5f, - 0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x10, 0x01, 0x32, 0xeb, 0x08, 0x0a, 0x0a, 0x43, 0x6f, 0x6e, 0x74, - 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x12, 0x4f, 0x0a, 0x06, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, - 0x12, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, - 0x72, 0x7a, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, - 0x72, 0x7a, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x12, 0x56, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x49, - 0x6d, 0x61, 0x67, 0x65, 0x12, 0x21, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, - 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6d, 0x61, 0x67, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, - 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6d, - 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, - 0x5a, 0x0a, 0x0b, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x23, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, - 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, - 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x49, 0x6d, 0x61, 0x67, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x66, 0x0a, 0x0f, 0x52, - 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x27, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, - 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, - 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, - 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x62, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, - 0x69, 0x6e, 0x65, 0x72, 0x12, 0x25, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, - 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, - 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x4c, 0x69, - 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x63, 0x0a, 0x0e, 0x53, 0x74, 0x61, 0x72, 0x74, - 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x26, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x53, 0x74, 0x61, 0x72, - 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x27, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, - 0x65, 0x72, 0x7a, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, - 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x60, 0x0a, 0x0d, - 0x53, 0x74, 0x6f, 0x70, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x25, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, - 0x53, 0x74, 0x6f, 0x70, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, - 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x43, 0x6f, 0x6e, 0x74, 0x61, - 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x66, - 0x0a, 0x0f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, - 0x72, 0x12, 0x27, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, - 0x65, 0x72, 0x7a, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, - 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x44, 0x0a, 0x03, 0x4c, 0x6f, 0x67, 0x12, 0x1b, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, - 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x4c, 0x6f, 0x67, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x5d, 0x0a, 0x0c, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x24, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, - 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x0c, 0x52, - 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x24, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x52, 0x65, - 0x6d, 0x6f, 0x76, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x25, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, - 0x65, 0x72, 0x7a, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x59, 0x0a, 0x0a, 0x4c, 0x69, - 0x73, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x22, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, - 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x2e, 0x4c, - 0x69, 0x73, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x30, 0x01, 0x42, 0x2f, 0xd2, 0x3e, 0x05, 0x30, 0x2e, 0x31, 0x2e, 0x32, 0x5a, - 0x25, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x63, 0x6f, 0x6e, 0x74, - 0x61, 0x69, 0x6e, 0x65, 0x72, 0x7a, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_containerz_containerz_proto_rawDescOnce sync.Once - file_containerz_containerz_proto_rawDescData = file_containerz_containerz_proto_rawDesc -) - -func file_containerz_containerz_proto_rawDescGZIP() []byte { - file_containerz_containerz_proto_rawDescOnce.Do(func() { - file_containerz_containerz_proto_rawDescData = protoimpl.X.CompressGZIP(file_containerz_containerz_proto_rawDescData) - }) - return file_containerz_containerz_proto_rawDescData -} - -var file_containerz_containerz_proto_enumTypes = make([]protoimpl.EnumInfo, 9) -var file_containerz_containerz_proto_msgTypes = make([]protoimpl.MessageInfo, 46) -var file_containerz_containerz_proto_goTypes = []interface{}{ - (Driver)(0), // 0: gnoi.containerz.Driver - (RemoveImageResponse_Code)(0), // 1: gnoi.containerz.RemoveImageResponse.Code - (RemoveContainerResponse_Code)(0), // 2: gnoi.containerz.RemoveContainerResponse.Code - (ListContainerResponse_Status)(0), // 3: gnoi.containerz.ListContainerResponse.Status - (StartContainerRequest_Restart_Policy)(0), // 4: gnoi.containerz.StartContainerRequest.Restart.Policy - (StartError_Code)(0), // 5: gnoi.containerz.StartError.Code - (StopContainerResponse_Code)(0), // 6: gnoi.containerz.StopContainerResponse.Code - (UpdateError_Code)(0), // 7: gnoi.containerz.UpdateError.Code - (LocalDriverOptions_Type)(0), // 8: gnoi.containerz.LocalDriverOptions.Type - (*DeployRequest)(nil), // 9: gnoi.containerz.DeployRequest - (*ImageTransfer)(nil), // 10: gnoi.containerz.ImageTransfer - (*ImageTransferEnd)(nil), // 11: gnoi.containerz.ImageTransferEnd - (*DeployResponse)(nil), // 12: gnoi.containerz.DeployResponse - (*ImageTransferReady)(nil), // 13: gnoi.containerz.ImageTransferReady - (*ImageTransferProgress)(nil), // 14: gnoi.containerz.ImageTransferProgress - (*ImageTransferSuccess)(nil), // 15: gnoi.containerz.ImageTransferSuccess - (*RemoveImageRequest)(nil), // 16: gnoi.containerz.RemoveImageRequest - (*RemoveImageResponse)(nil), // 17: gnoi.containerz.RemoveImageResponse - (*RemoveContainerRequest)(nil), // 18: gnoi.containerz.RemoveContainerRequest - (*RemoveContainerResponse)(nil), // 19: gnoi.containerz.RemoveContainerResponse - (*ListImageRequest)(nil), // 20: gnoi.containerz.ListImageRequest - (*ListImageResponse)(nil), // 21: gnoi.containerz.ListImageResponse - (*ListContainerRequest)(nil), // 22: gnoi.containerz.ListContainerRequest - (*ListContainerResponse)(nil), // 23: gnoi.containerz.ListContainerResponse - (*Volume)(nil), // 24: gnoi.containerz.Volume - (*StartContainerRequest)(nil), // 25: gnoi.containerz.StartContainerRequest - (*StartContainerResponse)(nil), // 26: gnoi.containerz.StartContainerResponse - (*StartOK)(nil), // 27: gnoi.containerz.StartOK - (*StartError)(nil), // 28: gnoi.containerz.StartError - (*StopContainerRequest)(nil), // 29: gnoi.containerz.StopContainerRequest - (*StopContainerResponse)(nil), // 30: gnoi.containerz.StopContainerResponse - (*UpdateContainerRequest)(nil), // 31: gnoi.containerz.UpdateContainerRequest - (*UpdateContainerResponse)(nil), // 32: gnoi.containerz.UpdateContainerResponse - (*UpdateOK)(nil), // 33: gnoi.containerz.UpdateOK - (*UpdateError)(nil), // 34: gnoi.containerz.UpdateError - (*LogRequest)(nil), // 35: gnoi.containerz.LogRequest - (*LogResponse)(nil), // 36: gnoi.containerz.LogResponse - (*LocalDriverOptions)(nil), // 37: gnoi.containerz.LocalDriverOptions - (*CreateVolumeRequest)(nil), // 38: gnoi.containerz.CreateVolumeRequest - (*CreateVolumeResponse)(nil), // 39: gnoi.containerz.CreateVolumeResponse - (*RemoveVolumeRequest)(nil), // 40: gnoi.containerz.RemoveVolumeRequest - (*RemoveVolumeResponse)(nil), // 41: gnoi.containerz.RemoveVolumeResponse - (*ListVolumeRequest)(nil), // 42: gnoi.containerz.ListVolumeRequest - (*ListVolumeResponse)(nil), // 43: gnoi.containerz.ListVolumeResponse - (*ListImageRequest_Filter)(nil), // 44: gnoi.containerz.ListImageRequest.Filter - (*ListContainerRequest_Filter)(nil), // 45: gnoi.containerz.ListContainerRequest.Filter - (*StartContainerRequest_Port)(nil), // 46: gnoi.containerz.StartContainerRequest.Port - nil, // 47: gnoi.containerz.StartContainerRequest.EnvironmentEntry - (*StartContainerRequest_Capabilities)(nil), // 48: gnoi.containerz.StartContainerRequest.Capabilities - (*StartContainerRequest_Restart)(nil), // 49: gnoi.containerz.StartContainerRequest.Restart - (*StartContainerRequest_RunAs)(nil), // 50: gnoi.containerz.StartContainerRequest.RunAs - nil, // 51: gnoi.containerz.CreateVolumeRequest.LabelsEntry - (*ListVolumeRequest_Filter)(nil), // 52: gnoi.containerz.ListVolumeRequest.Filter - nil, // 53: gnoi.containerz.ListVolumeResponse.OptionsEntry - nil, // 54: gnoi.containerz.ListVolumeResponse.LabelsEntry - (*common.RemoteDownload)(nil), // 55: gnoi.common.RemoteDownload - (*status.Status)(nil), // 56: google.rpc.Status - (*timestamppb.Timestamp)(nil), // 57: google.protobuf.Timestamp -} -var file_containerz_containerz_proto_depIdxs = []int32{ - 10, // 0: gnoi.containerz.DeployRequest.image_transfer:type_name -> gnoi.containerz.ImageTransfer - 11, // 1: gnoi.containerz.DeployRequest.image_transfer_end:type_name -> gnoi.containerz.ImageTransferEnd - 55, // 2: gnoi.containerz.ImageTransfer.remote_download:type_name -> gnoi.common.RemoteDownload - 13, // 3: gnoi.containerz.DeployResponse.image_transfer_ready:type_name -> gnoi.containerz.ImageTransferReady - 14, // 4: gnoi.containerz.DeployResponse.image_transfer_progress:type_name -> gnoi.containerz.ImageTransferProgress - 15, // 5: gnoi.containerz.DeployResponse.image_transfer_success:type_name -> gnoi.containerz.ImageTransferSuccess - 56, // 6: gnoi.containerz.DeployResponse.image_transfer_error:type_name -> google.rpc.Status - 1, // 7: gnoi.containerz.RemoveImageResponse.code:type_name -> gnoi.containerz.RemoveImageResponse.Code - 2, // 8: gnoi.containerz.RemoveContainerResponse.code:type_name -> gnoi.containerz.RemoveContainerResponse.Code - 44, // 9: gnoi.containerz.ListImageRequest.filter:type_name -> gnoi.containerz.ListImageRequest.Filter - 45, // 10: gnoi.containerz.ListContainerRequest.filter:type_name -> gnoi.containerz.ListContainerRequest.Filter - 3, // 11: gnoi.containerz.ListContainerResponse.status:type_name -> gnoi.containerz.ListContainerResponse.Status - 46, // 12: gnoi.containerz.StartContainerRequest.ports:type_name -> gnoi.containerz.StartContainerRequest.Port - 47, // 13: gnoi.containerz.StartContainerRequest.environment:type_name -> gnoi.containerz.StartContainerRequest.EnvironmentEntry - 24, // 14: gnoi.containerz.StartContainerRequest.volumes:type_name -> gnoi.containerz.Volume - 48, // 15: gnoi.containerz.StartContainerRequest.cap:type_name -> gnoi.containerz.StartContainerRequest.Capabilities - 49, // 16: gnoi.containerz.StartContainerRequest.restart:type_name -> gnoi.containerz.StartContainerRequest.Restart - 50, // 17: gnoi.containerz.StartContainerRequest.run_as:type_name -> gnoi.containerz.StartContainerRequest.RunAs - 27, // 18: gnoi.containerz.StartContainerResponse.start_ok:type_name -> gnoi.containerz.StartOK - 28, // 19: gnoi.containerz.StartContainerResponse.start_error:type_name -> gnoi.containerz.StartError - 5, // 20: gnoi.containerz.StartError.error_code:type_name -> gnoi.containerz.StartError.Code - 6, // 21: gnoi.containerz.StopContainerResponse.code:type_name -> gnoi.containerz.StopContainerResponse.Code - 25, // 22: gnoi.containerz.UpdateContainerRequest.params:type_name -> gnoi.containerz.StartContainerRequest - 33, // 23: gnoi.containerz.UpdateContainerResponse.update_ok:type_name -> gnoi.containerz.UpdateOK - 34, // 24: gnoi.containerz.UpdateContainerResponse.update_error:type_name -> gnoi.containerz.UpdateError - 7, // 25: gnoi.containerz.UpdateError.error_code:type_name -> gnoi.containerz.UpdateError.Code - 8, // 26: gnoi.containerz.LocalDriverOptions.type:type_name -> gnoi.containerz.LocalDriverOptions.Type - 0, // 27: gnoi.containerz.CreateVolumeRequest.driver:type_name -> gnoi.containerz.Driver - 37, // 28: gnoi.containerz.CreateVolumeRequest.local_mount_options:type_name -> gnoi.containerz.LocalDriverOptions - 51, // 29: gnoi.containerz.CreateVolumeRequest.labels:type_name -> gnoi.containerz.CreateVolumeRequest.LabelsEntry - 52, // 30: gnoi.containerz.ListVolumeRequest.filter:type_name -> gnoi.containerz.ListVolumeRequest.Filter - 57, // 31: gnoi.containerz.ListVolumeResponse.created:type_name -> google.protobuf.Timestamp - 53, // 32: gnoi.containerz.ListVolumeResponse.options:type_name -> gnoi.containerz.ListVolumeResponse.OptionsEntry - 54, // 33: gnoi.containerz.ListVolumeResponse.labels:type_name -> gnoi.containerz.ListVolumeResponse.LabelsEntry - 4, // 34: gnoi.containerz.StartContainerRequest.Restart.policy:type_name -> gnoi.containerz.StartContainerRequest.Restart.Policy - 9, // 35: gnoi.containerz.Containerz.Deploy:input_type -> gnoi.containerz.DeployRequest - 20, // 36: gnoi.containerz.Containerz.ListImage:input_type -> gnoi.containerz.ListImageRequest - 16, // 37: gnoi.containerz.Containerz.RemoveImage:input_type -> gnoi.containerz.RemoveImageRequest - 18, // 38: gnoi.containerz.Containerz.RemoveContainer:input_type -> gnoi.containerz.RemoveContainerRequest - 22, // 39: gnoi.containerz.Containerz.ListContainer:input_type -> gnoi.containerz.ListContainerRequest - 25, // 40: gnoi.containerz.Containerz.StartContainer:input_type -> gnoi.containerz.StartContainerRequest - 29, // 41: gnoi.containerz.Containerz.StopContainer:input_type -> gnoi.containerz.StopContainerRequest - 31, // 42: gnoi.containerz.Containerz.UpdateContainer:input_type -> gnoi.containerz.UpdateContainerRequest - 35, // 43: gnoi.containerz.Containerz.Log:input_type -> gnoi.containerz.LogRequest - 38, // 44: gnoi.containerz.Containerz.CreateVolume:input_type -> gnoi.containerz.CreateVolumeRequest - 40, // 45: gnoi.containerz.Containerz.RemoveVolume:input_type -> gnoi.containerz.RemoveVolumeRequest - 42, // 46: gnoi.containerz.Containerz.ListVolume:input_type -> gnoi.containerz.ListVolumeRequest - 12, // 47: gnoi.containerz.Containerz.Deploy:output_type -> gnoi.containerz.DeployResponse - 21, // 48: gnoi.containerz.Containerz.ListImage:output_type -> gnoi.containerz.ListImageResponse - 17, // 49: gnoi.containerz.Containerz.RemoveImage:output_type -> gnoi.containerz.RemoveImageResponse - 19, // 50: gnoi.containerz.Containerz.RemoveContainer:output_type -> gnoi.containerz.RemoveContainerResponse - 23, // 51: gnoi.containerz.Containerz.ListContainer:output_type -> gnoi.containerz.ListContainerResponse - 26, // 52: gnoi.containerz.Containerz.StartContainer:output_type -> gnoi.containerz.StartContainerResponse - 30, // 53: gnoi.containerz.Containerz.StopContainer:output_type -> gnoi.containerz.StopContainerResponse - 32, // 54: gnoi.containerz.Containerz.UpdateContainer:output_type -> gnoi.containerz.UpdateContainerResponse - 36, // 55: gnoi.containerz.Containerz.Log:output_type -> gnoi.containerz.LogResponse - 39, // 56: gnoi.containerz.Containerz.CreateVolume:output_type -> gnoi.containerz.CreateVolumeResponse - 41, // 57: gnoi.containerz.Containerz.RemoveVolume:output_type -> gnoi.containerz.RemoveVolumeResponse - 43, // 58: gnoi.containerz.Containerz.ListVolume:output_type -> gnoi.containerz.ListVolumeResponse - 47, // [47:59] is the sub-list for method output_type - 35, // [35:47] is the sub-list for method input_type - 35, // [35:35] is the sub-list for extension type_name - 35, // [35:35] is the sub-list for extension extendee - 0, // [0:35] is the sub-list for field type_name -} - -func init() { file_containerz_containerz_proto_init() } -func file_containerz_containerz_proto_init() { - if File_containerz_containerz_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_containerz_containerz_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeployRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ImageTransfer); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ImageTransferEnd); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeployResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ImageTransferReady); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ImageTransferProgress); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ImageTransferSuccess); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveImageRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveImageResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveContainerRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveContainerResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListImageRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListImageResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListContainerRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListContainerResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Volume); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StartContainerRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StartContainerResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StartOK); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StartError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StopContainerRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StopContainerResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateContainerRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateContainerResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateOK); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LogRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LogResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LocalDriverOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateVolumeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateVolumeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveVolumeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveVolumeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListVolumeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListVolumeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListImageRequest_Filter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListContainerRequest_Filter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StartContainerRequest_Port); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StartContainerRequest_Capabilities); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StartContainerRequest_Restart); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StartContainerRequest_RunAs); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_containerz_containerz_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListVolumeRequest_Filter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_containerz_containerz_proto_msgTypes[0].OneofWrappers = []interface{}{ - (*DeployRequest_ImageTransfer)(nil), - (*DeployRequest_Content)(nil), - (*DeployRequest_ImageTransferEnd)(nil), - } - file_containerz_containerz_proto_msgTypes[3].OneofWrappers = []interface{}{ - (*DeployResponse_ImageTransferReady)(nil), - (*DeployResponse_ImageTransferProgress)(nil), - (*DeployResponse_ImageTransferSuccess)(nil), - (*DeployResponse_ImageTransferError)(nil), - } - file_containerz_containerz_proto_msgTypes[17].OneofWrappers = []interface{}{ - (*StartContainerResponse_StartOk)(nil), - (*StartContainerResponse_StartError)(nil), - } - file_containerz_containerz_proto_msgTypes[23].OneofWrappers = []interface{}{ - (*UpdateContainerResponse_UpdateOk)(nil), - (*UpdateContainerResponse_UpdateError)(nil), - } - file_containerz_containerz_proto_msgTypes[29].OneofWrappers = []interface{}{ - (*CreateVolumeRequest_LocalMountOptions)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_containerz_containerz_proto_rawDesc, - NumEnums: 9, - NumMessages: 46, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_containerz_containerz_proto_goTypes, - DependencyIndexes: file_containerz_containerz_proto_depIdxs, - EnumInfos: file_containerz_containerz_proto_enumTypes, - MessageInfos: file_containerz_containerz_proto_msgTypes, - }.Build() - File_containerz_containerz_proto = out.File - file_containerz_containerz_proto_rawDesc = nil - file_containerz_containerz_proto_goTypes = nil - file_containerz_containerz_proto_depIdxs = nil -} diff --git a/src/sonic-framework/gnoi/containerz/containerz.proto b/src/sonic-framework/gnoi/containerz/containerz.proto deleted file mode 100644 index 8ce69da0dbc6..000000000000 --- a/src/sonic-framework/gnoi/containerz/containerz.proto +++ /dev/null @@ -1,630 +0,0 @@ -// -// Copyright 2023 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -// This file defines the gNOI APIs used to perform container operations on a -// network device. In addition to the container operations specified in this -// file, any implementation of the containerz service is expected to clean or -// remove images and containers that are either no longer used or that have been -// orphaned either by upgrading containers or by containers that have been -// stopped not removed. -// -// This specification is still under design and subject to -// change. -syntax = "proto3"; - -package gnoi.containerz; - -import "github.com/openconfig/gnoi/common/common.proto"; -import "github.com/openconfig/gnoi/types/types.proto"; -import "google/protobuf/timestamp.proto"; -import "google/rpc/status.proto"; - -option go_package = "github.com/openconfig/gnoi/containerz"; -option (types.gnoi_version) = "0.1.2"; - -service Containerz { - // Deploy sets a container image on the target. The container is sent as - // a sequential stream of messages containing up to 4MB of data (max default - // gRPC message size). Upon reception of a valid container, the target must - // load it into its registry. Whether the registry is local or remote is - // target and deployment specific. A valid container is one that has passed - // its checksum. - rpc Deploy(stream DeployRequest) returns (stream DeployResponse) {} - - // ListImage returns all images that the spec defined in the request. - rpc ListImage(ListImageRequest) returns (stream ListImageResponse) {} - - // RemoveImage deletes images that match the spec defined in the - // request. If the image is associated to a running container then an error - // is returned. If the specified container image does not exist, this - // operation is a no-op. - rpc RemoveImage(RemoveImageRequest) - returns (RemoveImageResponse) {} - - // RemoveContainer deletes images that match the spec defined in the - // request. If the image is associated to a running container then an error - // is returned. If the specified container image does not exist, this - // operation is a no-op. - // - // Deprecated - use RemoveImage instead. - rpc RemoveContainer(RemoveContainerRequest) - returns (RemoveContainerResponse) {} - - // ListContainer returns all containers that match the spec defined in the - // request. - rpc ListContainer(ListContainerRequest) - returns (stream ListContainerResponse) {} - - // Start starts a container. If the image does not exist on the target, - // Start returns an error. A started container is identified by an instance - // name, which can optionally be supplied by the caller otherwise the target - // should provide one. If the instance name already exists, the target should - // return an error. - rpc StartContainer(StartContainerRequest) returns (StartContainerResponse) {} - - // Stop stops a container. If the container does not exist or is not running - // this operation returns an error. This operation can, optionally, force - // (i.e. kill) a container. - rpc StopContainer(StopContainerRequest) returns (StopContainerResponse) {} - - // UpdateContainer updates a running container to the image specified in the - // request. By default the operation is synchronous which means that the - // request will only return once the container has either been successfully - // updated or the update has failed. If the client requests an asynchronous - // update then the server must perform all validations (e.g. does the - // requested image exist on the system or does the instance name exist) and - // return to the client and the update happens asynchronously. It is up to the - // client to check if the update actually updates the container to the - // requested version or not. - // In both synchronous and asynchronous mode, the update process is a - // break-before-make process as resources bound to the old container must be - // released prior to launching the new container. - // If the update fails, the server must restore the previous version of the - // container. This can either be a start of the previous container or by - // starting a new container with the old image. - // It must use the provided StartContainerRequest provided in the - // params field. - // If a container exists but is not running should still upgrade the container - // and start it. - // The client should only depend on the client being restarted. Any ephemeral - // state (date written to memory or the filesystem) cannot be depended upon. - // In particular, the contents of the filesystem are not guaranteed during a - // rollback. - rpc UpdateContainer(UpdateContainerRequest) - returns (UpdateContainerResponse) {} - - // Log streams the logs of a running container. If the container if no longer - // running this operation streams the latest logs and returns. - rpc Log(LogRequest) returns (stream LogResponse) {} - - // Creates a volume. If the volume already exists, this operation returns an - // error. A volume is expected to be backed by persistent datastore and is - // expected exist across device reboots along with the data it contained. - rpc CreateVolume(CreateVolumeRequest) returns (CreateVolumeResponse) {} - - // Removes a volume. If the volume does not exist, this operation is a noop. - rpc RemoveVolume(RemoveVolumeRequest) returns (RemoveVolumeResponse) {} - - // ListVolume returns all volumes that match the spec defined in the filter. - rpc ListVolume(ListVolumeRequest) returns (stream ListVolumeResponse) {} -} - -message DeployRequest { - oneof request { - ImageTransfer image_transfer = 1; - bytes content = 2; - ImageTransferEnd image_transfer_end = 3; - } -} - -message ImageTransfer { - // The image name. This is the name the container image must have after the - // is completed. - string name = 1; - - // The tag is a version identifier for this container image. After the - // transfer successfully completes, the tag must be applied to the - // container image. - string tag = 2; - - // Optional. Indicates the size (in bytes) of the container image. - uint64 image_size = 3; - - // Optional. Instructs the target to fetch the image from a remote location. - // The above name and tag must be applied to the container once downloaded. - common.RemoteDownload remote_download = 4; -} - -// ImageTransferEnd indicates to the target that the client is finished sending -// and therefore no more content will be sent. Any content sent after this -// message should be discarded. This message serves as a signal to the target -// to begin integrity verifications on the received data. -message ImageTransferEnd { -} - -message DeployResponse { - oneof response { - ImageTransferReady image_transfer_ready = 1; - ImageTransferProgress image_transfer_progress = 2; - ImageTransferSuccess image_transfer_success = 3; - google.rpc.Status image_transfer_error = 4; - } -} - -// ImageTransferReady indicates to the client that the target is ready to -// receive the container image content. -message ImageTransferReady { - // Indicates the size of the chunks that the client should break the - // container into as it is transferred. - int32 chunk_size = 1; -} - -// ImageTransferProgress is sent periodically to the client during the transfer. -message ImageTransferProgress { - // The number of bytes transferred so far. - uint64 bytes_received = 1; -} - -// ImageTransferSuccess indicates to the client that the container image -// transfer was successful. -message ImageTransferSuccess { - // The name of the container image. - string name = 1; - - // The tag of the container image. - string tag = 2; - - // The total size of the image. - uint64 image_size = 3; -} - -message RemoveImageRequest { - // The container image name to be removed. - string name = 1; - - // The container tag to be removed. - string tag = 2; - - // If force is set, the target should attempt to forcibly remove the - // container. - bool force = 3; -} - -message RemoveImageResponse { - enum Code { - UNSPECIFIED = 0; - - // An unknown error. Must use the detail value to describe the issue. - UNKNOWN = 1; - - // Indicates the image was not found in the remote location. - NOT_FOUND = 2; - - // Indicates that a container using this image is running. - RUNNING = 3; - - // The container image was successfully removed. - SUCCESS = 4; - } - - Code code = 1; - string detail = 2; -} - -message RemoveContainerRequest { - // The container image name to be removed. - string name = 1; - - // The container tag to be removed. - string tag = 2; - - // If force is set, the target should attempt to forcibly remove the - // container. - bool force = 3; -} - -message RemoveContainerResponse { - enum Code { - // An unspecified error. Must use the detail value to describe the issue. - UNSPECIFIED = 0; - - // Indicates the image was not found in the remote location. - NOT_FOUND = 1; - - // Indicates that a container using this image is running. - RUNNING = 2; - - // The container image was successfully removed. - SUCCESS = 3; - } - - Code code = 1; - string detail = 2; -} - -message ListImageRequest { - int32 limit = 1; - - // A filter is a mapping from a key to a list of values. - // TODO(alshabib) document possible keys - message Filter { - string key = 1; - repeated string value = 2; - } - - repeated Filter filter = 3; -} - -message ListImageResponse { - string id = 1; - string image_name = 2; - string tag = 3; -} - -message ListContainerRequest { - // List all containers, by default only running ones are returned. - bool all = 1; - - // Only return limit number of containers. - int32 limit = 2; - - // A filter is a mapping from a key to a list of values. - // TODO(alshabib) document possible keys - message Filter { - string key = 1; - repeated string value = 2; - } - - repeated Filter filter = 3; -} - -message ListContainerResponse { - string id = 1; - string name = 2; - string image_name = 3; - - enum Status { - // An unspecified state. - UNSPECIFIED = 0; - - // Container was running and is now stopped. - STOPPED = 1; - - // Container is running. - RUNNING = 2; - - // Container has never been run but exists on the target. - PRESENT = 3; - - // The container does not exist on the target. - NOT_FOUND = 4; - } - - Status status = 4; -} - -// A volume can be passed to a container such that it can persist data. -message Volume { - string name = 1; - - // The mount_point is location with the container where the volume should be - // attached within the container. - string mount_point = 2; - - // If read_only is set, the volume is mounted in readonly mode. - bool read_only = 3; -} - -message StartContainerRequest { - // The name and tag of the container to start. - string image_name = 1; - string tag = 2; - string cmd = 3; - - // Optional. The name to give the running container. If none is specified, - // the target should assign one. - string instance_name = 4; - message Port { - uint32 internal = 1; - uint32 external = 2; - } - - // List of internal ports to expose outside the container. - repeated Port ports = 5; - - // Environment to set in the container. - map environment = 6; - - // List of volumes that should be attached to the container. - repeated Volume volumes = 7; - - // The network to attach this container to. This could be 'host', 'bridged', - // or any other network available in the runtime. - string network = 8; - - // Capabilities to be added or removed. Capabilities are first removed then - // added. - message Capabilities { - repeated string add = 1; - repeated string remove = 2; - } - - // Add or remove capabilities to this container. The list of valid - // capabilities can be found in - // https://man7.org/linux/man-pages/man7/capabilities.7.html. - // This is default set of capabilities: - // AUDIT_WRITE, CHOWN, DAC_OVERRIDE, FOWNER, FSETID, KILL, MKNOD, - // NET_BIND_SERVICE, NET_RAW, SETFCAP, SETGID, SETPCAP, SETUID, SYS_CHROOT. - Capabilities cap = 9; - - message Restart { - enum Policy { - // Never restart a container. - NONE = 0; - - // Always restart a container unless explicitly stopped. This includes - // when the container runtime is restarted, i.e. any container with this - // policy prior to the runtime being stopped must be restarted when the - // runtime is started again. - ALWAYS = 1; - - // Same as ALWAYS but not across container runtime restarts. - UNLESS_STOPPED = 2; - - // Restart for max attempts if the container fails. - ON_FAILURE = 3; - } - - Policy policy = 1; - - // Only applies for the ON_FAILURE policy. - uint32 attempts = 2; - } - - // restart defines the restart policy to use for this container. All policies - // affect the behaviour when the container fails. Only the ALWAYS policy will - // affect the behaviour across system reboots. - Restart restart = 10; - - message RunAs { - // The user to run as. - string user = 1; - - // Optional. The group to run as. - string group = 2; - } - - // run_as defines what user and group this container should run as. If it is - // not specified then the container will be run as the docker user and group. - RunAs run_as = 11; - - // Other container properties will be added as it becomes necessary. -} - -message StartContainerResponse { - oneof response { - StartOK start_ok = 1; - StartError start_error = 2; - } -} - -message StartOK { - // The running containers name. - string instance_name = 1; -} - -message StartError { - enum Code { - UNSPECIFIED = 0; - - // An unknown error. The details field should provide more information. - UNKNOWN = 1; - - // The container image was not found. - NOT_FOUND = 2; - - // Exposed port is already used by another container. - PORT_USED = 3; - } - - Code error_code = 1; - string details = 2; -} - -message StopContainerRequest { - string instance_name = 1; - - // If force is set, the target should attempt to forcibly kill the container. - bool force = 2; - - // If restart is set, the target should start the container immediately - // after stopping it. - bool restart = 3; -} - -message StopContainerResponse { - enum Code { - // An unspecified error. The details field should provide more information. - UNSPECIFIED = 0; - - // Container is busy. - BUSY = 1; - - // Instance was not found on the target. - NOT_FOUND = 2; - - // The container was removed. - SUCCESS = 3; - } - - Code code = 1; - string details = 2; -} - -message UpdateContainerRequest { - - // The name of the running container to update. - string instance_name = 1; - - // The image and tag to update the container to. - string image_name = 2; - string image_tag = 3; - - // The set of parameters to run the container with. - StartContainerRequest params = 4; - - // Run this operation asynchronously or not. - bool async = 5; -} - -message UpdateContainerResponse { - oneof response { - UpdateOK update_ok = 1; - UpdateError update_error = 2; - } -} - -message UpdateOK { - // The running containers name. - string instance_name = 1; - - // Indicates if this is an async update. - bool is_async = 2; -} - -message UpdateError { - enum Code { - // An unspecified error. The details field should provide more information. - UNSPECIFIED = 0; - - // The container image was not found. - NOT_FOUND = 1; - - // Exposed port is already used by another container. - PORT_USED = 2; - - // The container was found but was not running. - NOT_RUNNING = 3; - - // The update failed and the previous version was restored. - NOT_UPDATED = 4; - - // The update operation or rollback failed. - FAILURE = 5; - } - - Code error_code = 1; - string details = 2; -} - -message LogRequest { - string instance_name = 1; - - // If set, the stream remains open until the client cancels it. - bool follow = 2; -} - -message LogResponse { - string msg = 1; -} - -// Driver enum defines which volume driver should be used when creating the -// volume -enum Driver { - DS_UNSPECIFIED = 0; - DS_LOCAL = 1; -} - -message LocalDriverOptions { - enum Type { - TYPE_UNSPECIFIED = 0; - TYPE_NONE = 1; - } - - // Mount type to use. If this is not specified it default to `none`. - Type type = 1; - - // List of mount options as specified by `options` in - // http://man7.org/linux/man-pages/man8/mount.8.html. - repeated string options = 2; - - string mountpoint = 3; -} - -message CreateVolumeRequest { - // name of the volume. If present, this system must create the volume with - // this name otherwise it must allocate a name. - string name = 1; - - // The volume driver. If not specified, this defaults to the the standard - // linux mount operation (http://man7.org/linux/man-pages/man8/mount.8.html) - // and associated options. - Driver driver = 2; - - // Options for the driver. The actual option keys and values are driver - // specific. - oneof options { - LocalDriverOptions local_mount_options = 3; - } - - // Labels to apply to the volume. Labels are metadata for the the volume. - map labels = 4; -} - -message CreateVolumeResponse { - // The name of the created volume. - string name = 1; -} - -message RemoveVolumeRequest { - // The volume to remove. - string name = 1; - - // force the volume removal. - bool force = 2; -} - -message RemoveVolumeResponse { -} - -message ListVolumeRequest { - // A filter is a mapping from a key to a list of values. - // TODO(alshabib) document possible keys - message Filter { - string key = 1; - repeated string value = 2; - } - - repeated Filter filter = 1; -} - -message ListVolumeResponse { - string name = 1; - - // The timestamp when the volume was created. - google.protobuf.Timestamp created = 2; - - // The volume driver - string driver = 3; - - // Options for the driver. The actual option keys and values are driver - // specific. - map options = 4; - - // Volume labels. - map labels = 5; - -} diff --git a/src/sonic-framework/gnoi/containerz/containerz_grpc.pb.go b/src/sonic-framework/gnoi/containerz/containerz_grpc.pb.go deleted file mode 100755 index b854e572adc8..000000000000 --- a/src/sonic-framework/gnoi/containerz/containerz_grpc.pb.go +++ /dev/null @@ -1,642 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.21.10 -// source: containerz/containerz.proto - -package containerz - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// ContainerzClient is the client API for Containerz service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type ContainerzClient interface { - Deploy(ctx context.Context, opts ...grpc.CallOption) (Containerz_DeployClient, error) - ListImage(ctx context.Context, in *ListImageRequest, opts ...grpc.CallOption) (Containerz_ListImageClient, error) - RemoveImage(ctx context.Context, in *RemoveImageRequest, opts ...grpc.CallOption) (*RemoveImageResponse, error) - RemoveContainer(ctx context.Context, in *RemoveContainerRequest, opts ...grpc.CallOption) (*RemoveContainerResponse, error) - ListContainer(ctx context.Context, in *ListContainerRequest, opts ...grpc.CallOption) (Containerz_ListContainerClient, error) - StartContainer(ctx context.Context, in *StartContainerRequest, opts ...grpc.CallOption) (*StartContainerResponse, error) - StopContainer(ctx context.Context, in *StopContainerRequest, opts ...grpc.CallOption) (*StopContainerResponse, error) - UpdateContainer(ctx context.Context, in *UpdateContainerRequest, opts ...grpc.CallOption) (*UpdateContainerResponse, error) - Log(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (Containerz_LogClient, error) - CreateVolume(ctx context.Context, in *CreateVolumeRequest, opts ...grpc.CallOption) (*CreateVolumeResponse, error) - RemoveVolume(ctx context.Context, in *RemoveVolumeRequest, opts ...grpc.CallOption) (*RemoveVolumeResponse, error) - ListVolume(ctx context.Context, in *ListVolumeRequest, opts ...grpc.CallOption) (Containerz_ListVolumeClient, error) -} - -type containerzClient struct { - cc grpc.ClientConnInterface -} - -func NewContainerzClient(cc grpc.ClientConnInterface) ContainerzClient { - return &containerzClient{cc} -} - -func (c *containerzClient) Deploy(ctx context.Context, opts ...grpc.CallOption) (Containerz_DeployClient, error) { - stream, err := c.cc.NewStream(ctx, &Containerz_ServiceDesc.Streams[0], "/gnoi.containerz.Containerz/Deploy", opts...) - if err != nil { - return nil, err - } - x := &containerzDeployClient{stream} - return x, nil -} - -type Containerz_DeployClient interface { - Send(*DeployRequest) error - Recv() (*DeployResponse, error) - grpc.ClientStream -} - -type containerzDeployClient struct { - grpc.ClientStream -} - -func (x *containerzDeployClient) Send(m *DeployRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *containerzDeployClient) Recv() (*DeployResponse, error) { - m := new(DeployResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *containerzClient) ListImage(ctx context.Context, in *ListImageRequest, opts ...grpc.CallOption) (Containerz_ListImageClient, error) { - stream, err := c.cc.NewStream(ctx, &Containerz_ServiceDesc.Streams[1], "/gnoi.containerz.Containerz/ListImage", opts...) - if err != nil { - return nil, err - } - x := &containerzListImageClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type Containerz_ListImageClient interface { - Recv() (*ListImageResponse, error) - grpc.ClientStream -} - -type containerzListImageClient struct { - grpc.ClientStream -} - -func (x *containerzListImageClient) Recv() (*ListImageResponse, error) { - m := new(ListImageResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *containerzClient) RemoveImage(ctx context.Context, in *RemoveImageRequest, opts ...grpc.CallOption) (*RemoveImageResponse, error) { - out := new(RemoveImageResponse) - err := c.cc.Invoke(ctx, "/gnoi.containerz.Containerz/RemoveImage", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *containerzClient) RemoveContainer(ctx context.Context, in *RemoveContainerRequest, opts ...grpc.CallOption) (*RemoveContainerResponse, error) { - out := new(RemoveContainerResponse) - err := c.cc.Invoke(ctx, "/gnoi.containerz.Containerz/RemoveContainer", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *containerzClient) ListContainer(ctx context.Context, in *ListContainerRequest, opts ...grpc.CallOption) (Containerz_ListContainerClient, error) { - stream, err := c.cc.NewStream(ctx, &Containerz_ServiceDesc.Streams[2], "/gnoi.containerz.Containerz/ListContainer", opts...) - if err != nil { - return nil, err - } - x := &containerzListContainerClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type Containerz_ListContainerClient interface { - Recv() (*ListContainerResponse, error) - grpc.ClientStream -} - -type containerzListContainerClient struct { - grpc.ClientStream -} - -func (x *containerzListContainerClient) Recv() (*ListContainerResponse, error) { - m := new(ListContainerResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *containerzClient) StartContainer(ctx context.Context, in *StartContainerRequest, opts ...grpc.CallOption) (*StartContainerResponse, error) { - out := new(StartContainerResponse) - err := c.cc.Invoke(ctx, "/gnoi.containerz.Containerz/StartContainer", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *containerzClient) StopContainer(ctx context.Context, in *StopContainerRequest, opts ...grpc.CallOption) (*StopContainerResponse, error) { - out := new(StopContainerResponse) - err := c.cc.Invoke(ctx, "/gnoi.containerz.Containerz/StopContainer", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *containerzClient) UpdateContainer(ctx context.Context, in *UpdateContainerRequest, opts ...grpc.CallOption) (*UpdateContainerResponse, error) { - out := new(UpdateContainerResponse) - err := c.cc.Invoke(ctx, "/gnoi.containerz.Containerz/UpdateContainer", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *containerzClient) Log(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (Containerz_LogClient, error) { - stream, err := c.cc.NewStream(ctx, &Containerz_ServiceDesc.Streams[3], "/gnoi.containerz.Containerz/Log", opts...) - if err != nil { - return nil, err - } - x := &containerzLogClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type Containerz_LogClient interface { - Recv() (*LogResponse, error) - grpc.ClientStream -} - -type containerzLogClient struct { - grpc.ClientStream -} - -func (x *containerzLogClient) Recv() (*LogResponse, error) { - m := new(LogResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *containerzClient) CreateVolume(ctx context.Context, in *CreateVolumeRequest, opts ...grpc.CallOption) (*CreateVolumeResponse, error) { - out := new(CreateVolumeResponse) - err := c.cc.Invoke(ctx, "/gnoi.containerz.Containerz/CreateVolume", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *containerzClient) RemoveVolume(ctx context.Context, in *RemoveVolumeRequest, opts ...grpc.CallOption) (*RemoveVolumeResponse, error) { - out := new(RemoveVolumeResponse) - err := c.cc.Invoke(ctx, "/gnoi.containerz.Containerz/RemoveVolume", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *containerzClient) ListVolume(ctx context.Context, in *ListVolumeRequest, opts ...grpc.CallOption) (Containerz_ListVolumeClient, error) { - stream, err := c.cc.NewStream(ctx, &Containerz_ServiceDesc.Streams[4], "/gnoi.containerz.Containerz/ListVolume", opts...) - if err != nil { - return nil, err - } - x := &containerzListVolumeClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type Containerz_ListVolumeClient interface { - Recv() (*ListVolumeResponse, error) - grpc.ClientStream -} - -type containerzListVolumeClient struct { - grpc.ClientStream -} - -func (x *containerzListVolumeClient) Recv() (*ListVolumeResponse, error) { - m := new(ListVolumeResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// ContainerzServer is the server API for Containerz service. -// All implementations must embed UnimplementedContainerzServer -// for forward compatibility -type ContainerzServer interface { - Deploy(Containerz_DeployServer) error - ListImage(*ListImageRequest, Containerz_ListImageServer) error - RemoveImage(context.Context, *RemoveImageRequest) (*RemoveImageResponse, error) - RemoveContainer(context.Context, *RemoveContainerRequest) (*RemoveContainerResponse, error) - ListContainer(*ListContainerRequest, Containerz_ListContainerServer) error - StartContainer(context.Context, *StartContainerRequest) (*StartContainerResponse, error) - StopContainer(context.Context, *StopContainerRequest) (*StopContainerResponse, error) - UpdateContainer(context.Context, *UpdateContainerRequest) (*UpdateContainerResponse, error) - Log(*LogRequest, Containerz_LogServer) error - CreateVolume(context.Context, *CreateVolumeRequest) (*CreateVolumeResponse, error) - RemoveVolume(context.Context, *RemoveVolumeRequest) (*RemoveVolumeResponse, error) - ListVolume(*ListVolumeRequest, Containerz_ListVolumeServer) error - mustEmbedUnimplementedContainerzServer() -} - -// UnimplementedContainerzServer must be embedded to have forward compatible implementations. -type UnimplementedContainerzServer struct { -} - -func (UnimplementedContainerzServer) Deploy(Containerz_DeployServer) error { - return status.Errorf(codes.Unimplemented, "method Deploy not implemented") -} -func (UnimplementedContainerzServer) ListImage(*ListImageRequest, Containerz_ListImageServer) error { - return status.Errorf(codes.Unimplemented, "method ListImage not implemented") -} -func (UnimplementedContainerzServer) RemoveImage(context.Context, *RemoveImageRequest) (*RemoveImageResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveImage not implemented") -} -func (UnimplementedContainerzServer) RemoveContainer(context.Context, *RemoveContainerRequest) (*RemoveContainerResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveContainer not implemented") -} -func (UnimplementedContainerzServer) ListContainer(*ListContainerRequest, Containerz_ListContainerServer) error { - return status.Errorf(codes.Unimplemented, "method ListContainer not implemented") -} -func (UnimplementedContainerzServer) StartContainer(context.Context, *StartContainerRequest) (*StartContainerResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StartContainer not implemented") -} -func (UnimplementedContainerzServer) StopContainer(context.Context, *StopContainerRequest) (*StopContainerResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StopContainer not implemented") -} -func (UnimplementedContainerzServer) UpdateContainer(context.Context, *UpdateContainerRequest) (*UpdateContainerResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateContainer not implemented") -} -func (UnimplementedContainerzServer) Log(*LogRequest, Containerz_LogServer) error { - return status.Errorf(codes.Unimplemented, "method Log not implemented") -} -func (UnimplementedContainerzServer) CreateVolume(context.Context, *CreateVolumeRequest) (*CreateVolumeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateVolume not implemented") -} -func (UnimplementedContainerzServer) RemoveVolume(context.Context, *RemoveVolumeRequest) (*RemoveVolumeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveVolume not implemented") -} -func (UnimplementedContainerzServer) ListVolume(*ListVolumeRequest, Containerz_ListVolumeServer) error { - return status.Errorf(codes.Unimplemented, "method ListVolume not implemented") -} -func (UnimplementedContainerzServer) mustEmbedUnimplementedContainerzServer() {} - -// UnsafeContainerzServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to ContainerzServer will -// result in compilation errors. -type UnsafeContainerzServer interface { - mustEmbedUnimplementedContainerzServer() -} - -func RegisterContainerzServer(s grpc.ServiceRegistrar, srv ContainerzServer) { - s.RegisterService(&Containerz_ServiceDesc, srv) -} - -func _Containerz_Deploy_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(ContainerzServer).Deploy(&containerzDeployServer{stream}) -} - -type Containerz_DeployServer interface { - Send(*DeployResponse) error - Recv() (*DeployRequest, error) - grpc.ServerStream -} - -type containerzDeployServer struct { - grpc.ServerStream -} - -func (x *containerzDeployServer) Send(m *DeployResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *containerzDeployServer) Recv() (*DeployRequest, error) { - m := new(DeployRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _Containerz_ListImage_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ListImageRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ContainerzServer).ListImage(m, &containerzListImageServer{stream}) -} - -type Containerz_ListImageServer interface { - Send(*ListImageResponse) error - grpc.ServerStream -} - -type containerzListImageServer struct { - grpc.ServerStream -} - -func (x *containerzListImageServer) Send(m *ListImageResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _Containerz_RemoveImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RemoveImageRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ContainerzServer).RemoveImage(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.containerz.Containerz/RemoveImage", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ContainerzServer).RemoveImage(ctx, req.(*RemoveImageRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Containerz_RemoveContainer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RemoveContainerRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ContainerzServer).RemoveContainer(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.containerz.Containerz/RemoveContainer", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ContainerzServer).RemoveContainer(ctx, req.(*RemoveContainerRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Containerz_ListContainer_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ListContainerRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ContainerzServer).ListContainer(m, &containerzListContainerServer{stream}) -} - -type Containerz_ListContainerServer interface { - Send(*ListContainerResponse) error - grpc.ServerStream -} - -type containerzListContainerServer struct { - grpc.ServerStream -} - -func (x *containerzListContainerServer) Send(m *ListContainerResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _Containerz_StartContainer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StartContainerRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ContainerzServer).StartContainer(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.containerz.Containerz/StartContainer", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ContainerzServer).StartContainer(ctx, req.(*StartContainerRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Containerz_StopContainer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StopContainerRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ContainerzServer).StopContainer(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.containerz.Containerz/StopContainer", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ContainerzServer).StopContainer(ctx, req.(*StopContainerRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Containerz_UpdateContainer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateContainerRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ContainerzServer).UpdateContainer(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.containerz.Containerz/UpdateContainer", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ContainerzServer).UpdateContainer(ctx, req.(*UpdateContainerRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Containerz_Log_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(LogRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ContainerzServer).Log(m, &containerzLogServer{stream}) -} - -type Containerz_LogServer interface { - Send(*LogResponse) error - grpc.ServerStream -} - -type containerzLogServer struct { - grpc.ServerStream -} - -func (x *containerzLogServer) Send(m *LogResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _Containerz_CreateVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateVolumeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ContainerzServer).CreateVolume(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.containerz.Containerz/CreateVolume", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ContainerzServer).CreateVolume(ctx, req.(*CreateVolumeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Containerz_RemoveVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RemoveVolumeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ContainerzServer).RemoveVolume(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.containerz.Containerz/RemoveVolume", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ContainerzServer).RemoveVolume(ctx, req.(*RemoveVolumeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Containerz_ListVolume_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ListVolumeRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(ContainerzServer).ListVolume(m, &containerzListVolumeServer{stream}) -} - -type Containerz_ListVolumeServer interface { - Send(*ListVolumeResponse) error - grpc.ServerStream -} - -type containerzListVolumeServer struct { - grpc.ServerStream -} - -func (x *containerzListVolumeServer) Send(m *ListVolumeResponse) error { - return x.ServerStream.SendMsg(m) -} - -// Containerz_ServiceDesc is the grpc.ServiceDesc for Containerz service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Containerz_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.containerz.Containerz", - HandlerType: (*ContainerzServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "RemoveImage", - Handler: _Containerz_RemoveImage_Handler, - }, - { - MethodName: "RemoveContainer", - Handler: _Containerz_RemoveContainer_Handler, - }, - { - MethodName: "StartContainer", - Handler: _Containerz_StartContainer_Handler, - }, - { - MethodName: "StopContainer", - Handler: _Containerz_StopContainer_Handler, - }, - { - MethodName: "UpdateContainer", - Handler: _Containerz_UpdateContainer_Handler, - }, - { - MethodName: "CreateVolume", - Handler: _Containerz_CreateVolume_Handler, - }, - { - MethodName: "RemoveVolume", - Handler: _Containerz_RemoveVolume_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "Deploy", - Handler: _Containerz_Deploy_Handler, - ServerStreams: true, - ClientStreams: true, - }, - { - StreamName: "ListImage", - Handler: _Containerz_ListImage_Handler, - ServerStreams: true, - }, - { - StreamName: "ListContainer", - Handler: _Containerz_ListContainer_Handler, - ServerStreams: true, - }, - { - StreamName: "Log", - Handler: _Containerz_Log_Handler, - ServerStreams: true, - }, - { - StreamName: "ListVolume", - Handler: _Containerz_ListVolume_Handler, - ServerStreams: true, - }, - }, - Metadata: "containerz/containerz.proto", -} diff --git a/src/sonic-framework/gnoi/debug/BUILD.bazel b/src/sonic-framework/gnoi/debug/BUILD.bazel deleted file mode 100644 index ed1d346c50f3..000000000000 --- a/src/sonic-framework/gnoi/debug/BUILD.bazel +++ /dev/null @@ -1,64 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") -load("//:common.bzl", "use_new_compilers") - -#Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.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. - -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -use_new_compilers() - -proto_library( - name = "debug_proto", - srcs = ["debug.proto"], - deps = [ - "//types:types_proto", - "@com_google_protobuf//:any_proto", - ], -) - -cc_proto_library( - name = "debug_cc_proto", - deps = [":debug_proto"], -) - -cc_grpc_library( - name = "debug_cc_grpc_proto", - srcs = [":debug_proto"], - grpc_only = True, - deps = [":debug_cc_proto"], -) - -go_proto_library( - name = "debug_go_proto", - compilers = [ - "go_protoc_gen_go", - "go_protoc_gen_go_grpc", - ], - importpath = "github.com/openconfig/gnoi/debug", - proto = ":debug_proto", - deps = ["//types"], -) - -go_library( - name = "debug", - embed = [":debug_go_proto"], - importpath = "github.com/openconfig/gnoi/debug", -) diff --git a/src/sonic-framework/gnoi/debug/README.md b/src/sonic-framework/gnoi/debug/README.md deleted file mode 100644 index 155c0d85d7f6..000000000000 --- a/src/sonic-framework/gnoi/debug/README.md +++ /dev/null @@ -1,40 +0,0 @@ -# gNOI `Debug` Streaming RPC Design - -**Contributors**: hines@google.com, robjs@google.com -**Last Updated**: 2023-11-04 - -## Background - -* [gNOI Repository](https://github.com/openconfig/gnoi) -* [gNOI `Debug` service](https://github.com/openconfig/gnoi/tree/master/debug) - -For all legacy devices that provided a CLI on box, providers have leveraged this CLI through services to provide users with the ability to interact with device CLI's to both get information as well as set operational state on devices. This interaction is very vendor specific and requires significant overhead to maintain the vendor specific bindings throughout the operational life cycle of a device. - -With the introduction of g* services, the goal has been to remove vendor specific data formats from the view operators. This lets operators have standard models for interacting with any number of vendor devices consistently. There however are gaps between those endpoints versioning and the ability to troubleshoot specific data on a device before API's can be updated. This proposal is to enable a lightweight interface via gRPC to still access shell level interactions on the device in a secure, maintainable way. - -## Architecture - -The service will run on a specified port. This service upon recieving a command the server will validate the user has access to the service via Authz check. If user has access the server will then parse the request and check if the user has both the acccess to run the command and if provided act as the role user. If the user is allowed the device will then open "shell" in the mode requested and execute the command in that mode. - -## User Experience - -### User needs to get custom state from device - -User Request -> Stream of data returned - -Example requests are CLI ‘show’ commands. Ie: - -`show proc cpu | json` - -### User needs to be able to shell to subcomponent (linecard / backup supervisor) to get data - -`shell ; show memory` - -### User needs to tail a process to get output - -`tail -f /var/log/foo` - -### User needs to capture a trace of process - -`strace ` - diff --git a/src/sonic-framework/gnoi/debug/debug.pb.go b/src/sonic-framework/gnoi/debug/debug.pb.go deleted file mode 100644 index d5063da03ea9..000000000000 --- a/src/sonic-framework/gnoi/debug/debug.pb.go +++ /dev/null @@ -1,465 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v3.21.10 -// source: debug/debug.proto - -package debug - -import ( - _ "github.com/openconfig/gnoi/types" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - anypb "google.golang.org/protobuf/types/known/anypb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type DebugRequest_Mode int32 - -const ( - DebugRequest_MODE_UNSPECIFIED DebugRequest_Mode = 0 - DebugRequest_MODE_SHELL DebugRequest_Mode = 1 - DebugRequest_MODE_CLI DebugRequest_Mode = 2 -) - -// Enum value maps for DebugRequest_Mode. -var ( - DebugRequest_Mode_name = map[int32]string{ - 0: "MODE_UNSPECIFIED", - 1: "MODE_SHELL", - 2: "MODE_CLI", - } - DebugRequest_Mode_value = map[string]int32{ - "MODE_UNSPECIFIED": 0, - "MODE_SHELL": 1, - "MODE_CLI": 2, - } -) - -func (x DebugRequest_Mode) Enum() *DebugRequest_Mode { - p := new(DebugRequest_Mode) - *p = x - return p -} - -func (x DebugRequest_Mode) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (DebugRequest_Mode) Descriptor() protoreflect.EnumDescriptor { - return file_debug_debug_proto_enumTypes[0].Descriptor() -} - -func (DebugRequest_Mode) Type() protoreflect.EnumType { - return &file_debug_debug_proto_enumTypes[0] -} - -func (x DebugRequest_Mode) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use DebugRequest_Mode.Descriptor instead. -func (DebugRequest_Mode) EnumDescriptor() ([]byte, []int) { - return file_debug_debug_proto_rawDescGZIP(), []int{0, 0} -} - -type DebugRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Mode DebugRequest_Mode `protobuf:"varint,1,opt,name=mode,proto3,enum=gnoi.debug.DebugRequest_Mode" json:"mode,omitempty"` - Command []byte `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"` - ByteLimit int64 `protobuf:"varint,3,opt,name=byte_limit,json=byteLimit,proto3" json:"byte_limit,omitempty"` - Timeout int64 `protobuf:"varint,4,opt,name=timeout,proto3" json:"timeout,omitempty"` - RoleAccount string `protobuf:"bytes,5,opt,name=role_account,json=roleAccount,proto3" json:"role_account,omitempty"` -} - -func (x *DebugRequest) Reset() { - *x = DebugRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_debug_debug_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DebugRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DebugRequest) ProtoMessage() {} - -func (x *DebugRequest) ProtoReflect() protoreflect.Message { - mi := &file_debug_debug_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DebugRequest.ProtoReflect.Descriptor instead. -func (*DebugRequest) Descriptor() ([]byte, []int) { - return file_debug_debug_proto_rawDescGZIP(), []int{0} -} - -func (x *DebugRequest) GetMode() DebugRequest_Mode { - if x != nil { - return x.Mode - } - return DebugRequest_MODE_UNSPECIFIED -} - -func (x *DebugRequest) GetCommand() []byte { - if x != nil { - return x.Command - } - return nil -} - -func (x *DebugRequest) GetByteLimit() int64 { - if x != nil { - return x.ByteLimit - } - return 0 -} - -func (x *DebugRequest) GetTimeout() int64 { - if x != nil { - return x.Timeout - } - return 0 -} - -func (x *DebugRequest) GetRoleAccount() string { - if x != nil { - return x.RoleAccount - } - return "" -} - -type DebugResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Response: - // - // *DebugResponse_Request - // *DebugResponse_Data - // *DebugResponse_Status - Response isDebugResponse_Response `protobuf_oneof:"response"` -} - -func (x *DebugResponse) Reset() { - *x = DebugResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_debug_debug_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DebugResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DebugResponse) ProtoMessage() {} - -func (x *DebugResponse) ProtoReflect() protoreflect.Message { - mi := &file_debug_debug_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DebugResponse.ProtoReflect.Descriptor instead. -func (*DebugResponse) Descriptor() ([]byte, []int) { - return file_debug_debug_proto_rawDescGZIP(), []int{1} -} - -func (m *DebugResponse) GetResponse() isDebugResponse_Response { - if m != nil { - return m.Response - } - return nil -} - -func (x *DebugResponse) GetRequest() *DebugRequest { - if x, ok := x.GetResponse().(*DebugResponse_Request); ok { - return x.Request - } - return nil -} - -func (x *DebugResponse) GetData() []byte { - if x, ok := x.GetResponse().(*DebugResponse_Data); ok { - return x.Data - } - return nil -} - -func (x *DebugResponse) GetStatus() *DebugStatus { - if x, ok := x.GetResponse().(*DebugResponse_Status); ok { - return x.Status - } - return nil -} - -type isDebugResponse_Response interface { - isDebugResponse_Response() -} - -type DebugResponse_Request struct { - Request *DebugRequest `protobuf:"bytes,100,opt,name=request,proto3,oneof"` -} - -type DebugResponse_Data struct { - Data []byte `protobuf:"bytes,101,opt,name=data,proto3,oneof"` -} - -type DebugResponse_Status struct { - Status *DebugStatus `protobuf:"bytes,102,opt,name=status,proto3,oneof"` -} - -func (*DebugResponse_Request) isDebugResponse_Response() {} - -func (*DebugResponse_Data) isDebugResponse_Response() {} - -func (*DebugResponse_Status) isDebugResponse_Response() {} - -type DebugStatus struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - Details []*anypb.Any `protobuf:"bytes,3,rep,name=details,proto3" json:"details,omitempty"` -} - -func (x *DebugStatus) Reset() { - *x = DebugStatus{} - if protoimpl.UnsafeEnabled { - mi := &file_debug_debug_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DebugStatus) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DebugStatus) ProtoMessage() {} - -func (x *DebugStatus) ProtoReflect() protoreflect.Message { - mi := &file_debug_debug_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DebugStatus.ProtoReflect.Descriptor instead. -func (*DebugStatus) Descriptor() ([]byte, []int) { - return file_debug_debug_proto_rawDescGZIP(), []int{2} -} - -func (x *DebugStatus) GetCode() int32 { - if x != nil { - return x.Code - } - return 0 -} - -func (x *DebugStatus) GetMessage() string { - if x != nil { - return x.Message - } - return "" -} - -func (x *DebugStatus) GetDetails() []*anypb.Any { - if x != nil { - return x.Details - } - return nil -} - -var File_debug_debug_proto protoreflect.FileDescriptor - -var file_debug_debug_proto_rawDesc = []byte{ - 0x0a, 0x11, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2f, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x65, 0x62, 0x75, 0x67, 0x1a, - 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, - 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf3, 0x01, 0x0a, 0x0c, 0x44, 0x65, 0x62, - 0x75, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x04, 0x6d, 0x6f, 0x64, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, - 0x65, 0x62, 0x75, 0x67, 0x2e, 0x44, 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, - 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, - 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x79, 0x74, 0x65, 0x5f, 0x6c, - 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x62, 0x79, 0x74, 0x65, - 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, - 0x21, 0x0a, 0x0c, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x6f, 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x22, 0x3a, 0x0a, 0x04, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x4d, 0x4f, - 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, - 0x12, 0x0e, 0x0a, 0x0a, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x53, 0x48, 0x45, 0x4c, 0x4c, 0x10, 0x01, - 0x12, 0x0c, 0x0a, 0x08, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x43, 0x4c, 0x49, 0x10, 0x02, 0x22, 0x9a, - 0x01, 0x0a, 0x0d, 0x44, 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x34, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x64, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2e, 0x44, - 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x07, 0x72, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x65, - 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x31, 0x0a, 0x06, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x66, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2e, 0x44, 0x65, 0x62, 0x75, 0x67, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x48, 0x00, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, - 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6b, 0x0a, 0x0b, 0x44, - 0x65, 0x62, 0x75, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, - 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, - 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x2e, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, - 0x69, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, - 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x32, 0x47, 0x0a, 0x05, 0x44, 0x65, 0x62, 0x75, - 0x67, 0x12, 0x3e, 0x0a, 0x05, 0x44, 0x65, 0x62, 0x75, 0x67, 0x12, 0x18, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x64, 0x65, 0x62, 0x75, 0x67, 0x2e, 0x44, 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x65, 0x62, 0x75, - 0x67, 0x2e, 0x44, 0x65, 0x62, 0x75, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, - 0x01, 0x42, 0x2a, 0xd2, 0x3e, 0x05, 0x30, 0x2e, 0x31, 0x2e, 0x30, 0x5a, 0x20, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x64, 0x65, 0x62, 0x75, 0x67, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_debug_debug_proto_rawDescOnce sync.Once - file_debug_debug_proto_rawDescData = file_debug_debug_proto_rawDesc -) - -func file_debug_debug_proto_rawDescGZIP() []byte { - file_debug_debug_proto_rawDescOnce.Do(func() { - file_debug_debug_proto_rawDescData = protoimpl.X.CompressGZIP(file_debug_debug_proto_rawDescData) - }) - return file_debug_debug_proto_rawDescData -} - -var file_debug_debug_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_debug_debug_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_debug_debug_proto_goTypes = []interface{}{ - (DebugRequest_Mode)(0), // 0: gnoi.debug.DebugRequest.Mode - (*DebugRequest)(nil), // 1: gnoi.debug.DebugRequest - (*DebugResponse)(nil), // 2: gnoi.debug.DebugResponse - (*DebugStatus)(nil), // 3: gnoi.debug.DebugStatus - (*anypb.Any)(nil), // 4: google.protobuf.Any -} -var file_debug_debug_proto_depIdxs = []int32{ - 0, // 0: gnoi.debug.DebugRequest.mode:type_name -> gnoi.debug.DebugRequest.Mode - 1, // 1: gnoi.debug.DebugResponse.request:type_name -> gnoi.debug.DebugRequest - 3, // 2: gnoi.debug.DebugResponse.status:type_name -> gnoi.debug.DebugStatus - 4, // 3: gnoi.debug.DebugStatus.details:type_name -> google.protobuf.Any - 1, // 4: gnoi.debug.Debug.Debug:input_type -> gnoi.debug.DebugRequest - 2, // 5: gnoi.debug.Debug.Debug:output_type -> gnoi.debug.DebugResponse - 5, // [5:6] is the sub-list for method output_type - 4, // [4:5] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name -} - -func init() { file_debug_debug_proto_init() } -func file_debug_debug_proto_init() { - if File_debug_debug_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_debug_debug_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DebugRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_debug_debug_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DebugResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_debug_debug_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DebugStatus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_debug_debug_proto_msgTypes[1].OneofWrappers = []interface{}{ - (*DebugResponse_Request)(nil), - (*DebugResponse_Data)(nil), - (*DebugResponse_Status)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_debug_debug_proto_rawDesc, - NumEnums: 1, - NumMessages: 3, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_debug_debug_proto_goTypes, - DependencyIndexes: file_debug_debug_proto_depIdxs, - EnumInfos: file_debug_debug_proto_enumTypes, - MessageInfos: file_debug_debug_proto_msgTypes, - }.Build() - File_debug_debug_proto = out.File - file_debug_debug_proto_rawDesc = nil - file_debug_debug_proto_goTypes = nil - file_debug_debug_proto_depIdxs = nil -} diff --git a/src/sonic-framework/gnoi/debug/debug.proto b/src/sonic-framework/gnoi/debug/debug.proto deleted file mode 100644 index 17e08becc872..000000000000 --- a/src/sonic-framework/gnoi/debug/debug.proto +++ /dev/null @@ -1,77 +0,0 @@ -// -// Copyright 2023 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -// This file defines the gNOI APIs used to gather specific debug information -// from the network device. -syntax = "proto3"; - -package gnoi.debug; - -import "github.com/openconfig/gnoi/types/types.proto"; -import "google/protobuf/any.proto"; - -option go_package = "github.com/openconfig/gnoi/debug"; - -option (types.gnoi_version) = "0.1.0"; - -service Debug { - // Debug will execute the set of commands provided in the request. - // The command will be executed in the mode provided. - // All command modes must support an exit code on completion of the - // command. (e.g. Cli modes must exit after sending a command) - // Errors: - // InvalidArgument: for unspecified mode - rpc Debug (DebugRequest) returns (stream DebugResponse); -} - -message DebugRequest { - enum Mode { - MODE_UNSPECIFIED = 0; - MODE_SHELL = 1; - MODE_CLI = 2; - } - // Mode the commands will be executed in. - Mode mode = 1; - // Raw bytes for the command to be executed. - bytes command = 2; - // Truncate the amount of data returned for the command. - int64 byte_limit = 3; - // Timeout in nanoseconds. - int64 timeout = 4; - // Role account to use for the command. - string role_account = 5; -} - -// DebugResponse stream will send the request in the first -// message then stream all bytes returned by the command. -// The last message will be a status message containing the exit -// code and any error details. -message DebugResponse { - oneof response { - DebugRequest request = 100; - bytes data = 101; - DebugStatus status = 102; - } -} - -message DebugStatus { - // The status code, which should be the underlying OS exit status. - int32 code = 1; - // Any returned error status string. - string message = 2; - // A list of messages that carry the error details. - repeated google.protobuf.Any details = 3; -} diff --git a/src/sonic-framework/gnoi/debug/debug_grpc.pb.go b/src/sonic-framework/gnoi/debug/debug_grpc.pb.go deleted file mode 100755 index e6d6699bf29a..000000000000 --- a/src/sonic-framework/gnoi/debug/debug_grpc.pb.go +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.21.10 -// source: debug/debug.proto - -package debug - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// DebugClient is the client API for Debug service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type DebugClient interface { - Debug(ctx context.Context, in *DebugRequest, opts ...grpc.CallOption) (Debug_DebugClient, error) -} - -type debugClient struct { - cc grpc.ClientConnInterface -} - -func NewDebugClient(cc grpc.ClientConnInterface) DebugClient { - return &debugClient{cc} -} - -func (c *debugClient) Debug(ctx context.Context, in *DebugRequest, opts ...grpc.CallOption) (Debug_DebugClient, error) { - stream, err := c.cc.NewStream(ctx, &Debug_ServiceDesc.Streams[0], "/gnoi.debug.Debug/Debug", opts...) - if err != nil { - return nil, err - } - x := &debugDebugClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type Debug_DebugClient interface { - Recv() (*DebugResponse, error) - grpc.ClientStream -} - -type debugDebugClient struct { - grpc.ClientStream -} - -func (x *debugDebugClient) Recv() (*DebugResponse, error) { - m := new(DebugResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// DebugServer is the server API for Debug service. -// All implementations must embed UnimplementedDebugServer -// for forward compatibility -type DebugServer interface { - Debug(*DebugRequest, Debug_DebugServer) error - mustEmbedUnimplementedDebugServer() -} - -// UnimplementedDebugServer must be embedded to have forward compatible implementations. -type UnimplementedDebugServer struct { -} - -func (UnimplementedDebugServer) Debug(*DebugRequest, Debug_DebugServer) error { - return status.Errorf(codes.Unimplemented, "method Debug not implemented") -} -func (UnimplementedDebugServer) mustEmbedUnimplementedDebugServer() {} - -// UnsafeDebugServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to DebugServer will -// result in compilation errors. -type UnsafeDebugServer interface { - mustEmbedUnimplementedDebugServer() -} - -func RegisterDebugServer(s grpc.ServiceRegistrar, srv DebugServer) { - s.RegisterService(&Debug_ServiceDesc, srv) -} - -func _Debug_Debug_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(DebugRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(DebugServer).Debug(m, &debugDebugServer{stream}) -} - -type Debug_DebugServer interface { - Send(*DebugResponse) error - grpc.ServerStream -} - -type debugDebugServer struct { - grpc.ServerStream -} - -func (x *debugDebugServer) Send(m *DebugResponse) error { - return x.ServerStream.SendMsg(m) -} - -// Debug_ServiceDesc is the grpc.ServiceDesc for Debug service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Debug_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.debug.Debug", - HandlerType: (*DebugServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "Debug", - Handler: _Debug_Debug_Handler, - ServerStreams: true, - }, - }, - Metadata: "debug/debug.proto", -} diff --git a/src/sonic-framework/gnoi/diag/BUILD.bazel b/src/sonic-framework/gnoi/diag/BUILD.bazel deleted file mode 100644 index 2e2fe744d248..000000000000 --- a/src/sonic-framework/gnoi/diag/BUILD.bazel +++ /dev/null @@ -1,63 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") -load("//:common.bzl", "use_new_compilers") - -#Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# 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. - -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -use_new_compilers() - -proto_library( - name = "diag_proto", - srcs = ["diag.proto"], - deps = [ - "//types:types_proto", - ], -) - -cc_proto_library( - name = "diag_cc_proto", - deps = [":diag_proto"], -) - -cc_grpc_library( - name = "diag_cc_grpc_proto", - srcs = [":diag_proto"], - grpc_only = True, - deps = [":diag_cc_proto"], -) - -go_proto_library( - name = "diag_go_proto", - compilers = [ - "go_protoc_gen_go", - "go_protoc_gen_go_grpc", - ], - importpath = "github.com/openconfig/gnoi/diag", - proto = ":diag_proto", - deps = ["//types"], -) - -go_library( - name = "diag", - embed = [":diag_go_proto"], - importpath = "github.com/openconfig/gnoi/diag", -) diff --git a/src/sonic-framework/gnoi/diag/diag.pb.go b/src/sonic-framework/gnoi/diag/diag.pb.go deleted file mode 100644 index 90b8c838f732..000000000000 --- a/src/sonic-framework/gnoi/diag/diag.pb.go +++ /dev/null @@ -1,1316 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v3.21.10 -// source: diag/diag.proto - -package diag - -import ( - types "github.com/openconfig/gnoi/types" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type PrbsPolynomial int32 - -const ( - PrbsPolynomial_PRBS_POLYNOMIAL_UNKNOWN PrbsPolynomial = 0 - PrbsPolynomial_PRBS_POLYNOMIAL_PRBS7 PrbsPolynomial = 1 - PrbsPolynomial_PRBS_POLYNOMIAL_PRBS9 PrbsPolynomial = 2 - PrbsPolynomial_PRBS_POLYNOMIAL_PRBS15 PrbsPolynomial = 3 - PrbsPolynomial_PRBS_POLYNOMIAL_PRBS20 PrbsPolynomial = 4 - PrbsPolynomial_PRBS_POLYNOMIAL_PRBS23 PrbsPolynomial = 5 - PrbsPolynomial_PRBS_POLYNOMIAL_PRBS31 PrbsPolynomial = 6 -) - -// Enum value maps for PrbsPolynomial. -var ( - PrbsPolynomial_name = map[int32]string{ - 0: "PRBS_POLYNOMIAL_UNKNOWN", - 1: "PRBS_POLYNOMIAL_PRBS7", - 2: "PRBS_POLYNOMIAL_PRBS9", - 3: "PRBS_POLYNOMIAL_PRBS15", - 4: "PRBS_POLYNOMIAL_PRBS20", - 5: "PRBS_POLYNOMIAL_PRBS23", - 6: "PRBS_POLYNOMIAL_PRBS31", - } - PrbsPolynomial_value = map[string]int32{ - "PRBS_POLYNOMIAL_UNKNOWN": 0, - "PRBS_POLYNOMIAL_PRBS7": 1, - "PRBS_POLYNOMIAL_PRBS9": 2, - "PRBS_POLYNOMIAL_PRBS15": 3, - "PRBS_POLYNOMIAL_PRBS20": 4, - "PRBS_POLYNOMIAL_PRBS23": 5, - "PRBS_POLYNOMIAL_PRBS31": 6, - } -) - -func (x PrbsPolynomial) Enum() *PrbsPolynomial { - p := new(PrbsPolynomial) - *p = x - return p -} - -func (x PrbsPolynomial) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (PrbsPolynomial) Descriptor() protoreflect.EnumDescriptor { - return file_diag_diag_proto_enumTypes[0].Descriptor() -} - -func (PrbsPolynomial) Type() protoreflect.EnumType { - return &file_diag_diag_proto_enumTypes[0] -} - -func (x PrbsPolynomial) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use PrbsPolynomial.Descriptor instead. -func (PrbsPolynomial) EnumDescriptor() ([]byte, []int) { - return file_diag_diag_proto_rawDescGZIP(), []int{0} -} - -type BertStatus int32 - -const ( - BertStatus_BERT_STATUS_UNKNOWN BertStatus = 0 - BertStatus_BERT_STATUS_OK BertStatus = 1 - BertStatus_BERT_STATUS_NON_EXISTENT_PORT BertStatus = 2 - BertStatus_BERT_STATUS_HARDWARE_ACCESS_ERROR BertStatus = 3 - BertStatus_BERT_STATUS_UNSUPPORTED_PRBS_POLYNOMIAL BertStatus = 4 - BertStatus_BERT_STATUS_PORT_ALREADY_IN_BERT BertStatus = 5 - BertStatus_BERT_STATUS_PORT_NOT_RUNNING_BERT BertStatus = 6 - BertStatus_BERT_STATUS_TEST_DURATION_TOO_SHORT BertStatus = 7 - BertStatus_BERT_STATUS_TEST_DURATION_TOO_LONG BertStatus = 8 - BertStatus_BERT_STATUS_OPERATION_ID_NOT_FOUND BertStatus = 9 - BertStatus_BERT_STATUS_OPERATION_ID_IN_USE BertStatus = 10 - BertStatus_BERT_STATUS_PEER_LOCK_FAILURE BertStatus = 11 - BertStatus_BERT_STATUS_PEER_LOCK_LOST BertStatus = 12 - BertStatus_BERT_STATUS_INTERNAL_ERROR BertStatus = 13 -) - -// Enum value maps for BertStatus. -var ( - BertStatus_name = map[int32]string{ - 0: "BERT_STATUS_UNKNOWN", - 1: "BERT_STATUS_OK", - 2: "BERT_STATUS_NON_EXISTENT_PORT", - 3: "BERT_STATUS_HARDWARE_ACCESS_ERROR", - 4: "BERT_STATUS_UNSUPPORTED_PRBS_POLYNOMIAL", - 5: "BERT_STATUS_PORT_ALREADY_IN_BERT", - 6: "BERT_STATUS_PORT_NOT_RUNNING_BERT", - 7: "BERT_STATUS_TEST_DURATION_TOO_SHORT", - 8: "BERT_STATUS_TEST_DURATION_TOO_LONG", - 9: "BERT_STATUS_OPERATION_ID_NOT_FOUND", - 10: "BERT_STATUS_OPERATION_ID_IN_USE", - 11: "BERT_STATUS_PEER_LOCK_FAILURE", - 12: "BERT_STATUS_PEER_LOCK_LOST", - 13: "BERT_STATUS_INTERNAL_ERROR", - } - BertStatus_value = map[string]int32{ - "BERT_STATUS_UNKNOWN": 0, - "BERT_STATUS_OK": 1, - "BERT_STATUS_NON_EXISTENT_PORT": 2, - "BERT_STATUS_HARDWARE_ACCESS_ERROR": 3, - "BERT_STATUS_UNSUPPORTED_PRBS_POLYNOMIAL": 4, - "BERT_STATUS_PORT_ALREADY_IN_BERT": 5, - "BERT_STATUS_PORT_NOT_RUNNING_BERT": 6, - "BERT_STATUS_TEST_DURATION_TOO_SHORT": 7, - "BERT_STATUS_TEST_DURATION_TOO_LONG": 8, - "BERT_STATUS_OPERATION_ID_NOT_FOUND": 9, - "BERT_STATUS_OPERATION_ID_IN_USE": 10, - "BERT_STATUS_PEER_LOCK_FAILURE": 11, - "BERT_STATUS_PEER_LOCK_LOST": 12, - "BERT_STATUS_INTERNAL_ERROR": 13, - } -) - -func (x BertStatus) Enum() *BertStatus { - p := new(BertStatus) - *p = x - return p -} - -func (x BertStatus) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (BertStatus) Descriptor() protoreflect.EnumDescriptor { - return file_diag_diag_proto_enumTypes[1].Descriptor() -} - -func (BertStatus) Type() protoreflect.EnumType { - return &file_diag_diag_proto_enumTypes[1] -} - -func (x BertStatus) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use BertStatus.Descriptor instead. -func (BertStatus) EnumDescriptor() ([]byte, []int) { - return file_diag_diag_proto_rawDescGZIP(), []int{1} -} - -type StartBERTRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId,proto3" json:"bert_operation_id,omitempty"` - PerPortRequests []*StartBERTRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests,proto3" json:"per_port_requests,omitempty"` -} - -func (x *StartBERTRequest) Reset() { - *x = StartBERTRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_diag_diag_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StartBERTRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StartBERTRequest) ProtoMessage() {} - -func (x *StartBERTRequest) ProtoReflect() protoreflect.Message { - mi := &file_diag_diag_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StartBERTRequest.ProtoReflect.Descriptor instead. -func (*StartBERTRequest) Descriptor() ([]byte, []int) { - return file_diag_diag_proto_rawDescGZIP(), []int{0} -} - -func (x *StartBERTRequest) GetBertOperationId() string { - if x != nil { - return x.BertOperationId - } - return "" -} - -func (x *StartBERTRequest) GetPerPortRequests() []*StartBERTRequest_PerPortRequest { - if x != nil { - return x.PerPortRequests - } - return nil -} - -type StartBERTResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId,proto3" json:"bert_operation_id,omitempty"` - PerPortResponses []*StartBERTResponse_PerPortResponse `protobuf:"bytes,2,rep,name=per_port_responses,json=perPortResponses,proto3" json:"per_port_responses,omitempty"` -} - -func (x *StartBERTResponse) Reset() { - *x = StartBERTResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_diag_diag_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StartBERTResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StartBERTResponse) ProtoMessage() {} - -func (x *StartBERTResponse) ProtoReflect() protoreflect.Message { - mi := &file_diag_diag_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StartBERTResponse.ProtoReflect.Descriptor instead. -func (*StartBERTResponse) Descriptor() ([]byte, []int) { - return file_diag_diag_proto_rawDescGZIP(), []int{1} -} - -func (x *StartBERTResponse) GetBertOperationId() string { - if x != nil { - return x.BertOperationId - } - return "" -} - -func (x *StartBERTResponse) GetPerPortResponses() []*StartBERTResponse_PerPortResponse { - if x != nil { - return x.PerPortResponses - } - return nil -} - -type StopBERTRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId,proto3" json:"bert_operation_id,omitempty"` - PerPortRequests []*StopBERTRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests,proto3" json:"per_port_requests,omitempty"` -} - -func (x *StopBERTRequest) Reset() { - *x = StopBERTRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_diag_diag_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StopBERTRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StopBERTRequest) ProtoMessage() {} - -func (x *StopBERTRequest) ProtoReflect() protoreflect.Message { - mi := &file_diag_diag_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StopBERTRequest.ProtoReflect.Descriptor instead. -func (*StopBERTRequest) Descriptor() ([]byte, []int) { - return file_diag_diag_proto_rawDescGZIP(), []int{2} -} - -func (x *StopBERTRequest) GetBertOperationId() string { - if x != nil { - return x.BertOperationId - } - return "" -} - -func (x *StopBERTRequest) GetPerPortRequests() []*StopBERTRequest_PerPortRequest { - if x != nil { - return x.PerPortRequests - } - return nil -} - -type StopBERTResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId,proto3" json:"bert_operation_id,omitempty"` - PerPortResponses []*StopBERTResponse_PerPortResponse `protobuf:"bytes,2,rep,name=per_port_responses,json=perPortResponses,proto3" json:"per_port_responses,omitempty"` -} - -func (x *StopBERTResponse) Reset() { - *x = StopBERTResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_diag_diag_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StopBERTResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StopBERTResponse) ProtoMessage() {} - -func (x *StopBERTResponse) ProtoReflect() protoreflect.Message { - mi := &file_diag_diag_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StopBERTResponse.ProtoReflect.Descriptor instead. -func (*StopBERTResponse) Descriptor() ([]byte, []int) { - return file_diag_diag_proto_rawDescGZIP(), []int{3} -} - -func (x *StopBERTResponse) GetBertOperationId() string { - if x != nil { - return x.BertOperationId - } - return "" -} - -func (x *StopBERTResponse) GetPerPortResponses() []*StopBERTResponse_PerPortResponse { - if x != nil { - return x.PerPortResponses - } - return nil -} - -type GetBERTResultRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId,proto3" json:"bert_operation_id,omitempty"` - PerPortRequests []*GetBERTResultRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests,proto3" json:"per_port_requests,omitempty"` - ResultFromAllPorts bool `protobuf:"varint,3,opt,name=result_from_all_ports,json=resultFromAllPorts,proto3" json:"result_from_all_ports,omitempty"` -} - -func (x *GetBERTResultRequest) Reset() { - *x = GetBERTResultRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_diag_diag_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetBERTResultRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetBERTResultRequest) ProtoMessage() {} - -func (x *GetBERTResultRequest) ProtoReflect() protoreflect.Message { - mi := &file_diag_diag_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetBERTResultRequest.ProtoReflect.Descriptor instead. -func (*GetBERTResultRequest) Descriptor() ([]byte, []int) { - return file_diag_diag_proto_rawDescGZIP(), []int{4} -} - -func (x *GetBERTResultRequest) GetBertOperationId() string { - if x != nil { - return x.BertOperationId - } - return "" -} - -func (x *GetBERTResultRequest) GetPerPortRequests() []*GetBERTResultRequest_PerPortRequest { - if x != nil { - return x.PerPortRequests - } - return nil -} - -func (x *GetBERTResultRequest) GetResultFromAllPorts() bool { - if x != nil { - return x.ResultFromAllPorts - } - return false -} - -type GetBERTResultResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PerPortResponses []*GetBERTResultResponse_PerPortResponse `protobuf:"bytes,1,rep,name=per_port_responses,json=perPortResponses,proto3" json:"per_port_responses,omitempty"` -} - -func (x *GetBERTResultResponse) Reset() { - *x = GetBERTResultResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_diag_diag_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetBERTResultResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetBERTResultResponse) ProtoMessage() {} - -func (x *GetBERTResultResponse) ProtoReflect() protoreflect.Message { - mi := &file_diag_diag_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetBERTResultResponse.ProtoReflect.Descriptor instead. -func (*GetBERTResultResponse) Descriptor() ([]byte, []int) { - return file_diag_diag_proto_rawDescGZIP(), []int{5} -} - -func (x *GetBERTResultResponse) GetPerPortResponses() []*GetBERTResultResponse_PerPortResponse { - if x != nil { - return x.PerPortResponses - } - return nil -} - -type StartBERTRequest_PerPortRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - PrbsPolynomial PrbsPolynomial `protobuf:"varint,2,opt,name=prbs_polynomial,json=prbsPolynomial,proto3,enum=gnoi.diag.PrbsPolynomial" json:"prbs_polynomial,omitempty"` - TestDurationInSecs uint32 `protobuf:"varint,3,opt,name=test_duration_in_secs,json=testDurationInSecs,proto3" json:"test_duration_in_secs,omitempty"` -} - -func (x *StartBERTRequest_PerPortRequest) Reset() { - *x = StartBERTRequest_PerPortRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_diag_diag_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StartBERTRequest_PerPortRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StartBERTRequest_PerPortRequest) ProtoMessage() {} - -func (x *StartBERTRequest_PerPortRequest) ProtoReflect() protoreflect.Message { - mi := &file_diag_diag_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StartBERTRequest_PerPortRequest.ProtoReflect.Descriptor instead. -func (*StartBERTRequest_PerPortRequest) Descriptor() ([]byte, []int) { - return file_diag_diag_proto_rawDescGZIP(), []int{0, 0} -} - -func (x *StartBERTRequest_PerPortRequest) GetInterface() *types.Path { - if x != nil { - return x.Interface - } - return nil -} - -func (x *StartBERTRequest_PerPortRequest) GetPrbsPolynomial() PrbsPolynomial { - if x != nil { - return x.PrbsPolynomial - } - return PrbsPolynomial_PRBS_POLYNOMIAL_UNKNOWN -} - -func (x *StartBERTRequest_PerPortRequest) GetTestDurationInSecs() uint32 { - if x != nil { - return x.TestDurationInSecs - } - return 0 -} - -type StartBERTResponse_PerPortResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - Status BertStatus `protobuf:"varint,2,opt,name=status,proto3,enum=gnoi.diag.BertStatus" json:"status,omitempty"` -} - -func (x *StartBERTResponse_PerPortResponse) Reset() { - *x = StartBERTResponse_PerPortResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_diag_diag_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StartBERTResponse_PerPortResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StartBERTResponse_PerPortResponse) ProtoMessage() {} - -func (x *StartBERTResponse_PerPortResponse) ProtoReflect() protoreflect.Message { - mi := &file_diag_diag_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StartBERTResponse_PerPortResponse.ProtoReflect.Descriptor instead. -func (*StartBERTResponse_PerPortResponse) Descriptor() ([]byte, []int) { - return file_diag_diag_proto_rawDescGZIP(), []int{1, 0} -} - -func (x *StartBERTResponse_PerPortResponse) GetInterface() *types.Path { - if x != nil { - return x.Interface - } - return nil -} - -func (x *StartBERTResponse_PerPortResponse) GetStatus() BertStatus { - if x != nil { - return x.Status - } - return BertStatus_BERT_STATUS_UNKNOWN -} - -type StopBERTRequest_PerPortRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` -} - -func (x *StopBERTRequest_PerPortRequest) Reset() { - *x = StopBERTRequest_PerPortRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_diag_diag_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StopBERTRequest_PerPortRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StopBERTRequest_PerPortRequest) ProtoMessage() {} - -func (x *StopBERTRequest_PerPortRequest) ProtoReflect() protoreflect.Message { - mi := &file_diag_diag_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StopBERTRequest_PerPortRequest.ProtoReflect.Descriptor instead. -func (*StopBERTRequest_PerPortRequest) Descriptor() ([]byte, []int) { - return file_diag_diag_proto_rawDescGZIP(), []int{2, 0} -} - -func (x *StopBERTRequest_PerPortRequest) GetInterface() *types.Path { - if x != nil { - return x.Interface - } - return nil -} - -type StopBERTResponse_PerPortResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - Status BertStatus `protobuf:"varint,2,opt,name=status,proto3,enum=gnoi.diag.BertStatus" json:"status,omitempty"` -} - -func (x *StopBERTResponse_PerPortResponse) Reset() { - *x = StopBERTResponse_PerPortResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_diag_diag_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StopBERTResponse_PerPortResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StopBERTResponse_PerPortResponse) ProtoMessage() {} - -func (x *StopBERTResponse_PerPortResponse) ProtoReflect() protoreflect.Message { - mi := &file_diag_diag_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StopBERTResponse_PerPortResponse.ProtoReflect.Descriptor instead. -func (*StopBERTResponse_PerPortResponse) Descriptor() ([]byte, []int) { - return file_diag_diag_proto_rawDescGZIP(), []int{3, 0} -} - -func (x *StopBERTResponse_PerPortResponse) GetInterface() *types.Path { - if x != nil { - return x.Interface - } - return nil -} - -func (x *StopBERTResponse_PerPortResponse) GetStatus() BertStatus { - if x != nil { - return x.Status - } - return BertStatus_BERT_STATUS_UNKNOWN -} - -type GetBERTResultRequest_PerPortRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` -} - -func (x *GetBERTResultRequest_PerPortRequest) Reset() { - *x = GetBERTResultRequest_PerPortRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_diag_diag_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetBERTResultRequest_PerPortRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetBERTResultRequest_PerPortRequest) ProtoMessage() {} - -func (x *GetBERTResultRequest_PerPortRequest) ProtoReflect() protoreflect.Message { - mi := &file_diag_diag_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetBERTResultRequest_PerPortRequest.ProtoReflect.Descriptor instead. -func (*GetBERTResultRequest_PerPortRequest) Descriptor() ([]byte, []int) { - return file_diag_diag_proto_rawDescGZIP(), []int{4, 0} -} - -func (x *GetBERTResultRequest_PerPortRequest) GetInterface() *types.Path { - if x != nil { - return x.Interface - } - return nil -} - -type GetBERTResultResponse_PerPortResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - Status BertStatus `protobuf:"varint,2,opt,name=status,proto3,enum=gnoi.diag.BertStatus" json:"status,omitempty"` - BertOperationId string `protobuf:"bytes,3,opt,name=bert_operation_id,json=bertOperationId,proto3" json:"bert_operation_id,omitempty"` - PrbsPolynomial PrbsPolynomial `protobuf:"varint,4,opt,name=prbs_polynomial,json=prbsPolynomial,proto3,enum=gnoi.diag.PrbsPolynomial" json:"prbs_polynomial,omitempty"` - LastBertStartTimestamp uint64 `protobuf:"varint,5,opt,name=last_bert_start_timestamp,json=lastBertStartTimestamp,proto3" json:"last_bert_start_timestamp,omitempty"` - LastBertGetResultTimestamp uint64 `protobuf:"varint,6,opt,name=last_bert_get_result_timestamp,json=lastBertGetResultTimestamp,proto3" json:"last_bert_get_result_timestamp,omitempty"` - PeerLockEstablished bool `protobuf:"varint,7,opt,name=peer_lock_established,json=peerLockEstablished,proto3" json:"peer_lock_established,omitempty"` - PeerLockLost bool `protobuf:"varint,8,opt,name=peer_lock_lost,json=peerLockLost,proto3" json:"peer_lock_lost,omitempty"` - ErrorCountPerMinute []uint32 `protobuf:"varint,9,rep,packed,name=error_count_per_minute,json=errorCountPerMinute,proto3" json:"error_count_per_minute,omitempty"` - TotalErrors uint64 `protobuf:"varint,10,opt,name=total_errors,json=totalErrors,proto3" json:"total_errors,omitempty"` -} - -func (x *GetBERTResultResponse_PerPortResponse) Reset() { - *x = GetBERTResultResponse_PerPortResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_diag_diag_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetBERTResultResponse_PerPortResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetBERTResultResponse_PerPortResponse) ProtoMessage() {} - -func (x *GetBERTResultResponse_PerPortResponse) ProtoReflect() protoreflect.Message { - mi := &file_diag_diag_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetBERTResultResponse_PerPortResponse.ProtoReflect.Descriptor instead. -func (*GetBERTResultResponse_PerPortResponse) Descriptor() ([]byte, []int) { - return file_diag_diag_proto_rawDescGZIP(), []int{5, 0} -} - -func (x *GetBERTResultResponse_PerPortResponse) GetInterface() *types.Path { - if x != nil { - return x.Interface - } - return nil -} - -func (x *GetBERTResultResponse_PerPortResponse) GetStatus() BertStatus { - if x != nil { - return x.Status - } - return BertStatus_BERT_STATUS_UNKNOWN -} - -func (x *GetBERTResultResponse_PerPortResponse) GetBertOperationId() string { - if x != nil { - return x.BertOperationId - } - return "" -} - -func (x *GetBERTResultResponse_PerPortResponse) GetPrbsPolynomial() PrbsPolynomial { - if x != nil { - return x.PrbsPolynomial - } - return PrbsPolynomial_PRBS_POLYNOMIAL_UNKNOWN -} - -func (x *GetBERTResultResponse_PerPortResponse) GetLastBertStartTimestamp() uint64 { - if x != nil { - return x.LastBertStartTimestamp - } - return 0 -} - -func (x *GetBERTResultResponse_PerPortResponse) GetLastBertGetResultTimestamp() uint64 { - if x != nil { - return x.LastBertGetResultTimestamp - } - return 0 -} - -func (x *GetBERTResultResponse_PerPortResponse) GetPeerLockEstablished() bool { - if x != nil { - return x.PeerLockEstablished - } - return false -} - -func (x *GetBERTResultResponse_PerPortResponse) GetPeerLockLost() bool { - if x != nil { - return x.PeerLockLost - } - return false -} - -func (x *GetBERTResultResponse_PerPortResponse) GetErrorCountPerMinute() []uint32 { - if x != nil { - return x.ErrorCountPerMinute - } - return nil -} - -func (x *GetBERTResultResponse_PerPortResponse) GetTotalErrors() uint64 { - if x != nil { - return x.TotalErrors - } - return 0 -} - -var File_diag_diag_proto protoreflect.FileDescriptor - -var file_diag_diag_proto_rawDesc = []byte{ - 0x0a, 0x0f, 0x64, 0x69, 0x61, 0x67, 0x2f, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x09, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x1a, 0x2c, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd0, 0x02, 0x0a, 0x10, 0x53, - 0x74, 0x61, 0x72, 0x74, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x2a, 0x0a, 0x11, 0x62, 0x65, 0x72, 0x74, 0x5f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x62, 0x65, 0x72, 0x74, - 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x56, 0x0a, 0x11, 0x70, - 0x65, 0x72, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, - 0x61, 0x67, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x2e, 0x50, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x52, 0x0f, 0x70, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x73, 0x1a, 0xb7, 0x01, 0x0a, 0x0e, 0x50, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, - 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x69, 0x6e, 0x74, - 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x42, 0x0a, 0x0f, 0x70, 0x72, 0x62, 0x73, 0x5f, 0x70, - 0x6f, 0x6c, 0x79, 0x6e, 0x6f, 0x6d, 0x69, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x50, 0x72, 0x62, 0x73, - 0x50, 0x6f, 0x6c, 0x79, 0x6e, 0x6f, 0x6d, 0x69, 0x61, 0x6c, 0x52, 0x0e, 0x70, 0x72, 0x62, 0x73, - 0x50, 0x6f, 0x6c, 0x79, 0x6e, 0x6f, 0x6d, 0x69, 0x61, 0x6c, 0x12, 0x31, 0x0a, 0x15, 0x74, 0x65, - 0x73, 0x74, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x5f, 0x73, - 0x65, 0x63, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x12, 0x74, 0x65, 0x73, 0x74, 0x44, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x53, 0x65, 0x63, 0x73, 0x22, 0x8d, 0x02, - 0x0a, 0x11, 0x53, 0x74, 0x61, 0x72, 0x74, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x62, 0x65, 0x72, 0x74, 0x5f, 0x6f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, - 0x62, 0x65, 0x72, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, - 0x5a, 0x0a, 0x12, 0x70, 0x65, 0x72, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x42, 0x45, 0x52, - 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x65, 0x72, 0x50, 0x6f, 0x72, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x10, 0x70, 0x65, 0x72, 0x50, 0x6f, - 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x1a, 0x70, 0x0a, 0x0f, 0x50, - 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, - 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, - 0x61, 0x74, 0x68, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x2d, - 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x42, 0x65, 0x72, 0x74, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xd6, 0x01, - 0x0a, 0x0f, 0x53, 0x74, 0x6f, 0x70, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x62, 0x65, 0x72, 0x74, 0x5f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x62, 0x65, - 0x72, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x55, 0x0a, - 0x11, 0x70, 0x65, 0x72, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x64, 0x69, 0x61, 0x67, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x2e, 0x50, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x52, 0x0f, 0x70, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x73, 0x1a, 0x40, 0x0a, 0x0e, 0x50, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, - 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x69, 0x6e, 0x74, - 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x22, 0x8b, 0x02, 0x0a, 0x10, 0x53, 0x74, 0x6f, 0x70, 0x42, - 0x45, 0x52, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x62, - 0x65, 0x72, 0x74, 0x5f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x62, 0x65, 0x72, 0x74, 0x4f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x59, 0x0a, 0x12, 0x70, 0x65, 0x72, 0x5f, 0x70, - 0x6f, 0x72, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, - 0x53, 0x74, 0x6f, 0x70, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x2e, 0x50, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x52, 0x10, 0x70, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x73, 0x1a, 0x70, 0x0a, 0x0f, 0x50, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, - 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, - 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, - 0x67, 0x2e, 0x42, 0x65, 0x72, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x22, 0x93, 0x02, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x42, 0x45, 0x52, 0x54, - 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, - 0x11, 0x62, 0x65, 0x72, 0x74, 0x5f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x62, 0x65, 0x72, 0x74, 0x4f, 0x70, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x5a, 0x0a, 0x11, 0x70, 0x65, 0x72, - 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, - 0x2e, 0x47, 0x65, 0x74, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x50, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x52, 0x0f, 0x70, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x31, 0x0a, 0x15, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x5f, - 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x61, 0x6c, 0x6c, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x46, 0x72, 0x6f, 0x6d, - 0x41, 0x6c, 0x6c, 0x50, 0x6f, 0x72, 0x74, 0x73, 0x1a, 0x40, 0x0a, 0x0e, 0x50, 0x65, 0x72, 0x50, - 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x09, 0x69, 0x6e, - 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, - 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x22, 0x8b, 0x05, 0x0a, 0x15, 0x47, - 0x65, 0x74, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x12, 0x70, 0x65, 0x72, 0x5f, 0x70, 0x6f, 0x72, 0x74, - 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x30, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x47, 0x65, 0x74, - 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x2e, 0x50, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x52, 0x10, 0x70, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x73, 0x1a, 0x91, 0x04, 0x0a, 0x0f, 0x50, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, - 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x69, - 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x64, 0x69, 0x61, 0x67, 0x2e, 0x42, 0x65, 0x72, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, - 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x62, 0x65, 0x72, 0x74, 0x5f, - 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0f, 0x62, 0x65, 0x72, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x0f, 0x70, 0x72, 0x62, 0x73, 0x5f, 0x70, 0x6f, 0x6c, 0x79, - 0x6e, 0x6f, 0x6d, 0x69, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x50, 0x72, 0x62, 0x73, 0x50, 0x6f, 0x6c, - 0x79, 0x6e, 0x6f, 0x6d, 0x69, 0x61, 0x6c, 0x52, 0x0e, 0x70, 0x72, 0x62, 0x73, 0x50, 0x6f, 0x6c, - 0x79, 0x6e, 0x6f, 0x6d, 0x69, 0x61, 0x6c, 0x12, 0x39, 0x0a, 0x19, 0x6c, 0x61, 0x73, 0x74, 0x5f, - 0x62, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x16, 0x6c, 0x61, 0x73, 0x74, - 0x42, 0x65, 0x72, 0x74, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x12, 0x42, 0x0a, 0x1e, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x62, 0x65, 0x72, 0x74, 0x5f, - 0x67, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x1a, 0x6c, 0x61, 0x73, 0x74, - 0x42, 0x65, 0x72, 0x74, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x32, 0x0a, 0x15, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x6c, - 0x6f, 0x63, 0x6b, 0x5f, 0x65, 0x73, 0x74, 0x61, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x64, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x70, 0x65, 0x65, 0x72, 0x4c, 0x6f, 0x63, 0x6b, 0x45, - 0x73, 0x74, 0x61, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x70, 0x65, - 0x65, 0x72, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6c, 0x6f, 0x73, 0x74, 0x18, 0x08, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x0c, 0x70, 0x65, 0x65, 0x72, 0x4c, 0x6f, 0x63, 0x6b, 0x4c, 0x6f, 0x73, 0x74, - 0x12, 0x33, 0x0a, 0x16, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, - 0x70, 0x65, 0x72, 0x5f, 0x6d, 0x69, 0x6e, 0x75, 0x74, 0x65, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0d, - 0x52, 0x13, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x65, 0x72, 0x4d, - 0x69, 0x6e, 0x75, 0x74, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x65, - 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x74, 0x6f, 0x74, - 0x61, 0x6c, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x2a, 0xd3, 0x01, 0x0a, 0x0e, 0x50, 0x72, 0x62, - 0x73, 0x50, 0x6f, 0x6c, 0x79, 0x6e, 0x6f, 0x6d, 0x69, 0x61, 0x6c, 0x12, 0x1b, 0x0a, 0x17, 0x50, - 0x52, 0x42, 0x53, 0x5f, 0x50, 0x4f, 0x4c, 0x59, 0x4e, 0x4f, 0x4d, 0x49, 0x41, 0x4c, 0x5f, 0x55, - 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x50, 0x52, 0x42, 0x53, - 0x5f, 0x50, 0x4f, 0x4c, 0x59, 0x4e, 0x4f, 0x4d, 0x49, 0x41, 0x4c, 0x5f, 0x50, 0x52, 0x42, 0x53, - 0x37, 0x10, 0x01, 0x12, 0x19, 0x0a, 0x15, 0x50, 0x52, 0x42, 0x53, 0x5f, 0x50, 0x4f, 0x4c, 0x59, - 0x4e, 0x4f, 0x4d, 0x49, 0x41, 0x4c, 0x5f, 0x50, 0x52, 0x42, 0x53, 0x39, 0x10, 0x02, 0x12, 0x1a, - 0x0a, 0x16, 0x50, 0x52, 0x42, 0x53, 0x5f, 0x50, 0x4f, 0x4c, 0x59, 0x4e, 0x4f, 0x4d, 0x49, 0x41, - 0x4c, 0x5f, 0x50, 0x52, 0x42, 0x53, 0x31, 0x35, 0x10, 0x03, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x52, - 0x42, 0x53, 0x5f, 0x50, 0x4f, 0x4c, 0x59, 0x4e, 0x4f, 0x4d, 0x49, 0x41, 0x4c, 0x5f, 0x50, 0x52, - 0x42, 0x53, 0x32, 0x30, 0x10, 0x04, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x52, 0x42, 0x53, 0x5f, 0x50, - 0x4f, 0x4c, 0x59, 0x4e, 0x4f, 0x4d, 0x49, 0x41, 0x4c, 0x5f, 0x50, 0x52, 0x42, 0x53, 0x32, 0x33, - 0x10, 0x05, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x52, 0x42, 0x53, 0x5f, 0x50, 0x4f, 0x4c, 0x59, 0x4e, - 0x4f, 0x4d, 0x49, 0x41, 0x4c, 0x5f, 0x50, 0x52, 0x42, 0x53, 0x33, 0x31, 0x10, 0x06, 0x2a, 0xfe, - 0x03, 0x0a, 0x0a, 0x42, 0x65, 0x72, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x17, 0x0a, - 0x13, 0x42, 0x45, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x4b, - 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x42, 0x45, 0x52, 0x54, 0x5f, 0x53, - 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4f, 0x4b, 0x10, 0x01, 0x12, 0x21, 0x0a, 0x1d, 0x42, 0x45, - 0x52, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4e, 0x4f, 0x4e, 0x5f, 0x45, 0x58, - 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x50, 0x4f, 0x52, 0x54, 0x10, 0x02, 0x12, 0x25, 0x0a, - 0x21, 0x42, 0x45, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x48, 0x41, 0x52, - 0x44, 0x57, 0x41, 0x52, 0x45, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x53, 0x53, 0x5f, 0x45, 0x52, 0x52, - 0x4f, 0x52, 0x10, 0x03, 0x12, 0x2b, 0x0a, 0x27, 0x42, 0x45, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x41, - 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x5f, - 0x50, 0x52, 0x42, 0x53, 0x5f, 0x50, 0x4f, 0x4c, 0x59, 0x4e, 0x4f, 0x4d, 0x49, 0x41, 0x4c, 0x10, - 0x04, 0x12, 0x24, 0x0a, 0x20, 0x42, 0x45, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, - 0x5f, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x41, 0x4c, 0x52, 0x45, 0x41, 0x44, 0x59, 0x5f, 0x49, 0x4e, - 0x5f, 0x42, 0x45, 0x52, 0x54, 0x10, 0x05, 0x12, 0x25, 0x0a, 0x21, 0x42, 0x45, 0x52, 0x54, 0x5f, - 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, - 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x42, 0x45, 0x52, 0x54, 0x10, 0x06, 0x12, 0x27, - 0x0a, 0x23, 0x42, 0x45, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x45, - 0x53, 0x54, 0x5f, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x4f, 0x4f, 0x5f, - 0x53, 0x48, 0x4f, 0x52, 0x54, 0x10, 0x07, 0x12, 0x26, 0x0a, 0x22, 0x42, 0x45, 0x52, 0x54, 0x5f, - 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x5f, 0x44, 0x55, 0x52, 0x41, - 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x4f, 0x4f, 0x5f, 0x4c, 0x4f, 0x4e, 0x47, 0x10, 0x08, 0x12, - 0x26, 0x0a, 0x22, 0x42, 0x45, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4f, - 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x49, 0x44, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, - 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x09, 0x12, 0x23, 0x0a, 0x1f, 0x42, 0x45, 0x52, 0x54, 0x5f, - 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, - 0x5f, 0x49, 0x44, 0x5f, 0x49, 0x4e, 0x5f, 0x55, 0x53, 0x45, 0x10, 0x0a, 0x12, 0x21, 0x0a, 0x1d, - 0x42, 0x45, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x50, 0x45, 0x45, 0x52, - 0x5f, 0x4c, 0x4f, 0x43, 0x4b, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x0b, 0x12, - 0x1e, 0x0a, 0x1a, 0x42, 0x45, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x50, - 0x45, 0x45, 0x52, 0x5f, 0x4c, 0x4f, 0x43, 0x4b, 0x5f, 0x4c, 0x4f, 0x53, 0x54, 0x10, 0x0c, 0x12, - 0x1e, 0x0a, 0x1a, 0x42, 0x45, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x49, - 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x0d, 0x32, - 0xed, 0x01, 0x0a, 0x04, 0x44, 0x69, 0x61, 0x67, 0x12, 0x48, 0x0a, 0x09, 0x53, 0x74, 0x61, 0x72, - 0x74, 0x42, 0x45, 0x52, 0x54, 0x12, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, - 0x67, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x53, - 0x74, 0x61, 0x72, 0x74, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x45, 0x0a, 0x08, 0x53, 0x74, 0x6f, 0x70, 0x42, 0x45, 0x52, 0x54, 0x12, 0x1a, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x42, - 0x45, 0x52, 0x54, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x42, 0x45, 0x52, 0x54, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x54, 0x0a, 0x0d, 0x47, 0x65, 0x74, - 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x45, 0x52, 0x54, 0x52, - 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, - 0x29, 0xd2, 0x3e, 0x05, 0x30, 0x2e, 0x31, 0x2e, 0x30, 0x5a, 0x1f, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x64, 0x69, 0x61, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, -} - -var ( - file_diag_diag_proto_rawDescOnce sync.Once - file_diag_diag_proto_rawDescData = file_diag_diag_proto_rawDesc -) - -func file_diag_diag_proto_rawDescGZIP() []byte { - file_diag_diag_proto_rawDescOnce.Do(func() { - file_diag_diag_proto_rawDescData = protoimpl.X.CompressGZIP(file_diag_diag_proto_rawDescData) - }) - return file_diag_diag_proto_rawDescData -} - -var file_diag_diag_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_diag_diag_proto_msgTypes = make([]protoimpl.MessageInfo, 12) -var file_diag_diag_proto_goTypes = []interface{}{ - (PrbsPolynomial)(0), // 0: gnoi.diag.PrbsPolynomial - (BertStatus)(0), // 1: gnoi.diag.BertStatus - (*StartBERTRequest)(nil), // 2: gnoi.diag.StartBERTRequest - (*StartBERTResponse)(nil), // 3: gnoi.diag.StartBERTResponse - (*StopBERTRequest)(nil), // 4: gnoi.diag.StopBERTRequest - (*StopBERTResponse)(nil), // 5: gnoi.diag.StopBERTResponse - (*GetBERTResultRequest)(nil), // 6: gnoi.diag.GetBERTResultRequest - (*GetBERTResultResponse)(nil), // 7: gnoi.diag.GetBERTResultResponse - (*StartBERTRequest_PerPortRequest)(nil), // 8: gnoi.diag.StartBERTRequest.PerPortRequest - (*StartBERTResponse_PerPortResponse)(nil), // 9: gnoi.diag.StartBERTResponse.PerPortResponse - (*StopBERTRequest_PerPortRequest)(nil), // 10: gnoi.diag.StopBERTRequest.PerPortRequest - (*StopBERTResponse_PerPortResponse)(nil), // 11: gnoi.diag.StopBERTResponse.PerPortResponse - (*GetBERTResultRequest_PerPortRequest)(nil), // 12: gnoi.diag.GetBERTResultRequest.PerPortRequest - (*GetBERTResultResponse_PerPortResponse)(nil), // 13: gnoi.diag.GetBERTResultResponse.PerPortResponse - (*types.Path)(nil), // 14: gnoi.types.Path -} -var file_diag_diag_proto_depIdxs = []int32{ - 8, // 0: gnoi.diag.StartBERTRequest.per_port_requests:type_name -> gnoi.diag.StartBERTRequest.PerPortRequest - 9, // 1: gnoi.diag.StartBERTResponse.per_port_responses:type_name -> gnoi.diag.StartBERTResponse.PerPortResponse - 10, // 2: gnoi.diag.StopBERTRequest.per_port_requests:type_name -> gnoi.diag.StopBERTRequest.PerPortRequest - 11, // 3: gnoi.diag.StopBERTResponse.per_port_responses:type_name -> gnoi.diag.StopBERTResponse.PerPortResponse - 12, // 4: gnoi.diag.GetBERTResultRequest.per_port_requests:type_name -> gnoi.diag.GetBERTResultRequest.PerPortRequest - 13, // 5: gnoi.diag.GetBERTResultResponse.per_port_responses:type_name -> gnoi.diag.GetBERTResultResponse.PerPortResponse - 14, // 6: gnoi.diag.StartBERTRequest.PerPortRequest.interface:type_name -> gnoi.types.Path - 0, // 7: gnoi.diag.StartBERTRequest.PerPortRequest.prbs_polynomial:type_name -> gnoi.diag.PrbsPolynomial - 14, // 8: gnoi.diag.StartBERTResponse.PerPortResponse.interface:type_name -> gnoi.types.Path - 1, // 9: gnoi.diag.StartBERTResponse.PerPortResponse.status:type_name -> gnoi.diag.BertStatus - 14, // 10: gnoi.diag.StopBERTRequest.PerPortRequest.interface:type_name -> gnoi.types.Path - 14, // 11: gnoi.diag.StopBERTResponse.PerPortResponse.interface:type_name -> gnoi.types.Path - 1, // 12: gnoi.diag.StopBERTResponse.PerPortResponse.status:type_name -> gnoi.diag.BertStatus - 14, // 13: gnoi.diag.GetBERTResultRequest.PerPortRequest.interface:type_name -> gnoi.types.Path - 14, // 14: gnoi.diag.GetBERTResultResponse.PerPortResponse.interface:type_name -> gnoi.types.Path - 1, // 15: gnoi.diag.GetBERTResultResponse.PerPortResponse.status:type_name -> gnoi.diag.BertStatus - 0, // 16: gnoi.diag.GetBERTResultResponse.PerPortResponse.prbs_polynomial:type_name -> gnoi.diag.PrbsPolynomial - 2, // 17: gnoi.diag.Diag.StartBERT:input_type -> gnoi.diag.StartBERTRequest - 4, // 18: gnoi.diag.Diag.StopBERT:input_type -> gnoi.diag.StopBERTRequest - 6, // 19: gnoi.diag.Diag.GetBERTResult:input_type -> gnoi.diag.GetBERTResultRequest - 3, // 20: gnoi.diag.Diag.StartBERT:output_type -> gnoi.diag.StartBERTResponse - 5, // 21: gnoi.diag.Diag.StopBERT:output_type -> gnoi.diag.StopBERTResponse - 7, // 22: gnoi.diag.Diag.GetBERTResult:output_type -> gnoi.diag.GetBERTResultResponse - 20, // [20:23] is the sub-list for method output_type - 17, // [17:20] is the sub-list for method input_type - 17, // [17:17] is the sub-list for extension type_name - 17, // [17:17] is the sub-list for extension extendee - 0, // [0:17] is the sub-list for field type_name -} - -func init() { file_diag_diag_proto_init() } -func file_diag_diag_proto_init() { - if File_diag_diag_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_diag_diag_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StartBERTRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_diag_diag_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StartBERTResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_diag_diag_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StopBERTRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_diag_diag_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StopBERTResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_diag_diag_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBERTResultRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_diag_diag_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBERTResultResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_diag_diag_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StartBERTRequest_PerPortRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_diag_diag_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StartBERTResponse_PerPortResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_diag_diag_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StopBERTRequest_PerPortRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_diag_diag_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StopBERTResponse_PerPortResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_diag_diag_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBERTResultRequest_PerPortRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_diag_diag_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBERTResultResponse_PerPortResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_diag_diag_proto_rawDesc, - NumEnums: 2, - NumMessages: 12, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_diag_diag_proto_goTypes, - DependencyIndexes: file_diag_diag_proto_depIdxs, - EnumInfos: file_diag_diag_proto_enumTypes, - MessageInfos: file_diag_diag_proto_msgTypes, - }.Build() - File_diag_diag_proto = out.File - file_diag_diag_proto_rawDesc = nil - file_diag_diag_proto_goTypes = nil - file_diag_diag_proto_depIdxs = nil -} diff --git a/src/sonic-framework/gnoi/diag/diag.proto b/src/sonic-framework/gnoi/diag/diag.proto deleted file mode 100644 index 5ca592fb936d..000000000000 --- a/src/sonic-framework/gnoi/diag/diag.proto +++ /dev/null @@ -1,253 +0,0 @@ -// -// Copyright 2017 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -// This file defines the gNOI APIs used to perform diagnostic operations on a -// network device. -syntax = "proto3"; - -package gnoi.diag; - -import "github.com/openconfig/gnoi/types/types.proto"; - -option go_package = "github.com/openconfig/gnoi/diag"; - -option (types.gnoi_version) = "0.1.0"; - -// The Diag service exports to main set of RPCs: -// 1- BERT related RPCs: Used to perform Bit Error Rate Test (BERT) -// operations on a set of ports. -// 2- BURNIN related RPCs: Used to perform a vendor-provided Burnin test on the -// network device to ensure the device is ready to start serving traffic. -// Burnin tests are typically run in the field, as part of turnup or repair -// workflow. -// Note: The RPCs defined here are are stateless operations and them -// failing/passing should not leave any permanent artifact on the network device -// (unless there is something wrong HW-wise). -// Note: By "port" we refer to a channelized frontpanel or backplane port on a -// chassis. In OpenConfig YANG models, there is a one-to-one relationship -// between a port as used here and an "interface". Therefore, the "types.Path" -// fields below for ports correspond to "/interfaces/interface" in YANG models. -service Diag { - // Starts BERT operation on a set of ports. Each BERT operation is uniquely - // identified by an ID, which is given by the caller. The caller can then - // use this ID (as well as the list of the ports) to stop the BERT operation - // and/or get the BERT results. This RPC is expected to return an error status - // in the following situations: - // - When BERT operation is supported on none of the ports specified by - // the request. - // - When BERT is already in progress on any port specified by the request. - // - In case of any low-level HW/SW internal errors. - // The RPC returns an OK status of none of these situations is encountered. - rpc StartBERT(StartBERTRequest) returns(StartBERTResponse) {} - - // Stops an already in-progress BERT operation on a set of ports. The caller - // uses the BERT operation ID it previously used when starting the operation - // to stop it. The RPC is expected to return an error status in the following - // situations: - // - When there is at least one BERT operation in progress on a port which - // cannot be stopped in the middle of the operation (either due to lack of - // support or internal problems). - // - When no BERT operation, which matches the given BERT operation ID, is in - // progress or completed on any of the ports specified by the request. - // - When the BERT operation ID does not match the in progress or completed - // BERT operation on any of the ports specified by the request. - // The RPC returns an OK status of none of these situations is encountered. - // Note that a BERT operation is considered completed if the device has a - // record/history of it. Also note that it is OK to receive a stop request for - // a port which has completed BERT, as long as the recorded BERT operation ID - // matches the one specified by the request. - rpc StopBERT(StopBERTRequest) returns(StopBERTResponse) {} - - // Gets BERT results during the BERT operation or after it completes. The - // caller uses the BERT operation ID it previously used when starting the - // operation to query it. The device is expected to keep the results for - // last N BERT operations for some amount of time, as specified by the - // product requirement. This RPC is expected to return error status in the - // following situations: - // - When no BERT operation, which matches the given BERT operation ID, is in - // progress or completed on any of the ports specified by the request. - // - When the BERT operation ID does not match the in progress or completed - // BERT operation on any of the ports specified by the request. - // The RPC returns an OK status of none of these situations is encountered. - // Note that a BERT operation is considered completed if device has a - // record of it. - rpc GetBERTResult(GetBERTResultRequest) returns(GetBERTResultResponse) {} - - // TODO(aghaffar): Add BURNIN related RPCs. -} - -// Common sequence generating monic polynomials used for PRBS. -enum PrbsPolynomial { - PRBS_POLYNOMIAL_UNKNOWN = 0; // default invalid choice. - PRBS_POLYNOMIAL_PRBS7 = 1; - PRBS_POLYNOMIAL_PRBS9 = 2; - PRBS_POLYNOMIAL_PRBS15 = 3; - PRBS_POLYNOMIAL_PRBS20 = 4; - PRBS_POLYNOMIAL_PRBS23 = 5; - PRBS_POLYNOMIAL_PRBS31 = 6; -} - -// Status returned for each per-port BERT request. -enum BertStatus { - // default invalid choice. - BERT_STATUS_UNKNOWN = 0; - // BERT requests (Start, Stop, GetStatus) were processed successfully. - BERT_STATUS_OK = 1; - // The specified port was not found. - BERT_STATUS_NON_EXISTENT_PORT = 2; - // HW error was encountered while performing BERT operation. - BERT_STATUS_HARDWARE_ACCESS_ERROR = 3; - // PRBS generating polynomial is not supported by the target. - BERT_STATUS_UNSUPPORTED_PRBS_POLYNOMIAL = 4; - // There is already a BERT running on the specified port. Returned when - // `StartBert` RPC tries to add run BERT on an already in-use port. - BERT_STATUS_PORT_ALREADY_IN_BERT = 5; - // There is no BERT running on the specified port. Returned when `StopBert` - // or `GetBertResult` RPC was called for an idle port. - BERT_STATUS_PORT_NOT_RUNNING_BERT = 6; - // The specified test duration is too small. - BERT_STATUS_TEST_DURATION_TOO_SHORT = 7; - // The specified test duration is larger than maximum allowed. - BERT_STATUS_TEST_DURATION_TOO_LONG = 8; - // The given BERT operation ID is not known. Returned for `StopBert` and - // `GetBertResult` RPCs. - BERT_STATUS_OPERATION_ID_NOT_FOUND = 9; - // The given BERT operation ID is already in use. Returned when `StartBert` - // RPC uses an ID which is already memorized for a BERT operation. - BERT_STATUS_OPERATION_ID_IN_USE = 10; - // Failure to get the peer lock. - BERT_STATUS_PEER_LOCK_FAILURE = 11; - // Lost the peer lock after locking once. - BERT_STATUS_PEER_LOCK_LOST = 12; - // Misc internal errors that cannot be categorized by any of the previous - // error codes. - BERT_STATUS_INTERNAL_ERROR = 13; -} - -message StartBERTRequest { - // Per port BERT start requests. - message PerPortRequest { - // Path to the interface corresponding to the port. - types.Path interface = 1; // required - // The selected PRBS generating polynomial for BERT. - PrbsPolynomial prbs_polynomial = 2; // required - // BERT duration in seconds. Must be a positive number. - uint32 test_duration_in_secs = 3; // required - } - // Unique BERT operation ID specified by the client. Multiple BERTs run on - // different ports can have the same BERT operation ID. This ID will be used - // later to stop the operation and/or get its results. - // TODO: Investigate whether we can use numerical IDs instead. - string bert_operation_id = 1; - // All the per-port BERTs that are considered one BERT operation and have the - // same BERT operation ID. - repeated PerPortRequest per_port_requests = 2; -} - -message StartBERTResponse { - // Per-port BERT start responses. - message PerPortResponse { - // Path to the interface corresponding to the port. - types.Path interface = 1; - // BERT start status for this port. - BertStatus status = 2; - } - // The same BERT operation ID given by the request. - string bert_operation_id = 1; - // Captures the results of starting BERT on a per-port basis. - repeated PerPortResponse per_port_responses = 2; -} - -message StopBERTRequest { - // Per-port BERT stop requests. - message PerPortRequest { - // Path to the interface corresponding to the port. - types.Path interface = 1; - } - // The same BERT operation ID given when BERT operation was started. - string bert_operation_id = 1; - // All the per-port BERTs that need to be stopped. Must be part of the BERT - // operation specified by the `bert_operation_id` above. - repeated PerPortRequest per_port_requests = 2; -} - -message StopBERTResponse { - // Per-port BERT stop responses. - message PerPortResponse { - // Path to the interface corresponding to the port. - types.Path interface = 1; - // BERT stop status for this port. - BertStatus status = 2; - } - // The same BERT operation ID given by the request. - string bert_operation_id = 1; - // Captures the results of stopping BERT on a per-port basis. - repeated PerPortResponse per_port_responses = 2; -} - -// TODO: If there is no use case to get the BERT results for all the ports -// independent of the bert_operation_id, we can simplify this message and -// return the results for all the ports associated with an operation ID. -message GetBERTResultRequest { - // Per-port BERT get result requests. - message PerPortRequest { - // Path to the interface corresponding to the port. - types.Path interface = 1; - } - // The same BERT operation ID given when BERT operation was started. - string bert_operation_id = 1; - // All the per-port BERTs result of which we want to query. Must be part of - // the BERT operation specified by the `bert_operation_id` above. - repeated PerPortRequest per_port_requests = 2; - // If set to true, the results for all the per-port BERTs will be returned. - // `bert_operation_id` and `per_port_requests` will be ignored will be - // ignored in that case. - bool result_from_all_ports = 3; -} - -message GetBERTResultResponse { - // Per-port BERT results/status. - message PerPortResponse { - // Path to the interface corresponding to the port. - types.Path interface = 1; - // BERT result get status for this port. Only if the status is - // BERT_STATUS_OK are the rest of the fields meaningful. - BertStatus status = 2; - // The ID of the BERT operation running on this port. Since the caller - // can query the BERT results for all the ports, ID can potentially be - // different for different ports. - string bert_operation_id = 3; - // The selected PRBS generating polynomial for BERT on this port. - PrbsPolynomial prbs_polynomial = 4; - // The last time BERT started on this port. - uint64 last_bert_start_timestamp = 5; - // The last time BERT results were read for this port. - uint64 last_bert_get_result_timestamp = 6; - // Indicate whether BERT peer lock has was established. If false, - // `bert_lock_lost`, `error_count_per_minute`, and `total_errors` will not - // be meaningful. - bool peer_lock_established = 7; - // Indicate whether BERT peer lock was lost after being established - // once. - bool peer_lock_lost = 8; - // Sequence of bit errors per min since lock was established. - repeated uint32 error_count_per_minute = 9; - // Total number of bit errors accumulated since lock was established. - uint64 total_errors = 10; - } - // Captures the BERT results on a per-port basis. - repeated PerPortResponse per_port_responses = 1; -} diff --git a/src/sonic-framework/gnoi/diag/diag_grpc.pb.go b/src/sonic-framework/gnoi/diag/diag_grpc.pb.go deleted file mode 100755 index 1c41d9c5e5b1..000000000000 --- a/src/sonic-framework/gnoi/diag/diag_grpc.pb.go +++ /dev/null @@ -1,177 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.21.10 -// source: diag/diag.proto - -package diag - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// DiagClient is the client API for Diag service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type DiagClient interface { - StartBERT(ctx context.Context, in *StartBERTRequest, opts ...grpc.CallOption) (*StartBERTResponse, error) - StopBERT(ctx context.Context, in *StopBERTRequest, opts ...grpc.CallOption) (*StopBERTResponse, error) - GetBERTResult(ctx context.Context, in *GetBERTResultRequest, opts ...grpc.CallOption) (*GetBERTResultResponse, error) -} - -type diagClient struct { - cc grpc.ClientConnInterface -} - -func NewDiagClient(cc grpc.ClientConnInterface) DiagClient { - return &diagClient{cc} -} - -func (c *diagClient) StartBERT(ctx context.Context, in *StartBERTRequest, opts ...grpc.CallOption) (*StartBERTResponse, error) { - out := new(StartBERTResponse) - err := c.cc.Invoke(ctx, "/gnoi.diag.Diag/StartBERT", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *diagClient) StopBERT(ctx context.Context, in *StopBERTRequest, opts ...grpc.CallOption) (*StopBERTResponse, error) { - out := new(StopBERTResponse) - err := c.cc.Invoke(ctx, "/gnoi.diag.Diag/StopBERT", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *diagClient) GetBERTResult(ctx context.Context, in *GetBERTResultRequest, opts ...grpc.CallOption) (*GetBERTResultResponse, error) { - out := new(GetBERTResultResponse) - err := c.cc.Invoke(ctx, "/gnoi.diag.Diag/GetBERTResult", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// DiagServer is the server API for Diag service. -// All implementations must embed UnimplementedDiagServer -// for forward compatibility -type DiagServer interface { - StartBERT(context.Context, *StartBERTRequest) (*StartBERTResponse, error) - StopBERT(context.Context, *StopBERTRequest) (*StopBERTResponse, error) - GetBERTResult(context.Context, *GetBERTResultRequest) (*GetBERTResultResponse, error) - mustEmbedUnimplementedDiagServer() -} - -// UnimplementedDiagServer must be embedded to have forward compatible implementations. -type UnimplementedDiagServer struct { -} - -func (UnimplementedDiagServer) StartBERT(context.Context, *StartBERTRequest) (*StartBERTResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StartBERT not implemented") -} -func (UnimplementedDiagServer) StopBERT(context.Context, *StopBERTRequest) (*StopBERTResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StopBERT not implemented") -} -func (UnimplementedDiagServer) GetBERTResult(context.Context, *GetBERTResultRequest) (*GetBERTResultResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetBERTResult not implemented") -} -func (UnimplementedDiagServer) mustEmbedUnimplementedDiagServer() {} - -// UnsafeDiagServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to DiagServer will -// result in compilation errors. -type UnsafeDiagServer interface { - mustEmbedUnimplementedDiagServer() -} - -func RegisterDiagServer(s grpc.ServiceRegistrar, srv DiagServer) { - s.RegisterService(&Diag_ServiceDesc, srv) -} - -func _Diag_StartBERT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StartBERTRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DiagServer).StartBERT(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.diag.Diag/StartBERT", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DiagServer).StartBERT(ctx, req.(*StartBERTRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Diag_StopBERT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StopBERTRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DiagServer).StopBERT(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.diag.Diag/StopBERT", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DiagServer).StopBERT(ctx, req.(*StopBERTRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Diag_GetBERTResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetBERTResultRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DiagServer).GetBERTResult(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.diag.Diag/GetBERTResult", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DiagServer).GetBERTResult(ctx, req.(*GetBERTResultRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// Diag_ServiceDesc is the grpc.ServiceDesc for Diag service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Diag_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.diag.Diag", - HandlerType: (*DiagServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "StartBERT", - Handler: _Diag_StartBERT_Handler, - }, - { - MethodName: "StopBERT", - Handler: _Diag_StopBERT_Handler, - }, - { - MethodName: "GetBERTResult", - Handler: _Diag_GetBERTResult_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "diag/diag.proto", -} diff --git a/src/sonic-framework/gnoi/docs/README.md b/src/sonic-framework/gnoi/docs/README.md deleted file mode 100644 index caae6bc7246e..000000000000 --- a/src/sonic-framework/gnoi/docs/README.md +++ /dev/null @@ -1,6 +0,0 @@ -# Documentation Related to gNOI - -This directory contains a set of documents supplementing the gNOI specifications. - - * [simplified_security_model.md](simplified_security_model.md) -- A simple security - model that can be implemented using gNOI. diff --git a/src/sonic-framework/gnoi/docs/best_practices.md b/src/sonic-framework/gnoi/docs/best_practices.md deleted file mode 100644 index f708e355813c..000000000000 --- a/src/sonic-framework/gnoi/docs/best_practices.md +++ /dev/null @@ -1,237 +0,0 @@ -# Guidelines for developing gNOI microservices - -This document delivers some guidance for helping develop gNOI microservices. - -## Why gNOI instead of gNMI? - -gNMI defines actions to retrieve or manipulate the state of a device via -telemetry or configuration data, respectively. gNOI, on the other hand, is used -to execute commands on a device rather than directly change its configuration. - -## Characteristics of a gNOI microservice - -After deciding that a gNOI microservice needs to be developed, a few aspects -should be taken into consideration. There are three fundamental components that -should be understood. - -**Interpretation** - The microservice should be easy to read and understand. The -service and RPC names should intuitively deduce its purpose. - -**Implementation** - The microservice should be easy to code. There should be no -ambiguities. The combination of the service definition together with its -documentation should offer a complete understanding of all the code paths. - -**Operation** - The microservice should be straightforward to use. Not in the -versatile sense of a single RPC fits all swiss army knife style, but that a -single RPC behaves equally across different implementations. The following -guidelines help with achieving this. - -### Thin and focused - -The microservice should be simple and focus on the process it aims to implement. -The microservice must not be overarching, it must be specialized. As such, avoid -defining a microservice that implements different unrelated actions. The -developed microservice should be categorized by the nature of the process it -implements, and not by the nature of the Target it is meant to be used on. This -also applies to the naming of the microservice. - -*Instead of this:* - -``` -service Car { - rpc Turn(...) returns (...); - rpc SetSpeed(...) returns (...); - rpc SetStation(...) returns (...); - rpc SetVolume(...) returns (...); -} -``` - -*Prefer this:* - -``` -service Guidance { - rpc Turn(...) returns (...); - rpc SetSpeed(...) returns (...); -} - -service Radio { - rpc SetStation(...) returns (...); - rpc SetVolume(...) returns (...); -} -``` - -### Shallow RPCs - -Aim for more RPCs instead of single RPCs overloaded with actions. This provides -a better path for augmenting the microservice without breaking backward -compatibility. - -*Instead of this:* - -``` -service Direction { - rpc Adjust(AdjustRequest) returns (...); -} - -message AdjustRequest { - speed = 0; - turn_angle = 1; -} -``` - -*Prefer this:** - -``` -service Guidance { - rpc Turn(...) returns (...); - rpc SetSpeed(...) returns (...); -} -``` - -### Precisely specified behavior - -By virtue of its proto definition, the microservice should already specify a -good amount of detail on what is expected of a Target that implements it. -However some details usually fall out of the proto definition. These details -must be specified meticulously as a complement to the proto definition. Take -also in consideration that prescriptions should focus on the behaviour of the -implementation, as opposed to the method of the implementation. - -*Instead of this:* - -``` -service Guidance { - // Turn sets the turn angle. The - // forward wheels must rotate to the - // expected angle. The rear wheels must - // help if applicable. - rpc Turn(...) returns (...); -} -``` - -*Prefer this:* - -``` -service Guidance { - // Turn sets the turn angle. The - // system is expected to reach the - // turn angle in less than one second. - rpc Turn(...) returns (...); -} -``` - -## Error handling - -Error handling is an important factor to take into consideration in a -microservice. There are generally two approaches that can be used for individual -scenarios. - -### Vanilla gRPC Errors - -RPC's return a gRPC error using the status definitions. See in -[golang](http://google.golang.org/genproto/googleapis/rpc/status) for examples. -These errors immediately terminate the RPC and should additionally provide -detailed messages about the nature of the error. They are useful for the -following scenarios: - -* RPC's that have a singular pass/fail criteria; -* Status RPC's that request unexpected or non existing data; -* Unexpected oneof message type used in a stream RPC workflow; -* Authentication issues; -* Network issues; - -An example: - -``` -Service Bubble { - ... - // An gRPC Unimplemented error will be returned if the target cannot generate bubbles. - rpc Generate(GenerateRequest) returns (GenerateResponse) - - rpc Count(CountRequest) returns (CountResponse) -} -``` - -### Structured Error messages - -Vanilla gRPC errors are straightforward to use but may allow ambiguity to creep -if applied on more complex scenarios. Structured Error messages help with -further documenting and scoping the proto definition which limits ambiguity. -They are, in addition, well defined signals that can be trivially consumed by -upstream workflows operating with a specific gNOI microservice. An example of an -RPC with structured error messages is seen below. - -``` -message StepLeft {} - -message StepRight {} - -message StepError { - enum Type { - UNSPECIFIED = 0; - NO_LEGS_ERROR = 1; - TIRED_ERROR = 2; - } - Type type = 1; - // The detail message must be used if type is UNSPECIFIED. - string detail = 2; -} - -message StepResponse { - oneof request { - StepLeft step_left = 1; - StepRight step_right = 2; - StepError step_error = 3; - } -} - -message StepRequest {} - -// Abort with a gRPC error if Metadata authentication fails. -rpc Step(stream StepRequest) returns (stream StepResponse) -``` - -Non zero (UNSPECIFIED) enum error types should be descriptive and in general not -require filling up the detail message. - -Note that a single RPC can still make use of both the vanilla gRPC Error and -Structured Error message approaches as long as they are applied to different -scenarios. Structured Error messages must never be accompanied by a Vanilla gRPC -Error. Structured Error messages don't necessarily require the RPC to return -immediately. - -## Versioning - -It is plausible that not all scenarios may have been taken into consideration -during the conception of a microservice. Equally, novel requirements can be -introduced. Microservices may need to expand in order to mature and accommodate -improvements. However there are two fundamental pathways to accomplish this. - -### Enhancement - -These add backward compatible incremental functionalities to the microservice. -Enhancements require little effort to implement. Enhancements must be reflected -in a version string that accompanies the specific microservice. - -``` -syntax = "proto3"; - -package gnoi.whack; - -import "github.com/openconfig/gnoi/types/types.proto"; - -option (types.gnoi_version) = "0.1.0"; - -service Whack { ... -``` - -The version string details the major, minor & micro revisions to the gNOI -microservice. - -### Evolution - -These add or change functionality to the microservice that will break previous -versions. Evolution is a result of a fundamental alteration in the expected -behaviour of the microservice. When a microservice evolves, it must not -necessarily replace the previous one. Evolutions typically result in a new, more -precise and specific service name. diff --git a/src/sonic-framework/gnoi/docs/img/bootstrapping_state.png b/src/sonic-framework/gnoi/docs/img/bootstrapping_state.png deleted file mode 100644 index bd441ef9e4de01d125bdb4c848fdc1da781e8e34..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 41556 zcmYgYbzD^4)>d)|Nok~|l^#-hXpkCGx(1}X5u~KMk(3UB5d>)v>FyL58bJn>koXS1 z@4essi{F_!bJ%y^dk-Ga zJy4XD()Kn!T)|A?gj|AuqM$z%rREk?{u6FJ7KrzS{v~3w-BCzqNH=%ozQeruud@7Ib@> z_m~KTh7v4ENAUNLDgil1zp|<|dke+?e@qcf$8|#YKX+9VfRLJ%dr_kp|NqN`bnpMU z%GUv*`IOJNLu^q0`)s;?WwHOcQs+PmX`QxfDQx)vI|vX@-~Z2583~G%v7La?#KM2p z2P_jwH19sJK8@4pIZ?dALbE0j;t zz~ZV)I7F!af7epR8~-DNU;}yr#0Q-zfzPAue~!NFW!k(~GdcxTUiE zj+&=lxs9X-MFshRzEQre@_jJ(l8dlq&e*S-qmStA-;L*M5t0X8pG<`ktIcbkhqS`c zv}}xJqg_V?=87w8+ePlgu6B!T8yBppROzr8cn+!>N?g7@Y5MW@0uVs*d*FY>CqC^R zxJfhi-J6hb8x^*hOUP_QrFitOYT$x^(?Sh-ZOIk5lj}A4H2qc5^R}}|6&;v(nx6T) z3AA-(lPgV1n;aLp#$>jq#oH&}XlYd|&Y)}Q26pBAcGG3>?X1_#%%utcQ2|qK;J7Jp z?RqYr+>(-+_`8Szi<->4yWW9+55Xyc>KX|Ur=gST(PjJX)4hE0OPiT5-N;kF1^9B( z|8yjM*3hX9J}Pp6mRR0{CP(}C5O(PR{cs<*d~CEX6#en~$g5+B>P1rh?bSi)r#WL$ zRe>4pC-a-Z9`8_jeh^CkE|s`p3s}c7>EB%P-i-C@e&}rq`#STl8pi_5+sn7v_%&zp zk|oz&^9oRv_eH*q^XAc2ncuG$tEC%4`|0dJOBhu437*R?-wvCI|7(%j_d19A9%n*I zo;JXJwKFr+el?o2UIFvW-uuhXZXB*+lbe0rz4VT2D=Hiue3Lt653r^sP zPxk(--37MX{9c;!TyjVc>P{4RYWvkss z3{TD!OyhT02OksvQ_NA@%KHP*)IF-T3%RT5QgH#47kh_>Q3h8BCU;rC=PlxyB1WVz zpQPv*I(z~(A0668ucF_tg&T2yKCY2>UT=ZZ;ko%4A)(T7cXK?YCi)|#{m;sAV@`q% z`IiNkCTVk_-$%_m?`@F-EH5Kyd|?LuCtpQt@+Jy^v%a83NirHleafJjG+dB`3_#=W zCs@TRc$gL!a<|TutTGwLToemt0K^q*3VyA0Ha-^kyP-;W9ysDDW4|A%d@JF&xDSQi zyAHD1t_7Trh)Z3Ew$NYMnX>lI#Da4Ckps4OH|JxQVJV#%u)=q)`q6;lyx4(IVxMr{ zZjf~-;5>t?8`#%N|X#C|U@R*1|y%759p z=MkUJx)+PvCGFkCw}&4}U>&Zri=2T!yZs-wSUanU?`BYv~@GN_7n%X2X3>=mO?vHqVv z*fTbyC{L-9iauC0eTi*R@VUi42bVTq%wWKD+#mfZQe*G+_=FNF?^#6rMaF4w}ioZVSLHRruJXe{*n6DnO4YaJ$yt@l2(P7XMp2$|88wy+D={P z=>SWfiV5Hv8`5%S`#%qj#a;5~ZtWBkc38XV2}l^7px~X-0pcM1PTDJjC(QK3V_IXc z6BS=&$-Y5#X*yG8dTUX@Z^@zQLv`aKI~kIwfWHTqZ`u)eWp#ZgFGxJ^y#pusT|rI} zJF@UO8E+38P3Fb&j(B?DY4(~W%J&7IUo*N>e#dR;0%(Cu8kSjSD%J2wCH)4;x6b?J zrQ1CH1P*V-)?qB8G z6R%hG3-jT`2V>J#h^XqF0&X+ZWAq0wNwldgzxM=TzNC)qud|fPh+{)*ra75Ft+%U{Ll;Hj`s?|A4 z;(Xcdw4p$q73I^_ex;512BwrG3PQJjfg9R-(nocf6$@TuEg$%5Z^r0>Y;4BfJlFr= z!(&Yu0oWziYfFD$xu@o`&l8AxrSMo5>Ph%k9GX^KX$f;a%^Gkx9Ud9Mk3}r|w{c`- zZwjNI4_e1``^$)`&&2&X0%E++D_Qr=yPLJUtv{rbxQv)J(%;>#_DXkHB}3!c(6KJ| zbvv>I^7`H-&>MgQ^ZH;<_?ekcDQt3h?()EkYXs73hGtsHt3Er`y;vC4qzu$a=_P%!7(TYA2>qN^kQ$Y7sAGB6vUSGdYR(kN zFJ5_LmJaEg)!$T*x6c?&8#Xts80lBhE!$h!8khBO$iRG569(gD{iW`gTj@JfT&GE~ zUorY5Q1&271ZW#meKtkb;TeGYLLMg)M-XPak@z%kL~%^U2c8wRPAnj>>zL`tuU8^H zP{hG*R7E54dl6tM7bul$^G(Oi4<~)bb>WWnaH{(79JDO9Mq*TQLN6Sex6+Ds z5}NC<>V))sjzcf_Rd-I8SO`D2 z+x#@Plu`z1MgNe=Ei&ES+SNSIzJ7q$MP@N)-a!-27;0TGt~S0uuEQNXz6)FW1=xS- z9Vlg^M1@h;$OAgtnlgaXAZH=kS9GVs2tu#MXqZM0aY^`!jc`kU#x7W&;OdR1(}jz` zAz(Mks_u?&amQ&hYKT>S~>X{3mjgPH@~(?a~k&`f{zu*h9^ z=i)~NClfT)^7PyD)ZC|Cj`@hNv;n;lRK7ymjHws_af{hPbG#R*P@x5utJ6D*D6bDx zi@3--yAe)}|kx(rJDl>N}u0US*TYGLh_L(emn4zQo>LkctLNn}TnCR=|KfEI5qt=)RAUSR)-P+dKTOpTL|JJLn; zs}=Z^+eM5;iciU1)$q8$A*0x~;fa49OUqa#%ME52z+Arfw}#OD>^iBLz-}Iu8r}X8 zsQkRyvM)ObRJdUptUW>W4!01(D~_hzk>QQqK=>o&(+C;Te*03cq4Vy&*?gEUD!q7J5oDI_Y2s&Z3}00Y5$l zA*J7PryR?Z_|zpXe80@&F`}ab(+1L7AiooWx#RA)sYNY7s5L^{mFz(MCOAqd6N7e(m z_V(JsH6i$BJSY?r1oJQz*eg!9HrJkQrL&KGMKTJfQ7H9VJ|CeE2_NQ;bs3y#Z12W1 zlVbj)n?UA}vNNHVb=kT*)PpaPvvl^tfdM+~4;>>%F?3w=8;?xB#G;@E(oBp9!&}nr z*w4z_sM?M$2cyKvP&I`blu zflarTy^_ipUwd@Mwe)ke=GW9*Q*;gZYuSArBmpEo;k_*-VxGl4*PRvE$?eXwjhB;L zyiJN3UXMfdg`b!U zpDqlr9%kd9^!U^`r{TUq36?{XT^4!~Em=?Ka%9D@UQBtP<>y8KrK!{~mLW$ftBnL2 zb8!Qq^M;J+{7U9;29&CXo!7;_EJ+bE91R$Gc$BI4MbECveQb3$o^SW5b7LajAk)N0 zE4$Hsz^vUjO$*o++O~yLfcp_#m0E$WGJqlWimY!ywqF!0$wsJhV7uF zVwY>qYjT6O(&Nda6M0)31gKO;A`!EACNuKD7YnE#o{f6eo%{g&UH~cM>$>L8_Mrr< zpfZ2j0%58GMe>rR#fzux#6Apz#m=)N^xeYRpE)+V){T4P8S)D45a@(gLu+9c%x*;p zUu17em{!d(_JNi8Mhr(pj6#u4uAT5NY^!bc(L~+pLih8Ww~!&MUt2JdjE(56MtSxC zRB64Ka)mR&j6K?SC@ELZH&o;-GShHQRLGOdcu%LI;F|sQsh%5IclR|?SZT1JsA{zL zZLp5KL&4=|%M3zR|1=@nxPcIn;gz_hUvJ;^<0aBT-0_hNUJ(S)TU$t-T(fWj8QyZY z{nNBlFRZx)3dMd|B8I2^xO{aVxBEo+Ylyp*iK8z*=Z%bdU`LQ@LL+NgL2PGwqr~S# zb}?`TGOir`##M%6mF5fchQjz*2tGue#DVNqG!~t?lFmV=w{F3!I=(QpB1(M!HBSkH zN_$0FLEstmY}pFG47J#nOrVAPcW zsgx>`L2Ydk&XlzetRTfHX&J`3=$L9`NdHpdSW@~s-%0#!)~{rcVJJy}Y!+oS&Hk6O zN0FJ0gq({-eJIIR#1xtu&|X593U;-DyZG&a8$tn>RiA8Miry=j7l z%I@++R#J4<%z&-*OP~mP-%}H9>Ah82uP-H6eo+~v>pEV;UKL5*MJtztpT!{@0PDs^ zN{i}-scL}gD-yOkSMxu&Pyot(_)#L0u`luSlS+TFdv(>0Sb z8{sYGeZ=#l|G*6>>~>UYBOhqhezeI>>3y9vI??LIt8=1_4pIv>wb@yD;7J;lO90{&%Yf7Z>$kMR5v{2DsO!>wc)% zrFVc7_)O?PgB5R0!W8b*0V&W|Ue)9X;yqA!7_ybXqNE&TTb2n+WVJvBAgb!h=qL5V zv@E*1QBV!2DGAxwr^`j|u20?MeiWwZo1jy?h=+dVczRgLUIpVUe4NOIC})k_3+z)m z-4L$q##k?Bx73Hq*55c8JHg2jAL4x)AMlV2%u;@eYB>(eKT3OV)Tf%Qr{G6OUeg_; z5H(!J&jIEsHDdaT0c+5W|F-Q&{3&x%?lB^aRJP@+{ut#EN=TP*2ZfKBj&uf0y5gE9 z!@mOigy$taE<~!o-nLW%*?nACv1`##7!ha!guwU;l;l2Rkb@kQP~Jg1KzA|lGb4ct zyB$CM!@ltO3G4A!T`La>CTuzF=5b5=Lc-8}3ZQRAJD4cB0@RK36WXzP8ESzIS{dFS zGaTu_L$gi4;ITrLra*u+zlP4!aY4g4-?qY?Vu5rGO&KR6nF6y_!Ev@7vu4Vm(1$|6 zPP@ia`PY+4akTJC?jpM(wXb0FMUB0qM6zsKDPtj7*or@r8fUGwRy&{SxZ2)Id z3u>zA^0i)@#DzZ|x)!io5W!ml!f_KB!ALUm=bwdZs#pMgo<@6@rNY zosi4-3dtvbyv(j3omnK7_hkx)G7lXEG>n8$j|o?*Ak)nR@QpIN31p))(0T9C3T%BK zi(k7ULVUnVv(F}#7|n&o!G2_iz-)^Nos%?O(ovm)*p}p5YCT%+oJp+V{C7PJu>c?lBad?$2VV4srWzQXWDhYzM^3-*>TN}l-ueH*u>euz{zOe>qj z(*OG88wVgpC{!s5B12uv&plT=j2!e8=0i*0`|e*)m3OPvFg#E7nU=IW=6nQL zx@?a%8#X%D`ezQ!(kdSw-in}YjBI-3#*@t+b!IxS9#!=ecxTLdLQZWtM>F#g%x!v3 zDk*2!;Sh?B;}E_Tk^uH<=TzHMNFJ%q9K)%Wv6zrAelw;9osgmOooM8VsB85;BHdJh+e6(lc;%5VU-e|P7&~f$2QbtoUh(d(~w$0f4apYm!LfcZkN!G7Y zcU^DFtkEel%POKwc^#l6InLFrJmG`x)*2)77o;&{B%j%u&iwKwh3D zzBK)+FI46=9p_?+H6Q#PuOXaW0iRY7?}HU>luofmugcebb9>UpsO6VR#28vX^n+$$kwlS6qeY@F#RL%OaL-lRr81%75=30 zfp1eG;VG|7#?P$RHJPUZLYE|oP&GVi{o0oOiX5%rs5If&aXgJVO?<6nuBK&I+i(i& z3xzoXZWi;nkAXROiPClkgs*aNeNKA55Ol5uvp;Ice$15LW zEi47Pn&a$12vSmTnYT=~l4jL>*MyBwH=ZN&krHPrk`{ppW@KSwipNDMV06nUzkNgC z>BcJt6i=)WE@3oz0Gi(g4DPVSg6A>%9@OD}YO{nj#ADP$v zU_uViv+E$)&_hMKuS}D+lVm;`@?jJT0R$yszzz#Pe%hb*^jBa@oIZsXPZSJ zTo34;=jKWc_VAA*UBM>7jKL+3GJMT|$e63I#8tKz*m$wkuMy|!oJtM_8CB9^&insB!ZGq=~22% zN7u_ZfgKw%!bToRXxcFd$aj%@u1(OS-$QN2?P*~7I;9bA z%P1&cq198?0f<8+tkt?bw-?Hm@U&fKEbr z>cnI!B%eEhNA*ot2fC5Ban&jG#x{oT$+gn>trLdN!qBiqHOpxq-tdW zckI`xc_l+XQsKy`cNJ+WB+Ikjt$zDVKgDb>dA5_XSMa4;UZIkghSorvSP<9_lW?9- zRr%HKY6t;!JB;S4vUNo%40di;b)o8JZX}DnOm;G5av(rm$^J?it{0Z;(Pa0&YG%8l z&YvgolVy@PoKfq@i|iRTI23Z_k>P&= z(HRhy5|%Ks;G^{@zG-VnZ2gRH-i42G;;d;-(+o5cU5!YKL$8t>p1W@JO5YDWTi^Kf zKciuAMMTuGIy-K$zDg5GCfoeDYp4(ftL$>xY`YwBtYJ5T1}}(6Q+*F8T%f~4TYa=0 zvtH5p3Sx|~la@?CT{H-^R)}Frg3i;{EvWEAn@F zLVJbck{&t{oy08ZW`VF2FN}G*h#k$=xwcTLX_~+vY2Ocu&qqBkX(MDZt(pa|@jSmd zs6~2mkQBz2R%{41i~zG*zLw8iM4N5S3dN74ZpEk+Xe1!7)kr+~RiLNE&u*NmW{tp9 zBnZeIfhJ`qg9(}a6LlPuZ+*8dA5{JRiv_?Cf%?90^{$H(L-yO7msiq}sritqn6=-K zkQFCEW)V(o@Tc0H;Qd0da&TDs1DW&gG2xw@a-JuGeKnx>jo3SDEgSRmPPgKusyKoD zorJsF6_ewzs!mRnc!|tMWv{$q7E-s(KC^RwkqD7KHFrA?Ixh`N<<}Ijwr0X49eA1z z_1LD8v0${|xf9ZeT6|W_olJ*=_W~3jo6t8~5~)7U?Ttr3;Xtx6K7H5@e_G+XG(Lp* zYBp3*&KPvRUqGQ>Qf z7yz956v{5D1W3OMqBYr?50em1s0rTq=M&M-q^nb*rRMw zR4ZK%*lx6DSRO7i%M+TfVhl^QO?WaMlL$-38aU7BPT-NkbKV6^p^~JKiX(7ISBPLL zi|$ioQavNT=B)$)G9(n-Q~A?Ks$R?u6zy-Y9lwyI6TX&sJKo8rI@9Y0CCL%%wmPuMUe;hP6p-?Tfw4%eM&2$4J$<)3AkC~J&< zElhw95Ao%26L~dv247H^=kl=4y)gP0@K9t#@xl&}k;rXFQ93S|6g`Xl-?@n>|hiNe1K85_FsDFoy*b%emE?FwDaTt+uS z5C%!W4Gmk#I;ARY;_*-k07|)rES;&^yr&mkV z!K}mNFXidfxzK#GTKiS$?%s^oIVJ=rkBje2PbF>kdR2CsLjA^5SA2vKYtEnMNG%(Q2 z7=0v(qB=P5MpNTg*9Yvs9(z)JdZv}WE(bG{-8tf_@S!XXuF4S?-rSW+9=m4DF8Yz6fs5BdSk z{gHJael7;DeP+$FAvFWFacC3InRHMQ_olqf!WaA4gqM({X6Y=Ft=BqY>IkB5bM1we zStJ_v9|+8w=VH-GvwxNAuMhR@yz+~MU{OU|G*0T6d}SFrw;#4Q42=X^@=xI~Iz&`SC&ryIL09rn zDU;Jb$~P-m7M@8Om}bO^E%Wj!sc0jtB>@L#F`1aJmW#s`5{8A7-aIK?nz1N$I-D%? zCxKd=Rw0s7LHbc!Kd(FKg3l0T9C{wD#C#o$2f;i+mh=(*P6%r zOIKoB;@P8x|tYqo5@TpV~FgNi)#lE^(^6BW(=Tw|B_Q9R+J^s&)+O%4F-EwXn z8fVoo>C|rczsx4P5-HR7Lm`i=pFz>FW{f!Ouu=t9-;)G!U~`I4PhboF#v=R}D6B${ zjVB9A5rND~P_+=T&2lI{tTu@vvO5UIq#-w=o@%QOfI|4Ar!QBVt-rEZJ((3esJ-b~ z4+k%{yiyw)n~S%l$;=lhK$kbIh~oSWO{oX^Ct$3TsH!h`MM_UD`0t#n*fYwFwS(K5 zf7I$Ry6Mg=dkz{*6C=K&dCvE-IE>0#I=||Ko|_EL=nV!@F?!3L5eXG7pcPD_h;^QqR;Aji7tyHzO!|c zX~s%Ewx+)Aj^QT4YZE~6#2q(p#4{}s+Oi-Sp3@D1c|p~;8% zP!Va~5E43E%P(Yi&7YL+8Vt#{hvvc3ZONlN#qS|Rsl zP#yVbcMQ6Z8Bqz=_u>KD>2eyMa`r(M!Kg?X*rvC@Toxa67UbaG@|hoT?rhRxMl?@DJehHZ+~E&=%g+VH-r+7ApMrB zE|_qu@@AE@$hI&@P5e*dZH))5h_I0%?znJPD-s_bPun{}tq67kbla}^OD8%`V+N`kMM+~ZXE0UrFn*7K2Tt%OTL$BMAlE8C z4x3UvBUfbj2`>pft(DaGk}SK5_(U>0V|Kl4_(&Ei7bbrxn%OkEPhF(O0qLlXailrl zaUYCv3}02pqDv`@ZNV$iBAO>BgC!SFMl-OfY&i3IYq~=IPU5k)=vR#B-czo8k_O>2 zcSj4CmyLmhPOF$K9&V7Yj;M%(uAq?cq#%&VBPz}gE*1lEm+h4=8ekT8J2N>8IQ^2s zr93xQwEB8caIZGWRx)ixq;VbA;?K*6q*hw+Q$+GhYoa$|bOK@gj9lBz6?6q7t*oK* zWj<`lWTzT4EX*9QKMV8g@=ITRfAY&hwV3b|GY|2e6EMx4m|};LOu&ywCILB{_nDxT zzZFLIsyODdlF3#vaKTqmpDDd7R`@j*s+$o@pkZMnP87M$t*nf=sbJ3-@T%)<=cf7v ztsU{T_M0B&w9l(SnjYVB4i@>T4;hdqAAUINo>iPLBjm__bJ({?+!PwL$k1ci6LPcpL`6M7TXl(_9&iRQHD`ObZ{4y z5mA-*guRU(nJL*WtzgaT;PCbautC;Aq-&?EQ%a18z=+;=I%hQLsMJ}BWTPJd6|IIs z=w%m=yK%p2Lz%hoFrWcM{@>4m)ZJ|MiXn@T9^wlZ28ty_;No~?KTd;CURMP}*4B9= z5CXQjEE7til|!N?j!@TJrDSE%Pd;svW|2kY29tg$KB;fw+0w5Z!6%X_3ja8fa^khV z^wu5Bk)dxIpMPLu@|99p1k;CN13Fhsvd@iIO4H9kR8ni`rc`9W$@hc)$ZjdCloX+E z#pA*&D?6W*3rYaRS@&n7M+{E%{4h|nXy5tDkxW*hiwIF1JYEoK`+V3iEZ-lk#pz$? zkwu;@a-CxjHLhmh(w?OL-~}`_uIr~&hoEIQ&uFS2*C6827;&IQ)>RJ4w2uPNfJEuy z1hbnybRaTFL0GJ*w$Q&YIRS%E?5kH*H9y~Md>1vc0-Fd-Dt&n1QnR0Y5c|kX(h`c%V`%}$hxBS7?aoLv zqKVzp?mk7op5XZKC|j(zUihQFDlYsSH5zH}e;(R&Z(wRdj9X>3iz5?mPa12JI}^hP zu$<^do2SpX-CPTvG>nJiJ_1rY7npOkOeG}crIhjh_|C3{A3>Rb&$^T3On-^;0rz-< zjhzrBDpP(9tK0sS$}>&I2EKG&=2bvNJk=PGcHwqyv6XwQVlaxUcL4kDCU^F%6~ zr!f;>_7l57bJ2uJN4^&es+*M*wWs&S-^nIA+2sG|{dL1g5JvImTNzdDM?9X>ani6e zQj||jT-r7&Wd689B*K^YazY|5zo&E*=+wg=NIYOx1pn@ew1L)O(I?oiCGI+Mv-WxY z#n4^=m@`H$evk@<3bl0ig*UFw1&?#ih9n6QNSnU1G~y0BFOMe?XwtHYp1Fi<9+Lgr znC13Hvx68%$=bu8ZbfEv;hF4aiaqg{-cLKQ`e+e%{0R49K~fG)m}Go8_X{i;vVyK* zivRpl2+dB$n1HNQXS7(YyBo1ce@%ekEYIeW6YZmMIE#N^!VovMMNNAXRC!4v%|S>$ z#=EokA0TuvqdE?<+v$x~HTUX0+Ql6&DH#8JbM3qO01s3xBtbGi=7H+FYg{BVoXB^L z-B)^SYqwyAaR0ymoEyzf%Gh!=<-M_xW6%UIDplZMJ1$Z5Ne~tm+8_vbtAU=4>`@Gw zVd2()FvbS*`I`gLFb2gA*?|76dB^o*hS1L|r3aqpe2Y|pXt1qf=~8+M?8Fs{;6w>| zhm`*;b(UZkhGYn6pcEy_CLwugNHyD8lccJX3tE7EF)9Y7yUfK?3s(1=wofU2$@PzY z1$LG1*XAT#Q-7BuqN1QA?2UInB)BhMuH^GA2BHlpbC_mWlLiA>A%p$}RqX0sU;2eZ zK67`m$<9ULZi`mKmj>pXH^Qep=8OapE85LE{K;ATu^)a!TyML){re!hNJ;r5GQ1X7 z^Rm&(?mhMB>0{*Aex0R9*%6VX1qkt2Y`G2IcmP&kEmUE~;-;tjGw16Xm1y28E~9cD@%J zy1}2^_q96}=*JTgVa&4L6Cj&9Akb44hwimYa|Mg^Ix9B)=t+q2JBwS;W4&a00M0G>y%h zOK(2^Y$$i@7D1C{{}cVZh4r=JMddidMH~NlEHfPhRall$(ByJZmv^;BgLmavC8TlTC3U_yEuL+cK~-fx7N&pi|%eU=-EuMtwISf`#T%tsI?@{=}wK64ZV~v zo_VaLk~l)5RPslBB$x z4jaba6O%pv{5{0M;Y(^?g6Ej{BZEr3nQA!I++XC(xGKo~u}|W0$XFPPCnG)5mvt6~ zT3-2kYeJrOgsGc6!%6m|JpdqD@UrN}V!0+KG^-KX$#I(mFv~e35PrNq@ll~o#Igwg z11n?*?n!}JNCgoyhq!GnX6yX*^Y)7kdu$n8!Unl#*oCZqJf{ShtCu@@ z5^cX`4Hu~0H{P-6B$0(~1J&9{2?J9pr@!odo@F2{e<}!IqqlzU7T}H?<5Qy z2ORPltC_jF10l37O4ZqP#)Y9m*)^Xxq80?hDBdx$+88W8zU7X@Oj@_(LR_9ry&Pj^ z?$}u#@(*nt4^QprVc7#_fdg4=?NT|OVd*$sq))foWpdMPSho>jWXAp8_v8p+VI!8v zWiIwSzO}HwDnJ0b#t$ZB;fjCpTMthoEx!`bKbaT7;8TIQSA5xqLM^k3_e2*sfW)>U z>c$Pnjbac1;NX*04Wn64q+&;`N18&)BVWeYt<+c{3-pD5O=~rfs_b9&9UnF>IWFjv zVG+^G+_$h_JzZGqd*Zb$B9->11%L^Z0_gqcPXO%UlPRy!o_+?2oOMsrV{(E*#=qW9 zn~u8>KyJSElnjlEtxcBIJ0X54mYDle-hhf<{Z#@fi>HrL26cv~EG0=de|Md394XcB zC8v(uT#w7avX3vi(1`sH(_+_L9|3uv}0p?)nrx#AlWXcV?sa-VgDefX%bCU{QmvA)gISEs@^XH#D0WJND6 z-aHtgjj(JNAGXM4AJk>V8{iri{g?kz%gAkx_{uhEo9-mX5^Y~etqqx!9m!OCUmkp} znjwT~VYZcfRLUr=a-zNv`%gsJ^+1ygZT*>=@KT1bC9&UJBtbE~*CC8Vr=Pi4&2^i) zpL}C6o>4NIJ}K(u0I>X(69SUVpfR8@gI{b!d-(?yz5Tmt+@~mv(#Ckghy?qnbyj`M zf<_bf2}pyMOQOUFyqh?29mY<5pMj_8!&~@5F>{a%y|8LVV-GimTAaR#dvaPCCQ6T* z@pLEQjq80zEE;Ge%UYMP+2Y{s(dG5|>Rse>fd3<0$t^!G@(#v5`c>j;BA&s$MU9v& z;1QsMjf~uf2#90CJx@mXSYf4@TOh{$>Y`Bd<@nAARq#OBW?3O00fBKFmvW(QMigMK&Ud8}ZJori7K zF-28YHyYTyp=rC1&61`W_s`jw_FE4l+m2~jVFjofy1%7>I4R&-UE;{2I_*)Dfoudq zKOA8G?O-pgWD$qm#d#gTmMgn@A?++#cnS)-B5ZR$7DJFoZfqrye0^#zNL3p+?Ri-R3RW-VV`D1 zlJcbEmmg_8MPGiQy&BGAG6(pGPHL83v-&n)!+B%y8xawP_H__x2D34#CbH0G&0G5Q zwSUa<4EugDLMk<1j#~6%*En1O!qxU+^*!5W3P>r^`)Gr%jVZ1oW0HH$yxLE5;j6v} zRt-igG6k3@g|G^M^eDUnkd*Xs{7F$%l8oyWlj+savPTBv{iEew-nUIujMQ2t8`2o=Qa0ZlvaSqP){)sPDQBr){nsv zpbEgh(fA>*^zQk22C#xKj5+o60A=_RkZ({!$G+GbTL=MeK|QuJA(6~%;u>E&9`BM1 z<(kO8m8nz)5?y5xafaevg&pgSa}VeJOF#gXV`t(T?6quzYnyJwobJIeN2^+A3A_jxUp!SwW8+E*$Nv$syShy9AK09(c8 zS-1O?YPz6RDA%y!-B%UZjfVV_RK+3il6|s(PV!4}AKi`^3lX8L@}^ba%HLrxfhPS$ zAdr=~OQ6U|8y8!208ARU_T+?iLT7VQ1BW7=KYNC2S30vg0o#0ed&0Y>E&wIPijxLl zjmDsFOh)VBS|iOGcMGFS0P+ZPg(^Nq=Y`sRmV*)8m`rA!c%QH2-A<=s**f1_w=%Xf}VFpQ|jU!%lrOJ=bL`i(5mrz z|H~m0n&%l`kmC1rG?A?ot;w%sCd;Xt(Ncfy>%sjB+o}ACL(w8)gi#9Z?SI<+QjiVr z?>C6)pJua(nZ)v13-D?=tRHe^_d}o$KnAB9Qkg2Df( z=pyLHb&%aQW`GA&6lwSCe4}zl?>l(ny-j1&@8Qi;hNmDdJ7>7^uenq9L&;dYc0*A=# z#~O;74eeB5q>t{NGuREt>5_wp- zsu|5}fwDg@n#O=!fk_mdZ{^}~-^j3xUkFp%HF9X-yySxO_6A6~tqV6q(e>HI$@ENv zmjnBMGMXO2B%eZXAMO6!r1ioDc2ppr?|}G<5qC2)K(0YXz7mSl_w;H_FngBugb zN*MGt;{i@y4LUmpDQNo9LqeGAK_uw(-x|FIzpws3Sb!$FaZ+Tr_E`_@EqC?DZtRs1 zx3kKnRBzu6?m(g0*!v{>6cEsp36u4+AB=Z{x)T7q# zlXf=Te^*O-e_M`AAB7^%XW)c847uOAprIJO?R;I^mSzon;r}_If#u)LOPa~8o%eo@Spbc_AN=xw&+56_mN=1GTCE`+(I4j+vA3y7(yT51J%hgjiO1x z_LJCE>1T3OplRITd(z{{OGCdOpI*B*w+^rmKuK1dPM>}iZQ(Nesl%| z=G-#?9~q-ZyV3VI!Gz-kOC_fl#fyuq08NQKfNl@dH7U#m9!JiACVu_1=ap5~)R79H zaI#+StpCX)XwWcJjb{yBSHtg#=zt=_ynQLX?ki{>Y02_8TWN;R9e_&EVp`2#_-_DA zlmpiF;iuO-t!0ImX3G);ut&ir*BfMeaiT{c2iw=qU!ni(3pc7&3~&{;!RVw4T&tI~~cfjEH_cn_dUs||5B zsHDg9hm!#UTZ!q+?;iqCk9k1CnhpmXoF^Zcr%^KhfMDKdC)aIy0%%aL{zqqy>9|di z3+)B9Q3a@80C~{D!tq{d9^TLU zotJ>TgUA5<%Gvel*ql4s#1BBvfKmyg*ryqIiNMr-`Rxu+{eFu$^4v=1H-elObMHCu zy%T_YFj#Vt{RZqW-;0o(z(*KRO}EH1AcvUw68W_sHTb#YcYyQgDgwL~B01*Ezbf)5 z_+euDeOMy1Tn4hr1Mujs6R@@vf_plC!&IAe?El{QAu;f4fBao*>*vfC&KDi`Uj7>-`hdP0&VPoG-fr7AJ3YaiwN8w4bk5E%qPKtj5^ySqy%1t~!glm=-;C8Uuqf$v;=@AtlcWxR9e#6Ekkwe~ve zKtx=7p;d4VZGk}S1~oG%CpJ+&FUfqdA(Lj&=P&KX@aO7c_jedmNg?=f#|KPUA@n9S zig{1>odDQU(s6ZEyAFz#o!43xe*V%R8QyI@U}^la3S|0{LNNKm;GQ^85X3lM~t%1$>$SeX=RLG%mIa`1_n=3feuO=y$ess;=z z)&W)+#k>As@WtVM!ZkD$465Xd_n?$OExn0hz#~OAZatoT zj)abLU}PYLTJpayk&j8ezUa7C6`psL``^dQc+?BeAwvt0v5Dm2Ku^yT!frsA4FToC z@^1p)Q#pG~^1INpuZYqtV?+~lP@vN88upp&CZf7vqjJZmGR256N}Mexu7ha17573> z7<$fKY%ZYp7IhoP;j9{oSuKdZd6^Il|CB!5#Q1`!58F+1Z(KNDKqJ;2=r^wpMWk79 zl!yKfd6|0i;aNX0Jo1RHsrKW>zE3llorU4jd5MIlS0^30ki`qLx#_w%Td zSZ7uXyuN!=fHu+pfviOsctJ+=^YiS*RL50vj_=i($+%sDG7IwSr640>ZkVfnV5~{V z7`X;=BsJfQxy3Q?pVpgVN|QZ5--o`}4Bdzk4rThU4@VUfZ;sG4TJ(xB`c?oNuE)vY zD?@fG$FDrW_m4w8&QSaj1bv=Og6_;H>>zo~c5+hfp@TA$L&)dG9+WZ2wxb#iJ zl;=tK9)OGE!1?4)Jl6-PiiHZKF$dtpP{f7J-OrL~mk{2IfFo zQFl^-h`j|BApJ%18tG8=x(;HxQU|aT8OwBNPoGNC^xn{IzP;EuG!m7xvi)vx=sNpJ z!0r9t)$hJPXt7_8XayDf*#&ectt^{><6rd0k67QomJh(%83(&GMMLCg&`x?Eg);q! zCHA4J85a$Ct_8|EpO?jZe`y1zKLBeiy$397T#oH-Z|XnxK5AI>xhSsnIjSuDd<9Om z5`)Ly_qhRJJM*alBtI-v8SJH5{CB+%N0Cr908CQ!+A&e`^Fi@xJf@?{oxI7q4KfI1 z_Nz%{nxLnLdc`@Sw%|POi`RIT{Yrlp_)&}lYBsY3WH&`N%wq`Wz|+$qP-*7Y5-}VB zE0TNfqMz(dL13f6O_S7lzot(D7{I#NflRKSAcJ$Ayj8vu6otG=;5Nd+Yy?NRf-d;s zre9E2wZ?;P=6iW`*gWjb(+0puk0)7f5Ndn~23&FwK!kMERm2Pfl6`mue&V3u7KP64 zp=G~GYmmXH1H&Ot7A`@!ARho@UjlrXwS;5w0=OIHkb{C+ErpQUz6J!{Gm`LhaI%a6 zOOUjS!YkrB|Dus;Qlq=}e45z+CptTarXJaTwyFwZ@uuSWju=QL<*u$k7|y*Qe>K~( zX&5sK7`@Ac)KEGfk=#zN5GYcBK>ZPm&Po?IfDa^Q&vN4c=q&zR_Ow_KCy@Z}YXB}! zn&er(rgb!z?|Xom@{xpqiRbYK)+>L*pbj^FfZ&(VU9KsL2D;6JV)zrWIUWoOKhp{B zbmTq02xz4NFvdDmM%fg|Cqk&27c;d8-Y8TM++pBp6`ETnB_1lvs?w zJUYSzYKlOR_a-To8<4Zv~$bPfgD8J z6?HW%@|2h1<*ln;;dZ{)TY^HfC&H3qYKquV%b7dh*68PnZC+}FbRmijdfUk0o}U2A z{Can#+(CvY_@*N!xiSom!#c)MjzPnssA9qKDKsTX%)z~gyN#uOn;TPo5V8eo6zr4E_sH-6`IS*IX{)U(Kl7{= z+guU^Kc|ZZ7Ld`JO@?K8AI}&X2S|qt{_6Au3ER_ZmC<7mES9pQNoL;S^F2jIu2&FR z{RT1IB|utRh}-k$PuND$C2uVOD2}nOqoZ(WhnLTj>zGC70VBUT`UX3ZS(b9K5(mg zEjoi>i^=Ckh41{OH?g@|)(VvOzV!y85C`_*roI^1WmL=X4L9K)^irrI@&#T)_2c$S zVg}#DcAGCoZ;?Gm-;NASxJVili?;7L98(qLxIJU*3fK5B>xQQbBes;l{=6`moBW=i zaE%oG{2pA8_GHo5chW1VIHFYx&LqHy7YB5ns*#s5Q7)xKmOv`PlVUGY^;hBEa(M zRpvE`BG@+yz9AlE^OujtN{=zR_y=pZpXBnzkY>L733#RbOOB zq)LId#}9w3v6a-vIf;gRa6^hnUX@wmW(q>=UnI(LKPou3;*U!xJ=otxIzIHyy_`pl zW_yX>pf!G61z_Tt6ds)bMBIwkN_3ii?gI;cpX-jP-aJOjQl!M0tgP-U}_tamy7mHcIBP$-o+ zo@Nr;Jll$Gbu3%4VWkUnnNOI5N=eZJ>vXF>%H|I^HZpmsZ+}d(Xyw?_PGj2d$}QP? z^VRO*i`0;kjf(=dw8A33)URD_%rgn?G=}lxvdn>5M6!~i*yQR1u;;a=dc~p>k&?d*de7dOdgzJFMg|efObk^_Sq41yg3|vGEHLo6ctPj)A~KE? z&8)hYa|41NJz6%ErU_z7Q4Xof>Z%s)ZVB;?GGd}}y_aZv$J5G!*tWllY565Y%a|gW z;aOpo?NXrcVr7?;{Igon69&-&YOd*mL>ucY$rW$HWUU|zeo;zaCHj$S?7m@H-Hl78 z>W9e+$LXf=p1UtC{d-Y4MW2v5la4a&WpxL-y{GvyPgg^{{IUY3v&~y1U4#~WAH(CN z&9C39rqvwCk*Z7A;wRDr5fw9N%^g0;pC^H`PNDe)AUK-6=&(8}wm$1EzH3+J(;l$* zee`(|&A){n91ujoeo=yxI7lIBX6Y*!drPLCJ6Qx5)onvU?@uoE;8d}W#xBS4MDW@; zbERAsAJm+;kLMOROWs@I(D1#gHH&P=`OIaNXP)ya{m&Xua);frfV)L#j;ZJ&v63Nk ztd5SX`Fp9)lWt0t8{pPG;?F_N=$C!fdL(Qtts?KVt*Nb4tyL*PoLm0h25YVt|HT@; z#$-l;?JJ_=C_jdW(dHvHB$rCK6I>W_dcF}=9eT`z@2Pfo&kGJ^DPdT`_N1G!;`e)| zBQ~ijZJ3bzTlBnF+!ap1T&gcsxVz?5qV652GGlY*+|SYcU&w&fEt|-oDfiQ4F2*11 zsC**!pe@IpWU8zXW(YJ2fuT_0v7e_uH7@6{uXj!O9m%46mocwbtMEOhM;`caZwRKI zj#y}X??a3R={`J*Wuus*NvutDyqduHi?Ovbbp)DB;?k8*9BPpAVcxvDU@N}j-#G*$ z@hUH60OU6lTl6GuHorouG}q_#5Wj}V39dNXMgK>&j)ld=Lt}21=|7+)RDad4Hn&xH zU~J&e><_v!k&?FztkHT6@-G;X(aRVp6&swg*3~JzNp$&gx$R`1T-0mHX8W<25&hlQuF&E;fupZ|c?ZVcN zqr)}V=8&PTDGVkK_5kT0s}XFL*>c<=K1NTk;cPj%Ka#6=w!CWx;4B(_DL-zHW=`s3 zjnKp2V!BX6!NNZyx&<$fLX&=E8+#;RU*_${BLh7ua>$U5<<=x7t0%RA&E8yvbP@fo#}D}De2ov%hjx8dHt^vl5=F}V;*aWQ?G zKl3E#r`qPpzyrv*sa+8`4sZ!?#$uNPpg}T`9bIW7v@X302z={1t@K&oz1N^-U*SWB z9@P0BJRX&zqITEQ8-2kHS2LSj;n*S+w!VMXs8lGW>n8b;ufhxgHitz#5zzz%$3ovf9%;++)gFxqX%_aHX-;*?9J?<=mp0& z84~T}3cn7O^j6YxSenZDSnKE0Cd$qqOF@q6DknZtdy5tlY;tfnoG2vc8pGW;mfH z_AT#Tk_KBM+5bK^!qn(&fd7>}O(bQfIIOOa>g{~Uq!NGD@BXEj)QAE8*DP&VWcJG; zw+E|E?@8};+K$MMzTW6+{rK9Oub&=%GoX6oWQ1)k;Ug?#*0S5SeMEGmYL-<0yK(Um zZQhiBPbZ%LgRR zRXO=a_&y!^OP4}N0J|)?X!nis#ehK`8*B?L+FyCEy^84l=S_n|gyNKJ)ZjepsJbWk?1s#!z!ZvvG)+|9D3M??o zSA%asoI2Wtg~>k&8a7m^#1r@{w*SKhB+*4izXPLCZqaVn#WhO=z!0<)p*#>O^6>lr zu@MWQexIBYJ}ZY4{(tG25=G+|j>_dC4JdsYF~!CvOYubX8i;EBf7u3%wGONsxPjb_ z{%l89x~>UWLEdAv{}1`X1HE)nTFS%zXV5UXz)*F*sV>0fz5fqi0Sm0M7^ecjXOoH? z<&#hSZX_2rF@B_%#1jhurb5vL{}Etm&{1Q-tYZt3q3*MP1BB%dDq$hkvj0*lrVxTv zX2!9oy6j)}wLw7&&3}?m%l{OBdP5#&|9Nd(2wBoDR9H#aj(GQPrs(r<4j~SYQz8^9 zKaVVOpg+TMr{&-uiOH)esh!;m!s*m z_@`T*cTlhrll6_*?SZqdgwQ?(L_`3f9RNcRTYJ})%;9Eqc4VHUKTT1FfD#L;e^yU< zJP=5B1u(V}z|`H#22}AYN`phl+t^6@2_PQSAv*0>65YRPy7|5HfTBl+-gQ+1sFw9y1A$L1QJm+HE%GJ(AIO{_`YYf( zs2<($r@+t|3_`>^b>5HY>i~1n$o;#_`uu+9jWzQ_CPx4&u42m?y8aKqjEA9RK!(VW z%^!qpJcx#$Q-O!869R=E?ik-^nndsa&cY4e8BA`(rbx|Q*T?vZ>M;N^vC%W={{TFV z1BkKg*WWM2;6_2yK?sba0Xhm809Jb-XhQ-(qW0UZLda-ZE84GBec&U&`ZfQDVy3rl z0b^fLeg^Uuqd^DY6KxaG3Asoxmm32t3#}MD5#ad2(qETX-gR8sw?GmM0E_8Yq9{Cr zih3%4fQ>O_gF+FR?0@e78){knyDB^mhQsVXpZ>9QL!~yCi~`^=9uk20u|ew< zI82Z5d)!!eGR0g0o8XeSpJ_kn2S!0I+ntI;5LQMa)dT_9dH+Sk0c;%w$q{eR)N|ls zYVg5dAr!pQ4`1vX0tDbxngHF<==?YT+k^nbHw2Q01e|doUbWc9q`C_+%GV5zohVpE zzCfI}o)?IZ^XT6%xQmL$2w%K9en-OE0p9biD_S%@7I>L!!fBua8HZ>M0D{!}-Me}J zSq5JEeJ21imR{_3NZke2!Hv{5E+XJ>SD~FSP^i0%DYF*Cz1LMyRR8TzxhK-gD*$r* zYP$-AqILg$yf4uy0GGxPBZr$e31utu@4`hLVRS+Gg1sn&r9Vn z5b}@Y!RLE;6{D$=0fH0@{9ZY~xlN27NauwTX>C{n?o%23CSQU=LOB93To0H4@l-eW z;zKb6S3|zYuV~#4B?#9H(NiA#oHcyq`A`I$ryHN~h53W=l5T^jr}+7eBwY<<(1YmH zrbydHfc~1$pFrv_ue#8T)jE)uszX#e0VAOtG$AjfpL8wve5{W=~CPZ(mq6LAc zg5__3jtO*953PqFB(%Eic=pv@w?i?)HD&ZBfM90b^8~wer+@Er9<;8-2q{QCW&mq9 z24Ro*K$Wv2&7eSpeTa>U%k%!pc@Nwto*Zb6XenRbfkF-t4amg9&KRKj6Y>>xV`AYe zkePR4#)lSK*4eSQ?917htPB6K!yAA@?Ek7j zZJ)&a;n(|r)O74Etc#myP}k3ry*RUGezQuv>3MDToj}klt*mL`fDlL&NAL$15!Bs| zYab1j6QEfxDlg4x>Gq^vz=g&y&jBJ~NuQZmgx_N{G!-}Zm&PM}4}sPY7znw>QXLAl zP(Zu6lQ16EzhMpHfl0b6kXhkpK_ePSB=V;dtv*nqBlSOT8`GJ0AC5V+_!K1Lnh@N% z@G|TQ3)M8b6JRCTl^<&XZfYtqL}Bu8yetuBMHB{Q(_Q;R|J4HQ0XTLYufZY-ybO^$ zKrZWZze3_G$isQc5q)&!CVWXobW+5pLguWS+u_QU6EX1NjTjjYl`Yq}`^XxiKL!2&ft;5>p{)QeAk# z1qn!^U3GNJ34iHOCf-G_gJQrcF+gGa?)ULEvzx)MX5j5zUV)%JN--d#8k^jqFaXC$ z=Nksd*nAlXL?j^47JtrrNdXG!*g%wNsb=S{+_p+6G(LvgkrWeHHe zv_FKG_HTal1DHP_3p}I=yz^>+15kY^{EiWPO^$s?kNUkIY6rMEaYfE4oWL_&I8p5x z;E>aL3xGH4mR{T>AegAYf?29wYIa;xDw`$SWo&5e;UVKqz!QQ*82g~eD!MV4kLjxU z9%2~Ig6c0s@7PQEY#FUb9%ecbGFcG*?`5zckw-TX2jnGYO`-!mK1v*Qv-+JGgq__e z6XJK(4#7Wz^&`YMBDC)W@Wy-bcxp;eKEYdu-3ruL$P8qO@=f;6@*guGVFvKgeQ2?g z8JO_RO+oJdFS^PqKNobaf=NpK?t6WC2oUn+TyUa@JyWwrr2&-BYe`T3s2{ql&CpQ` z2+mxl=>JQ2jm6G-domY?%~yj&^;o#S$q__MzWb0w$uN zIMnepZX;T(4J1(MY8kMS{{)N{JRo&S1-y}{J!l~CIJiUk0Nq9bvZ8kZVfJ_K^O|NB zb@9DVH!LTh{da9p`Ie#t@H6|d^7(c#Ufz&a;0(xA9)Py2FBB2WY{gw-d)89OEL{BF z11dE1=Zlw-H>)6o4iZ*nZUAvd()3&h!0hi_+q9gwjeRS6{^^qFs~ioLKFZ$JQUfNl)@ z_Dt(c`zCQ(gf;NVviZ#Yx;+{|-gM!;>PbWaH$l~3T9|Rfb$=gRIZ+B#$9tiK<;48F z=%=-ikA3s>%FQJVU^D;5^8xoqY*h?~#SVZ48h>9o?9S&!u=7~#-~S9Lhtp;G=g)W= zT<@oL&_qAqjh0k^2*b7j>A8N~AE#!JYW}8ovG#{Z@6xgrJJSY~6=&si9Axhnf#c*o ztCI`%H~nN9^ABKqj6-At{#rBOlMh7BKG=D`GzMiVTcuBy;-448ZltXsjTjyW>0U~GH~4$Z%&2gYFFN3- zY8rqi`R_OG=41aEbWTVz3E2GTt*A3VKpzIJKH((@{j&rCaoGTPnt3QY&Nv{l+<`qJ zc?rld4MkcHEBq5^PdQ&!#jRq~zjoTE0h!o;Dj0AE#KpnFpcu6dsVorUg5r`{`spDe zg0;ZG9JHa^5D57a4ygzJs1m zrvHdR$}-Hf&zA^lD;XoC2LQqDQhbpH;mj zE?pi$^pG)fZJpzpIe)mbWgE#0&C9;Q3wbvkd7zdVBd=DPzU`t&yOwr$m$Z)54)!Ai* zx4kc0PQ2~6-*n@j)vHil{H7{Gzpdz3MItDy!%T17m(XxqiM-1U;cx}+d{9w&JJQg9 z+3*pQdbucwQJgwhzl^QU=qj_FUJfIl^U8X#;9L0^eY06x0}y&S3L3_Vj|)t#(GNw< zEY_Df^gSvhFJ~j1n-=y~5R6x0q+fE&S3DJhVh&%}-_;%vLtdy;iPS7;oF-Q1ti zDt+GqSFD5cyp*9M@aYmoGl9s!@x8&-KDRHY`qA%JWF}6#81BK-&Y}BSxN2x_dn!Y+ zv{w3;CMlkUBmzGsy(O0;&h}z`vw)H*_bIDhX^GjxQm{0JJPLo@`i=~s$O7}{QD_2U zYzP-6gOhpSJO7tn*FesfEw@XQ0_1u3Lw|@7jlW3hkL(yHWD*y|LFaQ^b1F!tse|t` zYQ_hKKih>Wzwf-28W(z(g%Sue#5CYdERldC9J=IAgrTd(KUgl~>PsF}&jr29I(u!q z-VO~-N8JBPJC z(nXperY^xnE`7z?;?Hzk=)KhjFg*6m9xkX}&%;FZu;fD_t*@m%eHK^} zEnMd_=vAeDCShe}z|t#FoV!4EBv!PH@rTBZD6K+Qrj)y3do32L-(t1+h*0}+NK^6M zJ|PD=6j{V*_{cBw(Je9$P>UaQeeoJaqR*^q;%c9^u}>>M&+FJGJ!(iJus0DT6uLM3 z2>?`y{kImyGGh{J)X`@+1>sji6RU?Y?$c^Ens&#anlS5F?(t6gz)R251}SEa#M|rW>4bQU3cz(AL-QacTE=oZm?AXy)SItpzV?V5JD-%IyeFROH^Eh+}3^%LgY&?i6*JUCkp@>@Yr&HH$C z%kxIbJZ{VUq!1J41=ii*iJT81`tlv+yct08>hAwNlfc^q0@L&bg86Qv2=s1wslodL zg!-O%f1hqOrH?lmhF0#Zc+1enYg)@%9+@Qds}?Gt-ImrmnSEZXVmBzDo9xMNpyKI2 z!59iOZ>GOeF>_^AOWL3oiDpg1LtN#T67v(dR^);T7i?UFYAAH8f&J6&$X_(S(mDnj zubIRpKWK+!wYr~{i6I}iNG#R-F^jyTzg=8riF4f|xlAs9g+~4~(r^h`TeGxLyGX9E z+=)4gv>-Z`Ory3~GXGW2-l%IAM{aYl)37NRjopbZntwa*<=c@tzjWU(%RMZy*djKM z3hjRMMGn4)4}Jxgg`^6TFFJD=46FC!Qfs8!32x@@k}mfk@A5Qo3F#Qc2DDE9i94vH zHxkmZ1Q#nn%=7^ZkA3j5N%zTT<#})1TrzZBB))Gb!y>g2+itx27)t~xJ&h9nop|g| z-2_=UGDU~u3X$kzg!B@BxUf07BckudBP7EZYw*4PMi$AvSr_P;i9-tX0l`JeeNyaz z&4KcxZ#2fw)2j#a-!d4tM-l>_;AD(v5bN*lI_p83;MUF}9Am2@dU%7D672wys}bj7 zpg=-MRR+^1$`?;%a?-ownFBt#rw#-j4@Qd0Mu|K0ndBo2*7xSeW=EntTr<-7=FaeA z5XPXZ=8i2mOb09Y;U4cI5>Z)Nfdu|{YRRbCT=mjU!%IWy)`^MIiJ=9q0qd?_dnXO& zY!-6+%)9qRWbW7r`Ali#GrScY$>D`D(DX&(y{Ct3lnQxvlse@#7@W?SZBPh@IVA8bce8P^o4h{nhS2yk*La;*&vhk-!_LUOwdWfg>(^qEG4|* zV>`1y&UEPm2ffT_O6CK*Ycni_+?;=%2yz6EWQkNRx69==~dw-fzC&peWid>O;z=G?$9NsCrJuC^mbmK886 znl(l5`q;OgJ>!?sx%xOQ+D@wv_nAs$%b*{!P|fUAVwxsR$BuM=FS}wrB#rCz$g@6ua1vC<=4M131a9e@s|J39dGI;xd|VC`Zx*i3ec<<$ulAVq z)17pM)wFidRu-?8bOA*4Nzwi(5u)P^HO5aL_2KHr_-Bx+ftdEoufcu#b=z`Ti{Vt)L|$E4#t%Sh~6@n&-ju7 zqaS@S{g;OS3&>dSekgC}B0eHYv!ZD7!PmRoD@9*5FBIKW~xxewane@6iI$fU>DlNN%Rhc~UmEX=h z_{by)T)4Lxl#+kHDeDQb8sXvfFSi+5PZ0`cvNQa#@*&I08^)JsSfF0P2zTT+7(je~ zR)qUfHV%h7)}u6dMA)im1VI|qxM$|bwY0SB2v3Ar9;h+Y=irvmh>TT%HT&sE-puCX zkAd{m{&?45%IH{K!&A*>O#fpVYGKCJ>*_d|wJw#wa_QXh9KS}ltl9hsd+>H5PNQ*= zqmE@gmy@8&*Xb5>8gk}RJ`TsydM9klh0ltw?9EqjN1|s3{0Cyy6G~(rHQ+TXO+MSB z#W&}$=;G{Cv81pQI}b(234XWUqRGiTva0I&BQd;~CY<##@$W~oksnzm$60sD?eS%` zu~An~gf6Uivm{4Frn5|^a_L3AZb!FiCvrITg)DM;JO=qz`1N61Z6k_)5e@bTtZA^< zLP8dCcGP*dToGUNKtKFq263flhvd0p>0B>@SDfn46wQ1p;e?MO@@0EE8`KwX( zX_wd6uP=cI!Ja@pA67)Kg??c*r=X$bEP+*mCgqqc_0)^cr+nLwKXgdhEz5tlKb^>* zNPR^{jWx%bSwM$tt@MoP$xzTkoo?rVqOqEKtwP;PU5R&2sI>==jJL%CZoxDX)ug@X z9wxV|IyZ_|A?e^Md#|FNt<=~CsAoCo% zlvkuN`gW;8;3@%zBk5cI=DyDe6f7cINsiVouU{k03tX)?f5-jD)dLPS)?##K8GDR; z?bj0iIilcMbe;dQd~WMB9J&^`$^MNgQS&;mLH;E@LwW^mnov|lr^oMTrlJwEutBFiZwc-NXQC^!u1B$ja#%;TA5@GmC4RA(j zE7Yn;k?Q)&DZ}RvVO61Zxf4wQBX=5-&<-laU%8x}X_9vv68$~kYF`o`cg@H<9pLYU z&Ky{eAMS)?A&%)^MD$3-1^AxdQ+}k!_Cf1~q-s}LFhA48Uj~FsV+)@%se+aKI;n>V z4Nh^9FHhOP00c2_(+KE{z$!>6Vx{CRKGct((oO7$UO zwY#XVTJtWA=TmfYj@>`~4EpU9{;=xvu4KMHz9JcLw73AnVn^YStBz2ZsKsB5*DyoL9YzJ{HD zTu9Pbt-9`vQM5sL6$M;H6;~)*5uu`QKIB%z_RuiNwybO3&0L3h=lO9KLw1iBdB&x6 znlR`4nV6Gu9{VV4kG)@e9(x5A?b%$k8U*i*h!%F*7WxlHcG^YvRBTwbT}!0`dwEDF zlphHC()khxp}{cFR=UeLc38Q-T|6(W_ZWAghY1N%2M2~HO2}?zKl{R7*FP2l+|R5r zu5CEyLj!C2SWn`v3%RgD-e_gmRc5S59XpX` z-?VS?$@z4Tl8sfSCMwKLaqEB zNc}&tO;C~McQ*F%B~Kh*6Yy0db}E=Lfqqoowr zyTuq!naf7~2|5k+q`Qp71Gc`-G%o#Xx8`TIf6SIOVv zxMpVACs}P%K9jT0B{t8#6H;39sRUl=wA%ai-L|l}+!&8$V#PJO&RWY^ z>l_^64bA$nRs5gWJP8cLTGYE7n*&UCh{$)Nj#Yk3Lvwny|{S{q%YF zaN*aEr{I@W1YGH)4uqDZn^SlIkkZq(z)Ijnlgw}wf^?t1Oe##P{uP;KL(``72PKB$ zs72t`YcC%c$DJnFkBi!QILV`CD9L0h#rS)dxP!roO1^RZmby9rRZ?7yxMg633S)(m z5p1=)5BFNo8B0T*E=4Bo;zZW0%)%5ykX_4Ep5da!RlWYPGZUOPVi?yjZesS`;kHJz zhL(n=j!!8!E9zfbkzJ?RP0KaDZ<-wg@+Bb+KbMO+ds-d%$YyEEafE2)cSMRF{0 zk%UwFH}@zg_2j!W_J7R_@TE~U#cht)$W4$owK2d`xD!?EBUngo|7bv=Ps3mju|c0p zOYb2t4|C%$Rlc?K%;jL)v2S$Fbqz8-B!de&&&mvo2tD2sF~QYn@gw9# zZDZbC@lmtWX;CQ}bELkMMvtd`#_)O#P4c_w5%E?wx&4;^6qlr^wT~6Hfz$4`=)K)&R;0DU62}6bOd!3 zL)rKRx)Mk$OY7V9p1iWHFM}>kO|#*zd`dOiG*cGY%B!nIo2F7m_}zhpIVMA>uiE(C zr1P!vH$=ZL^QSK+F%3xgEjqP;%c6rkb#W5Y(Wke4LdNvb~`1$aWOpmaW4yc*- zkldqvo&a-}{WQjA&BW@PDW2ee=RJNR{^Q)5XOnKX<;|BpO)t%zxS?H8p$aZ!xWmqn zlZrabwL$oGw`fLWi=Q$a$2kmfD^47TQZK4b?iJBd;Y%D>DIDYR+f$1X-8{);$mP=R zq~$9gH?rgj#U-6SRgweqWsLUo;3o_Q*c8EPX|AxDHUe7>&OlkzXA6rmC-re`V;up z3y2`3`8qS&I9b*EIQc8fi)u-%r-h& zC+(0v7j{Koqntb}qxD*1PPsQugUcPb^!Zek?S1uUH z3(JXqgtzY@V^XeMQ@cCaT_E(zT%(_3327qk{K1cf^-oPf+-he?MWuZm~;%?d#%UCkqkE2T$W(W8F_+3vKfdimXc=&@?btVHM6fAeUS}yO_75*e5Uy zN{>Guv9tP%lJT>`du^)V_~YtFzHtQ|#;0kT1G+&NlNvoqQ!?^bv((QGUdn{xvoJ;M z8?n#Y52(?rr3#I^CbVcrux7jqi#>5ja{04^6>6Q|D>KX`i$%`(qQU&qu+sfko~YdA zNUnJgr8nk`w37m5X5(s^4;3B9^Eqwbq=JOap83<1GcDN(Ec5T}U^Og}2AfQ{xmNpt zE3+x??49*^yvUJ0m{2U~OFoDS*e7Pt$skGAjU$ooNAX`Clq0i^i5@5T)%9WvG4et~ z*%5(5&M?jzo@FwZQuCXSPQEa%QhB|S0#lS=zs=5Z$WcA${q zPKDS0!&I~)I3AK=Awlt8ldW)7jzy8+oh10qGw8-3y$ zw&&hW@i&hfYtzQ5#KZPAMf~GuBQ0rOg)L@J>dD2=YdSd#6VZ%XfV}xsL$lfWxlR!RLC;F;h zEO9fF!LNR+JI@o35sr=N;K}+*o5=1giHvq<>)QmyQ253V-c3hD$pAK`JOx7RPpP!z z-&GUVYmEH>wJ??^|c->5Fis zEvAnu)KbAO+2+dk?qv0zCPCR{I3i)E>)ExUxihFLNjEVOeeMypBh{3+oaq7)dG~PkuL{j$YGEmwTTb4(Sq>5?6aFsiYy0Xwa)^B$xz|8B31J1 zcERDNv`Ik*^&1B17fRNA!-E^&zq->MkSYK6gJ+b9e2UmN&sf!EJ}953{~r8HkmJkO zj?9y~y$mebr+4jU)qhDZ=b*0NEt)68n$qSadn>zsq?`3!m04r2EdfnF=?*GWKsY1Y z<4A0#!4KRMnF$YKh57>mo|DQhM%?Z_qR5^>$-lWN->)pX_JSHD&xrdI8mbNnnx7H_9rKWu>fOVt^uneD-sNJ#v|Cw~6UdtXvQsr>)0VDTVg9^6DI49F=65xRtet6X z^?KS1-B-h)x5)(VtND^hB35^QyBDS$z=a#5?mBzmJv%(!DrrIAT_&$5Xg*i&spHM3 zY5!+}OjK<^`+&rJrU9v&tuH-6`>Igc?C*k@-=CykzG41^W}B$vn?}nR;m^(yB5iI$ z%{7Myrk5lXKiXP>6vI}RC$Z`Zq;LUG)n#Kc@S5w)H=SV~@n{O|ltFz5%_T4M=(R#s zN=!?Xub$(Jbw|MYmET38w!}nNk&;f(*%G(L!%Eyw5cCV5A1ry8BT$6sT5tr7PO5di z)&;4H=DG1TaQJU<@cIAyp^h#mB|a3AJ!-V(m^{E@-iu~jeGuwtw| z(aoF_MLz`+ScFGntBb@3HwS$%Evja`(upc8Do@nvUrOJPZ(Z}Y1N~d$gdJpv;eblR z5i5d5={ts=wZPP}NMk&OQjr5E!eS4?QD zS<%#@4SAlABldsohA}lxVgC4}ED_)G(Ly4s^?mI9FCjrRujJYBH*(n|Go#hbf^yrN zL)=E|*E-~aensTe&J4gZrIJCC=YC=*n4^rK`_>t<={bp2BCspA&p;d(UR6o>r2e#^ zue+weFL;8twj3+i{SmBHcoH`3$E+Rlckr^T`uwBUyk4Gmhy6tFSnC;}=1glP{`iN! zlnp5>#HV^r=8nh;C0jsr5=uIM%&)0#oeq40t-1slxq3G;=c1ah?{=_4!5sCKr}G8r zgQzjZC3^jj?8MJDC{?X`Tj526Eic*`8@)C%@NUEMP%Kw<(^@pBQ)SIC!EC4=Kk-bl z_7QldQRryp&>xBQ?$kU6Q@XAmDOhSYDrgpA%^iiDe?I>lpAnwKzLnNCXZ4ha`0g^s zTM^@FrQiVt^_3nA%b#yX+}WR|BIbi03S=5CBTPM%Ratb7z2IROld={cUs~u$OrZ|n znP|d-^Ly~YgVc?;*p0?*!*bvHc^lMZAs5`pr;53zT~yl{Gby|5_Oh(%*?IHbL(^r_ zUJvM6K1-C@V&`#eVtAk}+#iWYN#yvYh~KCaFaiBW%f%0KjwQZ?xcLPzz%>)??rZ?! zWncEl4|iV$rI?Cr-y+Zs#?sL2sVVUl6cBjR66Q-k0ul6l_YUmJ-`i~$M+ip3RYIop zNZ;5CZE%eA5n$)^;U-7wU~ozW;t1{o!-#m%RRI>0MR+@-kcuyz{*O@;YJC@H3J>;I zscfEMxo+Ql%uT8~`bhO4cagH+33wk&qsH9b;!}@6l$w<0ST0UVk(M2hnnHY130bVM zD7FVT^vSwMY3iCI6I%9nb2>I>h?s|Yv_6Ro36~~|c1$f}ynl!auf;%8rE3OX&(7nG zG-ysQ@k~EIYkgG2-8cRIYR*P=5nk8yn-SY^CftZbFS3rSNf_W|(Mv zvMy6*Mw*6}*)Jf@E|)Zab0#+9Ncy5lo&}!M{i{!0|6%pZ&kiFeY{VM8e`8mPW(3!N zBOk|p3E)lQhlRKEh9(b=>XynteP{FX>Eg2Vl zMMX&y-1-RDj!THuDuJ@ccQdoSW%A9h$lj_-Hu{c89Xv|PceEe7jDF?dORKRv%J$JX zJ=q-zYjq*B2?~8quZv$ZK$*mWPBzM`fKA9RP}N!ZjQXM9SWEDyW|l7NZi8nPUw;=L zE;PoOm+aP9#Ha}koULlsQxxy*Fv6jz1$uFAFL#T0VpX+$mvA1%5_JAC9RGvJxAmz=T@ekGN*nLxu=)_ozMB-7`yw&k1`LC*f{r&L$>g4D^ z=rO4MCDwbZe!J|R_qYhJdk$Q@#%>&hot0QI;Aku+wJQsu2b`NTSv0-XPfP5v3-ZdC zDyAhmz|?)2*s3(E#PLj0W|j!5&&&&OKE#e!Jd@9}D^dS^Epz!iBie2<0}p}7iC$bh z3sN@xF%!{UgV!tYaqMGJWUGjl$Rpmx>9u&=RZd%qdWtBK3o2^#?)xERj}h)I5vYu? z;yij;EL`dmyrd;53qM}hc-ZI@Qw*x3Q32funhYA|sB$-A+Td2+z&o6OY`ke6x+L1l zjlP6a1LTF<9@b`e+!hBbs;x|8`XzgNoe_=!!|~vwu6}1@UGHb9ZFc&%GuVPvXH+CJ zca>#)@pV5g*&AFCkbW#4Z7D^ZEuTeYp70$Sb6<8k3tu-6IlWn8asIee{4 zG%>kw<*uud?+LG89{)JP&S9mX<1~An%byNAl}pA>QT|~e;7mnUUbl5H#GcFH-zws6 zCph6kc%_6UE8D_~)Wx(P0Ab6moO-oA8XU%Pw^+S#UHKgDFu@rw2=RsrbH0A`&&_H4 zqTIBeHUCYjLPOVMREi@xy1V!Bm=Le9yFp`uO~PXt1_9IM9!x9(#DKt_C2#0aH|FQz zFXrGLz~0X;f>oylC;4D4>zcB&VLRY(2@ut-z3G02p}orpSJE@^SMY8SZDEz4@mw2O zp?@yGvy8#gjU%2BNV;5O5yty=or#c?`ARV<6{L&IdDX3Jo(6o1L3UbvDxc~}TM;bm zH)k)`k7=$xB;N0d0lu`EUf;+jfvG7~Gi(gg_kx4Uro%6IhAJGFyW(JpNr*2@8GCiw+(!1p=3AMiIyger zhO8D@n3CS_OA_zvb;{cB7(EoN+?{WBW?7KCrL+=UMXxoe^-cM37?W$P=fj3%VS+SH zbr<0=xNE2eCQp-It z?~nYv>OIt)^h{EB>@|tkOj6LVJ=({?)=W=1NDO~IdlU#azA9pB4Ow`1>2_@Dovuhr z%W55ymL)JX=ej+s7s|>1%uzo}uRQYTSRj`GDowelP;u4G{03#h4FnaH%tP+=kFlYB z>^4)P?MT(L*>2_R&Po3*q9`&Hdtk>nfS?^Hydv_YSI!l=h^G3rDJJ_MSoI5`iU%cm zyQHR<^DZbX13C*B-uzj{_#uS*C2~X>5#+qWHmbCr^2g1POi}Oq(%5&^JNH#0T$_2y z?o;n^W_-fs)7&q(R$)+b7mA<@eq)%Q#VEIInD#JfjM;JE{>^Xy8qlc|m&#A!gzC5| zZ}n*i7mNHrvMiaT(dt3HoyJ}gW05jG)-`Zh{5+M;tcuM{hfArP&i(gYD}7x6j@(ix zgCObKI4K!odR9+uU8k_Hbq9UPryRsMYtHSZO<{C+GDNR=SObgngywX#9~PAC?@E4{ zY`a|eeUvN9;LPeAyXnzXvfr5{n;!SVBt?axW^hF3DBTK{y!X)b-YR)`*=l~PJI|%1 zksXJNBf@7TbOiFvd@xE@&_keF6XPoL)o|$TJSR4~KmD5lY%VencC@F7iSEipVO(K4 z|F5|-|A%t>19(KF#ZFPoj9q1f?E5}MmKkKto~4A8ktHJgzAsVPvqqA#-AI$=%9cpE z%1-v;TECx1?*H)ZH!r61Jm-AQ=bU+-^L~FSJIZ=^MZ{U1TT3NQ)9d!mYoD<{tdYHO zo3w@IDyTn}Acy0O6-HeZ*PTgAN7=p2%lbT?9)!Qj%qIBdDYx>9dD7Z=r!#}*@|#;X zC~zWzlgF>h6%&$9o$MBw(HiDcDLO-@Q%#@s>2 zMBBLw$j#7E6ofV#B&3q3MqBKhEcBiYGL*%%kR^)*qEJ*nR0VI?X~wZ;q7BfwWzm+y z*N<-GdEMz9l&Ev%Kb6F!`fk)UOLs%u+fPGt8zn}~roiEFa!9H8EIj4*4ViAAFd#+x z=vRKEYSlhctJLKkvnI60?m> zV>6vVo~nRiVT!gXm2{| zm26bA7Q8jCmH^P=p$m7}U1c;j%Ts{!vILubkk_oEAdH`u+;{;hmyS%9ME)jw9``i@II&#B}SsjVHJ%11mXs3 zsqTnzeSb?eLZe7n;&m?FDxDRP_J+`S)}xF3lKyW(tA3Yv;9KoNZli_5k{$DUy;=N4 zwv#3&Dm(D+t(=oal&Z5d>Wq=jxkf;)N15^(2R%`=<6%9CJ;?QQeep?gb%$h|jA;yZ z+ca3olS%E6*r;J{xXKNur*U?7^KZYBcl;(!q?c+9H||eZa){2M!32tt-t=-~b4Tu- zBD&M!M%JP^Bilx)pC~P0f7ggEm1ZU^ZU?4KIs9b5H0Rj0 zvmZE-K`>CM>u@r(rl|uF;r1;nTS}I%h>mr?T?`)Xy?nmbD3qTLOuR0Sa@y9#zgOFO zHp26dXJ6mk9egsLl;$+bu4Mf*p;k>bDd&zYCc!**rbzNq_wBgdyP}^_#w$yClt{`7 zQdFRW+xB?JY}`M2h=_9-q9KkAqFY=|1Lzfn(^;l0MvI%M^Bwm`Y>2C}cYFd&QWc(A zOVw%i$B5}X!|ZQZr)&y@aC-+4|Ckerc>3(~&KfL(2^YOsS}<8A2Cu=+H~++!zxtKi z!gGI$4Tg*C#mUJBi}{Y?wfql}=zqjIlnBl{FHj#<@4KDkL{VaRdbE!rQ=B5uA62Jgd+2lp62XF`Os zi5tMZltz-J*o5w!&i=5j`p}YSy?r|bWZmvriu`++(ReyaeR-rZAY=wZ1fEiR3csH&mz4Bb z6s5?W){#HNBZvAeusGGOcnyxLa=;mQIhd(Y6A)6SWPRhLXvDT80_o1(a?=SX8#L1X z(7;-Uw#}4qEBAa;)Rgq!P%5LwCjx%B|3%5#Pl!aUtNzg+rSCmZB(ZJ7DfAK}s0~sN z9;Wi}ckoWuY>>`5BbwVfR~jv0pZoi?zRB*-R>mtMKV)_-o~sV(2bw09nRM|mKV}Xw zAO8&k+e)7n_HTN|oBsW|95tlaghnbPh*KB><5KrdltgrBob|%jxD1x3^Ok0=l}ZD; zTY^BO1NT7jJKVDdsAzelq=(iwK)ZjVFr5m{$K_^lSDqcC)f$=FN@8x(?rG&6i?1w8 z!>6T)wZ?kRfo0Y_)10O55y71M`Co3tj_&`MsecS}VT>u%`s;J9ez5ZW^)2m5K9jzVe*<+qA~%*(DMk zCmU~3d7It4LI-{J)j@!n4MR1#eE*AX1qx+LHruxfcCa7}z=7h%kJf#@-f^rkBm}sf z8%c)@$avYIpn9=#gxAWy3 z94?&&C3_igB%Fj)D}UlyCvJQO*CL4P3^dr?jS4!iKXc6iJ}H?zAxvvk=1k`3N=hwW z(1uGLWNh9$kARSE`duycJ&emau>&JsAnbr0uSsiRS(fUZLL#}jii>Wgm(98nYgT)+ zEcbSrCQDfZFg&HX!FC~jW5=vawhDx~5Jz5(=!Hum3dg?(+SP9kRFtb^H*HT~2YGq- z{;o^?mzpT`^F<%W^4T5}M5^rt()mwgJ-*f_L7*y4ky%~6g}C4&kC=V6+La?6`=0V& z6sw`e^KD(z^o!`3Le*SED4PHhD#uYfn(v<5_Lkoo>Nd(0zws>Cz-_d#VRJQS&)jcX zh4Yz?+GU>pBRNpYqtx7MfG}{*ayh~@&^f^Ieau;}T}JL{Y{0+TCwf4GXe{$;^9%G~ z!}ZDmEvA8=aA4m;&<{H@o!nxX$v|~rgg#qKnmE@4l)xZ~eajLp`t+PDLq_I@qdh*B8Ee)g5ZY(nu6s zU?uNo`O(1{=IMFR?D->bb1H4PF{K_+jK@Z3-UTZ1?c2d|+N!l-F+&{}X^0W~5#UW7 zTpxA+i-!D4{444s zW(@wYroQr}`@JlzWS27WO(`KJVn+Wp&jQVJ#iU-YdB&ri(=;7IrQtiCzkTZ0TMviDpbBI>@LR|SNIH+I1uOld}o5M8TaA3(jE(% zlh&?@GSxj5(lgzo+W@A;ykVRNTg-R@;ro7CQT62_{h~-`A_2EN_i%m;%dfQ IGY zT*KUV`CV)g=ZnCO$r46o#9&k6Syu!^ru4yAnUup294BIOF)_Nok#YnLIE1TYueWJz z)Tao3i4+N`35fij!3V`@)UoM{`*}D>F&4%kz4;n-uK)U*Q47B*nbG2M0LNzmam#8Z zc!s;v>7lnE;A|~;%yhF=XytBab&Sg#EaJA1dw3-!5$|*fB-+Bw{z7@e6ay~v0y&}y zMP{#&*-O`AKXb55r%~gn0U& zffYc$nF3jBf|?T`HHo|<+XX7mvf<|qx007`qm}{-8^L_C))9Bj%CtS(8(_^WsqU74 z;{%oiD~nryQ4ajzSbsG@j=sXaKO*{Ys|B)4S~N=!=wIFg{M{Jq(-Uda`x!NfK$Wxe zZEx=Ud^V7h8zb%fz_@ep0rJd4=~_I}y*<~%Rc*9E!%OCsth$yIW8~evQPKDZ-!?* zNNCS#T$9^TJ_j`Sm8W&!o~|5*_jgS)kG}m$AWBsjyE zv!R;LCX(0-RO8Al=!c3pR@2_E6%{7VwF3yewV!S7ER0;;0iS7k_!k$;)eL9gCm)UI zc;p|ieBxdT%0c$?YIbRckZ!YePh=ATKh@HB%{Lx8L^g_3Rl+aL_L%c2-Q?I0PItID z7H@JCO_&n;=(ZidC|LXku0{am9CY~6^ zv-tieh^qd>IE#07{@ngNYed6RUQ0i8Er0{clSMGPX5vQx0AjB41Y&(afr`WXAC;zc zC_iOdX5F~F3gcM23A4~}?^Sl^OGGm=m$NcTE4!rV1?tvCrGz-%LEVFRLIMHC%Ho!#Xwsr*M(R4|Kuw=ivR!r=AXSo Y@!zBcu2cFm9)f>3HC@$m gnoi.factory_reset.ResetSuccess - 2, // 1: gnoi.factory_reset.StartResponse.reset_error:type_name -> gnoi.factory_reset.ResetError - 0, // 2: gnoi.factory_reset.FactoryReset.Start:input_type -> gnoi.factory_reset.StartRequest - 3, // 3: gnoi.factory_reset.FactoryReset.Start:output_type -> gnoi.factory_reset.StartResponse - 3, // [3:4] is the sub-list for method output_type - 2, // [2:3] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_factory_reset_factory_reset_proto_init() } -func file_factory_reset_factory_reset_proto_init() { - if File_factory_reset_factory_reset_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_factory_reset_factory_reset_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StartRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_factory_reset_factory_reset_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResetSuccess); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_factory_reset_factory_reset_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResetError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_factory_reset_factory_reset_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StartResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_factory_reset_factory_reset_proto_msgTypes[3].OneofWrappers = []interface{}{ - (*StartResponse_ResetSuccess)(nil), - (*StartResponse_ResetError)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_factory_reset_factory_reset_proto_rawDesc, - NumEnums: 0, - NumMessages: 4, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_factory_reset_factory_reset_proto_goTypes, - DependencyIndexes: file_factory_reset_factory_reset_proto_depIdxs, - MessageInfos: file_factory_reset_factory_reset_proto_msgTypes, - }.Build() - File_factory_reset_factory_reset_proto = out.File - file_factory_reset_factory_reset_proto_rawDesc = nil - file_factory_reset_factory_reset_proto_goTypes = nil - file_factory_reset_factory_reset_proto_depIdxs = nil -} diff --git a/src/sonic-framework/gnoi/factory_reset/factory_reset.proto b/src/sonic-framework/gnoi/factory_reset/factory_reset.proto deleted file mode 100644 index a035c636008a..000000000000 --- a/src/sonic-framework/gnoi/factory_reset/factory_reset.proto +++ /dev/null @@ -1,62 +0,0 @@ -// This file defines a gNOI API used for factory reseting a Target. -syntax = "proto3"; - -package gnoi.factory_reset; - -import "github.com/openconfig/gnoi/types/types.proto"; - -option go_package = "github.com/openconfig/gnoi/factory_reset"; - -option (types.gnoi_version) = "0.1.0"; - -// The FactoryReset service exported by Targets. -service FactoryReset { - // The Start RPC allows the Client to instruct the Target to immediately - // clean all existing state and boot the Target in the same condition as it is - // shipped from factory. State includes storage, configuration, logs, - // certificates and licenses. - // - // Optionally allows rolling back the OS to the same version shipped from - // factory. - // - // Optionally allows for the Target to zero-fill permanent storage where state - // data is stored. - // - // If any of the optional flags is set but not supported, a gRPC Status with - // code INVALID_ARGUMENT must be returned with the details value set to a - // properly populated ResetError message. - rpc Start(StartRequest) returns (StartResponse); -} - -message StartRequest { - // Instructs the Target to rollback the OS to the same version as it shipped - // from factory. - bool factory_os = 1; - // Instructs the Target to zero fill persistent storage state data. - bool zero_fill = 2; - // Instructs the Target to retain certificates - bool retain_certs = 3; -} - -message ResetSuccess { -} - -// Message also used in gRPC status.details field. -message ResetError { - // Factory OS reset is not supported. - bool factory_os_unsupported = 1; - // Zero fill is not supported. - bool zero_fill_unsupported = 2; - // Unspecified error, must provide detail message. - bool other = 3; - string detail = 4; -} - -message StartResponse { - oneof response { - // Reset will be executed. - ResetSuccess reset_success = 1; - // Reset will not be executed. - ResetError reset_error = 2; - } -} diff --git a/src/sonic-framework/gnoi/factory_reset/factory_reset_grpc.pb.go b/src/sonic-framework/gnoi/factory_reset/factory_reset_grpc.pb.go deleted file mode 100755 index 40d4c0f96c85..000000000000 --- a/src/sonic-framework/gnoi/factory_reset/factory_reset_grpc.pb.go +++ /dev/null @@ -1,105 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.21.10 -// source: factory_reset/factory_reset.proto - -package factory_reset - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// FactoryResetClient is the client API for FactoryReset service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type FactoryResetClient interface { - Start(ctx context.Context, in *StartRequest, opts ...grpc.CallOption) (*StartResponse, error) -} - -type factoryResetClient struct { - cc grpc.ClientConnInterface -} - -func NewFactoryResetClient(cc grpc.ClientConnInterface) FactoryResetClient { - return &factoryResetClient{cc} -} - -func (c *factoryResetClient) Start(ctx context.Context, in *StartRequest, opts ...grpc.CallOption) (*StartResponse, error) { - out := new(StartResponse) - err := c.cc.Invoke(ctx, "/gnoi.factory_reset.FactoryReset/Start", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// FactoryResetServer is the server API for FactoryReset service. -// All implementations must embed UnimplementedFactoryResetServer -// for forward compatibility -type FactoryResetServer interface { - Start(context.Context, *StartRequest) (*StartResponse, error) - mustEmbedUnimplementedFactoryResetServer() -} - -// UnimplementedFactoryResetServer must be embedded to have forward compatible implementations. -type UnimplementedFactoryResetServer struct { -} - -func (UnimplementedFactoryResetServer) Start(context.Context, *StartRequest) (*StartResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Start not implemented") -} -func (UnimplementedFactoryResetServer) mustEmbedUnimplementedFactoryResetServer() {} - -// UnsafeFactoryResetServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to FactoryResetServer will -// result in compilation errors. -type UnsafeFactoryResetServer interface { - mustEmbedUnimplementedFactoryResetServer() -} - -func RegisterFactoryResetServer(s grpc.ServiceRegistrar, srv FactoryResetServer) { - s.RegisterService(&FactoryReset_ServiceDesc, srv) -} - -func _FactoryReset_Start_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StartRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(FactoryResetServer).Start(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.factory_reset.FactoryReset/Start", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(FactoryResetServer).Start(ctx, req.(*StartRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// FactoryReset_ServiceDesc is the grpc.ServiceDesc for FactoryReset service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var FactoryReset_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.factory_reset.FactoryReset", - HandlerType: (*FactoryResetServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Start", - Handler: _FactoryReset_Start_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "factory_reset/factory_reset.proto", -} diff --git a/src/sonic-framework/gnoi/file/BUILD.bazel b/src/sonic-framework/gnoi/file/BUILD.bazel deleted file mode 100644 index eb6ce04bfa41..000000000000 --- a/src/sonic-framework/gnoi/file/BUILD.bazel +++ /dev/null @@ -1,67 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") -load("//:common.bzl", "use_new_compilers") - -#Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# 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. - -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -use_new_compilers() - -proto_library( - name = "file_proto", - srcs = ["file.proto"], - deps = [ - "//common:common_proto", - "//types:types_proto", - ], -) - -cc_proto_library( - name = "file_cc_proto", - deps = [":file_proto"], -) - -cc_grpc_library( - name = "file_cc_grpc_proto", - srcs = [":file_proto"], - grpc_only = True, - deps = [":file_cc_proto"], -) - -go_proto_library( - name = "file_go_proto", - compilers = [ - "go_protoc_gen_go", - "go_protoc_gen_go_grpc", - ], - importpath = "github.com/openconfig/gnoi/file", - proto = ":file_proto", - deps = [ - "//common", - "//types", - ], -) - -go_library( - name = "file", - embed = [":file_go_proto"], - importpath = "github.com/openconfig/gnoi/file", -) diff --git a/src/sonic-framework/gnoi/file/file.pb.go b/src/sonic-framework/gnoi/file/file.pb.go deleted file mode 100644 index fe87551ed8e4..000000000000 --- a/src/sonic-framework/gnoi/file/file.pb.go +++ /dev/null @@ -1,1026 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v3.21.10 -// source: file/file.proto - -package file - -import ( - common "github.com/openconfig/gnoi/common" - types "github.com/openconfig/gnoi/types" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type PutRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Request: - // - // *PutRequest_Open - // *PutRequest_Contents - // *PutRequest_Hash - Request isPutRequest_Request `protobuf_oneof:"request"` -} - -func (x *PutRequest) Reset() { - *x = PutRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_file_file_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PutRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PutRequest) ProtoMessage() {} - -func (x *PutRequest) ProtoReflect() protoreflect.Message { - mi := &file_file_file_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PutRequest.ProtoReflect.Descriptor instead. -func (*PutRequest) Descriptor() ([]byte, []int) { - return file_file_file_proto_rawDescGZIP(), []int{0} -} - -func (m *PutRequest) GetRequest() isPutRequest_Request { - if m != nil { - return m.Request - } - return nil -} - -func (x *PutRequest) GetOpen() *PutRequest_Details { - if x, ok := x.GetRequest().(*PutRequest_Open); ok { - return x.Open - } - return nil -} - -func (x *PutRequest) GetContents() []byte { - if x, ok := x.GetRequest().(*PutRequest_Contents); ok { - return x.Contents - } - return nil -} - -func (x *PutRequest) GetHash() *types.HashType { - if x, ok := x.GetRequest().(*PutRequest_Hash); ok { - return x.Hash - } - return nil -} - -type isPutRequest_Request interface { - isPutRequest_Request() -} - -type PutRequest_Open struct { - Open *PutRequest_Details `protobuf:"bytes,1,opt,name=open,proto3,oneof"` -} - -type PutRequest_Contents struct { - Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3,oneof"` -} - -type PutRequest_Hash struct { - Hash *types.HashType `protobuf:"bytes,3,opt,name=hash,proto3,oneof"` -} - -func (*PutRequest_Open) isPutRequest_Request() {} - -func (*PutRequest_Contents) isPutRequest_Request() {} - -func (*PutRequest_Hash) isPutRequest_Request() {} - -type PutResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *PutResponse) Reset() { - *x = PutResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_file_file_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PutResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PutResponse) ProtoMessage() {} - -func (x *PutResponse) ProtoReflect() protoreflect.Message { - mi := &file_file_file_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PutResponse.ProtoReflect.Descriptor instead. -func (*PutResponse) Descriptor() ([]byte, []int) { - return file_file_file_proto_rawDescGZIP(), []int{1} -} - -type GetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile,proto3" json:"remote_file,omitempty"` -} - -func (x *GetRequest) Reset() { - *x = GetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_file_file_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetRequest) ProtoMessage() {} - -func (x *GetRequest) ProtoReflect() protoreflect.Message { - mi := &file_file_file_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetRequest.ProtoReflect.Descriptor instead. -func (*GetRequest) Descriptor() ([]byte, []int) { - return file_file_file_proto_rawDescGZIP(), []int{2} -} - -func (x *GetRequest) GetRemoteFile() string { - if x != nil { - return x.RemoteFile - } - return "" -} - -type GetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Response: - // - // *GetResponse_Contents - // *GetResponse_Hash - Response isGetResponse_Response `protobuf_oneof:"response"` -} - -func (x *GetResponse) Reset() { - *x = GetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_file_file_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetResponse) ProtoMessage() {} - -func (x *GetResponse) ProtoReflect() protoreflect.Message { - mi := &file_file_file_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetResponse.ProtoReflect.Descriptor instead. -func (*GetResponse) Descriptor() ([]byte, []int) { - return file_file_file_proto_rawDescGZIP(), []int{3} -} - -func (m *GetResponse) GetResponse() isGetResponse_Response { - if m != nil { - return m.Response - } - return nil -} - -func (x *GetResponse) GetContents() []byte { - if x, ok := x.GetResponse().(*GetResponse_Contents); ok { - return x.Contents - } - return nil -} - -func (x *GetResponse) GetHash() *types.HashType { - if x, ok := x.GetResponse().(*GetResponse_Hash); ok { - return x.Hash - } - return nil -} - -type isGetResponse_Response interface { - isGetResponse_Response() -} - -type GetResponse_Contents struct { - Contents []byte `protobuf:"bytes,1,opt,name=contents,proto3,oneof"` -} - -type GetResponse_Hash struct { - Hash *types.HashType `protobuf:"bytes,2,opt,name=hash,proto3,oneof"` -} - -func (*GetResponse_Contents) isGetResponse_Response() {} - -func (*GetResponse_Hash) isGetResponse_Response() {} - -type TransferToRemoteRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - LocalPath string `protobuf:"bytes,1,opt,name=local_path,json=localPath,proto3" json:"local_path,omitempty"` - RemoteDownload *common.RemoteDownload `protobuf:"bytes,2,opt,name=remote_download,json=remoteDownload,proto3" json:"remote_download,omitempty"` -} - -func (x *TransferToRemoteRequest) Reset() { - *x = TransferToRemoteRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_file_file_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TransferToRemoteRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TransferToRemoteRequest) ProtoMessage() {} - -func (x *TransferToRemoteRequest) ProtoReflect() protoreflect.Message { - mi := &file_file_file_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TransferToRemoteRequest.ProtoReflect.Descriptor instead. -func (*TransferToRemoteRequest) Descriptor() ([]byte, []int) { - return file_file_file_proto_rawDescGZIP(), []int{4} -} - -func (x *TransferToRemoteRequest) GetLocalPath() string { - if x != nil { - return x.LocalPath - } - return "" -} - -func (x *TransferToRemoteRequest) GetRemoteDownload() *common.RemoteDownload { - if x != nil { - return x.RemoteDownload - } - return nil -} - -type TransferToRemoteResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Hash *types.HashType `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` -} - -func (x *TransferToRemoteResponse) Reset() { - *x = TransferToRemoteResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_file_file_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TransferToRemoteResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TransferToRemoteResponse) ProtoMessage() {} - -func (x *TransferToRemoteResponse) ProtoReflect() protoreflect.Message { - mi := &file_file_file_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TransferToRemoteResponse.ProtoReflect.Descriptor instead. -func (*TransferToRemoteResponse) Descriptor() ([]byte, []int) { - return file_file_file_proto_rawDescGZIP(), []int{5} -} - -func (x *TransferToRemoteResponse) GetHash() *types.HashType { - if x != nil { - return x.Hash - } - return nil -} - -type StatRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` -} - -func (x *StatRequest) Reset() { - *x = StatRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_file_file_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StatRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StatRequest) ProtoMessage() {} - -func (x *StatRequest) ProtoReflect() protoreflect.Message { - mi := &file_file_file_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StatRequest.ProtoReflect.Descriptor instead. -func (*StatRequest) Descriptor() ([]byte, []int) { - return file_file_file_proto_rawDescGZIP(), []int{6} -} - -func (x *StatRequest) GetPath() string { - if x != nil { - return x.Path - } - return "" -} - -type StatResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Stats []*StatInfo `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"` -} - -func (x *StatResponse) Reset() { - *x = StatResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_file_file_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StatResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StatResponse) ProtoMessage() {} - -func (x *StatResponse) ProtoReflect() protoreflect.Message { - mi := &file_file_file_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StatResponse.ProtoReflect.Descriptor instead. -func (*StatResponse) Descriptor() ([]byte, []int) { - return file_file_file_proto_rawDescGZIP(), []int{7} -} - -func (x *StatResponse) GetStats() []*StatInfo { - if x != nil { - return x.Stats - } - return nil -} - -type StatInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - LastModified uint64 `protobuf:"varint,2,opt,name=last_modified,json=lastModified,proto3" json:"last_modified,omitempty"` - Permissions uint32 `protobuf:"varint,3,opt,name=permissions,proto3" json:"permissions,omitempty"` - Size uint64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` - Umask uint32 `protobuf:"varint,5,opt,name=umask,proto3" json:"umask,omitempty"` -} - -func (x *StatInfo) Reset() { - *x = StatInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_file_file_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StatInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StatInfo) ProtoMessage() {} - -func (x *StatInfo) ProtoReflect() protoreflect.Message { - mi := &file_file_file_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StatInfo.ProtoReflect.Descriptor instead. -func (*StatInfo) Descriptor() ([]byte, []int) { - return file_file_file_proto_rawDescGZIP(), []int{8} -} - -func (x *StatInfo) GetPath() string { - if x != nil { - return x.Path - } - return "" -} - -func (x *StatInfo) GetLastModified() uint64 { - if x != nil { - return x.LastModified - } - return 0 -} - -func (x *StatInfo) GetPermissions() uint32 { - if x != nil { - return x.Permissions - } - return 0 -} - -func (x *StatInfo) GetSize() uint64 { - if x != nil { - return x.Size - } - return 0 -} - -func (x *StatInfo) GetUmask() uint32 { - if x != nil { - return x.Umask - } - return 0 -} - -type RemoveRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile,proto3" json:"remote_file,omitempty"` -} - -func (x *RemoveRequest) Reset() { - *x = RemoveRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_file_file_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RemoveRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RemoveRequest) ProtoMessage() {} - -func (x *RemoveRequest) ProtoReflect() protoreflect.Message { - mi := &file_file_file_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RemoveRequest.ProtoReflect.Descriptor instead. -func (*RemoveRequest) Descriptor() ([]byte, []int) { - return file_file_file_proto_rawDescGZIP(), []int{9} -} - -func (x *RemoveRequest) GetRemoteFile() string { - if x != nil { - return x.RemoteFile - } - return "" -} - -type RemoveResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *RemoveResponse) Reset() { - *x = RemoveResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_file_file_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RemoveResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RemoveResponse) ProtoMessage() {} - -func (x *RemoveResponse) ProtoReflect() protoreflect.Message { - mi := &file_file_file_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RemoveResponse.ProtoReflect.Descriptor instead. -func (*RemoveResponse) Descriptor() ([]byte, []int) { - return file_file_file_proto_rawDescGZIP(), []int{10} -} - -type PutRequest_Details struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile,proto3" json:"remote_file,omitempty"` - Permissions uint32 `protobuf:"varint,2,opt,name=permissions,proto3" json:"permissions,omitempty"` -} - -func (x *PutRequest_Details) Reset() { - *x = PutRequest_Details{} - if protoimpl.UnsafeEnabled { - mi := &file_file_file_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PutRequest_Details) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PutRequest_Details) ProtoMessage() {} - -func (x *PutRequest_Details) ProtoReflect() protoreflect.Message { - mi := &file_file_file_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PutRequest_Details.ProtoReflect.Descriptor instead. -func (*PutRequest_Details) Descriptor() ([]byte, []int) { - return file_file_file_proto_rawDescGZIP(), []int{0, 0} -} - -func (x *PutRequest_Details) GetRemoteFile() string { - if x != nil { - return x.RemoteFile - } - return "" -} - -func (x *PutRequest_Details) GetPermissions() uint32 { - if x != nil { - return x.Permissions - } - return 0 -} - -var File_file_file_proto protoreflect.FileDescriptor - -var file_file_file_proto_rawDesc = []byte{ - 0x0a, 0x0f, 0x66, 0x69, 0x6c, 0x65, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x09, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x1a, 0x2e, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, - 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe4, 0x01, 0x0a, 0x0a, 0x50, - 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x33, 0x0a, 0x04, 0x6f, 0x70, 0x65, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, - 0x69, 0x6c, 0x65, 0x2e, 0x50, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x44, - 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x48, 0x00, 0x52, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x12, 0x1c, - 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, - 0x48, 0x00, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2a, 0x0a, 0x04, - 0x68, 0x61, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x54, 0x79, 0x70, 0x65, - 0x48, 0x00, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x1a, 0x4c, 0x0a, 0x07, 0x44, 0x65, 0x74, 0x61, - 0x69, 0x6c, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x66, 0x69, - 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, - 0x46, 0x69, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x22, 0x0d, 0x0a, 0x0b, 0x50, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x2d, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, - 0x0a, 0x0b, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x22, - 0x63, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, - 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, - 0x48, 0x00, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2a, 0x0a, 0x04, - 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x54, 0x79, 0x70, 0x65, - 0x48, 0x00, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7e, 0x0a, 0x17, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, - 0x54, 0x6f, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x1d, 0x0a, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x50, 0x61, 0x74, 0x68, 0x12, 0x44, - 0x0a, 0x0f, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, - 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, - 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x0e, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, - 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x44, 0x0a, 0x18, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, - 0x54, 0x6f, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x28, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x48, 0x61, 0x73, 0x68, - 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x22, 0x21, 0x0a, 0x0b, 0x53, 0x74, - 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, - 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, 0x39, 0x0a, - 0x0c, 0x53, 0x74, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, - 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x49, 0x6e, 0x66, - 0x6f, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x22, 0x8f, 0x01, 0x0a, 0x08, 0x53, 0x74, 0x61, - 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x61, 0x73, - 0x74, 0x5f, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x20, - 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, - 0x73, 0x69, 0x7a, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x75, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x05, 0x75, 0x6d, 0x61, 0x73, 0x6b, 0x22, 0x30, 0x0a, 0x0d, 0x52, 0x65, - 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x72, - 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x22, 0x10, 0x0a, 0x0e, - 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xd5, - 0x02, 0x0a, 0x04, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x38, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x15, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, 0x69, 0x6c, - 0x65, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, - 0x01, 0x12, 0x5d, 0x0a, 0x10, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x54, 0x6f, 0x52, - 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x12, 0x22, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, 0x69, 0x6c, - 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x54, 0x6f, 0x52, 0x65, 0x6d, 0x6f, - 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x54, 0x6f, - 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x38, 0x0a, 0x03, 0x50, 0x75, 0x74, 0x12, 0x15, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, - 0x69, 0x6c, 0x65, 0x2e, 0x50, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x50, 0x75, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x12, 0x39, 0x0a, 0x04, 0x53, 0x74, - 0x61, 0x74, 0x12, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x53, - 0x74, 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x06, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x12, - 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x52, 0x65, 0x6d, 0x6f, - 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x29, 0xd2, 0x3e, 0x05, 0x30, 0x2e, 0x31, 0x2e, 0x30, - 0x5a, 0x1f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, - 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x66, 0x69, 0x6c, - 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_file_file_proto_rawDescOnce sync.Once - file_file_file_proto_rawDescData = file_file_file_proto_rawDesc -) - -func file_file_file_proto_rawDescGZIP() []byte { - file_file_file_proto_rawDescOnce.Do(func() { - file_file_file_proto_rawDescData = protoimpl.X.CompressGZIP(file_file_file_proto_rawDescData) - }) - return file_file_file_proto_rawDescData -} - -var file_file_file_proto_msgTypes = make([]protoimpl.MessageInfo, 12) -var file_file_file_proto_goTypes = []interface{}{ - (*PutRequest)(nil), // 0: gnoi.file.PutRequest - (*PutResponse)(nil), // 1: gnoi.file.PutResponse - (*GetRequest)(nil), // 2: gnoi.file.GetRequest - (*GetResponse)(nil), // 3: gnoi.file.GetResponse - (*TransferToRemoteRequest)(nil), // 4: gnoi.file.TransferToRemoteRequest - (*TransferToRemoteResponse)(nil), // 5: gnoi.file.TransferToRemoteResponse - (*StatRequest)(nil), // 6: gnoi.file.StatRequest - (*StatResponse)(nil), // 7: gnoi.file.StatResponse - (*StatInfo)(nil), // 8: gnoi.file.StatInfo - (*RemoveRequest)(nil), // 9: gnoi.file.RemoveRequest - (*RemoveResponse)(nil), // 10: gnoi.file.RemoveResponse - (*PutRequest_Details)(nil), // 11: gnoi.file.PutRequest.Details - (*types.HashType)(nil), // 12: gnoi.types.HashType - (*common.RemoteDownload)(nil), // 13: gnoi.common.RemoteDownload -} -var file_file_file_proto_depIdxs = []int32{ - 11, // 0: gnoi.file.PutRequest.open:type_name -> gnoi.file.PutRequest.Details - 12, // 1: gnoi.file.PutRequest.hash:type_name -> gnoi.types.HashType - 12, // 2: gnoi.file.GetResponse.hash:type_name -> gnoi.types.HashType - 13, // 3: gnoi.file.TransferToRemoteRequest.remote_download:type_name -> gnoi.common.RemoteDownload - 12, // 4: gnoi.file.TransferToRemoteResponse.hash:type_name -> gnoi.types.HashType - 8, // 5: gnoi.file.StatResponse.stats:type_name -> gnoi.file.StatInfo - 2, // 6: gnoi.file.File.Get:input_type -> gnoi.file.GetRequest - 4, // 7: gnoi.file.File.TransferToRemote:input_type -> gnoi.file.TransferToRemoteRequest - 0, // 8: gnoi.file.File.Put:input_type -> gnoi.file.PutRequest - 6, // 9: gnoi.file.File.Stat:input_type -> gnoi.file.StatRequest - 9, // 10: gnoi.file.File.Remove:input_type -> gnoi.file.RemoveRequest - 3, // 11: gnoi.file.File.Get:output_type -> gnoi.file.GetResponse - 5, // 12: gnoi.file.File.TransferToRemote:output_type -> gnoi.file.TransferToRemoteResponse - 1, // 13: gnoi.file.File.Put:output_type -> gnoi.file.PutResponse - 7, // 14: gnoi.file.File.Stat:output_type -> gnoi.file.StatResponse - 10, // 15: gnoi.file.File.Remove:output_type -> gnoi.file.RemoveResponse - 11, // [11:16] is the sub-list for method output_type - 6, // [6:11] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name -} - -func init() { file_file_file_proto_init() } -func file_file_file_proto_init() { - if File_file_file_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_file_file_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PutRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_file_file_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PutResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_file_file_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_file_file_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_file_file_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransferToRemoteRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_file_file_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransferToRemoteResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_file_file_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StatRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_file_file_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StatResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_file_file_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StatInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_file_file_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_file_file_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_file_file_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PutRequest_Details); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_file_file_proto_msgTypes[0].OneofWrappers = []interface{}{ - (*PutRequest_Open)(nil), - (*PutRequest_Contents)(nil), - (*PutRequest_Hash)(nil), - } - file_file_file_proto_msgTypes[3].OneofWrappers = []interface{}{ - (*GetResponse_Contents)(nil), - (*GetResponse_Hash)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_file_file_proto_rawDesc, - NumEnums: 0, - NumMessages: 12, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_file_file_proto_goTypes, - DependencyIndexes: file_file_file_proto_depIdxs, - MessageInfos: file_file_file_proto_msgTypes, - }.Build() - File_file_file_proto = out.File - file_file_file_proto_rawDesc = nil - file_file_file_proto_goTypes = nil - file_file_file_proto_depIdxs = nil -} diff --git a/src/sonic-framework/gnoi/file/file.proto b/src/sonic-framework/gnoi/file/file.proto deleted file mode 100644 index 16c975eee7dc..000000000000 --- a/src/sonic-framework/gnoi/file/file.proto +++ /dev/null @@ -1,163 +0,0 @@ -// -// Copyright 2017 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.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 gnoi.file; - -import "github.com/openconfig/gnoi/common/common.proto"; -import "github.com/openconfig/gnoi/types/types.proto"; - -option go_package = "github.com/openconfig/gnoi/file"; - -option (types.gnoi_version) = "0.1.0"; - -service File { - // Get reads and streams the contents of a file from the target. - // The file is streamed by sequential messages, each containing up to - // 64KB of data. A final message is sent prior to closing the stream - // that contains the hash of the data sent. An error is returned - // if the file does not exist or there was an error reading the file. - rpc Get(GetRequest) returns (stream GetResponse) {} - - // TransferToRemote transfers the contents of a file from the target to a - // specified remote location. The response contains the hash of the data - // transferred. An error is returned if the file does not exist, the file - // transfer fails, or if there was an error reading the file. This is a - // blocking call until the file transfer is complete. - rpc TransferToRemote(TransferToRemoteRequest) - returns (TransferToRemoteResponse) {} - - // Put streams data into a file on the target. The file is sent in - // sequential messages, each message containing up to 64KB of data. A final - // message must be sent that includes the hash of the data sent. An - // error is returned if the location does not exist or there is an error - // writing the data. If no checksum is received, the target must assume the - // operation is incomplete and remove the partially transmitted file. The - // target should initially write the file to a temporary location so a failure - // does not destroy the original file. - rpc Put(stream PutRequest) returns (PutResponse) {} - - - // Stat returns metadata about a file on the target. An error is returned - // if the file does not exist of there is an error in accessing the metadata. - rpc Stat(StatRequest) returns (StatResponse) {} - - // Remove removes the specified file from the target. An error is - // returned if the file does not exist, is a directory, or the remove - // operation encounters an error (e.g., permission denied). - rpc Remove(RemoveRequest) returns (RemoveResponse) {} -} - -// A PutRequest is used to send data to be written on a file on the target. -// -// The initial message contains an Open message. The Open message contains -// information name of the file and the file's permisssions. -// -// The remote_file must be an absolute path. If remote_file already exists on -// the target, it is overwritten, otherwise it is created. If the path to -// remote_file doesn't exist it will be created. -// -// The contents to be written are streamed through multiple messages using the -// contents field. Each message may contain up to 64KB of data. -// -// The final message of the RPC contains the hash of the file contents. -message PutRequest { - message Details { - string remote_file = 1; - // Permissions are represented as the octal format of standard UNIX - // file permissions. - // ex. 775: user read/write/execute, group read/write/execute, - // global read/execute. - uint32 permissions = 2; - } - oneof request { - Details open = 1; - bytes contents = 2; - gnoi.types.HashType hash = 3; // hash of the file. - } -} - -message PutResponse { -} - -// A GetRequest specifies the remote_file to be streamed back -// to the caller. The remote_file must be an absolute path to an -// existing file. -message GetRequest { - string remote_file = 1; -} - -// A GetResponse either contains the next set of bytes read from the -// file or, as the last message, the hash of the data. -message GetResponse { - oneof response { - bytes contents = 1; - gnoi.types.HashType hash = 2; // hash of the file. - } -} - -// A TransferToRemoteRequest specifies the local path to transfer to and the -// details on where to transfer the data from. The local_path must be an -// absolute path to the file. -message TransferToRemoteRequest { - string local_path = 1; - - // Details to download the remote_file being requested to a remote location. - gnoi.common.RemoteDownload remote_download = 2; -} - -// A TransferToRemoteResponse contains the hash of the data transferred. -message TransferToRemoteResponse { - types.HashType hash = 1; // hash of the file. -} - -// StatRequest will list files at the provided path. -message StatRequest { - string path = 1; -} - -// StatResponse contains list of stat info of the provided path. -message StatResponse { - repeated StatInfo stats = 1; -} - -// StatInfo provides a file system information about a particular path. -message StatInfo { - string path = 1; - uint64 last_modified = 2; // Nanoseconds since epoch. - // Permissions are represented as the octal format of standard UNIX - // file permissions. - // ex. 775: user read/write/execute, group read/write/execute, - // global read/execute. - // The value returned in this field should be the octal number. No base - // conversion should be required to read the value. For example, 0755 - // should result in the permissions field holding the value 755, 4644 - // results in the permissions field being 4644, and so on. - uint32 permissions = 3; - uint64 size = 4; - // Default file creation mask. Represented as the octal format of - // standard UNIX mask. - uint32 umask = 5; -} - -// A RemoveRequest specifies a file to be removed from the target. -message RemoveRequest { - string remote_file = 1; -} - -message RemoveResponse { -} diff --git a/src/sonic-framework/gnoi/file/file_grpc.pb.go b/src/sonic-framework/gnoi/file/file_grpc.pb.go deleted file mode 100755 index bbcb5a74cc30..000000000000 --- a/src/sonic-framework/gnoi/file/file_grpc.pb.go +++ /dev/null @@ -1,311 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.21.10 -// source: file/file.proto - -package file - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// FileClient is the client API for File service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type FileClient interface { - Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (File_GetClient, error) - TransferToRemote(ctx context.Context, in *TransferToRemoteRequest, opts ...grpc.CallOption) (*TransferToRemoteResponse, error) - Put(ctx context.Context, opts ...grpc.CallOption) (File_PutClient, error) - Stat(ctx context.Context, in *StatRequest, opts ...grpc.CallOption) (*StatResponse, error) - Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveResponse, error) -} - -type fileClient struct { - cc grpc.ClientConnInterface -} - -func NewFileClient(cc grpc.ClientConnInterface) FileClient { - return &fileClient{cc} -} - -func (c *fileClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (File_GetClient, error) { - stream, err := c.cc.NewStream(ctx, &File_ServiceDesc.Streams[0], "/gnoi.file.File/Get", opts...) - if err != nil { - return nil, err - } - x := &fileGetClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type File_GetClient interface { - Recv() (*GetResponse, error) - grpc.ClientStream -} - -type fileGetClient struct { - grpc.ClientStream -} - -func (x *fileGetClient) Recv() (*GetResponse, error) { - m := new(GetResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *fileClient) TransferToRemote(ctx context.Context, in *TransferToRemoteRequest, opts ...grpc.CallOption) (*TransferToRemoteResponse, error) { - out := new(TransferToRemoteResponse) - err := c.cc.Invoke(ctx, "/gnoi.file.File/TransferToRemote", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *fileClient) Put(ctx context.Context, opts ...grpc.CallOption) (File_PutClient, error) { - stream, err := c.cc.NewStream(ctx, &File_ServiceDesc.Streams[1], "/gnoi.file.File/Put", opts...) - if err != nil { - return nil, err - } - x := &filePutClient{stream} - return x, nil -} - -type File_PutClient interface { - Send(*PutRequest) error - CloseAndRecv() (*PutResponse, error) - grpc.ClientStream -} - -type filePutClient struct { - grpc.ClientStream -} - -func (x *filePutClient) Send(m *PutRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *filePutClient) CloseAndRecv() (*PutResponse, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - m := new(PutResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *fileClient) Stat(ctx context.Context, in *StatRequest, opts ...grpc.CallOption) (*StatResponse, error) { - out := new(StatResponse) - err := c.cc.Invoke(ctx, "/gnoi.file.File/Stat", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *fileClient) Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveResponse, error) { - out := new(RemoveResponse) - err := c.cc.Invoke(ctx, "/gnoi.file.File/Remove", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// FileServer is the server API for File service. -// All implementations must embed UnimplementedFileServer -// for forward compatibility -type FileServer interface { - Get(*GetRequest, File_GetServer) error - TransferToRemote(context.Context, *TransferToRemoteRequest) (*TransferToRemoteResponse, error) - Put(File_PutServer) error - Stat(context.Context, *StatRequest) (*StatResponse, error) - Remove(context.Context, *RemoveRequest) (*RemoveResponse, error) - mustEmbedUnimplementedFileServer() -} - -// UnimplementedFileServer must be embedded to have forward compatible implementations. -type UnimplementedFileServer struct { -} - -func (UnimplementedFileServer) Get(*GetRequest, File_GetServer) error { - return status.Errorf(codes.Unimplemented, "method Get not implemented") -} -func (UnimplementedFileServer) TransferToRemote(context.Context, *TransferToRemoteRequest) (*TransferToRemoteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TransferToRemote not implemented") -} -func (UnimplementedFileServer) Put(File_PutServer) error { - return status.Errorf(codes.Unimplemented, "method Put not implemented") -} -func (UnimplementedFileServer) Stat(context.Context, *StatRequest) (*StatResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Stat not implemented") -} -func (UnimplementedFileServer) Remove(context.Context, *RemoveRequest) (*RemoveResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Remove not implemented") -} -func (UnimplementedFileServer) mustEmbedUnimplementedFileServer() {} - -// UnsafeFileServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to FileServer will -// result in compilation errors. -type UnsafeFileServer interface { - mustEmbedUnimplementedFileServer() -} - -func RegisterFileServer(s grpc.ServiceRegistrar, srv FileServer) { - s.RegisterService(&File_ServiceDesc, srv) -} - -func _File_Get_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(GetRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(FileServer).Get(m, &fileGetServer{stream}) -} - -type File_GetServer interface { - Send(*GetResponse) error - grpc.ServerStream -} - -type fileGetServer struct { - grpc.ServerStream -} - -func (x *fileGetServer) Send(m *GetResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _File_TransferToRemote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TransferToRemoteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(FileServer).TransferToRemote(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.file.File/TransferToRemote", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(FileServer).TransferToRemote(ctx, req.(*TransferToRemoteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _File_Put_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(FileServer).Put(&filePutServer{stream}) -} - -type File_PutServer interface { - SendAndClose(*PutResponse) error - Recv() (*PutRequest, error) - grpc.ServerStream -} - -type filePutServer struct { - grpc.ServerStream -} - -func (x *filePutServer) SendAndClose(m *PutResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *filePutServer) Recv() (*PutRequest, error) { - m := new(PutRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _File_Stat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StatRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(FileServer).Stat(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.file.File/Stat", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(FileServer).Stat(ctx, req.(*StatRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _File_Remove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RemoveRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(FileServer).Remove(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.file.File/Remove", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(FileServer).Remove(ctx, req.(*RemoveRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// File_ServiceDesc is the grpc.ServiceDesc for File service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var File_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.file.File", - HandlerType: (*FileServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "TransferToRemote", - Handler: _File_TransferToRemote_Handler, - }, - { - MethodName: "Stat", - Handler: _File_Stat_Handler, - }, - { - MethodName: "Remove", - Handler: _File_Remove_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "Get", - Handler: _File_Get_Handler, - ServerStreams: true, - }, - { - StreamName: "Put", - Handler: _File_Put_Handler, - ClientStreams: true, - }, - }, - Metadata: "file/file.proto", -} diff --git a/src/sonic-framework/gnoi/gnoi_deps.bzl b/src/sonic-framework/gnoi/gnoi_deps.bzl deleted file mode 100644 index dbdf1bd9dd24..000000000000 --- a/src/sonic-framework/gnoi/gnoi_deps.bzl +++ /dev/null @@ -1,476 +0,0 @@ -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# 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. -# -"""Dependencies to build gnoi.""" - -load("@bazel_gazelle//:deps.bzl", "go_repository") -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - -def gnoi_deps(): - """Declare the third-party dependencies necessary to build gnoi""" - if not native.existing_rule("rules_proto_grpc"): - http_archive( - name = "rules_proto_grpc", - sha256 = "c0d718f4d892c524025504e67a5bfe83360b3a982e654bc71fed7514eb8ac8ad", - strip_prefix = "rules_proto_grpc-4.6.0", - urls = ["https://github.com/rules-proto-grpc/rules_proto_grpc/archive/4.6.0.tar.gz"], - ) - if not native.existing_rule("com_github_grpc_grpc"): - http_archive( - name = "com_github_grpc_grpc", - url = "https://github.com/grpc/grpc/archive/refs/tags/v1.61.1.tar.gz", - strip_prefix = "grpc-1.61.1", - sha256 = "b74ce7d26fe187970d1d8e2c06a5d3391122f7bc1fdce569aff5e435fb8fe780", - ) - if not native.existing_rule("com_google_protobuf"): - http_archive( - name = "com_google_protobuf", - url = "https://github.com/protocolbuffers/protobuf/releases/download/v4.25.2/protobuf-all-25.2.tar.gz", - strip_prefix = "protobuf-", - sha256 = "ba0650be1b169d24908eeddbe6107f011d8df0da5b1a5a4449a913b10e578faf", - ) - if not native.existing_rule("com_github_openconfig_bootz"): - go_repository( - name = "com_github_openconfig_bootz", - importpath = "github.com/openconfig/bootz", - sum = "h1:Q0mThGmZiX/kht+crar6FtLVxqdjUS/deMnpcNX+F7c=", - version = "v0.3.1", - ) - if not native.existing_rule("com_github_openconfig_gnmi"): - go_repository( - name = "com_github_openconfig_gnmi", - build_directives = [ - "gazelle:proto_import_prefix github.com/openconfig/gnmi", - ], - build_file_generation = "on", - importpath = "github.com/openconfig/gnmi", - sum = "h1:H7pLIb/o3xObu3+x0Fv9DCK7TH3FUh7mNwbYe+34hFw=", - version = "v0.11.0", - ) - if not native.existing_rule("com_github_openconfig_gnsi"): - go_repository( - name = "com_github_openconfig_gnsi", - importpath = "github.com/openconfig/gnsi", - sum = "h1:PfQa9Gy0lH1sHqA2L3Gj2fEh2zPMbWxMmIRQv2Nk1T8=", - version = "v1.6.0", - ) - if not native.existing_rule("com_github_kylelemons_godebug"): - go_repository( - name = "com_github_kylelemons_godebug", - importpath = "github.com/kylelemons/godebug", - sum = "h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=", - version = "v1.1.0", - ) - if not native.existing_rule("com_github_openconfig_goyang"): - go_repository( - name = "com_github_openconfig_goyang", - importpath = "github.com/openconfig/goyang", - sum = "h1:Z95LskKYk6nBYOxHtmJCu3YEKlr3pJLWG1tYAaNh3yU=", - version = "v0.2.9", - ) - if not native.existing_rule("com_github_openconfig_ygot"): - go_repository( - name = "com_github_openconfig_ygot", - build_directives = [ - "gazelle:proto_import_prefix github.com/openconfig/ygot", - ], - importpath = "github.com/openconfig/ygot", - sum = "h1:EKaeFhx1WwTZGsYeqipyh1mfF8y+z2StaXZtwVnXklk=", - version = "v0.13.1", - ) - go_repository( - name = "com_github_cenkalti_backoff_v4", - importpath = "github.com/cenkalti/backoff/v4", - sum = "h1:G2HAfAmvm/GcKan2oOQpBXOd2tT2G57ZnZGWa1PxPBQ=", - version = "v4.1.1", - ) - go_repository( - name = "com_github_census_instrumentation_opencensus_proto", - importpath = "github.com/census-instrumentation/opencensus-proto", - sum = "h1:iKLQ0xPNFxR/2hzXZMrBo8f1j86j5WHzznCCQxV/b8g=", - version = "v0.4.1", - ) - go_repository( - name = "com_github_cespare_xxhash_v2", - importpath = "github.com/cespare/xxhash/v2", - sum = "h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=", - version = "v2.3.0", - ) - go_repository( - name = "com_github_chappjc_logrus_prefix", - importpath = "github.com/chappjc/logrus-prefix", - sum = "h1:aZTKxMminKeQWHtzJBbV8TttfTxzdJ+7iEJFE6FmUzg=", - version = "v0.0.0-20180227015900-3a1d64819adb", - ) - go_repository( - name = "com_github_cncf_xds_go", - importpath = "github.com/cncf/xds/go", - sum = "h1:ga8SEFjZ60pxLcmhnThWgvH2wg8376yUJmPhEH4H3kw=", - version = "v0.0.0-20240423153145-555b57ec207b", - ) - go_repository( - name = "com_github_coredhcp_coredhcp", - importpath = "github.com/coredhcp/coredhcp", - sum = "h1:8bGxpjqPoic463Lr0Uqnnz7P/xSZCPKDkxkjeywS79k=", - version = "v0.0.0-20230808195049-3e32ddb5ac86", - ) - go_repository( - name = "com_github_envoyproxy_go_control_plane", - importpath = "github.com/envoyproxy/go-control-plane", - sum = "h1:4X+VP1GHd1Mhj6IB5mMeGbLCleqxjletLK6K0rbxyZI=", - version = "v0.12.0", - ) - go_repository( - name = "com_github_envoyproxy_protoc_gen_validate", - importpath = "github.com/envoyproxy/protoc-gen-validate", - sum = "h1:gVPz/FMfvh57HdSJQyvBtF00j8JU4zdyUgIUNhlgg0A=", - version = "v1.0.4", - ) - go_repository( - name = "com_github_fsnotify_fsnotify", - importpath = "github.com/fsnotify/fsnotify", - sum = "h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY=", - version = "v1.6.0", - ) - go_repository( - name = "com_github_golang_glog", - importpath = "github.com/golang/glog", - sum = "h1:OptwRhECazUx5ix5TTWC3EZhsZEHWcYWY4FQHTIubm4=", - version = "v1.2.1", - ) - go_repository( - name = "com_github_golang_protobuf", - importpath = "github.com/golang/protobuf", - sum = "h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=", - version = "v1.5.4", - ) - go_repository( - name = "com_github_google_go_cmp", - importpath = "github.com/google/go-cmp", - sum = "h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=", - version = "v0.6.0", - ) - go_repository( - name = "com_github_google_gopacket", - importpath = "github.com/google/gopacket", - sum = "h1:ves8RnFZPGiFnTS0uPQStjwru6uO6h+nlr9j6fL7kF8=", - version = "v1.1.19", - ) - go_repository( - name = "com_github_google_uuid", - importpath = "github.com/google/uuid", - sum = "h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=", - version = "v1.6.0", - ) - go_repository( - name = "com_github_h_fam_errdiff", - importpath = "github.com/h-fam/errdiff", - sum = "h1:rPsW4ob2fMOIulwTEoZXaaUIuud7XUudw5SLKTZj3Ss=", - version = "v1.0.2", - ) - go_repository( - name = "com_github_hashicorp_hcl", - importpath = "github.com/hashicorp/hcl", - sum = "h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=", - version = "v1.0.0", - ) - go_repository( - name = "com_github_insomniacslk_dhcp", - importpath = "github.com/insomniacslk/dhcp", - sum = "h1:S33o3djA1nPRd+d/bf7jbbXytXuK/EoXow7+aa76grQ=", - version = "v0.0.0-20230908212754-65c27093e38a", - ) - go_repository( - name = "com_github_josharian_native", - importpath = "github.com/josharian/native", - sum = "h1:uuaP0hAbW7Y4l0ZRQ6C9zfb7Mg1mbFKry/xzDAfmtLA=", - version = "v1.1.0", - ) - go_repository( - name = "com_github_kylelemons_godebug", - importpath = "github.com/kylelemons/godebug", - sum = "h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=", - version = "v1.1.0", - ) - go_repository( - name = "com_github_magiconair_properties", - importpath = "github.com/magiconair/properties", - sum = "h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY=", - version = "v1.8.7", - ) - go_repository( - name = "com_github_mattn_go_colorable", - importpath = "github.com/mattn/go-colorable", - sum = "h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=", - version = "v0.1.13", - ) - go_repository( - name = "com_github_mattn_go_isatty", - importpath = "github.com/mattn/go-isatty", - sum = "h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA=", - version = "v0.0.19", - ) - go_repository( - name = "com_github_mgutz_ansi", - importpath = "github.com/mgutz/ansi", - sum = "h1:5PJl274Y63IEHC+7izoQE9x6ikvDFZS2mDVS3drnohI=", - version = "v0.0.0-20200706080929-d51e80ef957d", - ) - go_repository( - name = "com_github_mitchellh_go_wordwrap", - importpath = "github.com/mitchellh/go-wordwrap", - sum = "h1:TLuKupo69TCn6TQSyGxwI1EblZZEsQ0vMlAFQflz0v0=", - version = "v1.0.1", - ) - go_repository( - name = "com_github_mitchellh_mapstructure", - importpath = "github.com/mitchellh/mapstructure", - sum = "h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=", - version = "v1.5.0", - ) - go_repository( - name = "com_github_nxadm_tail", - importpath = "github.com/nxadm/tail", - sum = "h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE=", - version = "v1.4.8", - ) - go_repository( - name = "com_github_openconfig_bootz", - importpath = "github.com/openconfig/bootz", - sum = "h1:Q0mThGmZiX/kht+crar6FtLVxqdjUS/deMnpcNX+F7c=", - version = "v0.3.1", - ) - go_repository( - name = "com_github_openconfig_goyang", - importpath = "github.com/openconfig/goyang", - sum = "h1:5MyIz4bN4vpH6aHDN339bkWXAjTkhg1ZKMhR4aIi5Rk=", - version = "v0.0.0-20200115183954-d0a48929f0ea", - ) - go_repository( - name = "com_github_openconfig_grpctunnel", - importpath = "github.com/openconfig/grpctunnel", - sum = "h1:t6SvvdfWCMlw0XPlsdxO8EgO+q/fXnTevDjdYREKFwU=", - version = "v0.0.0-20220819142823-6f5422b8ca70", - ) - go_repository( - name = "com_github_openconfig_ygot", - importpath = "github.com/openconfig/ygot", - sum = "h1:kJJFPBrczC6TDnz/HMlFTJEdW2CuyUftV13XveIukg0=", - version = "v0.6.0", - ) - go_repository( - name = "com_github_pelletier_go_toml_v2", - importpath = "github.com/pelletier/go-toml/v2", - sum = "h1:uH2qQXheeefCCkuBBSLi7jCiSmj3VRh2+Goq2N7Xxu0=", - version = "v2.0.9", - ) - go_repository( - name = "com_github_pierrec_lz4_v4", - importpath = "github.com/pierrec/lz4/v4", - sum = "h1:xaKrnTkyoqfh1YItXl56+6KJNVYWlEEPuAQW9xsplYQ=", - version = "v4.1.18", - ) - go_repository( - name = "com_github_protocolbuffers_txtpbfmt", - importpath = "github.com/protocolbuffers/txtpbfmt", - sum = "h1:AKJY61V2SQtJ2a2PdeswKk0NM1qF77X+julRNYRxPOk=", - version = "v0.0.0-20220608084003-fc78c767cd6a", - ) - go_repository( - name = "com_github_rifflock_lfshook", - importpath = "github.com/rifflock/lfshook", - sum = "h1:mZHayPoR0lNmnHyvtYjDeq0zlVHn9K/ZXoy17ylucdo=", - version = "v0.0.0-20180920164130-b9218ef580f5", - ) - go_repository( - name = "com_github_sirupsen_logrus", - importpath = "github.com/sirupsen/logrus", - sum = "h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=", - version = "v1.9.3", - ) - go_repository( - name = "com_github_spf13_afero", - importpath = "github.com/spf13/afero", - sum = "h1:stMpOSZFs//0Lv29HduCmli3GUfpFoF3Y1Q/aXj/wVM=", - version = "v1.9.5", - ) - go_repository( - name = "com_github_spf13_cast", - importpath = "github.com/spf13/cast", - sum = "h1:R+kOtfhWQE6TVQzY+4D7wJLBgkdVasCEFxSUBYBYIlA=", - version = "v1.5.1", - ) - go_repository( - name = "com_github_spf13_jwalterweatherman", - importpath = "github.com/spf13/jwalterweatherman", - sum = "h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk=", - version = "v1.1.0", - ) - go_repository( - name = "com_github_spf13_pflag", - importpath = "github.com/spf13/pflag", - sum = "h1:zqmyTlQyufRC65JnImJ6H1Sf7BDj8bG31EV919NVEQc=", - version = "v1.0.6-0.20201009195203-85dd5c8bc61c", - ) - go_repository( - name = "com_github_spf13_viper", - importpath = "github.com/spf13/viper", - sum = "h1:rGGH0XDZhdUOryiDWjmIvUSWpbNqisK8Wk0Vyefw8hc=", - version = "v1.16.0", - ) - go_repository( - name = "com_github_subosito_gotenv", - importpath = "github.com/subosito/gotenv", - sum = "h1:X1TuBLAMDFbaTAChgCBLu3DU3UPyELpnF2jjJ2cz/S8=", - version = "v1.4.2", - ) - go_repository( - name = "com_github_u_root_uio", - importpath = "github.com/u-root/uio", - sum = "h1:YcojQL98T/OO+rybuzn2+5KrD5dBwXIvYBvQ2cD3Avg=", - version = "v0.0.0-20230305220412-3e8cd9d6bf63", - ) - go_repository( - name = "com_google_cloud_go_compute", - importpath = "cloud.google.com/go/compute", - sum = "h1:phWcR2eWzRJaL/kOiJwfFsPs4BaKq1j6vnpZrc1YlVg=", - version = "v1.24.0", - ) - go_repository( - name = "com_google_cloud_go_compute_metadata", - importpath = "cloud.google.com/go/compute/metadata", - sum = "h1:Tz+eQXMEqDIKRsmY3cHTL6FVaynIjX2QxYC4trgAKZc=", - version = "v0.3.0", - ) - go_repository( - name = "dev_cel_expr", - importpath = "cel.dev/expr", - sum = "h1:O1jzfJCQBfL5BFoYktaxwIhuttaQPsVWerH9/EEKx0w=", - version = "v0.15.0", - ) - - go_repository( - name = "in_gopkg_ini_v1", - importpath = "gopkg.in/ini.v1", - sum = "h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA=", - version = "v1.67.0", - ) - go_repository( - name = "in_gopkg_yaml_v3", - importpath = "gopkg.in/yaml.v3", - sum = "h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=", - version = "v3.0.1", - ) - go_repository( - name = "org_golang_google_appengine", - importpath = "google.golang.org/appengine", - sum = "h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM=", - version = "v1.6.8", - ) - go_repository( - name = "org_golang_google_genproto", - importpath = "google.golang.org/genproto", - sum = "h1:KpwkzHKEF7B9Zxg18WzOa7djJ+Ha5DzthMyZYQfEn2A=", - version = "v0.0.0-20230410155749-daa745c078e1", - ) - go_repository( - name = "org_golang_google_genproto_googleapis_api", - importpath = "google.golang.org/genproto/googleapis/api", - sum = "h1:7whR9kGa5LUwFtpLm2ArCEejtnxlGeLbAyjFY8sGNFw=", - version = "v0.0.0-20240528184218-531527333157", - ) - go_repository( - name = "org_golang_google_genproto_googleapis_rpc", - importpath = "google.golang.org/genproto/googleapis/rpc", - sum = "h1:Zy9XzmMEflZ/MAaA7vNcoebnRAld7FsPW1EeBB7V0m8=", - version = "v0.0.0-20240528184218-531527333157", - ) - go_repository( - name = "org_golang_google_grpc", - importpath = "google.golang.org/grpc", - sum = "h1:bs/cUb4lp1G5iImFFd3u5ixQzweKizoZJAwBNLR42lc=", - version = "v1.65.0", - ) - go_repository( - name = "org_golang_google_protobuf", - importpath = "google.golang.org/protobuf", - sum = "h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg=", - version = "v1.34.2", - ) - go_repository( - name = "org_golang_x_crypto", - importpath = "golang.org/x/crypto", - sum = "h1:dIJU/v2J8Mdglj/8rJ6UUOM3Zc9zLZxVZwwxMooUSAI=", - version = "v0.23.0", - ) - go_repository( - name = "org_golang_x_mod", - importpath = "golang.org/x/mod", - sum = "h1:LUYupSeNrTNCGzR/hVBk2NHZO4hXcVaW1k4Qx7rjPx8=", - version = "v0.8.0", - ) - go_repository( - name = "org_golang_x_net", - importpath = "golang.org/x/net", - sum = "h1:d/OCCoBEUq33pjydKrGQhw7IlUPI2Oylr+8qLx49kac=", - version = "v0.25.0", - ) - go_repository( - name = "org_golang_x_oauth2", - importpath = "golang.org/x/oauth2", - sum = "h1:4mQdhULixXKP1rwYBW0vAijoXnkTG0BLCDRzfe1idMo=", - version = "v0.20.0", - ) - go_repository( - name = "org_golang_x_sync", - importpath = "golang.org/x/sync", - sum = "h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M=", - version = "v0.7.0", - ) - go_repository( - name = "org_golang_x_sys", - importpath = "golang.org/x/sys", - sum = "h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y=", - version = "v0.20.0", - ) - go_repository( - name = "org_golang_x_term", - importpath = "golang.org/x/term", - sum = "h1:VnkxpohqXaOBYJtBmEppKUG6mXpi+4O6purfc2+sMhw=", - version = "v0.20.0", - ) - go_repository( - name = "org_golang_x_text", - importpath = "golang.org/x/text", - sum = "h1:h1V/4gjBv8v9cjcR6+AR5+/cIYK5N/WAgiv4xlsEtAk=", - version = "v0.15.0", - ) - go_repository( - name = "org_golang_x_tools", - importpath = "golang.org/x/tools", - sum = "h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM=", - version = "v0.6.0", - ) - go_repository( - name = "org_golang_x_xerrors", - importpath = "golang.org/x/xerrors", - sum = "h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=", - version = "v0.0.0-20200804184101-5ec99f83aff1", - ) - go_repository( - name = "org_mozilla_go_pkcs7", - importpath = "go.mozilla.org/pkcs7", - sum = "h1:CCriYyAfq1Br1aIYettdHZTy8mBTIPo7We18TuO/bak=", - version = "v0.0.0-20210826202110-33d05740a352", - ) diff --git a/src/sonic-framework/gnoi/go.mod b/src/sonic-framework/gnoi/go.mod deleted file mode 100644 index 1bddaf09b967..000000000000 --- a/src/sonic-framework/gnoi/go.mod +++ /dev/null @@ -1,19 +0,0 @@ -module github.com/openconfig/gnoi - -go 1.21 - -require ( - github.com/golang/protobuf v1.5.4 - github.com/openconfig/bootz v0.3.1 - github.com/openconfig/gnsi v1.6.0 - google.golang.org/genproto/googleapis/rpc v0.0.0-20240528184218-531527333157 - google.golang.org/grpc v1.65.0 - google.golang.org/protobuf v1.34.2 -) - -require ( - github.com/openconfig/gnmi v0.10.0 // indirect - golang.org/x/net v0.25.0 // indirect - golang.org/x/sys v0.20.0 // indirect - golang.org/x/text v0.15.0 // indirect -) diff --git a/src/sonic-framework/gnoi/go.sum b/src/sonic-framework/gnoi/go.sum deleted file mode 100644 index da6d2b959c9e..000000000000 --- a/src/sonic-framework/gnoi/go.sum +++ /dev/null @@ -1,22 +0,0 @@ -github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= -github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= -github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= -github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/openconfig/bootz v0.3.1 h1:Q0mThGmZiX/kht+crar6FtLVxqdjUS/deMnpcNX+F7c= -github.com/openconfig/bootz v0.3.1/go.mod h1:IhVtV9zS/2i8rKXHkRW9eD2UV6zGeIXYtLcEzAeyc6A= -github.com/openconfig/gnmi v0.10.0 h1:kQEZ/9ek3Vp2Y5IVuV2L/ba8/77TgjdXg505QXvYmg8= -github.com/openconfig/gnmi v0.10.0/go.mod h1:Y9os75GmSkhHw2wX8sMsxfI7qRGAEcDh8NTa5a8vj6E= -github.com/openconfig/gnsi v1.6.0 h1:PfQa9Gy0lH1sHqA2L3Gj2fEh2zPMbWxMmIRQv2Nk1T8= -github.com/openconfig/gnsi v1.6.0/go.mod h1:RiHTEIb2ruIeWOOamms6vqbZtgmajDx+g5YJlF2hZ0k= -golang.org/x/net v0.25.0 h1:d/OCCoBEUq33pjydKrGQhw7IlUPI2Oylr+8qLx49kac= -golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= -golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y= -golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/text v0.15.0 h1:h1V/4gjBv8v9cjcR6+AR5+/cIYK5N/WAgiv4xlsEtAk= -golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240528184218-531527333157 h1:Zy9XzmMEflZ/MAaA7vNcoebnRAld7FsPW1EeBB7V0m8= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240528184218-531527333157/go.mod h1:EfXuqaE1J41VCDicxHzUDm+8rk+7ZdXzHV0IhO/I6s0= -google.golang.org/grpc v1.65.0 h1:bs/cUb4lp1G5iImFFd3u5ixQzweKizoZJAwBNLR42lc= -google.golang.org/grpc v1.65.0/go.mod h1:WgYC2ypjlB0EiQi6wdKixMqukr6lBc0Vo+oOgjrM5ZQ= -google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= -google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= diff --git a/src/sonic-framework/gnoi/healthz/BUILD.bazel b/src/sonic-framework/gnoi/healthz/BUILD.bazel deleted file mode 100644 index b6b2d5d4d161..000000000000 --- a/src/sonic-framework/gnoi/healthz/BUILD.bazel +++ /dev/null @@ -1,69 +0,0 @@ -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") -load("//:common.bzl", "use_new_compilers") - -#Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# 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. - -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -use_new_compilers() - -proto_library( - name = "healthz_proto", - srcs = ["healthz.proto"], - deps = [ - "//common:common_proto", - "//types:types_proto", - "@com_google_protobuf//:any_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -go_proto_library( - name = "healthz_go_proto", - compilers = [ - "go_protoc_gen_go", - "go_protoc_gen_go_grpc", - ], - importpath = "github.com/openconfig/gnoi/healthz", - proto = ":healthz_proto", - deps = [ - "//types", - ], -) - -go_library( - name = "healthz", - embed = [":healthz_go_proto"], - importpath = "github.com/openconfig/gnoi/healthz", -) - -cc_proto_library( - name = "healthz_cc_proto", - deps = [":healthz_proto"], -) - -cc_grpc_library( - name = "healthz_cc_grpc_proto", - srcs = [":healthz_proto"], - grpc_only = True, - deps = [":healthz_cc_proto"], -) diff --git a/src/sonic-framework/gnoi/healthz/README.md b/src/sonic-framework/gnoi/healthz/README.md deleted file mode 100644 index f6637e2567c2..000000000000 --- a/src/sonic-framework/gnoi/healthz/README.md +++ /dev/null @@ -1,305 +0,0 @@ -# gNOI `Healthz` Streaming RPC Design -**Contributors**: hines@google.com, robjs@google.com, bneville@arista.com, -roman.dodin@nokia.com -**Last Updated**: 2022-11-02 - -## Background - -* [gNOI Repository](https://github.com/openconfig/gnoi) -* [gNOI `Healthz` service](https://github.com/openconfig/gnoi/tree/master/healthz) - -The purpose of `Healthz` is to allow a component inside of a system to report its -health. The concept of asking "Are you healthy?" is a general design principle -in distributed systems. - -The ability to also include "implementation specific" details about the health -of the system or component is very standard for network devices in the form for -"show tech", "diag" or "debug" commands. These are very useful for getting -diagnostics about the system state to the implementers. `Healthz` exposes these -interfaces as queryable endpoints to allow operators to validate "health" on -components and if "unhealthy" gather implementor specific data to help triage -or reproduce issues. - -## Design Background - -`Healthz` provides a means by which a user may initiate checks of health -(through the `Check` RPC) or a system may report the results of a check that it -has initiated of its own accord. - -Following a health check occurring, a caller uses the `List` or `Get` RPC to -discover the health "events" (expressed as a `ComponentStatus` message) that -are associated with a component and its corresponding subcomponents. Each event -reflects a collection of data that is required to debug or further root cause -the fault that occurs with an entity in the system. - -The `Artifact` RPC is used to retrieve specific artifacts that are listed by -the target system in the `List` or `Get` RPC. Once retrieved an event, which -corresponds to a series of artifacts, can be 'acknowledged' by the client of -the RPC. Acknowledged events are no longer returned in the list of events by -default. The device may use the acknowledged status as a hint to allow garbage -collection of artifacts that are no longer relevant. The device itself is -responsible for garbage collection any may, if necessary, garbage collect -artifacts that are not yet acknowledged. It is expected that events are -persisted across restarts of the system or its hardware and software -components, and they are removed only for resource management reasons. - -Whilst the system may initiate health checks itself, these should be safe to -perform operations that do not impact the device's functionality. Expensive -checks (e.g., pausing protocols, or dumping internal database state) that are -potentially service impacting should require use of the `Check` RPC. - -`Healthz` works in conjunction with telemetry streamed via gNMI, OpenConfig -paths for a specific component are streamed to indicate when components become -unhealthy, allowing the receiving system to determine that further inspection -of the component's health is required. The following paths (defined in the -`openconfig-platform` model) are used: - -``` -component/healthz/state/status (enumerated value) -component/healthz/state/last-unhealthy (timestamp) -component/healthz/state/unhealthy-count (int64) -``` - -### Choice of Streaming for Artifacts - -[Background comment](https://github.com/openconfig/gnoi/pull/65#issuecomment-1090547841) - -Originally, the gNOI Healthz endpoint defined single transactional API for -getting the "healthz" status of a component. As discussed in the above issue, -due to large data volume or to an interactive debug output there is a -requirement that it support the ability to stream a status from the device. - -To ensure that this can be done using a secure channel with the relevant ACL -and encryption, this streaming is implemented within the `Healthz` service. -This approach further allows the concept of a historical set of collected -artifacts to be reported by the device. - -### Collection of Artifacts - -As described above, by default health checks that are performed automatically -by the device SHOULD NOT be performance impacting. The `Check` RPC is used to -ensure the creation of artifacts that are expensive to collect. - -Thus -- a system relying on `healthz` for reporting of device status, needs -to consider the following workflow. - -1. A component of the system becomes unhealthy. The device MUST generate - a health state via telemetry that indicates that the `healthz/state/status` - of the component has transitioned to `UNHEALTHY`. It is left for the device - implementor to determine which artifacts are generated automatically by the - system immediately. The artifact collection SHOULD NOT impact the performance - of the system. -2. The responding client system observes the transition to `UNHEALTHY` and can - `List` events that have occurred on the component. The client SHOULD be aware - that not all artifacts that may be required may have automatically been - collected and a `Check` RPC may be required to collect the artifacts that - were considered performance impacting. This allows the client systems to - co-ordinate to reduce the operational risk of collecting this data (e.g, by - removing traffic from the network device). In order to specify that the - `Check` refers to a previously reported event, the `event_id` field in - the request must be populated with the ID reported in `Get` or `List`. -3. If the component becomes healthy again, even if no `Healthz` calls were made - to the system, telemetry information MUST be updated to ensure that external - clients are updated as to the current health status. - -In order that the relevant information for a particular event is collected, the -device SHOULD ensure that the non-system-impacting artifact collection that -is performed at the time of the event is sufficient that error conditions can -be understood and debugged. - -## Architecture - -### Use of gNMI paths - -Where a gNMI path (`gnoi.types.Path`) is used in `Healthz`, the path specified -should be the complete path to a specific component - i.e., -`/components/component[name=FOO]`. - -### Healthz.Get() - -```protobuf -rpc Get(GetRequest) returns (GetResponse) {} -``` - -`Get` allows a user to retrieve the latest set of health statuses that are -associated with a specific component and any of its corresponding -subcomponents. In contrast to `List` the `Get` RPC should return only the -latest event (i.e., `ComponentStatus` message). - -The `GetResponse` returned includes a `ComponentStatus` message which -corresponds to the latest health event for the component itself and each -subcomponent being reported on. Thus, multiple `ComponentStatus` messages may -be reported for a single component. Each message includes a set of -`ArtifactHeader` messages that correspond to the health event -- and provide -identifiers and types for the artifacts that can be returned by the system. - -All artifacts that are listed within the same `ComponentStatus` message are -expected to have a shared acknowledgement state, and expiry time. - -### Healthz.List() - -```protobuf -rpc List(ListRequest) returns (ListResponse) {} -``` - -`List` returns all events that are associated with a particular component. In -contrast to `Get`, it returns all events that the target has for the device. By -default, events that are acknowledged are not returned. - -`List` returns a series of `ComponentStatus` messages. These messages have the -same semantics as those that are returned by the `Get` RPC, described above. - -### Healthz.Acknowledge() - -```protobuf -rpc Acknowledge(AcknowledgeRequest) returns (AcknowledgeResponse) {} -``` - -`Acknowledge` is used by a client to indicate to the target device that a -particular (component, event) tuple has been retrieved by the client. This -allows a device to intelligently determine whether to retain artifacts. Devices -MUST ensure that artifact storage for healthz does not cause resource -exhaustion and SHOULD remove acknowledged artifacts before those that have not -yet received an acknowledgment. - -### Healthz.Artifact() - -```protobuf -rpc Artifact(ArtifactRequest) returns (stream ArtifactResponse) {} -``` - -`Artifact` allows a user to retrieve a specific artifact that is related to an -event that has occurred. Since these artifacts may be large, the `Artifact` RPC -is implemented as a server-side streaming RPC. The `Artifact` RPC ensures that -a target sends these potentially large artifacts only when explicitly requested -by the client. - -Each artifact that is returned in the `Artifact` RPC call should contain -ArtifactResponses in the following order: -- ArtifactHeader -- one or more bytes/proto -- ArtifactTrailer - -#### Healthz.Check() - -```protobuf -rpc Check(CheckRequest) returns (CheckResponse) {} -``` - -`Check` allows a client to execute a set of "validations" against the specified -component. The component, as with other operations, is specified in terms of -the gNMI path. - -The result of the `Check` produces a healthz `ComponentStatus` message which -will contain a list of the generated artifacts used in the validation process. - -A call to the `Check` endpoint will allow for "very expensive" debugging -commands such as causing the device to pause and snapshot its system database -or to examine the state of a protocol. These commands will likely be -considered "service impacting" and should have a clear security ACL restricting -their use during normal operations of the device. - -The `CheckRequest` message includes an `event_id` field. When populated this -indicates that the `Check` should be performed for an event that has already -occurred within the system. The device should trigger artifact collection of -those artifacts that were not automatically collected. A `CheckRequest` for -a previous `event_id` MUST NOT overwrite previous artifacts that were collected -at the time of the event. The artifacts that are collected MUST be returned -in the artifact list for the event when reported by the `Get` or `List` RPCs. - -## User Experience - -### A BGP routing process goes unhealthy due to a crash. - -#### Expected Action - -Write the core dump to a file system. - -A call to `Healthz.Get` should respond with the current state of the component -and provide feedback that there is an artifact available to be requested. - -A `Healthz.Artifact()` call should stream the core dump over the service back -to the caller. - -The component that is specified should correspond to the software process that -implements the BGP protocol in the system. - -### A chassis linecard goes unhealthy due to hardware failure. - -#### Expected Action - -Logs / dumps collected and the gNMI components are marked unhealthy. - -A call to Healthz.Get should respond with the current state of the component -and provide feedback that there is an artifact available to be requested. - -A `Healthz.Artifact()` call should stream the core dump over the service back -to the caller. - -A `Healthz.Artifact()` call should stream the logs over the service back to the -caller. - -The component that is reported on should be of type -[`CHASSIS`](https://openconfig.net/projects/models/schemadocs/yangdoc/openconfig-platform.html#ident-chassis). - -### A chassis file storage is over a configured capacity and reports itself unhealthy. - -Since there are no artifacts the Healthz.Get should just return the status of -the component and no other action is necessary - -The component reported on via telemetry should correspond to the device's -chassis and be of type -[`CHASSIS`](https://openconfig.net/projects/models/schemadocs/yangdoc/openconfig-platform.html#ident-chassis). - -### A user would like to stream console debugging or other shell output for collection - -For a component healthz could be used to provide an I/O dump of a specific -debugging command redirected as a byte stream. It could also be output like a -top or show interfaces where the data is periodically updated (each "frame" -would be sent over the stream as a separate message). This would allow for -show tech like information to be collected and sent to vendors in a -programmatic secure way but not completely reinventing the wheel. - -To achieve this use case, extensions to the existing specification are -required. - -### Collect a snapshot of a particular component. - -For components which can provide a "snapshot" of state the healthz artifact -endpoint can be provided to take a snapshot of state (ideally serialized as a -protobuf or other typed data structure) and provided to the caller. - -Examples: -* Get optical data from i2c bus on optical systems. -* Get system database state for the core pub/sub of a device. - -### Exporting internal or specific debug logs - -For a component in the system the developers could provide a debug log for that -specific component or other trace / dump information. The `Check()` and -`Artifact()` APIs could be used in these cases to create the setup and then -download the specific data in a secure, reliable way (rather than a general -file scp). If the device can "automatically" generate these specific data the -`Get` API can also be used to check for existence and to download the -artifacts. Note that to support this use case, additional gNMI paths are likely -required to signal existence of this type of data. - -### Event lifecycle - -An event is created internally by the system for a linecard rebooting -unexpectedly. The chassis process will take a core of the component. Snapshot -it's log for the component. Snapshot any relevant state in a system database for -the component and create a healthz event which includes pointers to these 3 -artifacts. - -The external monitoring system will receive a gNMI update reporting that the -specific component became unhealthy. - -An event monitoring agent can then call the `healthz` service specifying the -faulty component, and thus retrieve the current event and the associated -artifacts. Since the component becoming healthy is an externally reportable -event (i.e., may need to be reported to the vendor to initiate an RMA) the -system decides to retrieve the artifacts and store them within a bug tracking -system case. Once the artifacts are retrieved the system will mark the event -as acknowledged and the server can then use its local retention policy to clean -up those events. diff --git a/src/sonic-framework/gnoi/healthz/healthz.pb.go b/src/sonic-framework/gnoi/healthz/healthz.pb.go deleted file mode 100644 index 2111bd286c0b..000000000000 --- a/src/sonic-framework/gnoi/healthz/healthz.pb.go +++ /dev/null @@ -1,1448 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v3.21.10 -// source: healthz/healthz.proto - -package healthz - -import ( - types "github.com/openconfig/gnoi/types" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - anypb "google.golang.org/protobuf/types/known/anypb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type Status int32 - -const ( - Status_STATUS_UNSPECIFIED Status = 0 - Status_STATUS_HEALTHY Status = 1 - Status_STATUS_UNHEALTHY Status = 2 -) - -// Enum value maps for Status. -var ( - Status_name = map[int32]string{ - 0: "STATUS_UNSPECIFIED", - 1: "STATUS_HEALTHY", - 2: "STATUS_UNHEALTHY", - } - Status_value = map[string]int32{ - "STATUS_UNSPECIFIED": 0, - "STATUS_HEALTHY": 1, - "STATUS_UNHEALTHY": 2, - } -) - -func (x Status) Enum() *Status { - p := new(Status) - *p = x - return p -} - -func (x Status) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Status) Descriptor() protoreflect.EnumDescriptor { - return file_healthz_healthz_proto_enumTypes[0].Descriptor() -} - -func (Status) Type() protoreflect.EnumType { - return &file_healthz_healthz_proto_enumTypes[0] -} - -func (x Status) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Status.Descriptor instead. -func (Status) EnumDescriptor() ([]byte, []int) { - return file_healthz_healthz_proto_rawDescGZIP(), []int{0} -} - -type GetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Path *types.Path `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` -} - -func (x *GetRequest) Reset() { - *x = GetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_healthz_healthz_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetRequest) ProtoMessage() {} - -func (x *GetRequest) ProtoReflect() protoreflect.Message { - mi := &file_healthz_healthz_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetRequest.ProtoReflect.Descriptor instead. -func (*GetRequest) Descriptor() ([]byte, []int) { - return file_healthz_healthz_proto_rawDescGZIP(), []int{0} -} - -func (x *GetRequest) GetPath() *types.Path { - if x != nil { - return x.Path - } - return nil -} - -type GetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Component *ComponentStatus `protobuf:"bytes,1,opt,name=component,proto3" json:"component,omitempty"` -} - -func (x *GetResponse) Reset() { - *x = GetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_healthz_healthz_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetResponse) ProtoMessage() {} - -func (x *GetResponse) ProtoReflect() protoreflect.Message { - mi := &file_healthz_healthz_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetResponse.ProtoReflect.Descriptor instead. -func (*GetResponse) Descriptor() ([]byte, []int) { - return file_healthz_healthz_proto_rawDescGZIP(), []int{1} -} - -func (x *GetResponse) GetComponent() *ComponentStatus { - if x != nil { - return x.Component - } - return nil -} - -type ArtifactHeader struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Types that are assignable to ArtifactType: - // - // *ArtifactHeader_File - // *ArtifactHeader_Proto - // *ArtifactHeader_Custom - ArtifactType isArtifactHeader_ArtifactType `protobuf_oneof:"artifact_type"` -} - -func (x *ArtifactHeader) Reset() { - *x = ArtifactHeader{} - if protoimpl.UnsafeEnabled { - mi := &file_healthz_healthz_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ArtifactHeader) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ArtifactHeader) ProtoMessage() {} - -func (x *ArtifactHeader) ProtoReflect() protoreflect.Message { - mi := &file_healthz_healthz_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ArtifactHeader.ProtoReflect.Descriptor instead. -func (*ArtifactHeader) Descriptor() ([]byte, []int) { - return file_healthz_healthz_proto_rawDescGZIP(), []int{2} -} - -func (x *ArtifactHeader) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (m *ArtifactHeader) GetArtifactType() isArtifactHeader_ArtifactType { - if m != nil { - return m.ArtifactType - } - return nil -} - -func (x *ArtifactHeader) GetFile() *FileArtifactType { - if x, ok := x.GetArtifactType().(*ArtifactHeader_File); ok { - return x.File - } - return nil -} - -func (x *ArtifactHeader) GetProto() *ProtoArtifactType { - if x, ok := x.GetArtifactType().(*ArtifactHeader_Proto); ok { - return x.Proto - } - return nil -} - -func (x *ArtifactHeader) GetCustom() *anypb.Any { - if x, ok := x.GetArtifactType().(*ArtifactHeader_Custom); ok { - return x.Custom - } - return nil -} - -type isArtifactHeader_ArtifactType interface { - isArtifactHeader_ArtifactType() -} - -type ArtifactHeader_File struct { - File *FileArtifactType `protobuf:"bytes,101,opt,name=file,proto3,oneof"` -} - -type ArtifactHeader_Proto struct { - Proto *ProtoArtifactType `protobuf:"bytes,102,opt,name=proto,proto3,oneof"` -} - -type ArtifactHeader_Custom struct { - Custom *anypb.Any `protobuf:"bytes,103,opt,name=custom,proto3,oneof"` -} - -func (*ArtifactHeader_File) isArtifactHeader_ArtifactType() {} - -func (*ArtifactHeader_Proto) isArtifactHeader_ArtifactType() {} - -func (*ArtifactHeader_Custom) isArtifactHeader_ArtifactType() {} - -type ComponentStatus struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Path *types.Path `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - Subcomponents []*ComponentStatus `protobuf:"bytes,2,rep,name=subcomponents,proto3" json:"subcomponents,omitempty"` - Status Status `protobuf:"varint,3,opt,name=status,proto3,enum=gnoi.healthz.Status" json:"status,omitempty"` - // Deprecated: Marked as deprecated in healthz/healthz.proto. - Healthz *anypb.Any `protobuf:"bytes,4,opt,name=healthz,proto3" json:"healthz,omitempty"` - Artifacts []*ArtifactHeader `protobuf:"bytes,5,rep,name=artifacts,proto3" json:"artifacts,omitempty"` - Id string `protobuf:"bytes,6,opt,name=id,proto3" json:"id,omitempty"` - Acknowledged bool `protobuf:"varint,7,opt,name=acknowledged,proto3" json:"acknowledged,omitempty"` - Created *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=created,proto3" json:"created,omitempty"` - Expires *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=expires,proto3" json:"expires,omitempty"` -} - -func (x *ComponentStatus) Reset() { - *x = ComponentStatus{} - if protoimpl.UnsafeEnabled { - mi := &file_healthz_healthz_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ComponentStatus) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ComponentStatus) ProtoMessage() {} - -func (x *ComponentStatus) ProtoReflect() protoreflect.Message { - mi := &file_healthz_healthz_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ComponentStatus.ProtoReflect.Descriptor instead. -func (*ComponentStatus) Descriptor() ([]byte, []int) { - return file_healthz_healthz_proto_rawDescGZIP(), []int{3} -} - -func (x *ComponentStatus) GetPath() *types.Path { - if x != nil { - return x.Path - } - return nil -} - -func (x *ComponentStatus) GetSubcomponents() []*ComponentStatus { - if x != nil { - return x.Subcomponents - } - return nil -} - -func (x *ComponentStatus) GetStatus() Status { - if x != nil { - return x.Status - } - return Status_STATUS_UNSPECIFIED -} - -// Deprecated: Marked as deprecated in healthz/healthz.proto. -func (x *ComponentStatus) GetHealthz() *anypb.Any { - if x != nil { - return x.Healthz - } - return nil -} - -func (x *ComponentStatus) GetArtifacts() []*ArtifactHeader { - if x != nil { - return x.Artifacts - } - return nil -} - -func (x *ComponentStatus) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *ComponentStatus) GetAcknowledged() bool { - if x != nil { - return x.Acknowledged - } - return false -} - -func (x *ComponentStatus) GetCreated() *timestamppb.Timestamp { - if x != nil { - return x.Created - } - return nil -} - -func (x *ComponentStatus) GetExpires() *timestamppb.Timestamp { - if x != nil { - return x.Expires - } - return nil -} - -type ListRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Path *types.Path `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - IncludeAcknowledged bool `protobuf:"varint,2,opt,name=include_acknowledged,json=includeAcknowledged,proto3" json:"include_acknowledged,omitempty"` -} - -func (x *ListRequest) Reset() { - *x = ListRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_healthz_healthz_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListRequest) ProtoMessage() {} - -func (x *ListRequest) ProtoReflect() protoreflect.Message { - mi := &file_healthz_healthz_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListRequest.ProtoReflect.Descriptor instead. -func (*ListRequest) Descriptor() ([]byte, []int) { - return file_healthz_healthz_proto_rawDescGZIP(), []int{4} -} - -func (x *ListRequest) GetPath() *types.Path { - if x != nil { - return x.Path - } - return nil -} - -func (x *ListRequest) GetIncludeAcknowledged() bool { - if x != nil { - return x.IncludeAcknowledged - } - return false -} - -type ListResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Statuses []*ComponentStatus `protobuf:"bytes,1,rep,name=statuses,proto3" json:"statuses,omitempty"` -} - -func (x *ListResponse) Reset() { - *x = ListResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_healthz_healthz_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListResponse) ProtoMessage() {} - -func (x *ListResponse) ProtoReflect() protoreflect.Message { - mi := &file_healthz_healthz_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListResponse.ProtoReflect.Descriptor instead. -func (*ListResponse) Descriptor() ([]byte, []int) { - return file_healthz_healthz_proto_rawDescGZIP(), []int{5} -} - -func (x *ListResponse) GetStatuses() []*ComponentStatus { - if x != nil { - return x.Statuses - } - return nil -} - -type AcknowledgeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Path *types.Path `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *AcknowledgeRequest) Reset() { - *x = AcknowledgeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_healthz_healthz_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AcknowledgeRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AcknowledgeRequest) ProtoMessage() {} - -func (x *AcknowledgeRequest) ProtoReflect() protoreflect.Message { - mi := &file_healthz_healthz_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AcknowledgeRequest.ProtoReflect.Descriptor instead. -func (*AcknowledgeRequest) Descriptor() ([]byte, []int) { - return file_healthz_healthz_proto_rawDescGZIP(), []int{6} -} - -func (x *AcknowledgeRequest) GetPath() *types.Path { - if x != nil { - return x.Path - } - return nil -} - -func (x *AcknowledgeRequest) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type AcknowledgeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *ComponentStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` -} - -func (x *AcknowledgeResponse) Reset() { - *x = AcknowledgeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_healthz_healthz_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AcknowledgeResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AcknowledgeResponse) ProtoMessage() {} - -func (x *AcknowledgeResponse) ProtoReflect() protoreflect.Message { - mi := &file_healthz_healthz_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AcknowledgeResponse.ProtoReflect.Descriptor instead. -func (*AcknowledgeResponse) Descriptor() ([]byte, []int) { - return file_healthz_healthz_proto_rawDescGZIP(), []int{7} -} - -func (x *AcknowledgeResponse) GetStatus() *ComponentStatus { - if x != nil { - return x.Status - } - return nil -} - -type ArtifactRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *ArtifactRequest) Reset() { - *x = ArtifactRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_healthz_healthz_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ArtifactRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ArtifactRequest) ProtoMessage() {} - -func (x *ArtifactRequest) ProtoReflect() protoreflect.Message { - mi := &file_healthz_healthz_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ArtifactRequest.ProtoReflect.Descriptor instead. -func (*ArtifactRequest) Descriptor() ([]byte, []int) { - return file_healthz_healthz_proto_rawDescGZIP(), []int{8} -} - -func (x *ArtifactRequest) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type ArtifactResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Contents: - // - // *ArtifactResponse_Header - // *ArtifactResponse_Trailer - // *ArtifactResponse_Bytes - // *ArtifactResponse_Proto - Contents isArtifactResponse_Contents `protobuf_oneof:"contents"` -} - -func (x *ArtifactResponse) Reset() { - *x = ArtifactResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_healthz_healthz_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ArtifactResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ArtifactResponse) ProtoMessage() {} - -func (x *ArtifactResponse) ProtoReflect() protoreflect.Message { - mi := &file_healthz_healthz_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ArtifactResponse.ProtoReflect.Descriptor instead. -func (*ArtifactResponse) Descriptor() ([]byte, []int) { - return file_healthz_healthz_proto_rawDescGZIP(), []int{9} -} - -func (m *ArtifactResponse) GetContents() isArtifactResponse_Contents { - if m != nil { - return m.Contents - } - return nil -} - -func (x *ArtifactResponse) GetHeader() *ArtifactHeader { - if x, ok := x.GetContents().(*ArtifactResponse_Header); ok { - return x.Header - } - return nil -} - -func (x *ArtifactResponse) GetTrailer() *ArtifactTrailer { - if x, ok := x.GetContents().(*ArtifactResponse_Trailer); ok { - return x.Trailer - } - return nil -} - -func (x *ArtifactResponse) GetBytes() []byte { - if x, ok := x.GetContents().(*ArtifactResponse_Bytes); ok { - return x.Bytes - } - return nil -} - -func (x *ArtifactResponse) GetProto() *anypb.Any { - if x, ok := x.GetContents().(*ArtifactResponse_Proto); ok { - return x.Proto - } - return nil -} - -type isArtifactResponse_Contents interface { - isArtifactResponse_Contents() -} - -type ArtifactResponse_Header struct { - Header *ArtifactHeader `protobuf:"bytes,1,opt,name=header,proto3,oneof"` -} - -type ArtifactResponse_Trailer struct { - Trailer *ArtifactTrailer `protobuf:"bytes,2,opt,name=trailer,proto3,oneof"` -} - -type ArtifactResponse_Bytes struct { - Bytes []byte `protobuf:"bytes,3,opt,name=bytes,proto3,oneof"` -} - -type ArtifactResponse_Proto struct { - Proto *anypb.Any `protobuf:"bytes,4,opt,name=proto,proto3,oneof"` -} - -func (*ArtifactResponse_Header) isArtifactResponse_Contents() {} - -func (*ArtifactResponse_Trailer) isArtifactResponse_Contents() {} - -func (*ArtifactResponse_Bytes) isArtifactResponse_Contents() {} - -func (*ArtifactResponse_Proto) isArtifactResponse_Contents() {} - -type FileArtifactType struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` - Mimetype string `protobuf:"bytes,3,opt,name=mimetype,proto3" json:"mimetype,omitempty"` - Size int64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` - Hash *types.HashType `protobuf:"bytes,5,opt,name=hash,proto3" json:"hash,omitempty"` -} - -func (x *FileArtifactType) Reset() { - *x = FileArtifactType{} - if protoimpl.UnsafeEnabled { - mi := &file_healthz_healthz_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FileArtifactType) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FileArtifactType) ProtoMessage() {} - -func (x *FileArtifactType) ProtoReflect() protoreflect.Message { - mi := &file_healthz_healthz_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FileArtifactType.ProtoReflect.Descriptor instead. -func (*FileArtifactType) Descriptor() ([]byte, []int) { - return file_healthz_healthz_proto_rawDescGZIP(), []int{10} -} - -func (x *FileArtifactType) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *FileArtifactType) GetPath() string { - if x != nil { - return x.Path - } - return "" -} - -func (x *FileArtifactType) GetMimetype() string { - if x != nil { - return x.Mimetype - } - return "" -} - -func (x *FileArtifactType) GetSize() int64 { - if x != nil { - return x.Size - } - return 0 -} - -func (x *FileArtifactType) GetHash() *types.HashType { - if x != nil { - return x.Hash - } - return nil -} - -type ProtoArtifactType struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ProtoArtifactType) Reset() { - *x = ProtoArtifactType{} - if protoimpl.UnsafeEnabled { - mi := &file_healthz_healthz_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProtoArtifactType) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProtoArtifactType) ProtoMessage() {} - -func (x *ProtoArtifactType) ProtoReflect() protoreflect.Message { - mi := &file_healthz_healthz_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProtoArtifactType.ProtoReflect.Descriptor instead. -func (*ProtoArtifactType) Descriptor() ([]byte, []int) { - return file_healthz_healthz_proto_rawDescGZIP(), []int{11} -} - -type ArtifactTrailer struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ArtifactTrailer) Reset() { - *x = ArtifactTrailer{} - if protoimpl.UnsafeEnabled { - mi := &file_healthz_healthz_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ArtifactTrailer) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ArtifactTrailer) ProtoMessage() {} - -func (x *ArtifactTrailer) ProtoReflect() protoreflect.Message { - mi := &file_healthz_healthz_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ArtifactTrailer.ProtoReflect.Descriptor instead. -func (*ArtifactTrailer) Descriptor() ([]byte, []int) { - return file_healthz_healthz_proto_rawDescGZIP(), []int{12} -} - -type CheckRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Path *types.Path `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - EventId string `protobuf:"bytes,2,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"` -} - -func (x *CheckRequest) Reset() { - *x = CheckRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_healthz_healthz_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CheckRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CheckRequest) ProtoMessage() {} - -func (x *CheckRequest) ProtoReflect() protoreflect.Message { - mi := &file_healthz_healthz_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CheckRequest.ProtoReflect.Descriptor instead. -func (*CheckRequest) Descriptor() ([]byte, []int) { - return file_healthz_healthz_proto_rawDescGZIP(), []int{13} -} - -func (x *CheckRequest) GetPath() *types.Path { - if x != nil { - return x.Path - } - return nil -} - -func (x *CheckRequest) GetEventId() string { - if x != nil { - return x.EventId - } - return "" -} - -type CheckResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *ComponentStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` -} - -func (x *CheckResponse) Reset() { - *x = CheckResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_healthz_healthz_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CheckResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CheckResponse) ProtoMessage() {} - -func (x *CheckResponse) ProtoReflect() protoreflect.Message { - mi := &file_healthz_healthz_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CheckResponse.ProtoReflect.Descriptor instead. -func (*CheckResponse) Descriptor() ([]byte, []int) { - return file_healthz_healthz_proto_rawDescGZIP(), []int{14} -} - -func (x *CheckResponse) GetStatus() *ComponentStatus { - if x != nil { - return x.Status - } - return nil -} - -var File_healthz_healthz_proto protoreflect.FileDescriptor - -var file_healthz_healthz_proto_rawDesc = []byte{ - 0x0a, 0x15, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, - 0x7a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, - 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, - 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, - 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0x32, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, - 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x04, 0x70, - 0x61, 0x74, 0x68, 0x22, 0x4a, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, 0x61, - 0x6c, 0x74, 0x68, 0x7a, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x22, - 0xd0, 0x01, 0x0a, 0x0e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x48, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x34, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x65, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2e, - 0x46, 0x69, 0x6c, 0x65, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, - 0x48, 0x00, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x37, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x18, 0x66, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, - 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x41, 0x72, 0x74, 0x69, - 0x66, 0x61, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x05, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x2e, 0x0a, 0x06, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x18, 0x67, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x48, 0x00, 0x52, 0x06, 0x63, 0x75, 0x73, 0x74, 0x6f, - 0x6d, 0x42, 0x0f, 0x0a, 0x0d, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x22, 0xba, 0x03, 0x0a, 0x0f, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x24, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x43, 0x0a, 0x0d, - 0x73, 0x75, 0x62, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, - 0x68, 0x7a, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x0d, 0x73, 0x75, 0x62, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, - 0x73, 0x12, 0x2c, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x14, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, - 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, - 0x32, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x42, 0x02, 0x18, 0x01, 0x52, 0x07, 0x68, 0x65, 0x61, 0x6c, - 0x74, 0x68, 0x7a, 0x12, 0x3a, 0x0a, 0x09, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, - 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, - 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x48, 0x65, - 0x61, 0x64, 0x65, 0x72, 0x52, 0x09, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x22, 0x0a, 0x0c, 0x61, 0x63, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x64, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x61, 0x63, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, - 0x67, 0x65, 0x64, 0x12, 0x34, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x08, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x34, 0x0a, 0x07, 0x65, 0x78, 0x70, - 0x69, 0x72, 0x65, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x22, - 0x66, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, - 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x04, - 0x70, 0x61, 0x74, 0x68, 0x12, 0x31, 0x0a, 0x14, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, - 0x61, 0x63, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x13, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x41, 0x63, 0x6b, 0x6e, 0x6f, - 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x64, 0x22, 0x49, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x08, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, - 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x08, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x65, 0x73, 0x22, 0x4a, 0x0a, 0x12, 0x41, 0x63, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x4c, - 0x0a, 0x13, 0x41, 0x63, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, 0x61, - 0x6c, 0x74, 0x68, 0x7a, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x21, 0x0a, 0x0f, - 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, - 0xd7, 0x01, 0x0a, 0x10, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, 0x61, 0x6c, - 0x74, 0x68, 0x7a, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x48, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x07, - 0x74, 0x72, 0x61, 0x69, 0x6c, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2e, 0x41, 0x72, 0x74, - 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x72, 0x61, 0x69, 0x6c, 0x65, 0x72, 0x48, 0x00, 0x52, 0x07, - 0x74, 0x72, 0x61, 0x69, 0x6c, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x12, - 0x2c, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x41, 0x6e, 0x79, 0x48, 0x00, 0x52, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x42, 0x0a, 0x0a, - 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x94, 0x01, 0x0a, 0x10, 0x46, 0x69, - 0x6c, 0x65, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, - 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x69, 0x6d, 0x65, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x69, 0x6d, 0x65, 0x74, 0x79, - 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x28, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, - 0x22, 0x13, 0x0a, 0x11, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, - 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0x11, 0x0a, 0x0f, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, - 0x74, 0x54, 0x72, 0x61, 0x69, 0x6c, 0x65, 0x72, 0x22, 0x4f, 0x0a, 0x0c, 0x43, 0x68, 0x65, 0x63, - 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x19, - 0x0a, 0x08, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x46, 0x0a, 0x0d, 0x43, 0x68, 0x65, - 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, - 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x2a, 0x4a, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, - 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, - 0x44, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x48, 0x45, - 0x41, 0x4c, 0x54, 0x48, 0x59, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x54, 0x41, 0x54, 0x55, - 0x53, 0x5f, 0x55, 0x4e, 0x48, 0x45, 0x41, 0x4c, 0x54, 0x48, 0x59, 0x10, 0x02, 0x32, 0xf1, 0x02, - 0x0a, 0x07, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x12, 0x3c, 0x0a, 0x03, 0x47, 0x65, 0x74, - 0x12, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2e, - 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, - 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2e, 0x4c, - 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x54, 0x0a, 0x0b, 0x41, 0x63, 0x6b, 0x6e, - 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x12, 0x20, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, - 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2e, 0x41, 0x63, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, - 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2e, 0x41, 0x63, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, - 0x65, 0x64, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4d, - 0x0a, 0x08, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x12, 0x1d, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, - 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x42, 0x0a, - 0x05, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x1a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, - 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, - 0x7a, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x42, 0x2c, 0xd2, 0x3e, 0x05, 0x31, 0x2e, 0x33, 0x2e, 0x30, 0x5a, 0x22, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_healthz_healthz_proto_rawDescOnce sync.Once - file_healthz_healthz_proto_rawDescData = file_healthz_healthz_proto_rawDesc -) - -func file_healthz_healthz_proto_rawDescGZIP() []byte { - file_healthz_healthz_proto_rawDescOnce.Do(func() { - file_healthz_healthz_proto_rawDescData = protoimpl.X.CompressGZIP(file_healthz_healthz_proto_rawDescData) - }) - return file_healthz_healthz_proto_rawDescData -} - -var file_healthz_healthz_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_healthz_healthz_proto_msgTypes = make([]protoimpl.MessageInfo, 15) -var file_healthz_healthz_proto_goTypes = []interface{}{ - (Status)(0), // 0: gnoi.healthz.Status - (*GetRequest)(nil), // 1: gnoi.healthz.GetRequest - (*GetResponse)(nil), // 2: gnoi.healthz.GetResponse - (*ArtifactHeader)(nil), // 3: gnoi.healthz.ArtifactHeader - (*ComponentStatus)(nil), // 4: gnoi.healthz.ComponentStatus - (*ListRequest)(nil), // 5: gnoi.healthz.ListRequest - (*ListResponse)(nil), // 6: gnoi.healthz.ListResponse - (*AcknowledgeRequest)(nil), // 7: gnoi.healthz.AcknowledgeRequest - (*AcknowledgeResponse)(nil), // 8: gnoi.healthz.AcknowledgeResponse - (*ArtifactRequest)(nil), // 9: gnoi.healthz.ArtifactRequest - (*ArtifactResponse)(nil), // 10: gnoi.healthz.ArtifactResponse - (*FileArtifactType)(nil), // 11: gnoi.healthz.FileArtifactType - (*ProtoArtifactType)(nil), // 12: gnoi.healthz.ProtoArtifactType - (*ArtifactTrailer)(nil), // 13: gnoi.healthz.ArtifactTrailer - (*CheckRequest)(nil), // 14: gnoi.healthz.CheckRequest - (*CheckResponse)(nil), // 15: gnoi.healthz.CheckResponse - (*types.Path)(nil), // 16: gnoi.types.Path - (*anypb.Any)(nil), // 17: google.protobuf.Any - (*timestamppb.Timestamp)(nil), // 18: google.protobuf.Timestamp - (*types.HashType)(nil), // 19: gnoi.types.HashType -} -var file_healthz_healthz_proto_depIdxs = []int32{ - 16, // 0: gnoi.healthz.GetRequest.path:type_name -> gnoi.types.Path - 4, // 1: gnoi.healthz.GetResponse.component:type_name -> gnoi.healthz.ComponentStatus - 11, // 2: gnoi.healthz.ArtifactHeader.file:type_name -> gnoi.healthz.FileArtifactType - 12, // 3: gnoi.healthz.ArtifactHeader.proto:type_name -> gnoi.healthz.ProtoArtifactType - 17, // 4: gnoi.healthz.ArtifactHeader.custom:type_name -> google.protobuf.Any - 16, // 5: gnoi.healthz.ComponentStatus.path:type_name -> gnoi.types.Path - 4, // 6: gnoi.healthz.ComponentStatus.subcomponents:type_name -> gnoi.healthz.ComponentStatus - 0, // 7: gnoi.healthz.ComponentStatus.status:type_name -> gnoi.healthz.Status - 17, // 8: gnoi.healthz.ComponentStatus.healthz:type_name -> google.protobuf.Any - 3, // 9: gnoi.healthz.ComponentStatus.artifacts:type_name -> gnoi.healthz.ArtifactHeader - 18, // 10: gnoi.healthz.ComponentStatus.created:type_name -> google.protobuf.Timestamp - 18, // 11: gnoi.healthz.ComponentStatus.expires:type_name -> google.protobuf.Timestamp - 16, // 12: gnoi.healthz.ListRequest.path:type_name -> gnoi.types.Path - 4, // 13: gnoi.healthz.ListResponse.statuses:type_name -> gnoi.healthz.ComponentStatus - 16, // 14: gnoi.healthz.AcknowledgeRequest.path:type_name -> gnoi.types.Path - 4, // 15: gnoi.healthz.AcknowledgeResponse.status:type_name -> gnoi.healthz.ComponentStatus - 3, // 16: gnoi.healthz.ArtifactResponse.header:type_name -> gnoi.healthz.ArtifactHeader - 13, // 17: gnoi.healthz.ArtifactResponse.trailer:type_name -> gnoi.healthz.ArtifactTrailer - 17, // 18: gnoi.healthz.ArtifactResponse.proto:type_name -> google.protobuf.Any - 19, // 19: gnoi.healthz.FileArtifactType.hash:type_name -> gnoi.types.HashType - 16, // 20: gnoi.healthz.CheckRequest.path:type_name -> gnoi.types.Path - 4, // 21: gnoi.healthz.CheckResponse.status:type_name -> gnoi.healthz.ComponentStatus - 1, // 22: gnoi.healthz.Healthz.Get:input_type -> gnoi.healthz.GetRequest - 5, // 23: gnoi.healthz.Healthz.List:input_type -> gnoi.healthz.ListRequest - 7, // 24: gnoi.healthz.Healthz.Acknowledge:input_type -> gnoi.healthz.AcknowledgeRequest - 9, // 25: gnoi.healthz.Healthz.Artifact:input_type -> gnoi.healthz.ArtifactRequest - 14, // 26: gnoi.healthz.Healthz.Check:input_type -> gnoi.healthz.CheckRequest - 2, // 27: gnoi.healthz.Healthz.Get:output_type -> gnoi.healthz.GetResponse - 6, // 28: gnoi.healthz.Healthz.List:output_type -> gnoi.healthz.ListResponse - 8, // 29: gnoi.healthz.Healthz.Acknowledge:output_type -> gnoi.healthz.AcknowledgeResponse - 10, // 30: gnoi.healthz.Healthz.Artifact:output_type -> gnoi.healthz.ArtifactResponse - 15, // 31: gnoi.healthz.Healthz.Check:output_type -> gnoi.healthz.CheckResponse - 27, // [27:32] is the sub-list for method output_type - 22, // [22:27] is the sub-list for method input_type - 22, // [22:22] is the sub-list for extension type_name - 22, // [22:22] is the sub-list for extension extendee - 0, // [0:22] is the sub-list for field type_name -} - -func init() { file_healthz_healthz_proto_init() } -func file_healthz_healthz_proto_init() { - if File_healthz_healthz_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_healthz_healthz_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_healthz_healthz_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_healthz_healthz_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ArtifactHeader); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_healthz_healthz_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ComponentStatus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_healthz_healthz_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_healthz_healthz_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_healthz_healthz_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AcknowledgeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_healthz_healthz_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AcknowledgeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_healthz_healthz_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ArtifactRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_healthz_healthz_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ArtifactResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_healthz_healthz_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FileArtifactType); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_healthz_healthz_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProtoArtifactType); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_healthz_healthz_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ArtifactTrailer); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_healthz_healthz_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CheckRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_healthz_healthz_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CheckResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_healthz_healthz_proto_msgTypes[2].OneofWrappers = []interface{}{ - (*ArtifactHeader_File)(nil), - (*ArtifactHeader_Proto)(nil), - (*ArtifactHeader_Custom)(nil), - } - file_healthz_healthz_proto_msgTypes[9].OneofWrappers = []interface{}{ - (*ArtifactResponse_Header)(nil), - (*ArtifactResponse_Trailer)(nil), - (*ArtifactResponse_Bytes)(nil), - (*ArtifactResponse_Proto)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_healthz_healthz_proto_rawDesc, - NumEnums: 1, - NumMessages: 15, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_healthz_healthz_proto_goTypes, - DependencyIndexes: file_healthz_healthz_proto_depIdxs, - EnumInfos: file_healthz_healthz_proto_enumTypes, - MessageInfos: file_healthz_healthz_proto_msgTypes, - }.Build() - File_healthz_healthz_proto = out.File - file_healthz_healthz_proto_rawDesc = nil - file_healthz_healthz_proto_goTypes = nil - file_healthz_healthz_proto_depIdxs = nil -} diff --git a/src/sonic-framework/gnoi/healthz/healthz.proto b/src/sonic-framework/gnoi/healthz/healthz.proto deleted file mode 100644 index 2e8952ece4c9..000000000000 --- a/src/sonic-framework/gnoi/healthz/healthz.proto +++ /dev/null @@ -1,208 +0,0 @@ -// -// Copyright 2017 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.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. -// - -// Generic Network Operation Interface, GNOI, defines a set of RPC's used for -// the operational aspects of network targets. These services are meant to be -// used in conjunction with GNMI for all target state and operational aspects -// of a network target. The gnoi.system.Service is the only mandatory vendor -// implementation. - -syntax = "proto3"; - -package gnoi.healthz; - -import "github.com/openconfig/gnoi/types/types.proto"; -import "google/protobuf/any.proto"; -import "google/protobuf/timestamp.proto"; - -option go_package = "github.com/openconfig/gnoi/healthz"; - -option (types.gnoi_version) = "1.3.0"; - -// The Healthz service provides access to the status of a path on the -// system. Addtitionally it allows the implementor to provide path specific -// diagnositic data into the status return. -// -// Healthz is expected to work in conjunction with the component OC model. -service Healthz { - // Get will get the latest health status for a gNMI path. If no status is - // available for the requested path an error will be returned. - rpc Get(GetRequest) returns (GetResponse) {} - - // List returns all events for the provided component path. - rpc List(ListRequest) returns (ListResponse) {} - - // Acknowledge will set the acknowledged field for the event. - // This is an idempotent operation. - rpc Acknowledge(AcknowledgeRequest) returns (AcknowledgeResponse) {} - - // Artifact will stream the artifact contents for the provided artifact id. - rpc Artifact(ArtifactRequest) returns (stream ArtifactResponse) {} - - // Check will invoke the healthz on the provided component path. This RPC - // can be expensive depending on the vendor implementation. - rpc Check(CheckRequest) returns (CheckResponse) {} -} - -message GetRequest { - // Path defines the component to try to fetch healthz state for. Get - // retrieves the latest healthz results for a specific component - // that have been collected as a result of a call to Check, or by - // the target itself. - types.Path path = 1; -} - -message GetResponse { - ComponentStatus component = 1; -} - -enum Status { - STATUS_UNSPECIFIED = 0; // The path doesn't support healthz - STATUS_HEALTHY = 1; // The path is healthy - STATUS_UNHEALTHY = 2; // The path is unhealthy -} - -message ArtifactHeader { - // ID of the artifact. - string id = 1; - // Artifact type describes data contents in the artifact. - // File artifacts should use the defined FileArtifactType. - // Proto artifacts should either use the generic ProtoArtifactType - // which means the artifact is made up a sequence of proto.Any - // messages which can be deserialized directly into thier message - // types. Otherwise the implementer can provide a specific artifact type - // which can add any additional metadata the implementor wants and define - // a custom format for the message stream. - oneof artifact_type { - FileArtifactType file = 101; - ProtoArtifactType proto = 102; - google.protobuf.Any custom = 103; - } -} - -message ComponentStatus { - gnoi.types.Path path = 1; // path of subcomponent. - - // Subcomponents that are aggregated by this status. - repeated ComponentStatus subcomponents = 2; - - // Status of this component. - Status status = 3; - - // Opaque data for how the healthcheck is implemented. This can be any proto - // defined by the vendor. This could be the equivalent to outputs like - // "show tech" or core files or any other diagnostic data. - google.protobuf.Any healthz = 4 [deprecated=true]; - - // Artifacts provides links to all artifacts contained in this event. - // The individual artifacts can be retrieved via the Artifact() RPC. - repeated ArtifactHeader artifacts = 5; - - // ID is the unique key for this event in the system. - string id = 6; - - // Acknowledged is set when at least one caller has processed the event. - bool acknowledged = 7; - - // Created is the timestamp when this event was created. - google.protobuf.Timestamp created = 8; - - // Expires is the timestamp when the system will clean up the - // artifact. If unset, the artifact is not scheduled for garbage - // collection. - google.protobuf.Timestamp expires = 9; -} - -message ListRequest { - types.Path path = 1; - // By default only the unacknowledged events for the component will be - // returned. - bool include_acknowledged = 2; -} - -message ListResponse { - repeated ComponentStatus statuses = 1; -} - -message AcknowledgeRequest { - types.Path path = 1; - // Healthz event id. - string id = 2; -} - -message AcknowledgeResponse { - ComponentStatus status = 1; -} - -message ArtifactRequest { - // Artifact ID to be streamed. - string id = 1; -} - -message ArtifactResponse { - oneof contents { - // Header is the first message in the stream. It contains - // the id of the artifact and metadata for the artifact - // based on the type of the artifact. - // OC defines FileArtifactType and ProtoArtifactType. - ArtifactHeader header = 1; - ArtifactTrailer trailer = 2; - bytes bytes = 3; - google.protobuf.Any proto = 4; - } -} - -message FileArtifactType { - // Local file name of the artifact. - string name = 1; - // Path to file on the local file system. (optional) - string path = 2; - // Mimetype of the file. - string mimetype = 3; - // Size of the file. - int64 size = 4; - // Hash of the file. - gnoi.types.HashType hash = 5; -} - -// Generic proto message artifact stream. -// This proto tells the caller that the artifact stream -// will be a stream of proto encoded messages that make up -// the artifact. Each message must be deserialized by the caller -// and there are no other assumptions about the number of -// messages or length of the stream or how those messages are to -// be reassembled. -message ProtoArtifactType { -} - -// ArtifactTrailer is the last message in the artifact stream. -message ArtifactTrailer { -} - -message CheckRequest { - gnoi.types.Path path = 1; - - // When event_id is populated the check request refers to an - // event that has already been reported by the system. The - // device receiving the CheckRequest should populate artifacts - // that are relevant to the event that were not automatically - // collected. Previous artifacts MUST NOT be overwritten. - string event_id = 2; -} - -message CheckResponse{ - ComponentStatus status = 1; -} diff --git a/src/sonic-framework/gnoi/healthz/healthz_grpc.pb.go b/src/sonic-framework/gnoi/healthz/healthz_grpc.pb.go deleted file mode 100755 index e0cd6465b13c..000000000000 --- a/src/sonic-framework/gnoi/healthz/healthz_grpc.pb.go +++ /dev/null @@ -1,277 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.21.10 -// source: healthz/healthz.proto - -package healthz - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// HealthzClient is the client API for Healthz service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type HealthzClient interface { - Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) - List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) - Acknowledge(ctx context.Context, in *AcknowledgeRequest, opts ...grpc.CallOption) (*AcknowledgeResponse, error) - Artifact(ctx context.Context, in *ArtifactRequest, opts ...grpc.CallOption) (Healthz_ArtifactClient, error) - Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error) -} - -type healthzClient struct { - cc grpc.ClientConnInterface -} - -func NewHealthzClient(cc grpc.ClientConnInterface) HealthzClient { - return &healthzClient{cc} -} - -func (c *healthzClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) { - out := new(GetResponse) - err := c.cc.Invoke(ctx, "/gnoi.healthz.Healthz/Get", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *healthzClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) { - out := new(ListResponse) - err := c.cc.Invoke(ctx, "/gnoi.healthz.Healthz/List", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *healthzClient) Acknowledge(ctx context.Context, in *AcknowledgeRequest, opts ...grpc.CallOption) (*AcknowledgeResponse, error) { - out := new(AcknowledgeResponse) - err := c.cc.Invoke(ctx, "/gnoi.healthz.Healthz/Acknowledge", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *healthzClient) Artifact(ctx context.Context, in *ArtifactRequest, opts ...grpc.CallOption) (Healthz_ArtifactClient, error) { - stream, err := c.cc.NewStream(ctx, &Healthz_ServiceDesc.Streams[0], "/gnoi.healthz.Healthz/Artifact", opts...) - if err != nil { - return nil, err - } - x := &healthzArtifactClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type Healthz_ArtifactClient interface { - Recv() (*ArtifactResponse, error) - grpc.ClientStream -} - -type healthzArtifactClient struct { - grpc.ClientStream -} - -func (x *healthzArtifactClient) Recv() (*ArtifactResponse, error) { - m := new(ArtifactResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *healthzClient) Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error) { - out := new(CheckResponse) - err := c.cc.Invoke(ctx, "/gnoi.healthz.Healthz/Check", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// HealthzServer is the server API for Healthz service. -// All implementations must embed UnimplementedHealthzServer -// for forward compatibility -type HealthzServer interface { - Get(context.Context, *GetRequest) (*GetResponse, error) - List(context.Context, *ListRequest) (*ListResponse, error) - Acknowledge(context.Context, *AcknowledgeRequest) (*AcknowledgeResponse, error) - Artifact(*ArtifactRequest, Healthz_ArtifactServer) error - Check(context.Context, *CheckRequest) (*CheckResponse, error) - mustEmbedUnimplementedHealthzServer() -} - -// UnimplementedHealthzServer must be embedded to have forward compatible implementations. -type UnimplementedHealthzServer struct { -} - -func (UnimplementedHealthzServer) Get(context.Context, *GetRequest) (*GetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") -} -func (UnimplementedHealthzServer) List(context.Context, *ListRequest) (*ListResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method List not implemented") -} -func (UnimplementedHealthzServer) Acknowledge(context.Context, *AcknowledgeRequest) (*AcknowledgeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Acknowledge not implemented") -} -func (UnimplementedHealthzServer) Artifact(*ArtifactRequest, Healthz_ArtifactServer) error { - return status.Errorf(codes.Unimplemented, "method Artifact not implemented") -} -func (UnimplementedHealthzServer) Check(context.Context, *CheckRequest) (*CheckResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Check not implemented") -} -func (UnimplementedHealthzServer) mustEmbedUnimplementedHealthzServer() {} - -// UnsafeHealthzServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to HealthzServer will -// result in compilation errors. -type UnsafeHealthzServer interface { - mustEmbedUnimplementedHealthzServer() -} - -func RegisterHealthzServer(s grpc.ServiceRegistrar, srv HealthzServer) { - s.RegisterService(&Healthz_ServiceDesc, srv) -} - -func _Healthz_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HealthzServer).Get(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.healthz.Healthz/Get", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HealthzServer).Get(ctx, req.(*GetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Healthz_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HealthzServer).List(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.healthz.Healthz/List", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HealthzServer).List(ctx, req.(*ListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Healthz_Acknowledge_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AcknowledgeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HealthzServer).Acknowledge(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.healthz.Healthz/Acknowledge", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HealthzServer).Acknowledge(ctx, req.(*AcknowledgeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Healthz_Artifact_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ArtifactRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(HealthzServer).Artifact(m, &healthzArtifactServer{stream}) -} - -type Healthz_ArtifactServer interface { - Send(*ArtifactResponse) error - grpc.ServerStream -} - -type healthzArtifactServer struct { - grpc.ServerStream -} - -func (x *healthzArtifactServer) Send(m *ArtifactResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _Healthz_Check_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CheckRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HealthzServer).Check(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.healthz.Healthz/Check", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HealthzServer).Check(ctx, req.(*CheckRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// Healthz_ServiceDesc is the grpc.ServiceDesc for Healthz service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Healthz_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.healthz.Healthz", - HandlerType: (*HealthzServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Get", - Handler: _Healthz_Get_Handler, - }, - { - MethodName: "List", - Handler: _Healthz_List_Handler, - }, - { - MethodName: "Acknowledge", - Handler: _Healthz_Acknowledge_Handler, - }, - { - MethodName: "Check", - Handler: _Healthz_Check_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "Artifact", - Handler: _Healthz_Artifact_Handler, - ServerStreams: true, - }, - }, - Metadata: "healthz/healthz.proto", -} diff --git a/src/sonic-framework/gnoi/layer2/BUILD.bazel b/src/sonic-framework/gnoi/layer2/BUILD.bazel deleted file mode 100644 index 4715f6c65108..000000000000 --- a/src/sonic-framework/gnoi/layer2/BUILD.bazel +++ /dev/null @@ -1,61 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") -load("//:common.bzl", "use_new_compilers") - -#Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# 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. - -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -use_new_compilers() - -proto_library( - name = "layer2_proto", - srcs = ["layer2.proto"], - deps = ["//types:types_proto"], -) - -cc_proto_library( - name = "layer2_cc_proto", - deps = [":layer2_proto"], -) - -cc_grpc_library( - name = "layer2_cc_grpc_proto", - srcs = [":layer2_proto"], - grpc_only = True, - deps = [":layer2_cc_proto"], -) - -go_proto_library( - name = "layer2_go_proto", - compilers = [ - "go_protoc_gen_go", - "go_protoc_gen_go_grpc", - ], - importpath = "github.com/openconfig/gnoi/layer2", - proto = ":layer2_proto", - deps = ["//types"], -) - -go_library( - name = "layer2", - embed = [":layer2_go_proto"], - importpath = "github.com/openconfig/gnoi/layer2", -) diff --git a/src/sonic-framework/gnoi/layer2/layer2.pb.go b/src/sonic-framework/gnoi/layer2/layer2.pb.go deleted file mode 100644 index 92cfe0aa4b97..000000000000 --- a/src/sonic-framework/gnoi/layer2/layer2.pb.go +++ /dev/null @@ -1,887 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v3.21.10 -// source: layer2/layer2.proto - -package layer2 - -import ( - types "github.com/openconfig/gnoi/types" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type PerformBERTResponse_BERTState int32 - -const ( - PerformBERTResponse_UNKNOWN PerformBERTResponse_BERTState = 0 - PerformBERTResponse_DISABLED PerformBERTResponse_BERTState = 1 - PerformBERTResponse_RUNNING PerformBERTResponse_BERTState = 2 - PerformBERTResponse_COMPLETE PerformBERTResponse_BERTState = 3 - PerformBERTResponse_ERROR PerformBERTResponse_BERTState = 4 -) - -// Enum value maps for PerformBERTResponse_BERTState. -var ( - PerformBERTResponse_BERTState_name = map[int32]string{ - 0: "UNKNOWN", - 1: "DISABLED", - 2: "RUNNING", - 3: "COMPLETE", - 4: "ERROR", - } - PerformBERTResponse_BERTState_value = map[string]int32{ - "UNKNOWN": 0, - "DISABLED": 1, - "RUNNING": 2, - "COMPLETE": 3, - "ERROR": 4, - } -) - -func (x PerformBERTResponse_BERTState) Enum() *PerformBERTResponse_BERTState { - p := new(PerformBERTResponse_BERTState) - *p = x - return p -} - -func (x PerformBERTResponse_BERTState) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (PerformBERTResponse_BERTState) Descriptor() protoreflect.EnumDescriptor { - return file_layer2_layer2_proto_enumTypes[0].Descriptor() -} - -func (PerformBERTResponse_BERTState) Type() protoreflect.EnumType { - return &file_layer2_layer2_proto_enumTypes[0] -} - -func (x PerformBERTResponse_BERTState) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use PerformBERTResponse_BERTState.Descriptor instead. -func (PerformBERTResponse_BERTState) EnumDescriptor() ([]byte, []int) { - return file_layer2_layer2_proto_rawDescGZIP(), []int{5, 0} -} - -type ClearNeighborDiscoveryRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Protocol types.L3Protocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=gnoi.types.L3Protocol" json:"protocol,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` -} - -func (x *ClearNeighborDiscoveryRequest) Reset() { - *x = ClearNeighborDiscoveryRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_layer2_layer2_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ClearNeighborDiscoveryRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ClearNeighborDiscoveryRequest) ProtoMessage() {} - -func (x *ClearNeighborDiscoveryRequest) ProtoReflect() protoreflect.Message { - mi := &file_layer2_layer2_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ClearNeighborDiscoveryRequest.ProtoReflect.Descriptor instead. -func (*ClearNeighborDiscoveryRequest) Descriptor() ([]byte, []int) { - return file_layer2_layer2_proto_rawDescGZIP(), []int{0} -} - -func (x *ClearNeighborDiscoveryRequest) GetProtocol() types.L3Protocol { - if x != nil { - return x.Protocol - } - return types.L3Protocol(0) -} - -func (x *ClearNeighborDiscoveryRequest) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -type ClearNeighborDiscoveryResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ClearNeighborDiscoveryResponse) Reset() { - *x = ClearNeighborDiscoveryResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_layer2_layer2_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ClearNeighborDiscoveryResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ClearNeighborDiscoveryResponse) ProtoMessage() {} - -func (x *ClearNeighborDiscoveryResponse) ProtoReflect() protoreflect.Message { - mi := &file_layer2_layer2_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ClearNeighborDiscoveryResponse.ProtoReflect.Descriptor instead. -func (*ClearNeighborDiscoveryResponse) Descriptor() ([]byte, []int) { - return file_layer2_layer2_proto_rawDescGZIP(), []int{1} -} - -type ClearSpanningTreeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` -} - -func (x *ClearSpanningTreeRequest) Reset() { - *x = ClearSpanningTreeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_layer2_layer2_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ClearSpanningTreeRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ClearSpanningTreeRequest) ProtoMessage() {} - -func (x *ClearSpanningTreeRequest) ProtoReflect() protoreflect.Message { - mi := &file_layer2_layer2_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ClearSpanningTreeRequest.ProtoReflect.Descriptor instead. -func (*ClearSpanningTreeRequest) Descriptor() ([]byte, []int) { - return file_layer2_layer2_proto_rawDescGZIP(), []int{2} -} - -func (x *ClearSpanningTreeRequest) GetInterface() *types.Path { - if x != nil { - return x.Interface - } - return nil -} - -type ClearSpanningTreeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ClearSpanningTreeResponse) Reset() { - *x = ClearSpanningTreeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_layer2_layer2_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ClearSpanningTreeResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ClearSpanningTreeResponse) ProtoMessage() {} - -func (x *ClearSpanningTreeResponse) ProtoReflect() protoreflect.Message { - mi := &file_layer2_layer2_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ClearSpanningTreeResponse.ProtoReflect.Descriptor instead. -func (*ClearSpanningTreeResponse) Descriptor() ([]byte, []int) { - return file_layer2_layer2_proto_rawDescGZIP(), []int{3} -} - -type PerformBERTRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Interface *types.Path `protobuf:"bytes,2,opt,name=interface,proto3" json:"interface,omitempty"` -} - -func (x *PerformBERTRequest) Reset() { - *x = PerformBERTRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_layer2_layer2_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PerformBERTRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PerformBERTRequest) ProtoMessage() {} - -func (x *PerformBERTRequest) ProtoReflect() protoreflect.Message { - mi := &file_layer2_layer2_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PerformBERTRequest.ProtoReflect.Descriptor instead. -func (*PerformBERTRequest) Descriptor() ([]byte, []int) { - return file_layer2_layer2_proto_rawDescGZIP(), []int{4} -} - -func (x *PerformBERTRequest) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *PerformBERTRequest) GetInterface() *types.Path { - if x != nil { - return x.Interface - } - return nil -} - -type PerformBERTResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - State PerformBERTResponse_BERTState `protobuf:"varint,2,opt,name=state,proto3,enum=gnoi.layer2.PerformBERTResponse_BERTState" json:"state,omitempty"` - ElapsedPeriod int64 `protobuf:"varint,3,opt,name=elapsed_period,json=elapsedPeriod,proto3" json:"elapsed_period,omitempty"` - Pattern []byte `protobuf:"bytes,4,opt,name=pattern,proto3" json:"pattern,omitempty"` - Errors int64 `protobuf:"varint,5,opt,name=errors,proto3" json:"errors,omitempty"` - ReceivedBits int64 `protobuf:"varint,6,opt,name=received_bits,json=receivedBits,proto3" json:"received_bits,omitempty"` -} - -func (x *PerformBERTResponse) Reset() { - *x = PerformBERTResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_layer2_layer2_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PerformBERTResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PerformBERTResponse) ProtoMessage() {} - -func (x *PerformBERTResponse) ProtoReflect() protoreflect.Message { - mi := &file_layer2_layer2_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PerformBERTResponse.ProtoReflect.Descriptor instead. -func (*PerformBERTResponse) Descriptor() ([]byte, []int) { - return file_layer2_layer2_proto_rawDescGZIP(), []int{5} -} - -func (x *PerformBERTResponse) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *PerformBERTResponse) GetState() PerformBERTResponse_BERTState { - if x != nil { - return x.State - } - return PerformBERTResponse_UNKNOWN -} - -func (x *PerformBERTResponse) GetElapsedPeriod() int64 { - if x != nil { - return x.ElapsedPeriod - } - return 0 -} - -func (x *PerformBERTResponse) GetPattern() []byte { - if x != nil { - return x.Pattern - } - return nil -} - -func (x *PerformBERTResponse) GetErrors() int64 { - if x != nil { - return x.Errors - } - return 0 -} - -func (x *PerformBERTResponse) GetReceivedBits() int64 { - if x != nil { - return x.ReceivedBits - } - return 0 -} - -type ClearLLDPInterfaceRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` -} - -func (x *ClearLLDPInterfaceRequest) Reset() { - *x = ClearLLDPInterfaceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_layer2_layer2_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ClearLLDPInterfaceRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ClearLLDPInterfaceRequest) ProtoMessage() {} - -func (x *ClearLLDPInterfaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_layer2_layer2_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ClearLLDPInterfaceRequest.ProtoReflect.Descriptor instead. -func (*ClearLLDPInterfaceRequest) Descriptor() ([]byte, []int) { - return file_layer2_layer2_proto_rawDescGZIP(), []int{6} -} - -func (x *ClearLLDPInterfaceRequest) GetInterface() *types.Path { - if x != nil { - return x.Interface - } - return nil -} - -type ClearLLDPInterfaceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ClearLLDPInterfaceResponse) Reset() { - *x = ClearLLDPInterfaceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_layer2_layer2_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ClearLLDPInterfaceResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ClearLLDPInterfaceResponse) ProtoMessage() {} - -func (x *ClearLLDPInterfaceResponse) ProtoReflect() protoreflect.Message { - mi := &file_layer2_layer2_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ClearLLDPInterfaceResponse.ProtoReflect.Descriptor instead. -func (*ClearLLDPInterfaceResponse) Descriptor() ([]byte, []int) { - return file_layer2_layer2_proto_rawDescGZIP(), []int{7} -} - -type SendWakeOnLANRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` - MacAddress []byte `protobuf:"bytes,3,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"` -} - -func (x *SendWakeOnLANRequest) Reset() { - *x = SendWakeOnLANRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_layer2_layer2_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SendWakeOnLANRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SendWakeOnLANRequest) ProtoMessage() {} - -func (x *SendWakeOnLANRequest) ProtoReflect() protoreflect.Message { - mi := &file_layer2_layer2_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SendWakeOnLANRequest.ProtoReflect.Descriptor instead. -func (*SendWakeOnLANRequest) Descriptor() ([]byte, []int) { - return file_layer2_layer2_proto_rawDescGZIP(), []int{8} -} - -func (x *SendWakeOnLANRequest) GetInterface() *types.Path { - if x != nil { - return x.Interface - } - return nil -} - -func (x *SendWakeOnLANRequest) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *SendWakeOnLANRequest) GetMacAddress() []byte { - if x != nil { - return x.MacAddress - } - return nil -} - -type SendWakeOnLANResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *SendWakeOnLANResponse) Reset() { - *x = SendWakeOnLANResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_layer2_layer2_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SendWakeOnLANResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SendWakeOnLANResponse) ProtoMessage() {} - -func (x *SendWakeOnLANResponse) ProtoReflect() protoreflect.Message { - mi := &file_layer2_layer2_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SendWakeOnLANResponse.ProtoReflect.Descriptor instead. -func (*SendWakeOnLANResponse) Descriptor() ([]byte, []int) { - return file_layer2_layer2_proto_rawDescGZIP(), []int{9} -} - -var File_layer2_layer2_proto protoreflect.FileDescriptor - -var file_layer2_layer2_proto_rawDesc = []byte{ - 0x0a, 0x13, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6c, 0x61, 0x79, 0x65, - 0x72, 0x32, 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, - 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0x6d, 0x0a, 0x1d, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, - 0x72, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x32, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x4c, 0x33, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, - 0x20, 0x0a, 0x1e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, 0x72, - 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x4a, 0x0a, 0x18, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x53, 0x70, 0x61, 0x6e, 0x6e, 0x69, - 0x6e, 0x67, 0x54, 0x72, 0x65, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, - 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, - 0x74, 0x68, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x22, 0x1b, 0x0a, - 0x19, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x53, 0x70, 0x61, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x54, 0x72, - 0x65, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x54, 0x0a, 0x12, 0x50, 0x65, - 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x2e, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, - 0x22, 0xb3, 0x02, 0x0a, 0x13, 0x50, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x45, 0x52, 0x54, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x40, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6c, - 0x61, 0x79, 0x65, 0x72, 0x32, 0x2e, 0x50, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x45, 0x52, - 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x45, 0x52, 0x54, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x6c, - 0x61, 0x70, 0x73, 0x65, 0x64, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x0d, 0x65, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x50, 0x65, 0x72, 0x69, 0x6f, - 0x64, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x65, - 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x65, 0x72, 0x72, - 0x6f, 0x72, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x5f, - 0x62, 0x69, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x72, 0x65, 0x63, 0x65, - 0x69, 0x76, 0x65, 0x64, 0x42, 0x69, 0x74, 0x73, 0x22, 0x4c, 0x0a, 0x09, 0x42, 0x45, 0x52, 0x54, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, - 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x01, - 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0c, 0x0a, - 0x08, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x45, - 0x52, 0x52, 0x4f, 0x52, 0x10, 0x04, 0x22, 0x4b, 0x0a, 0x19, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, - 0x4c, 0x44, 0x50, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, - 0x61, 0x63, 0x65, 0x22, 0x1c, 0x0a, 0x1a, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x4c, 0x44, 0x50, - 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x81, 0x01, 0x0a, 0x14, 0x53, 0x65, 0x6e, 0x64, 0x57, 0x61, 0x6b, 0x65, 0x4f, 0x6e, - 0x4c, 0x41, 0x4e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x09, 0x69, 0x6e, - 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, - 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x61, 0x63, 0x5f, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x6d, 0x61, 0x63, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x17, 0x0a, 0x15, 0x53, 0x65, 0x6e, 0x64, 0x57, 0x61, 0x6b, - 0x65, 0x4f, 0x6e, 0x4c, 0x41, 0x4e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xfc, - 0x03, 0x0a, 0x06, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x12, 0x73, 0x0a, 0x16, 0x43, 0x6c, 0x65, - 0x61, 0x72, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, 0x72, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, - 0x65, 0x72, 0x79, 0x12, 0x2a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, - 0x32, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, 0x72, 0x44, - 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x2e, 0x43, 0x6c, - 0x65, 0x61, 0x72, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, 0x72, 0x44, 0x69, 0x73, 0x63, 0x6f, - 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x64, - 0x0a, 0x11, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x53, 0x70, 0x61, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x54, - 0x72, 0x65, 0x65, 0x12, 0x25, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, - 0x32, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x53, 0x70, 0x61, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x54, - 0x72, 0x65, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x53, 0x70, - 0x61, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x65, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x54, 0x0a, 0x0b, 0x50, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x42, - 0x45, 0x52, 0x54, 0x12, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, - 0x32, 0x2e, 0x50, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6c, 0x61, 0x79, 0x65, - 0x72, 0x32, 0x2e, 0x50, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x67, 0x0a, 0x12, 0x43, 0x6c, - 0x65, 0x61, 0x72, 0x4c, 0x4c, 0x44, 0x50, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, - 0x12, 0x26, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x2e, 0x43, - 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x4c, 0x44, 0x50, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x6c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x4c, 0x44, 0x50, - 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x58, 0x0a, 0x0d, 0x53, 0x65, 0x6e, 0x64, 0x57, 0x61, 0x6b, 0x65, 0x4f, - 0x6e, 0x4c, 0x41, 0x4e, 0x12, 0x21, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6c, 0x61, 0x79, 0x65, - 0x72, 0x32, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x57, 0x61, 0x6b, 0x65, 0x4f, 0x6e, 0x4c, 0x41, 0x4e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6c, - 0x61, 0x79, 0x65, 0x72, 0x32, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x57, 0x61, 0x6b, 0x65, 0x4f, 0x6e, - 0x4c, 0x41, 0x4e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x2b, 0xd2, - 0x3e, 0x05, 0x30, 0x2e, 0x31, 0x2e, 0x30, 0x5a, 0x21, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, - 0x6e, 0x6f, 0x69, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, -} - -var ( - file_layer2_layer2_proto_rawDescOnce sync.Once - file_layer2_layer2_proto_rawDescData = file_layer2_layer2_proto_rawDesc -) - -func file_layer2_layer2_proto_rawDescGZIP() []byte { - file_layer2_layer2_proto_rawDescOnce.Do(func() { - file_layer2_layer2_proto_rawDescData = protoimpl.X.CompressGZIP(file_layer2_layer2_proto_rawDescData) - }) - return file_layer2_layer2_proto_rawDescData -} - -var file_layer2_layer2_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_layer2_layer2_proto_msgTypes = make([]protoimpl.MessageInfo, 10) -var file_layer2_layer2_proto_goTypes = []interface{}{ - (PerformBERTResponse_BERTState)(0), // 0: gnoi.layer2.PerformBERTResponse.BERTState - (*ClearNeighborDiscoveryRequest)(nil), // 1: gnoi.layer2.ClearNeighborDiscoveryRequest - (*ClearNeighborDiscoveryResponse)(nil), // 2: gnoi.layer2.ClearNeighborDiscoveryResponse - (*ClearSpanningTreeRequest)(nil), // 3: gnoi.layer2.ClearSpanningTreeRequest - (*ClearSpanningTreeResponse)(nil), // 4: gnoi.layer2.ClearSpanningTreeResponse - (*PerformBERTRequest)(nil), // 5: gnoi.layer2.PerformBERTRequest - (*PerformBERTResponse)(nil), // 6: gnoi.layer2.PerformBERTResponse - (*ClearLLDPInterfaceRequest)(nil), // 7: gnoi.layer2.ClearLLDPInterfaceRequest - (*ClearLLDPInterfaceResponse)(nil), // 8: gnoi.layer2.ClearLLDPInterfaceResponse - (*SendWakeOnLANRequest)(nil), // 9: gnoi.layer2.SendWakeOnLANRequest - (*SendWakeOnLANResponse)(nil), // 10: gnoi.layer2.SendWakeOnLANResponse - (types.L3Protocol)(0), // 11: gnoi.types.L3Protocol - (*types.Path)(nil), // 12: gnoi.types.Path -} -var file_layer2_layer2_proto_depIdxs = []int32{ - 11, // 0: gnoi.layer2.ClearNeighborDiscoveryRequest.protocol:type_name -> gnoi.types.L3Protocol - 12, // 1: gnoi.layer2.ClearSpanningTreeRequest.interface:type_name -> gnoi.types.Path - 12, // 2: gnoi.layer2.PerformBERTRequest.interface:type_name -> gnoi.types.Path - 0, // 3: gnoi.layer2.PerformBERTResponse.state:type_name -> gnoi.layer2.PerformBERTResponse.BERTState - 12, // 4: gnoi.layer2.ClearLLDPInterfaceRequest.interface:type_name -> gnoi.types.Path - 12, // 5: gnoi.layer2.SendWakeOnLANRequest.interface:type_name -> gnoi.types.Path - 1, // 6: gnoi.layer2.Layer2.ClearNeighborDiscovery:input_type -> gnoi.layer2.ClearNeighborDiscoveryRequest - 3, // 7: gnoi.layer2.Layer2.ClearSpanningTree:input_type -> gnoi.layer2.ClearSpanningTreeRequest - 5, // 8: gnoi.layer2.Layer2.PerformBERT:input_type -> gnoi.layer2.PerformBERTRequest - 7, // 9: gnoi.layer2.Layer2.ClearLLDPInterface:input_type -> gnoi.layer2.ClearLLDPInterfaceRequest - 9, // 10: gnoi.layer2.Layer2.SendWakeOnLAN:input_type -> gnoi.layer2.SendWakeOnLANRequest - 2, // 11: gnoi.layer2.Layer2.ClearNeighborDiscovery:output_type -> gnoi.layer2.ClearNeighborDiscoveryResponse - 4, // 12: gnoi.layer2.Layer2.ClearSpanningTree:output_type -> gnoi.layer2.ClearSpanningTreeResponse - 6, // 13: gnoi.layer2.Layer2.PerformBERT:output_type -> gnoi.layer2.PerformBERTResponse - 8, // 14: gnoi.layer2.Layer2.ClearLLDPInterface:output_type -> gnoi.layer2.ClearLLDPInterfaceResponse - 10, // 15: gnoi.layer2.Layer2.SendWakeOnLAN:output_type -> gnoi.layer2.SendWakeOnLANResponse - 11, // [11:16] is the sub-list for method output_type - 6, // [6:11] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name -} - -func init() { file_layer2_layer2_proto_init() } -func file_layer2_layer2_proto_init() { - if File_layer2_layer2_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_layer2_layer2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClearNeighborDiscoveryRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_layer2_layer2_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClearNeighborDiscoveryResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_layer2_layer2_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClearSpanningTreeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_layer2_layer2_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClearSpanningTreeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_layer2_layer2_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PerformBERTRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_layer2_layer2_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PerformBERTResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_layer2_layer2_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClearLLDPInterfaceRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_layer2_layer2_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClearLLDPInterfaceResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_layer2_layer2_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendWakeOnLANRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_layer2_layer2_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendWakeOnLANResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_layer2_layer2_proto_rawDesc, - NumEnums: 1, - NumMessages: 10, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_layer2_layer2_proto_goTypes, - DependencyIndexes: file_layer2_layer2_proto_depIdxs, - EnumInfos: file_layer2_layer2_proto_enumTypes, - MessageInfos: file_layer2_layer2_proto_msgTypes, - }.Build() - File_layer2_layer2_proto = out.File - file_layer2_layer2_proto_rawDesc = nil - file_layer2_layer2_proto_goTypes = nil - file_layer2_layer2_proto_depIdxs = nil -} diff --git a/src/sonic-framework/gnoi/layer2/layer2.proto b/src/sonic-framework/gnoi/layer2/layer2.proto deleted file mode 100644 index 552ac29c3cac..000000000000 --- a/src/sonic-framework/gnoi/layer2/layer2.proto +++ /dev/null @@ -1,112 +0,0 @@ -// -// Copyright 2017 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.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 gnoi.layer2; - -import "github.com/openconfig/gnoi/types/types.proto"; - -option go_package = "github.com/openconfig/gnoi/layer2"; - -option (types.gnoi_version) = "0.1.0"; - -service Layer2 { - // ClearNeighborDiscovery will clear either a specific neighbor entry or - // clear the entire table based on parameters provided. - // TODO: This method is subject to deprecation once OpenConfig models this - // state. - rpc ClearNeighborDiscovery(ClearNeighborDiscoveryRequest) - returns (ClearNeighborDiscoveryResponse) {} - - // ClearSpanningTree will reset a blocked spanning tree interface. - // TODO: This method is subject to deprecation once OpenConfig models this - // state. - rpc ClearSpanningTree(ClearSpanningTreeRequest) - returns (ClearSpanningTreeResponse) {} - - // PerformBERT will perform a BERT operation on a port. The stream will - // return the current state of the operation as well as the ID for the - // operation. - rpc PerformBERT(PerformBERTRequest) - returns (stream PerformBERTResponse) {} - - // ClearLLDPInterface will clear all LLDP adjacencies on the provided - // interface. - rpc ClearLLDPInterface(ClearLLDPInterfaceRequest) - returns (ClearLLDPInterfaceResponse) {} - - // SendWakeOnLAN will send a WOL event on the requested interface. - rpc SendWakeOnLAN(SendWakeOnLANRequest) - returns (SendWakeOnLANResponse) {} - -} - -message ClearNeighborDiscoveryRequest { - types.L3Protocol protocol = 1; - string address = 2; -} - -message ClearNeighborDiscoveryResponse { -} - - -message ClearSpanningTreeRequest { - types.Path interface = 1; -} - -message ClearSpanningTreeResponse { -} - -message PerformBERTRequest { - // ID for retrieving a previous BERT run data - optional. - string id = 1; - types.Path interface = 2; -} - -message PerformBERTResponse { - string id = 1; - enum BERTState { - UNKNOWN = 0; - DISABLED = 1; - RUNNING = 2; - COMPLETE = 3; - ERROR = 4; - } - BERTState state = 2; - int64 elapsed_period = 3; // BERT test length in nanoseconds. - bytes pattern = 4; // Pattern used for the BERT test. - // Number of errors experienced since the start of the BERT test. - int64 errors = 5; - // Number of bits received since the start of the BERT test. - int64 received_bits = 6; -} - -message ClearLLDPInterfaceRequest { - types.Path interface = 1; -} - -message ClearLLDPInterfaceResponse { -} - -message SendWakeOnLANRequest { - types.Path interface = 1; - string address = 2; // IP address of the WOL target. - bytes mac_address = 3; // MAC address of the target. -} - -message SendWakeOnLANResponse { -} diff --git a/src/sonic-framework/gnoi/layer2/layer2_grpc.pb.go b/src/sonic-framework/gnoi/layer2/layer2_grpc.pb.go deleted file mode 100755 index 1690a8c590d3..000000000000 --- a/src/sonic-framework/gnoi/layer2/layer2_grpc.pb.go +++ /dev/null @@ -1,277 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.21.10 -// source: layer2/layer2.proto - -package layer2 - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// Layer2Client is the client API for Layer2 service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type Layer2Client interface { - ClearNeighborDiscovery(ctx context.Context, in *ClearNeighborDiscoveryRequest, opts ...grpc.CallOption) (*ClearNeighborDiscoveryResponse, error) - ClearSpanningTree(ctx context.Context, in *ClearSpanningTreeRequest, opts ...grpc.CallOption) (*ClearSpanningTreeResponse, error) - PerformBERT(ctx context.Context, in *PerformBERTRequest, opts ...grpc.CallOption) (Layer2_PerformBERTClient, error) - ClearLLDPInterface(ctx context.Context, in *ClearLLDPInterfaceRequest, opts ...grpc.CallOption) (*ClearLLDPInterfaceResponse, error) - SendWakeOnLAN(ctx context.Context, in *SendWakeOnLANRequest, opts ...grpc.CallOption) (*SendWakeOnLANResponse, error) -} - -type layer2Client struct { - cc grpc.ClientConnInterface -} - -func NewLayer2Client(cc grpc.ClientConnInterface) Layer2Client { - return &layer2Client{cc} -} - -func (c *layer2Client) ClearNeighborDiscovery(ctx context.Context, in *ClearNeighborDiscoveryRequest, opts ...grpc.CallOption) (*ClearNeighborDiscoveryResponse, error) { - out := new(ClearNeighborDiscoveryResponse) - err := c.cc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearNeighborDiscovery", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *layer2Client) ClearSpanningTree(ctx context.Context, in *ClearSpanningTreeRequest, opts ...grpc.CallOption) (*ClearSpanningTreeResponse, error) { - out := new(ClearSpanningTreeResponse) - err := c.cc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearSpanningTree", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *layer2Client) PerformBERT(ctx context.Context, in *PerformBERTRequest, opts ...grpc.CallOption) (Layer2_PerformBERTClient, error) { - stream, err := c.cc.NewStream(ctx, &Layer2_ServiceDesc.Streams[0], "/gnoi.layer2.Layer2/PerformBERT", opts...) - if err != nil { - return nil, err - } - x := &layer2PerformBERTClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type Layer2_PerformBERTClient interface { - Recv() (*PerformBERTResponse, error) - grpc.ClientStream -} - -type layer2PerformBERTClient struct { - grpc.ClientStream -} - -func (x *layer2PerformBERTClient) Recv() (*PerformBERTResponse, error) { - m := new(PerformBERTResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *layer2Client) ClearLLDPInterface(ctx context.Context, in *ClearLLDPInterfaceRequest, opts ...grpc.CallOption) (*ClearLLDPInterfaceResponse, error) { - out := new(ClearLLDPInterfaceResponse) - err := c.cc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearLLDPInterface", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *layer2Client) SendWakeOnLAN(ctx context.Context, in *SendWakeOnLANRequest, opts ...grpc.CallOption) (*SendWakeOnLANResponse, error) { - out := new(SendWakeOnLANResponse) - err := c.cc.Invoke(ctx, "/gnoi.layer2.Layer2/SendWakeOnLAN", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Layer2Server is the server API for Layer2 service. -// All implementations must embed UnimplementedLayer2Server -// for forward compatibility -type Layer2Server interface { - ClearNeighborDiscovery(context.Context, *ClearNeighborDiscoveryRequest) (*ClearNeighborDiscoveryResponse, error) - ClearSpanningTree(context.Context, *ClearSpanningTreeRequest) (*ClearSpanningTreeResponse, error) - PerformBERT(*PerformBERTRequest, Layer2_PerformBERTServer) error - ClearLLDPInterface(context.Context, *ClearLLDPInterfaceRequest) (*ClearLLDPInterfaceResponse, error) - SendWakeOnLAN(context.Context, *SendWakeOnLANRequest) (*SendWakeOnLANResponse, error) - mustEmbedUnimplementedLayer2Server() -} - -// UnimplementedLayer2Server must be embedded to have forward compatible implementations. -type UnimplementedLayer2Server struct { -} - -func (UnimplementedLayer2Server) ClearNeighborDiscovery(context.Context, *ClearNeighborDiscoveryRequest) (*ClearNeighborDiscoveryResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ClearNeighborDiscovery not implemented") -} -func (UnimplementedLayer2Server) ClearSpanningTree(context.Context, *ClearSpanningTreeRequest) (*ClearSpanningTreeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ClearSpanningTree not implemented") -} -func (UnimplementedLayer2Server) PerformBERT(*PerformBERTRequest, Layer2_PerformBERTServer) error { - return status.Errorf(codes.Unimplemented, "method PerformBERT not implemented") -} -func (UnimplementedLayer2Server) ClearLLDPInterface(context.Context, *ClearLLDPInterfaceRequest) (*ClearLLDPInterfaceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ClearLLDPInterface not implemented") -} -func (UnimplementedLayer2Server) SendWakeOnLAN(context.Context, *SendWakeOnLANRequest) (*SendWakeOnLANResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SendWakeOnLAN not implemented") -} -func (UnimplementedLayer2Server) mustEmbedUnimplementedLayer2Server() {} - -// UnsafeLayer2Server may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to Layer2Server will -// result in compilation errors. -type UnsafeLayer2Server interface { - mustEmbedUnimplementedLayer2Server() -} - -func RegisterLayer2Server(s grpc.ServiceRegistrar, srv Layer2Server) { - s.RegisterService(&Layer2_ServiceDesc, srv) -} - -func _Layer2_ClearNeighborDiscovery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClearNeighborDiscoveryRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(Layer2Server).ClearNeighborDiscovery(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.layer2.Layer2/ClearNeighborDiscovery", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(Layer2Server).ClearNeighborDiscovery(ctx, req.(*ClearNeighborDiscoveryRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Layer2_ClearSpanningTree_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClearSpanningTreeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(Layer2Server).ClearSpanningTree(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.layer2.Layer2/ClearSpanningTree", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(Layer2Server).ClearSpanningTree(ctx, req.(*ClearSpanningTreeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Layer2_PerformBERT_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(PerformBERTRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(Layer2Server).PerformBERT(m, &layer2PerformBERTServer{stream}) -} - -type Layer2_PerformBERTServer interface { - Send(*PerformBERTResponse) error - grpc.ServerStream -} - -type layer2PerformBERTServer struct { - grpc.ServerStream -} - -func (x *layer2PerformBERTServer) Send(m *PerformBERTResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _Layer2_ClearLLDPInterface_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClearLLDPInterfaceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(Layer2Server).ClearLLDPInterface(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.layer2.Layer2/ClearLLDPInterface", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(Layer2Server).ClearLLDPInterface(ctx, req.(*ClearLLDPInterfaceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Layer2_SendWakeOnLAN_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SendWakeOnLANRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(Layer2Server).SendWakeOnLAN(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.layer2.Layer2/SendWakeOnLAN", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(Layer2Server).SendWakeOnLAN(ctx, req.(*SendWakeOnLANRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// Layer2_ServiceDesc is the grpc.ServiceDesc for Layer2 service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Layer2_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.layer2.Layer2", - HandlerType: (*Layer2Server)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ClearNeighborDiscovery", - Handler: _Layer2_ClearNeighborDiscovery_Handler, - }, - { - MethodName: "ClearSpanningTree", - Handler: _Layer2_ClearSpanningTree_Handler, - }, - { - MethodName: "ClearLLDPInterface", - Handler: _Layer2_ClearLLDPInterface_Handler, - }, - { - MethodName: "SendWakeOnLAN", - Handler: _Layer2_SendWakeOnLAN_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "PerformBERT", - Handler: _Layer2_PerformBERT_Handler, - ServerStreams: true, - }, - }, - Metadata: "layer2/layer2.proto", -} diff --git a/src/sonic-framework/gnoi/mpls/BUILD.bazel b/src/sonic-framework/gnoi/mpls/BUILD.bazel deleted file mode 100644 index 3406775e9a95..000000000000 --- a/src/sonic-framework/gnoi/mpls/BUILD.bazel +++ /dev/null @@ -1,61 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") -load("//:common.bzl", "use_new_compilers") - -#Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# 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. - -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -use_new_compilers() - -proto_library( - name = "mpls_proto", - srcs = ["mpls.proto"], - deps = ["//types:types_proto"], -) - -cc_proto_library( - name = "mpls_cc_proto", - deps = [":mpls_proto"], -) - -cc_grpc_library( - name = "mpls_cc_grpc_proto", - srcs = [":mpls_proto"], - grpc_only = True, - deps = [":mpls_cc_proto"], -) - -go_proto_library( - name = "mpls_go_proto", - compilers = [ - "go_protoc_gen_go", - "go_protoc_gen_go_grpc", - ], - importpath = "github.com/openconfig/gnoi/mpls", - proto = ":mpls_proto", - deps = ["//types"], -) - -go_library( - name = "mpls", - embed = [":mpls_go_proto"], - importpath = "github.com/openconfig/gnoi/mpls", -) diff --git a/src/sonic-framework/gnoi/mpls/mpls.pb.go b/src/sonic-framework/gnoi/mpls/mpls.pb.go deleted file mode 100644 index d87f09ce54ec..000000000000 --- a/src/sonic-framework/gnoi/mpls/mpls.pb.go +++ /dev/null @@ -1,970 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v3.21.10 -// source: mpls/mpls.proto - -package mpls - -import ( - _ "github.com/openconfig/gnoi/types" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type ClearLSPRequest_Mode int32 - -const ( - ClearLSPRequest_DEFAULT ClearLSPRequest_Mode = 0 - ClearLSPRequest_NONAGGRESSIVE ClearLSPRequest_Mode = 0 - ClearLSPRequest_AGGRESSIVE ClearLSPRequest_Mode = 1 - ClearLSPRequest_RESET ClearLSPRequest_Mode = 2 - ClearLSPRequest_AUTOBW_AGGRESSIVE ClearLSPRequest_Mode = 3 - ClearLSPRequest_AUTOBW_NONAGGRESSIVE ClearLSPRequest_Mode = 4 -) - -// Enum value maps for ClearLSPRequest_Mode. -var ( - ClearLSPRequest_Mode_name = map[int32]string{ - 0: "DEFAULT", - // Duplicate value: 0: "NONAGGRESSIVE", - 1: "AGGRESSIVE", - 2: "RESET", - 3: "AUTOBW_AGGRESSIVE", - 4: "AUTOBW_NONAGGRESSIVE", - } - ClearLSPRequest_Mode_value = map[string]int32{ - "DEFAULT": 0, - "NONAGGRESSIVE": 0, - "AGGRESSIVE": 1, - "RESET": 2, - "AUTOBW_AGGRESSIVE": 3, - "AUTOBW_NONAGGRESSIVE": 4, - } -) - -func (x ClearLSPRequest_Mode) Enum() *ClearLSPRequest_Mode { - p := new(ClearLSPRequest_Mode) - *p = x - return p -} - -func (x ClearLSPRequest_Mode) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ClearLSPRequest_Mode) Descriptor() protoreflect.EnumDescriptor { - return file_mpls_mpls_proto_enumTypes[0].Descriptor() -} - -func (ClearLSPRequest_Mode) Type() protoreflect.EnumType { - return &file_mpls_mpls_proto_enumTypes[0] -} - -func (x ClearLSPRequest_Mode) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ClearLSPRequest_Mode.Descriptor instead. -func (ClearLSPRequest_Mode) EnumDescriptor() ([]byte, []int) { - return file_mpls_mpls_proto_rawDescGZIP(), []int{0, 0} -} - -type MPLSPingRequest_ReplyMode int32 - -const ( - MPLSPingRequest_IPV4 MPLSPingRequest_ReplyMode = 0 - MPLSPingRequest_ROUTER_ALERT MPLSPingRequest_ReplyMode = 1 -) - -// Enum value maps for MPLSPingRequest_ReplyMode. -var ( - MPLSPingRequest_ReplyMode_name = map[int32]string{ - 0: "IPV4", - 1: "ROUTER_ALERT", - } - MPLSPingRequest_ReplyMode_value = map[string]int32{ - "IPV4": 0, - "ROUTER_ALERT": 1, - } -) - -func (x MPLSPingRequest_ReplyMode) Enum() *MPLSPingRequest_ReplyMode { - p := new(MPLSPingRequest_ReplyMode) - *p = x - return p -} - -func (x MPLSPingRequest_ReplyMode) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (MPLSPingRequest_ReplyMode) Descriptor() protoreflect.EnumDescriptor { - return file_mpls_mpls_proto_enumTypes[1].Descriptor() -} - -func (MPLSPingRequest_ReplyMode) Type() protoreflect.EnumType { - return &file_mpls_mpls_proto_enumTypes[1] -} - -func (x MPLSPingRequest_ReplyMode) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use MPLSPingRequest_ReplyMode.Descriptor instead. -func (MPLSPingRequest_ReplyMode) EnumDescriptor() ([]byte, []int) { - return file_mpls_mpls_proto_rawDescGZIP(), []int{6, 0} -} - -type MPLSPingResponse_EchoResponseCode int32 - -const ( - MPLSPingResponse_SUCCESS MPLSPingResponse_EchoResponseCode = 0 - MPLSPingResponse_NOT_SENT MPLSPingResponse_EchoResponseCode = 1 - MPLSPingResponse_TIMEOUT MPLSPingResponse_EchoResponseCode = 2 -) - -// Enum value maps for MPLSPingResponse_EchoResponseCode. -var ( - MPLSPingResponse_EchoResponseCode_name = map[int32]string{ - 0: "SUCCESS", - 1: "NOT_SENT", - 2: "TIMEOUT", - } - MPLSPingResponse_EchoResponseCode_value = map[string]int32{ - "SUCCESS": 0, - "NOT_SENT": 1, - "TIMEOUT": 2, - } -) - -func (x MPLSPingResponse_EchoResponseCode) Enum() *MPLSPingResponse_EchoResponseCode { - p := new(MPLSPingResponse_EchoResponseCode) - *p = x - return p -} - -func (x MPLSPingResponse_EchoResponseCode) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (MPLSPingResponse_EchoResponseCode) Descriptor() protoreflect.EnumDescriptor { - return file_mpls_mpls_proto_enumTypes[2].Descriptor() -} - -func (MPLSPingResponse_EchoResponseCode) Type() protoreflect.EnumType { - return &file_mpls_mpls_proto_enumTypes[2] -} - -func (x MPLSPingResponse_EchoResponseCode) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use MPLSPingResponse_EchoResponseCode.Descriptor instead. -func (MPLSPingResponse_EchoResponseCode) EnumDescriptor() ([]byte, []int) { - return file_mpls_mpls_proto_rawDescGZIP(), []int{7, 0} -} - -type ClearLSPRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Mode ClearLSPRequest_Mode `protobuf:"varint,3,opt,name=mode,proto3,enum=gnoi.mpls.ClearLSPRequest_Mode" json:"mode,omitempty"` -} - -func (x *ClearLSPRequest) Reset() { - *x = ClearLSPRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_mpls_mpls_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ClearLSPRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ClearLSPRequest) ProtoMessage() {} - -func (x *ClearLSPRequest) ProtoReflect() protoreflect.Message { - mi := &file_mpls_mpls_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ClearLSPRequest.ProtoReflect.Descriptor instead. -func (*ClearLSPRequest) Descriptor() ([]byte, []int) { - return file_mpls_mpls_proto_rawDescGZIP(), []int{0} -} - -func (x *ClearLSPRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *ClearLSPRequest) GetMode() ClearLSPRequest_Mode { - if x != nil { - return x.Mode - } - return ClearLSPRequest_DEFAULT -} - -type ClearLSPResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ClearLSPResponse) Reset() { - *x = ClearLSPResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_mpls_mpls_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ClearLSPResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ClearLSPResponse) ProtoMessage() {} - -func (x *ClearLSPResponse) ProtoReflect() protoreflect.Message { - mi := &file_mpls_mpls_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ClearLSPResponse.ProtoReflect.Descriptor instead. -func (*ClearLSPResponse) Descriptor() ([]byte, []int) { - return file_mpls_mpls_proto_rawDescGZIP(), []int{1} -} - -type ClearLSPCountersRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *ClearLSPCountersRequest) Reset() { - *x = ClearLSPCountersRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_mpls_mpls_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ClearLSPCountersRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ClearLSPCountersRequest) ProtoMessage() {} - -func (x *ClearLSPCountersRequest) ProtoReflect() protoreflect.Message { - mi := &file_mpls_mpls_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ClearLSPCountersRequest.ProtoReflect.Descriptor instead. -func (*ClearLSPCountersRequest) Descriptor() ([]byte, []int) { - return file_mpls_mpls_proto_rawDescGZIP(), []int{2} -} - -func (x *ClearLSPCountersRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -type ClearLSPCountersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ClearLSPCountersResponse) Reset() { - *x = ClearLSPCountersResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_mpls_mpls_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ClearLSPCountersResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ClearLSPCountersResponse) ProtoMessage() {} - -func (x *ClearLSPCountersResponse) ProtoReflect() protoreflect.Message { - mi := &file_mpls_mpls_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ClearLSPCountersResponse.ProtoReflect.Descriptor instead. -func (*ClearLSPCountersResponse) Descriptor() ([]byte, []int) { - return file_mpls_mpls_proto_rawDescGZIP(), []int{3} -} - -type MPLSPingPWEDestination struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Eler string `protobuf:"bytes,1,opt,name=eler,proto3" json:"eler,omitempty"` - Vcid uint32 `protobuf:"varint,2,opt,name=vcid,proto3" json:"vcid,omitempty"` -} - -func (x *MPLSPingPWEDestination) Reset() { - *x = MPLSPingPWEDestination{} - if protoimpl.UnsafeEnabled { - mi := &file_mpls_mpls_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MPLSPingPWEDestination) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MPLSPingPWEDestination) ProtoMessage() {} - -func (x *MPLSPingPWEDestination) ProtoReflect() protoreflect.Message { - mi := &file_mpls_mpls_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MPLSPingPWEDestination.ProtoReflect.Descriptor instead. -func (*MPLSPingPWEDestination) Descriptor() ([]byte, []int) { - return file_mpls_mpls_proto_rawDescGZIP(), []int{4} -} - -func (x *MPLSPingPWEDestination) GetEler() string { - if x != nil { - return x.Eler - } - return "" -} - -func (x *MPLSPingPWEDestination) GetVcid() uint32 { - if x != nil { - return x.Vcid - } - return 0 -} - -type MPLSPingRSVPTEDestination struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Src string `protobuf:"bytes,1,opt,name=src,proto3" json:"src,omitempty"` - Dst string `protobuf:"bytes,2,opt,name=dst,proto3" json:"dst,omitempty"` - ExtendedTunnelId uint32 `protobuf:"varint,3,opt,name=extended_tunnel_id,json=extendedTunnelId,proto3" json:"extended_tunnel_id,omitempty"` -} - -func (x *MPLSPingRSVPTEDestination) Reset() { - *x = MPLSPingRSVPTEDestination{} - if protoimpl.UnsafeEnabled { - mi := &file_mpls_mpls_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MPLSPingRSVPTEDestination) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MPLSPingRSVPTEDestination) ProtoMessage() {} - -func (x *MPLSPingRSVPTEDestination) ProtoReflect() protoreflect.Message { - mi := &file_mpls_mpls_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MPLSPingRSVPTEDestination.ProtoReflect.Descriptor instead. -func (*MPLSPingRSVPTEDestination) Descriptor() ([]byte, []int) { - return file_mpls_mpls_proto_rawDescGZIP(), []int{5} -} - -func (x *MPLSPingRSVPTEDestination) GetSrc() string { - if x != nil { - return x.Src - } - return "" -} - -func (x *MPLSPingRSVPTEDestination) GetDst() string { - if x != nil { - return x.Dst - } - return "" -} - -func (x *MPLSPingRSVPTEDestination) GetExtendedTunnelId() uint32 { - if x != nil { - return x.ExtendedTunnelId - } - return 0 -} - -type MPLSPingRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Destination: - // - // *MPLSPingRequest_LdpFec - // *MPLSPingRequest_Fec129Pwe - // *MPLSPingRequest_RsvpteLspName - // *MPLSPingRequest_RsvpteLsp - Destination isMPLSPingRequest_Destination `protobuf_oneof:"destination"` - ReplyMode MPLSPingRequest_ReplyMode `protobuf:"varint,6,opt,name=reply_mode,json=replyMode,proto3,enum=gnoi.mpls.MPLSPingRequest_ReplyMode" json:"reply_mode,omitempty"` - Count uint32 `protobuf:"varint,7,opt,name=count,proto3" json:"count,omitempty"` - Size uint32 `protobuf:"varint,8,opt,name=size,proto3" json:"size,omitempty"` - SourceAddress string `protobuf:"bytes,9,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"` - MplsTtl uint32 `protobuf:"varint,10,opt,name=mpls_ttl,json=mplsTtl,proto3" json:"mpls_ttl,omitempty"` - TrafficClass uint32 `protobuf:"varint,11,opt,name=traffic_class,json=trafficClass,proto3" json:"traffic_class,omitempty"` -} - -func (x *MPLSPingRequest) Reset() { - *x = MPLSPingRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_mpls_mpls_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MPLSPingRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MPLSPingRequest) ProtoMessage() {} - -func (x *MPLSPingRequest) ProtoReflect() protoreflect.Message { - mi := &file_mpls_mpls_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MPLSPingRequest.ProtoReflect.Descriptor instead. -func (*MPLSPingRequest) Descriptor() ([]byte, []int) { - return file_mpls_mpls_proto_rawDescGZIP(), []int{6} -} - -func (m *MPLSPingRequest) GetDestination() isMPLSPingRequest_Destination { - if m != nil { - return m.Destination - } - return nil -} - -func (x *MPLSPingRequest) GetLdpFec() string { - if x, ok := x.GetDestination().(*MPLSPingRequest_LdpFec); ok { - return x.LdpFec - } - return "" -} - -func (x *MPLSPingRequest) GetFec129Pwe() *MPLSPingPWEDestination { - if x, ok := x.GetDestination().(*MPLSPingRequest_Fec129Pwe); ok { - return x.Fec129Pwe - } - return nil -} - -func (x *MPLSPingRequest) GetRsvpteLspName() string { - if x, ok := x.GetDestination().(*MPLSPingRequest_RsvpteLspName); ok { - return x.RsvpteLspName - } - return "" -} - -func (x *MPLSPingRequest) GetRsvpteLsp() *MPLSPingRSVPTEDestination { - if x, ok := x.GetDestination().(*MPLSPingRequest_RsvpteLsp); ok { - return x.RsvpteLsp - } - return nil -} - -func (x *MPLSPingRequest) GetReplyMode() MPLSPingRequest_ReplyMode { - if x != nil { - return x.ReplyMode - } - return MPLSPingRequest_IPV4 -} - -func (x *MPLSPingRequest) GetCount() uint32 { - if x != nil { - return x.Count - } - return 0 -} - -func (x *MPLSPingRequest) GetSize() uint32 { - if x != nil { - return x.Size - } - return 0 -} - -func (x *MPLSPingRequest) GetSourceAddress() string { - if x != nil { - return x.SourceAddress - } - return "" -} - -func (x *MPLSPingRequest) GetMplsTtl() uint32 { - if x != nil { - return x.MplsTtl - } - return 0 -} - -func (x *MPLSPingRequest) GetTrafficClass() uint32 { - if x != nil { - return x.TrafficClass - } - return 0 -} - -type isMPLSPingRequest_Destination interface { - isMPLSPingRequest_Destination() -} - -type MPLSPingRequest_LdpFec struct { - LdpFec string `protobuf:"bytes,1,opt,name=ldp_fec,json=ldpFec,proto3,oneof"` -} - -type MPLSPingRequest_Fec129Pwe struct { - Fec129Pwe *MPLSPingPWEDestination `protobuf:"bytes,2,opt,name=fec129_pwe,json=fec129Pwe,proto3,oneof"` -} - -type MPLSPingRequest_RsvpteLspName struct { - RsvpteLspName string `protobuf:"bytes,4,opt,name=rsvpte_lsp_name,json=rsvpteLspName,proto3,oneof"` -} - -type MPLSPingRequest_RsvpteLsp struct { - RsvpteLsp *MPLSPingRSVPTEDestination `protobuf:"bytes,5,opt,name=rsvpte_lsp,json=rsvpteLsp,proto3,oneof"` -} - -func (*MPLSPingRequest_LdpFec) isMPLSPingRequest_Destination() {} - -func (*MPLSPingRequest_Fec129Pwe) isMPLSPingRequest_Destination() {} - -func (*MPLSPingRequest_RsvpteLspName) isMPLSPingRequest_Destination() {} - -func (*MPLSPingRequest_RsvpteLsp) isMPLSPingRequest_Destination() {} - -type MPLSPingResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Seq uint32 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"` - Response MPLSPingResponse_EchoResponseCode `protobuf:"varint,2,opt,name=response,proto3,enum=gnoi.mpls.MPLSPingResponse_EchoResponseCode" json:"response,omitempty"` - ResponseTime uint64 `protobuf:"varint,3,opt,name=response_time,json=responseTime,proto3" json:"response_time,omitempty"` -} - -func (x *MPLSPingResponse) Reset() { - *x = MPLSPingResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_mpls_mpls_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MPLSPingResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MPLSPingResponse) ProtoMessage() {} - -func (x *MPLSPingResponse) ProtoReflect() protoreflect.Message { - mi := &file_mpls_mpls_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MPLSPingResponse.ProtoReflect.Descriptor instead. -func (*MPLSPingResponse) Descriptor() ([]byte, []int) { - return file_mpls_mpls_proto_rawDescGZIP(), []int{7} -} - -func (x *MPLSPingResponse) GetSeq() uint32 { - if x != nil { - return x.Seq - } - return 0 -} - -func (x *MPLSPingResponse) GetResponse() MPLSPingResponse_EchoResponseCode { - if x != nil { - return x.Response - } - return MPLSPingResponse_SUCCESS -} - -func (x *MPLSPingResponse) GetResponseTime() uint64 { - if x != nil { - return x.ResponseTime - } - return 0 -} - -var File_mpls_mpls_proto protoreflect.FileDescriptor - -var file_mpls_mpls_proto_rawDesc = []byte{ - 0x0a, 0x0f, 0x6d, 0x70, 0x6c, 0x73, 0x2f, 0x6d, 0x70, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x09, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6d, 0x70, 0x6c, 0x73, 0x1a, 0x2c, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd2, 0x01, 0x0a, 0x0f, 0x43, - 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x53, 0x50, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, - 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6d, 0x70, 0x6c, 0x73, 0x2e, 0x43, 0x6c, 0x65, - 0x61, 0x72, 0x4c, 0x53, 0x50, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x6f, 0x64, - 0x65, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x22, 0x76, 0x0a, 0x04, 0x4d, 0x6f, 0x64, 0x65, 0x12, - 0x0b, 0x0a, 0x07, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, - 0x4e, 0x4f, 0x4e, 0x41, 0x47, 0x47, 0x52, 0x45, 0x53, 0x53, 0x49, 0x56, 0x45, 0x10, 0x00, 0x12, - 0x0e, 0x0a, 0x0a, 0x41, 0x47, 0x47, 0x52, 0x45, 0x53, 0x53, 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, - 0x09, 0x0a, 0x05, 0x52, 0x45, 0x53, 0x45, 0x54, 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x41, 0x55, - 0x54, 0x4f, 0x42, 0x57, 0x5f, 0x41, 0x47, 0x47, 0x52, 0x45, 0x53, 0x53, 0x49, 0x56, 0x45, 0x10, - 0x03, 0x12, 0x18, 0x0a, 0x14, 0x41, 0x55, 0x54, 0x4f, 0x42, 0x57, 0x5f, 0x4e, 0x4f, 0x4e, 0x41, - 0x47, 0x47, 0x52, 0x45, 0x53, 0x53, 0x49, 0x56, 0x45, 0x10, 0x04, 0x1a, 0x02, 0x10, 0x01, 0x22, - 0x12, 0x0a, 0x10, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x53, 0x50, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x0a, 0x17, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x53, 0x50, 0x43, - 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, - 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x22, 0x1a, 0x0a, 0x18, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x53, 0x50, 0x43, 0x6f, - 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x40, - 0x0a, 0x16, 0x4d, 0x50, 0x4c, 0x53, 0x50, 0x69, 0x6e, 0x67, 0x50, 0x57, 0x45, 0x44, 0x65, 0x73, - 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x6c, 0x65, 0x72, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x6c, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, - 0x76, 0x63, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x76, 0x63, 0x69, 0x64, - 0x22, 0x6d, 0x0a, 0x19, 0x4d, 0x50, 0x4c, 0x53, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x53, 0x56, 0x50, - 0x54, 0x45, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, - 0x03, 0x73, 0x72, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x72, 0x63, 0x12, - 0x10, 0x0a, 0x03, 0x64, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x73, - 0x74, 0x12, 0x2c, 0x0a, 0x12, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x5f, 0x74, 0x75, - 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x10, 0x65, - 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x22, - 0xef, 0x03, 0x0a, 0x0f, 0x4d, 0x50, 0x4c, 0x53, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x07, 0x6c, 0x64, 0x70, 0x5f, 0x66, 0x65, 0x63, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x6c, 0x64, 0x70, 0x46, 0x65, 0x63, 0x12, 0x42, - 0x0a, 0x0a, 0x66, 0x65, 0x63, 0x31, 0x32, 0x39, 0x5f, 0x70, 0x77, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6d, 0x70, 0x6c, 0x73, 0x2e, 0x4d, - 0x50, 0x4c, 0x53, 0x50, 0x69, 0x6e, 0x67, 0x50, 0x57, 0x45, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x09, 0x66, 0x65, 0x63, 0x31, 0x32, 0x39, 0x50, - 0x77, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x72, 0x73, 0x76, 0x70, 0x74, 0x65, 0x5f, 0x6c, 0x73, 0x70, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0d, 0x72, - 0x73, 0x76, 0x70, 0x74, 0x65, 0x4c, 0x73, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x45, 0x0a, 0x0a, - 0x72, 0x73, 0x76, 0x70, 0x74, 0x65, 0x5f, 0x6c, 0x73, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x24, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6d, 0x70, 0x6c, 0x73, 0x2e, 0x4d, 0x50, 0x4c, - 0x53, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x53, 0x56, 0x50, 0x54, 0x45, 0x44, 0x65, 0x73, 0x74, 0x69, - 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x09, 0x72, 0x73, 0x76, 0x70, 0x74, 0x65, - 0x4c, 0x73, 0x70, 0x12, 0x43, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x5f, 0x6d, 0x6f, 0x64, - 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6d, - 0x70, 0x6c, 0x73, 0x2e, 0x4d, 0x50, 0x4c, 0x53, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x09, 0x72, - 0x65, 0x70, 0x6c, 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, - 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x69, - 0x7a, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x70, 0x6c, - 0x73, 0x5f, 0x74, 0x74, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x6d, 0x70, 0x6c, - 0x73, 0x54, 0x74, 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x5f, - 0x63, 0x6c, 0x61, 0x73, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x74, 0x72, 0x61, - 0x66, 0x66, 0x69, 0x63, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x22, 0x27, 0x0a, 0x09, 0x52, 0x65, 0x70, - 0x6c, 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x50, 0x56, 0x34, 0x10, 0x00, - 0x12, 0x10, 0x0a, 0x0c, 0x52, 0x4f, 0x55, 0x54, 0x45, 0x52, 0x5f, 0x41, 0x4c, 0x45, 0x52, 0x54, - 0x10, 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x22, 0xcf, 0x01, 0x0a, 0x10, 0x4d, 0x50, 0x4c, 0x53, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x71, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x03, 0x73, 0x65, 0x71, 0x12, 0x48, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x6d, 0x70, 0x6c, 0x73, 0x2e, 0x4d, 0x50, 0x4c, 0x53, 0x50, 0x69, 0x6e, 0x67, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x74, - 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x3a, 0x0a, 0x10, 0x45, 0x63, 0x68, 0x6f, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x53, - 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x4e, 0x4f, 0x54, 0x5f, - 0x53, 0x45, 0x4e, 0x54, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x54, 0x49, 0x4d, 0x45, 0x4f, 0x55, - 0x54, 0x10, 0x02, 0x32, 0xf5, 0x01, 0x0a, 0x04, 0x4d, 0x50, 0x4c, 0x53, 0x12, 0x45, 0x0a, 0x08, - 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x53, 0x50, 0x12, 0x1a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x6d, 0x70, 0x6c, 0x73, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x53, 0x50, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6d, 0x70, 0x6c, 0x73, - 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x53, 0x50, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x10, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x53, 0x50, 0x43, - 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x12, 0x22, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6d, - 0x70, 0x6c, 0x73, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x53, 0x50, 0x43, 0x6f, 0x75, 0x6e, - 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x6d, 0x70, 0x6c, 0x73, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x53, 0x50, - 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x47, 0x0a, 0x08, 0x4d, 0x50, 0x4c, 0x53, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x1a, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6d, 0x70, 0x6c, 0x73, 0x2e, 0x4d, 0x50, 0x4c, 0x53, 0x50, - 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x6d, 0x70, 0x6c, 0x73, 0x2e, 0x4d, 0x50, 0x4c, 0x53, 0x50, 0x69, 0x6e, 0x67, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x42, 0x29, 0xd2, 0x3e, 0x05, - 0x30, 0x2e, 0x31, 0x2e, 0x30, 0x5a, 0x1f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, - 0x69, 0x2f, 0x6d, 0x70, 0x6c, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_mpls_mpls_proto_rawDescOnce sync.Once - file_mpls_mpls_proto_rawDescData = file_mpls_mpls_proto_rawDesc -) - -func file_mpls_mpls_proto_rawDescGZIP() []byte { - file_mpls_mpls_proto_rawDescOnce.Do(func() { - file_mpls_mpls_proto_rawDescData = protoimpl.X.CompressGZIP(file_mpls_mpls_proto_rawDescData) - }) - return file_mpls_mpls_proto_rawDescData -} - -var file_mpls_mpls_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_mpls_mpls_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_mpls_mpls_proto_goTypes = []interface{}{ - (ClearLSPRequest_Mode)(0), // 0: gnoi.mpls.ClearLSPRequest.Mode - (MPLSPingRequest_ReplyMode)(0), // 1: gnoi.mpls.MPLSPingRequest.ReplyMode - (MPLSPingResponse_EchoResponseCode)(0), // 2: gnoi.mpls.MPLSPingResponse.EchoResponseCode - (*ClearLSPRequest)(nil), // 3: gnoi.mpls.ClearLSPRequest - (*ClearLSPResponse)(nil), // 4: gnoi.mpls.ClearLSPResponse - (*ClearLSPCountersRequest)(nil), // 5: gnoi.mpls.ClearLSPCountersRequest - (*ClearLSPCountersResponse)(nil), // 6: gnoi.mpls.ClearLSPCountersResponse - (*MPLSPingPWEDestination)(nil), // 7: gnoi.mpls.MPLSPingPWEDestination - (*MPLSPingRSVPTEDestination)(nil), // 8: gnoi.mpls.MPLSPingRSVPTEDestination - (*MPLSPingRequest)(nil), // 9: gnoi.mpls.MPLSPingRequest - (*MPLSPingResponse)(nil), // 10: gnoi.mpls.MPLSPingResponse -} -var file_mpls_mpls_proto_depIdxs = []int32{ - 0, // 0: gnoi.mpls.ClearLSPRequest.mode:type_name -> gnoi.mpls.ClearLSPRequest.Mode - 7, // 1: gnoi.mpls.MPLSPingRequest.fec129_pwe:type_name -> gnoi.mpls.MPLSPingPWEDestination - 8, // 2: gnoi.mpls.MPLSPingRequest.rsvpte_lsp:type_name -> gnoi.mpls.MPLSPingRSVPTEDestination - 1, // 3: gnoi.mpls.MPLSPingRequest.reply_mode:type_name -> gnoi.mpls.MPLSPingRequest.ReplyMode - 2, // 4: gnoi.mpls.MPLSPingResponse.response:type_name -> gnoi.mpls.MPLSPingResponse.EchoResponseCode - 3, // 5: gnoi.mpls.MPLS.ClearLSP:input_type -> gnoi.mpls.ClearLSPRequest - 5, // 6: gnoi.mpls.MPLS.ClearLSPCounters:input_type -> gnoi.mpls.ClearLSPCountersRequest - 9, // 7: gnoi.mpls.MPLS.MPLSPing:input_type -> gnoi.mpls.MPLSPingRequest - 4, // 8: gnoi.mpls.MPLS.ClearLSP:output_type -> gnoi.mpls.ClearLSPResponse - 6, // 9: gnoi.mpls.MPLS.ClearLSPCounters:output_type -> gnoi.mpls.ClearLSPCountersResponse - 10, // 10: gnoi.mpls.MPLS.MPLSPing:output_type -> gnoi.mpls.MPLSPingResponse - 8, // [8:11] is the sub-list for method output_type - 5, // [5:8] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name -} - -func init() { file_mpls_mpls_proto_init() } -func file_mpls_mpls_proto_init() { - if File_mpls_mpls_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_mpls_mpls_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClearLSPRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mpls_mpls_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClearLSPResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mpls_mpls_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClearLSPCountersRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mpls_mpls_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClearLSPCountersResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mpls_mpls_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MPLSPingPWEDestination); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mpls_mpls_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MPLSPingRSVPTEDestination); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mpls_mpls_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MPLSPingRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mpls_mpls_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MPLSPingResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_mpls_mpls_proto_msgTypes[6].OneofWrappers = []interface{}{ - (*MPLSPingRequest_LdpFec)(nil), - (*MPLSPingRequest_Fec129Pwe)(nil), - (*MPLSPingRequest_RsvpteLspName)(nil), - (*MPLSPingRequest_RsvpteLsp)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mpls_mpls_proto_rawDesc, - NumEnums: 3, - NumMessages: 8, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_mpls_mpls_proto_goTypes, - DependencyIndexes: file_mpls_mpls_proto_depIdxs, - EnumInfos: file_mpls_mpls_proto_enumTypes, - MessageInfos: file_mpls_mpls_proto_msgTypes, - }.Build() - File_mpls_mpls_proto = out.File - file_mpls_mpls_proto_rawDesc = nil - file_mpls_mpls_proto_goTypes = nil - file_mpls_mpls_proto_depIdxs = nil -} diff --git a/src/sonic-framework/gnoi/mpls/mpls.proto b/src/sonic-framework/gnoi/mpls/mpls.proto deleted file mode 100644 index fe7136e57dff..000000000000 --- a/src/sonic-framework/gnoi/mpls/mpls.proto +++ /dev/null @@ -1,159 +0,0 @@ -// -// Copyright 2017 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.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 gnoi.mpls; - -import "github.com/openconfig/gnoi/types/types.proto"; - -option go_package = "github.com/openconfig/gnoi/mpls"; - -option (types.gnoi_version) = "0.1.0"; - -service MPLS { - // ClearLSP clears a single tunnel (requests for it's route to be - // recalculated). - rpc ClearLSP(ClearLSPRequest) returns (ClearLSPResponse) {} - - // ClearLSPCounters will clear the MPLS counters for the provided LSP. - rpc ClearLSPCounters(ClearLSPCountersRequest) - returns (ClearLSPCountersResponse) {} - - // An MPLS ping, specified as per RFC4379. - rpc MPLSPing(MPLSPingRequest) returns (stream MPLSPingResponse) {} - -} - -// Request to clear a single tunnel on a target device. -message ClearLSPRequest { - string name = 2; // Name of the tunnel to clear. - Mode mode = 3; // Tunnel clearing mode. - - enum Mode { - option allow_alias = true; - DEFAULT = 0; // Same as NONAGGRESSIVE. - // Reoptimize the LSP using the current bandwidth. - NONAGGRESSIVE = 0; - // Reoptimize the LSP using the current bandwidth. Only use IGP metric in - // calcuation. - AGGRESSIVE = 1; - // Reset and restart all LSPs that originated from this routing device. - RESET = 2; - // Apply the highest bandwidth collected on a tunnel without waiting for - // the current application period to end. Only use IGP metric in - // calcuation. - AUTOBW_AGGRESSIVE = 3; - // Apply the highest bandwidth collected on a tunnel without waiting for - // the current application period to end. - AUTOBW_NONAGGRESSIVE = 4; - } -} - -message ClearLSPResponse { -} - -// Request to clear a single tunnel counters on a target device. -message ClearLSPCountersRequest { - string name = 2; // Name of the tunnel to clear. -} - -message ClearLSPCountersResponse { -} - - -message MPLSPingPWEDestination { - // The address of the egress LER that the MPLS ping should be sent on when - // destined to a PWE service. - string eler = 1; - // The virtual circuit ID for the PWE via which the ping should be sent. - uint32 vcid = 2; -} - -// MPLSPingRSVPTEDestination specifies the destination for an MPLS Ping in -// terms of an absolute specification of an RSVP-TE LSP. It can be used to -// identify an individual RSVP-TE session via which a ping should be sent. -message MPLSPingRSVPTEDestination { - // The IPv4 or IPv6 address used by the system initiating (acting as the - // head-end) of the RSVP-TE LSP. - string src = 1; - // The IPv4 or IPv6 address used by the system terminating (acting as the - // tail-end) of the RSVP-TE LSP. - string dst = 2; - // The extended tunnel ID of the RSVP-TE LSP, expressed as an unsigned, 32b - // integer. - uint32 extended_tunnel_id = 3; -} - -// MPLSPingRequest specifies the parameters that should be used as input from -// the client, to a system that is initiating an RFC4379 MPLS ping request. -message MPLSPingRequest { - // One field within the destination field should be specified to determine - // the destination of the LSP ping. - oneof destination { - // The LDP forwarding equivalence class that the ping should be sent to - // expressed as an IPv4 or IPv6 prefix. - string ldp_fec = 1; - // The FEC129 PWE to which the LSP ping should be sent. - MPLSPingPWEDestination fec129_pwe = 2; - // The name of an RSVP-TE LSP via which the ping should be sent. The system - // should locally resolve the name to a particular RSVP-TE session. - string rsvpte_lsp_name = 4; - // An exact specification of an RSVP-TE LSP to which the system should send - // an MPLS ping message. - MPLSPingRSVPTEDestination rsvpte_lsp = 5; - // TODO(robjs): L3VPN, BGP-LU destination types. See RFC4379. - } - enum ReplyMode { - // Reply via an IPv4 packet to this system. - IPV4 = 0; - // Reply with a labeled packet with the router alert bit set. - ROUTER_ALERT = 1; - } - // How the target LER should respond to the LSP ping. - ReplyMode reply_mode = 6; - // The number of MPLS echo request packets to send. - uint32 count = 7; // default=3 - // The size (in bytes) of each MPLS echo request packet. - uint32 size = 8; // default=64 - // The source IPv4 address that should be used in the request packet. - string source_address = 9; - // The MPLS TTL that should be set in the packets sent. - uint32 mpls_ttl = 10; - // The value of the traffic class (TC, formerly known as EXP) bits that - // should be set in the MPLS ping packets. - uint32 traffic_class = 11; -} - -// MPLSPingResponse (MPLSPong?) is sent from the target to the client based on -// each MPLS Echo Response packet it receives associated with an input MPLSPing -// RPC. -message MPLSPingResponse { - uint32 seq = 1; // The sequence number of the MPLS Echo Reply. - enum EchoResponseCode { - // A successful echo response was received. - SUCCESS = 0; - // The MPLS ping packet was not sent, for an unknown reason. - NOT_SENT = 1; - // The local system timed out waiting for an LSP ping response. - TIMEOUT = 2; - // TODO(robjs): Add additional error codes. - } - // The response that was received from the egress LER. - EchoResponseCode response = 2; - // The time (in nanoseconds) between transmission of the Echo Response, - // and the echo reply. - uint64 response_time = 3; -} diff --git a/src/sonic-framework/gnoi/mpls/mpls_grpc.pb.go b/src/sonic-framework/gnoi/mpls/mpls_grpc.pb.go deleted file mode 100755 index 8d354e0f87b7..000000000000 --- a/src/sonic-framework/gnoi/mpls/mpls_grpc.pb.go +++ /dev/null @@ -1,205 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.21.10 -// source: mpls/mpls.proto - -package mpls - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// MPLSClient is the client API for MPLS service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type MPLSClient interface { - ClearLSP(ctx context.Context, in *ClearLSPRequest, opts ...grpc.CallOption) (*ClearLSPResponse, error) - ClearLSPCounters(ctx context.Context, in *ClearLSPCountersRequest, opts ...grpc.CallOption) (*ClearLSPCountersResponse, error) - MPLSPing(ctx context.Context, in *MPLSPingRequest, opts ...grpc.CallOption) (MPLS_MPLSPingClient, error) -} - -type mPLSClient struct { - cc grpc.ClientConnInterface -} - -func NewMPLSClient(cc grpc.ClientConnInterface) MPLSClient { - return &mPLSClient{cc} -} - -func (c *mPLSClient) ClearLSP(ctx context.Context, in *ClearLSPRequest, opts ...grpc.CallOption) (*ClearLSPResponse, error) { - out := new(ClearLSPResponse) - err := c.cc.Invoke(ctx, "/gnoi.mpls.MPLS/ClearLSP", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *mPLSClient) ClearLSPCounters(ctx context.Context, in *ClearLSPCountersRequest, opts ...grpc.CallOption) (*ClearLSPCountersResponse, error) { - out := new(ClearLSPCountersResponse) - err := c.cc.Invoke(ctx, "/gnoi.mpls.MPLS/ClearLSPCounters", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *mPLSClient) MPLSPing(ctx context.Context, in *MPLSPingRequest, opts ...grpc.CallOption) (MPLS_MPLSPingClient, error) { - stream, err := c.cc.NewStream(ctx, &MPLS_ServiceDesc.Streams[0], "/gnoi.mpls.MPLS/MPLSPing", opts...) - if err != nil { - return nil, err - } - x := &mPLSMPLSPingClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type MPLS_MPLSPingClient interface { - Recv() (*MPLSPingResponse, error) - grpc.ClientStream -} - -type mPLSMPLSPingClient struct { - grpc.ClientStream -} - -func (x *mPLSMPLSPingClient) Recv() (*MPLSPingResponse, error) { - m := new(MPLSPingResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// MPLSServer is the server API for MPLS service. -// All implementations must embed UnimplementedMPLSServer -// for forward compatibility -type MPLSServer interface { - ClearLSP(context.Context, *ClearLSPRequest) (*ClearLSPResponse, error) - ClearLSPCounters(context.Context, *ClearLSPCountersRequest) (*ClearLSPCountersResponse, error) - MPLSPing(*MPLSPingRequest, MPLS_MPLSPingServer) error - mustEmbedUnimplementedMPLSServer() -} - -// UnimplementedMPLSServer must be embedded to have forward compatible implementations. -type UnimplementedMPLSServer struct { -} - -func (UnimplementedMPLSServer) ClearLSP(context.Context, *ClearLSPRequest) (*ClearLSPResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ClearLSP not implemented") -} -func (UnimplementedMPLSServer) ClearLSPCounters(context.Context, *ClearLSPCountersRequest) (*ClearLSPCountersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ClearLSPCounters not implemented") -} -func (UnimplementedMPLSServer) MPLSPing(*MPLSPingRequest, MPLS_MPLSPingServer) error { - return status.Errorf(codes.Unimplemented, "method MPLSPing not implemented") -} -func (UnimplementedMPLSServer) mustEmbedUnimplementedMPLSServer() {} - -// UnsafeMPLSServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to MPLSServer will -// result in compilation errors. -type UnsafeMPLSServer interface { - mustEmbedUnimplementedMPLSServer() -} - -func RegisterMPLSServer(s grpc.ServiceRegistrar, srv MPLSServer) { - s.RegisterService(&MPLS_ServiceDesc, srv) -} - -func _MPLS_ClearLSP_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClearLSPRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MPLSServer).ClearLSP(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.mpls.MPLS/ClearLSP", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MPLSServer).ClearLSP(ctx, req.(*ClearLSPRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MPLS_ClearLSPCounters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClearLSPCountersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MPLSServer).ClearLSPCounters(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.mpls.MPLS/ClearLSPCounters", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MPLSServer).ClearLSPCounters(ctx, req.(*ClearLSPCountersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MPLS_MPLSPing_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(MPLSPingRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(MPLSServer).MPLSPing(m, &mPLSMPLSPingServer{stream}) -} - -type MPLS_MPLSPingServer interface { - Send(*MPLSPingResponse) error - grpc.ServerStream -} - -type mPLSMPLSPingServer struct { - grpc.ServerStream -} - -func (x *mPLSMPLSPingServer) Send(m *MPLSPingResponse) error { - return x.ServerStream.SendMsg(m) -} - -// MPLS_ServiceDesc is the grpc.ServiceDesc for MPLS service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var MPLS_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.mpls.MPLS", - HandlerType: (*MPLSServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ClearLSP", - Handler: _MPLS_ClearLSP_Handler, - }, - { - MethodName: "ClearLSPCounters", - Handler: _MPLS_ClearLSPCounters_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "MPLSPing", - Handler: _MPLS_MPLSPing_Handler, - ServerStreams: true, - }, - }, - Metadata: "mpls/mpls.proto", -} diff --git a/src/sonic-framework/gnoi/os/BUILD.bazel b/src/sonic-framework/gnoi/os/BUILD.bazel deleted file mode 100644 index fdca6f31c80d..000000000000 --- a/src/sonic-framework/gnoi/os/BUILD.bazel +++ /dev/null @@ -1,61 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") -load("//:common.bzl", "use_new_compilers") - -#Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# 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. - -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -use_new_compilers() - -proto_library( - name = "os_proto", - srcs = ["os.proto"], - deps = ["//types:types_proto"], -) - -cc_proto_library( - name = "os_cc_proto", - deps = [":os_proto"], -) - -cc_grpc_library( - name = "os_cc_grpc_proto", - srcs = [":os_proto"], - grpc_only = True, - deps = [":os_cc_proto"], -) - -go_proto_library( - name = "os_go_proto", - compilers = [ - "go_protoc_gen_go", - "go_protoc_gen_go_grpc", - ], - importpath = "github.com/openconfig/gnoi/os", - proto = ":os_proto", - deps = ["//types"], -) - -go_library( - name = "os", - embed = [":os_go_proto"], - importpath = "github.com/openconfig/gnoi/os", -) diff --git a/src/sonic-framework/gnoi/os/os.pb.go b/src/sonic-framework/gnoi/os/os.pb.go deleted file mode 100644 index 66e80774ae95..000000000000 --- a/src/sonic-framework/gnoi/os/os.pb.go +++ /dev/null @@ -1,1793 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v3.21.10 -// source: os/os.proto - -package os - -import ( - _ "github.com/openconfig/gnoi/types" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type InstallError_Type int32 - -const ( - InstallError_UNSPECIFIED InstallError_Type = 0 - InstallError_INCOMPATIBLE InstallError_Type = 1 - InstallError_TOO_LARGE InstallError_Type = 2 - InstallError_PARSE_FAIL InstallError_Type = 3 - InstallError_INTEGRITY_FAIL InstallError_Type = 4 - InstallError_INSTALL_RUN_PACKAGE InstallError_Type = 5 - InstallError_INSTALL_IN_PROGRESS InstallError_Type = 6 - InstallError_UNEXPECTED_SWITCHOVER InstallError_Type = 7 - InstallError_SYNC_FAIL InstallError_Type = 8 - InstallError_NOT_SUPPORTED_ON_BACKUP InstallError_Type = 9 -) - -// Enum value maps for InstallError_Type. -var ( - InstallError_Type_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "INCOMPATIBLE", - 2: "TOO_LARGE", - 3: "PARSE_FAIL", - 4: "INTEGRITY_FAIL", - 5: "INSTALL_RUN_PACKAGE", - 6: "INSTALL_IN_PROGRESS", - 7: "UNEXPECTED_SWITCHOVER", - 8: "SYNC_FAIL", - 9: "NOT_SUPPORTED_ON_BACKUP", - } - InstallError_Type_value = map[string]int32{ - "UNSPECIFIED": 0, - "INCOMPATIBLE": 1, - "TOO_LARGE": 2, - "PARSE_FAIL": 3, - "INTEGRITY_FAIL": 4, - "INSTALL_RUN_PACKAGE": 5, - "INSTALL_IN_PROGRESS": 6, - "UNEXPECTED_SWITCHOVER": 7, - "SYNC_FAIL": 8, - "NOT_SUPPORTED_ON_BACKUP": 9, - } -) - -func (x InstallError_Type) Enum() *InstallError_Type { - p := new(InstallError_Type) - *p = x - return p -} - -func (x InstallError_Type) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (InstallError_Type) Descriptor() protoreflect.EnumDescriptor { - return file_os_os_proto_enumTypes[0].Descriptor() -} - -func (InstallError_Type) Type() protoreflect.EnumType { - return &file_os_os_proto_enumTypes[0] -} - -func (x InstallError_Type) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use InstallError_Type.Descriptor instead. -func (InstallError_Type) EnumDescriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{8, 0} -} - -type ActivateError_Type int32 - -const ( - ActivateError_UNSPECIFIED ActivateError_Type = 0 - ActivateError_NON_EXISTENT_VERSION ActivateError_Type = 1 - ActivateError_NOT_SUPPORTED_ON_BACKUP ActivateError_Type = 2 -) - -// Enum value maps for ActivateError_Type. -var ( - ActivateError_Type_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "NON_EXISTENT_VERSION", - 2: "NOT_SUPPORTED_ON_BACKUP", - } - ActivateError_Type_value = map[string]int32{ - "UNSPECIFIED": 0, - "NON_EXISTENT_VERSION": 1, - "NOT_SUPPORTED_ON_BACKUP": 2, - } -) - -func (x ActivateError_Type) Enum() *ActivateError_Type { - p := new(ActivateError_Type) - *p = x - return p -} - -func (x ActivateError_Type) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ActivateError_Type) Descriptor() protoreflect.EnumDescriptor { - return file_os_os_proto_enumTypes[1].Descriptor() -} - -func (ActivateError_Type) Type() protoreflect.EnumType { - return &file_os_os_proto_enumTypes[1] -} - -func (x ActivateError_Type) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ActivateError_Type.Descriptor instead. -func (ActivateError_Type) EnumDescriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{12, 0} -} - -type StandbyState_State int32 - -const ( - StandbyState_UNSPECIFIED StandbyState_State = 0 - StandbyState_UNSUPPORTED StandbyState_State = 1 - StandbyState_NON_EXISTENT StandbyState_State = 2 - StandbyState_UNAVAILABLE StandbyState_State = 3 -) - -// Enum value maps for StandbyState_State. -var ( - StandbyState_State_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "UNSUPPORTED", - 2: "NON_EXISTENT", - 3: "UNAVAILABLE", - } - StandbyState_State_value = map[string]int32{ - "UNSPECIFIED": 0, - "UNSUPPORTED": 1, - "NON_EXISTENT": 2, - "UNAVAILABLE": 3, - } -) - -func (x StandbyState_State) Enum() *StandbyState_State { - p := new(StandbyState_State) - *p = x - return p -} - -func (x StandbyState_State) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (StandbyState_State) Descriptor() protoreflect.EnumDescriptor { - return file_os_os_proto_enumTypes[2].Descriptor() -} - -func (StandbyState_State) Type() protoreflect.EnumType { - return &file_os_os_proto_enumTypes[2] -} - -func (x StandbyState_State) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use StandbyState_State.Descriptor instead. -func (StandbyState_State) EnumDescriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{16, 0} -} - -type InstallRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Request: - // - // *InstallRequest_TransferRequest - // *InstallRequest_TransferContent - // *InstallRequest_TransferEnd - Request isInstallRequest_Request `protobuf_oneof:"request"` -} - -func (x *InstallRequest) Reset() { - *x = InstallRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InstallRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InstallRequest) ProtoMessage() {} - -func (x *InstallRequest) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InstallRequest.ProtoReflect.Descriptor instead. -func (*InstallRequest) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{0} -} - -func (m *InstallRequest) GetRequest() isInstallRequest_Request { - if m != nil { - return m.Request - } - return nil -} - -func (x *InstallRequest) GetTransferRequest() *TransferRequest { - if x, ok := x.GetRequest().(*InstallRequest_TransferRequest); ok { - return x.TransferRequest - } - return nil -} - -func (x *InstallRequest) GetTransferContent() []byte { - if x, ok := x.GetRequest().(*InstallRequest_TransferContent); ok { - return x.TransferContent - } - return nil -} - -func (x *InstallRequest) GetTransferEnd() *TransferEnd { - if x, ok := x.GetRequest().(*InstallRequest_TransferEnd); ok { - return x.TransferEnd - } - return nil -} - -type isInstallRequest_Request interface { - isInstallRequest_Request() -} - -type InstallRequest_TransferRequest struct { - TransferRequest *TransferRequest `protobuf:"bytes,1,opt,name=transfer_request,json=transferRequest,proto3,oneof"` -} - -type InstallRequest_TransferContent struct { - TransferContent []byte `protobuf:"bytes,2,opt,name=transfer_content,json=transferContent,proto3,oneof"` -} - -type InstallRequest_TransferEnd struct { - TransferEnd *TransferEnd `protobuf:"bytes,3,opt,name=transfer_end,json=transferEnd,proto3,oneof"` -} - -func (*InstallRequest_TransferRequest) isInstallRequest_Request() {} - -func (*InstallRequest_TransferContent) isInstallRequest_Request() {} - -func (*InstallRequest_TransferEnd) isInstallRequest_Request() {} - -type TransferRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` - StandbySupervisor bool `protobuf:"varint,2,opt,name=standby_supervisor,json=standbySupervisor,proto3" json:"standby_supervisor,omitempty"` - PackageSize uint64 `protobuf:"varint,3,opt,name=package_size,json=packageSize,proto3" json:"package_size,omitempty"` -} - -func (x *TransferRequest) Reset() { - *x = TransferRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TransferRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TransferRequest) ProtoMessage() {} - -func (x *TransferRequest) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TransferRequest.ProtoReflect.Descriptor instead. -func (*TransferRequest) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{1} -} - -func (x *TransferRequest) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -func (x *TransferRequest) GetStandbySupervisor() bool { - if x != nil { - return x.StandbySupervisor - } - return false -} - -func (x *TransferRequest) GetPackageSize() uint64 { - if x != nil { - return x.PackageSize - } - return 0 -} - -type TransferEnd struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *TransferEnd) Reset() { - *x = TransferEnd{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TransferEnd) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TransferEnd) ProtoMessage() {} - -func (x *TransferEnd) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TransferEnd.ProtoReflect.Descriptor instead. -func (*TransferEnd) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{2} -} - -type InstallResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Response: - // - // *InstallResponse_TransferReady - // *InstallResponse_TransferProgress - // *InstallResponse_SyncProgress - // *InstallResponse_Validated - // *InstallResponse_InstallError - Response isInstallResponse_Response `protobuf_oneof:"response"` -} - -func (x *InstallResponse) Reset() { - *x = InstallResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InstallResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InstallResponse) ProtoMessage() {} - -func (x *InstallResponse) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InstallResponse.ProtoReflect.Descriptor instead. -func (*InstallResponse) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{3} -} - -func (m *InstallResponse) GetResponse() isInstallResponse_Response { - if m != nil { - return m.Response - } - return nil -} - -func (x *InstallResponse) GetTransferReady() *TransferReady { - if x, ok := x.GetResponse().(*InstallResponse_TransferReady); ok { - return x.TransferReady - } - return nil -} - -func (x *InstallResponse) GetTransferProgress() *TransferProgress { - if x, ok := x.GetResponse().(*InstallResponse_TransferProgress); ok { - return x.TransferProgress - } - return nil -} - -func (x *InstallResponse) GetSyncProgress() *SyncProgress { - if x, ok := x.GetResponse().(*InstallResponse_SyncProgress); ok { - return x.SyncProgress - } - return nil -} - -func (x *InstallResponse) GetValidated() *Validated { - if x, ok := x.GetResponse().(*InstallResponse_Validated); ok { - return x.Validated - } - return nil -} - -func (x *InstallResponse) GetInstallError() *InstallError { - if x, ok := x.GetResponse().(*InstallResponse_InstallError); ok { - return x.InstallError - } - return nil -} - -type isInstallResponse_Response interface { - isInstallResponse_Response() -} - -type InstallResponse_TransferReady struct { - TransferReady *TransferReady `protobuf:"bytes,1,opt,name=transfer_ready,json=transferReady,proto3,oneof"` -} - -type InstallResponse_TransferProgress struct { - TransferProgress *TransferProgress `protobuf:"bytes,2,opt,name=transfer_progress,json=transferProgress,proto3,oneof"` -} - -type InstallResponse_SyncProgress struct { - SyncProgress *SyncProgress `protobuf:"bytes,3,opt,name=sync_progress,json=syncProgress,proto3,oneof"` -} - -type InstallResponse_Validated struct { - Validated *Validated `protobuf:"bytes,4,opt,name=validated,proto3,oneof"` -} - -type InstallResponse_InstallError struct { - InstallError *InstallError `protobuf:"bytes,5,opt,name=install_error,json=installError,proto3,oneof"` -} - -func (*InstallResponse_TransferReady) isInstallResponse_Response() {} - -func (*InstallResponse_TransferProgress) isInstallResponse_Response() {} - -func (*InstallResponse_SyncProgress) isInstallResponse_Response() {} - -func (*InstallResponse_Validated) isInstallResponse_Response() {} - -func (*InstallResponse_InstallError) isInstallResponse_Response() {} - -type TransferReady struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *TransferReady) Reset() { - *x = TransferReady{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TransferReady) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TransferReady) ProtoMessage() {} - -func (x *TransferReady) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TransferReady.ProtoReflect.Descriptor instead. -func (*TransferReady) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{4} -} - -type TransferProgress struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - BytesReceived uint64 `protobuf:"varint,1,opt,name=bytes_received,json=bytesReceived,proto3" json:"bytes_received,omitempty"` -} - -func (x *TransferProgress) Reset() { - *x = TransferProgress{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TransferProgress) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TransferProgress) ProtoMessage() {} - -func (x *TransferProgress) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TransferProgress.ProtoReflect.Descriptor instead. -func (*TransferProgress) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{5} -} - -func (x *TransferProgress) GetBytesReceived() uint64 { - if x != nil { - return x.BytesReceived - } - return 0 -} - -type SyncProgress struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PercentageTransferred uint32 `protobuf:"varint,1,opt,name=percentage_transferred,json=percentageTransferred,proto3" json:"percentage_transferred,omitempty"` -} - -func (x *SyncProgress) Reset() { - *x = SyncProgress{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SyncProgress) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SyncProgress) ProtoMessage() {} - -func (x *SyncProgress) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SyncProgress.ProtoReflect.Descriptor instead. -func (*SyncProgress) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{6} -} - -func (x *SyncProgress) GetPercentageTransferred() uint32 { - if x != nil { - return x.PercentageTransferred - } - return 0 -} - -type Validated struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (x *Validated) Reset() { - *x = Validated{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Validated) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Validated) ProtoMessage() {} - -func (x *Validated) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Validated.ProtoReflect.Descriptor instead. -func (*Validated) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{7} -} - -func (x *Validated) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -func (x *Validated) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -type InstallError struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Type InstallError_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.os.InstallError_Type" json:"type,omitempty"` - Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` -} - -func (x *InstallError) Reset() { - *x = InstallError{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InstallError) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InstallError) ProtoMessage() {} - -func (x *InstallError) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InstallError.ProtoReflect.Descriptor instead. -func (*InstallError) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{8} -} - -func (x *InstallError) GetType() InstallError_Type { - if x != nil { - return x.Type - } - return InstallError_UNSPECIFIED -} - -func (x *InstallError) GetDetail() string { - if x != nil { - return x.Detail - } - return "" -} - -type ActivateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` - StandbySupervisor bool `protobuf:"varint,2,opt,name=standby_supervisor,json=standbySupervisor,proto3" json:"standby_supervisor,omitempty"` - NoReboot bool `protobuf:"varint,3,opt,name=no_reboot,json=noReboot,proto3" json:"no_reboot,omitempty"` -} - -func (x *ActivateRequest) Reset() { - *x = ActivateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ActivateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ActivateRequest) ProtoMessage() {} - -func (x *ActivateRequest) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ActivateRequest.ProtoReflect.Descriptor instead. -func (*ActivateRequest) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{9} -} - -func (x *ActivateRequest) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -func (x *ActivateRequest) GetStandbySupervisor() bool { - if x != nil { - return x.StandbySupervisor - } - return false -} - -func (x *ActivateRequest) GetNoReboot() bool { - if x != nil { - return x.NoReboot - } - return false -} - -type ActivateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Response: - // - // *ActivateResponse_ActivateOk - // *ActivateResponse_ActivateError - Response isActivateResponse_Response `protobuf_oneof:"response"` -} - -func (x *ActivateResponse) Reset() { - *x = ActivateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ActivateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ActivateResponse) ProtoMessage() {} - -func (x *ActivateResponse) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ActivateResponse.ProtoReflect.Descriptor instead. -func (*ActivateResponse) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{10} -} - -func (m *ActivateResponse) GetResponse() isActivateResponse_Response { - if m != nil { - return m.Response - } - return nil -} - -func (x *ActivateResponse) GetActivateOk() *ActivateOK { - if x, ok := x.GetResponse().(*ActivateResponse_ActivateOk); ok { - return x.ActivateOk - } - return nil -} - -func (x *ActivateResponse) GetActivateError() *ActivateError { - if x, ok := x.GetResponse().(*ActivateResponse_ActivateError); ok { - return x.ActivateError - } - return nil -} - -type isActivateResponse_Response interface { - isActivateResponse_Response() -} - -type ActivateResponse_ActivateOk struct { - ActivateOk *ActivateOK `protobuf:"bytes,1,opt,name=activate_ok,json=activateOk,proto3,oneof"` -} - -type ActivateResponse_ActivateError struct { - ActivateError *ActivateError `protobuf:"bytes,2,opt,name=activate_error,json=activateError,proto3,oneof"` -} - -func (*ActivateResponse_ActivateOk) isActivateResponse_Response() {} - -func (*ActivateResponse_ActivateError) isActivateResponse_Response() {} - -type ActivateOK struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ActivateOK) Reset() { - *x = ActivateOK{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ActivateOK) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ActivateOK) ProtoMessage() {} - -func (x *ActivateOK) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ActivateOK.ProtoReflect.Descriptor instead. -func (*ActivateOK) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{11} -} - -type ActivateError struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Type ActivateError_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.os.ActivateError_Type" json:"type,omitempty"` - Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` -} - -func (x *ActivateError) Reset() { - *x = ActivateError{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ActivateError) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ActivateError) ProtoMessage() {} - -func (x *ActivateError) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ActivateError.ProtoReflect.Descriptor instead. -func (*ActivateError) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{12} -} - -func (x *ActivateError) GetType() ActivateError_Type { - if x != nil { - return x.Type - } - return ActivateError_UNSPECIFIED -} - -func (x *ActivateError) GetDetail() string { - if x != nil { - return x.Detail - } - return "" -} - -type VerifyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *VerifyRequest) Reset() { - *x = VerifyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *VerifyRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VerifyRequest) ProtoMessage() {} - -func (x *VerifyRequest) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use VerifyRequest.ProtoReflect.Descriptor instead. -func (*VerifyRequest) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{13} -} - -type VerifyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` - ActivationFailMessage string `protobuf:"bytes,2,opt,name=activation_fail_message,json=activationFailMessage,proto3" json:"activation_fail_message,omitempty"` - VerifyStandby *VerifyStandby `protobuf:"bytes,3,opt,name=verify_standby,json=verifyStandby,proto3" json:"verify_standby,omitempty"` - IndividualSupervisorInstall bool `protobuf:"varint,4,opt,name=individual_supervisor_install,json=individualSupervisorInstall,proto3" json:"individual_supervisor_install,omitempty"` -} - -func (x *VerifyResponse) Reset() { - *x = VerifyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *VerifyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VerifyResponse) ProtoMessage() {} - -func (x *VerifyResponse) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use VerifyResponse.ProtoReflect.Descriptor instead. -func (*VerifyResponse) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{14} -} - -func (x *VerifyResponse) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -func (x *VerifyResponse) GetActivationFailMessage() string { - if x != nil { - return x.ActivationFailMessage - } - return "" -} - -func (x *VerifyResponse) GetVerifyStandby() *VerifyStandby { - if x != nil { - return x.VerifyStandby - } - return nil -} - -func (x *VerifyResponse) GetIndividualSupervisorInstall() bool { - if x != nil { - return x.IndividualSupervisorInstall - } - return false -} - -type VerifyStandby struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to State: - // - // *VerifyStandby_StandbyState - // *VerifyStandby_VerifyResponse - State isVerifyStandby_State `protobuf_oneof:"state"` -} - -func (x *VerifyStandby) Reset() { - *x = VerifyStandby{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *VerifyStandby) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VerifyStandby) ProtoMessage() {} - -func (x *VerifyStandby) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use VerifyStandby.ProtoReflect.Descriptor instead. -func (*VerifyStandby) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{15} -} - -func (m *VerifyStandby) GetState() isVerifyStandby_State { - if m != nil { - return m.State - } - return nil -} - -func (x *VerifyStandby) GetStandbyState() *StandbyState { - if x, ok := x.GetState().(*VerifyStandby_StandbyState); ok { - return x.StandbyState - } - return nil -} - -func (x *VerifyStandby) GetVerifyResponse() *StandbyResponse { - if x, ok := x.GetState().(*VerifyStandby_VerifyResponse); ok { - return x.VerifyResponse - } - return nil -} - -type isVerifyStandby_State interface { - isVerifyStandby_State() -} - -type VerifyStandby_StandbyState struct { - StandbyState *StandbyState `protobuf:"bytes,1,opt,name=standby_state,json=standbyState,proto3,oneof"` -} - -type VerifyStandby_VerifyResponse struct { - VerifyResponse *StandbyResponse `protobuf:"bytes,2,opt,name=verify_response,json=verifyResponse,proto3,oneof"` -} - -func (*VerifyStandby_StandbyState) isVerifyStandby_State() {} - -func (*VerifyStandby_VerifyResponse) isVerifyStandby_State() {} - -type StandbyState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - State StandbyState_State `protobuf:"varint,1,opt,name=state,proto3,enum=gnoi.os.StandbyState_State" json:"state,omitempty"` -} - -func (x *StandbyState) Reset() { - *x = StandbyState{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StandbyState) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StandbyState) ProtoMessage() {} - -func (x *StandbyState) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StandbyState.ProtoReflect.Descriptor instead. -func (*StandbyState) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{16} -} - -func (x *StandbyState) GetState() StandbyState_State { - if x != nil { - return x.State - } - return StandbyState_UNSPECIFIED -} - -type StandbyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` - ActivationFailMessage string `protobuf:"bytes,3,opt,name=activation_fail_message,json=activationFailMessage,proto3" json:"activation_fail_message,omitempty"` -} - -func (x *StandbyResponse) Reset() { - *x = StandbyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StandbyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StandbyResponse) ProtoMessage() {} - -func (x *StandbyResponse) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StandbyResponse.ProtoReflect.Descriptor instead. -func (*StandbyResponse) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{17} -} - -func (x *StandbyResponse) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *StandbyResponse) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -func (x *StandbyResponse) GetActivationFailMessage() string { - if x != nil { - return x.ActivationFailMessage - } - return "" -} - -var File_os_os_proto protoreflect.FileDescriptor - -var file_os_os_proto_rawDesc = []byte{ - 0x0a, 0x0b, 0x6f, 0x73, 0x2f, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, - 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xca, 0x01, 0x0a, 0x0e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x45, 0x0a, 0x10, 0x74, 0x72, 0x61, 0x6e, 0x73, - 0x66, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, - 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0f, 0x74, - 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, - 0x0a, 0x10, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, - 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0f, 0x74, 0x72, 0x61, 0x6e, - 0x73, 0x66, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x39, 0x0a, 0x0c, 0x74, - 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x5f, 0x65, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, - 0x73, 0x66, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x48, 0x00, 0x52, 0x0b, 0x74, 0x72, 0x61, 0x6e, 0x73, - 0x66, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x42, 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x22, 0x7d, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2d, - 0x0a, 0x12, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x5f, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, - 0x69, 0x73, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x73, 0x74, 0x61, 0x6e, - 0x64, 0x62, 0x79, 0x53, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x12, 0x21, 0x0a, - 0x0c, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x0b, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, - 0x22, 0x0d, 0x0a, 0x0b, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x22, - 0xd8, 0x02, 0x0a, 0x0f, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x5f, - 0x72, 0x65, 0x61, 0x64, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, - 0x61, 0x64, 0x79, 0x48, 0x00, 0x52, 0x0d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, - 0x65, 0x61, 0x64, 0x79, 0x12, 0x48, 0x0a, 0x11, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, - 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, - 0x65, 0x72, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x48, 0x00, 0x52, 0x10, 0x74, 0x72, - 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3c, - 0x0a, 0x0d, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, - 0x53, 0x79, 0x6e, 0x63, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x48, 0x00, 0x52, 0x0c, - 0x73, 0x79, 0x6e, 0x63, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x32, 0x0a, 0x09, - 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x12, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x64, - 0x12, 0x3c, 0x0a, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x5f, 0x65, 0x72, 0x72, 0x6f, - 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, - 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, - 0x52, 0x0c, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x0a, - 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0f, 0x0a, 0x0d, 0x54, 0x72, - 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x61, 0x64, 0x79, 0x22, 0x39, 0x0a, 0x10, 0x54, - 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, - 0x25, 0x0a, 0x0e, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x62, 0x79, 0x74, 0x65, 0x73, 0x52, 0x65, - 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x22, 0x45, 0x0a, 0x0c, 0x53, 0x79, 0x6e, 0x63, 0x50, 0x72, - 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x35, 0x0a, 0x16, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, - 0x74, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x15, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, - 0x67, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x22, 0x47, 0x0a, - 0x09, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xae, 0x02, 0x0a, 0x0c, 0x49, 0x6e, 0x73, 0x74, 0x61, - 0x6c, 0x6c, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, - 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x22, - 0xd5, 0x01, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, - 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x49, 0x4e, 0x43, - 0x4f, 0x4d, 0x50, 0x41, 0x54, 0x49, 0x42, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x54, - 0x4f, 0x4f, 0x5f, 0x4c, 0x41, 0x52, 0x47, 0x45, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x50, 0x41, - 0x52, 0x53, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x49, 0x4e, - 0x54, 0x45, 0x47, 0x52, 0x49, 0x54, 0x59, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x10, 0x04, 0x12, 0x17, - 0x0a, 0x13, 0x49, 0x4e, 0x53, 0x54, 0x41, 0x4c, 0x4c, 0x5f, 0x52, 0x55, 0x4e, 0x5f, 0x50, 0x41, - 0x43, 0x4b, 0x41, 0x47, 0x45, 0x10, 0x05, 0x12, 0x17, 0x0a, 0x13, 0x49, 0x4e, 0x53, 0x54, 0x41, - 0x4c, 0x4c, 0x5f, 0x49, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x06, - 0x12, 0x19, 0x0a, 0x15, 0x55, 0x4e, 0x45, 0x58, 0x50, 0x45, 0x43, 0x54, 0x45, 0x44, 0x5f, 0x53, - 0x57, 0x49, 0x54, 0x43, 0x48, 0x4f, 0x56, 0x45, 0x52, 0x10, 0x07, 0x12, 0x0d, 0x0a, 0x09, 0x53, - 0x59, 0x4e, 0x43, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x10, 0x08, 0x12, 0x1b, 0x0a, 0x17, 0x4e, 0x4f, - 0x54, 0x5f, 0x53, 0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x5f, 0x4f, 0x4e, 0x5f, 0x42, - 0x41, 0x43, 0x4b, 0x55, 0x50, 0x10, 0x09, 0x22, 0x77, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x76, - 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x5f, - 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x11, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, - 0x73, 0x6f, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x5f, 0x72, 0x65, 0x62, 0x6f, 0x6f, 0x74, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6e, 0x6f, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, - 0x22, 0x97, 0x01, 0x0a, 0x10, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, - 0x65, 0x5f, 0x6f, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4f, 0x4b, 0x48, - 0x00, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4f, 0x6b, 0x12, 0x3f, 0x0a, - 0x0e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, - 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, - 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x0a, - 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0c, 0x0a, 0x0a, 0x41, 0x63, - 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4f, 0x4b, 0x22, 0xa8, 0x01, 0x0a, 0x0d, 0x41, 0x63, 0x74, - 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2f, 0x0a, 0x04, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, - 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, - 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, - 0x61, 0x69, 0x6c, 0x22, 0x4e, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x55, - 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, - 0x4e, 0x4f, 0x4e, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x56, 0x45, 0x52, - 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x4e, 0x4f, 0x54, 0x5f, 0x53, 0x55, - 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x5f, 0x4f, 0x4e, 0x5f, 0x42, 0x41, 0x43, 0x4b, 0x55, - 0x50, 0x10, 0x02, 0x22, 0x0f, 0x0a, 0x0d, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x22, 0xe5, 0x01, 0x0a, 0x0e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x12, 0x36, 0x0a, 0x17, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x66, 0x61, 0x69, 0x6c, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x15, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, - 0x69, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3d, 0x0a, 0x0e, 0x76, 0x65, 0x72, - 0x69, 0x66, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x69, - 0x66, 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x52, 0x0d, 0x76, 0x65, 0x72, 0x69, 0x66, - 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x12, 0x42, 0x0a, 0x1d, 0x69, 0x6e, 0x64, 0x69, - 0x76, 0x69, 0x64, 0x75, 0x61, 0x6c, 0x5f, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, - 0x72, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x1b, 0x69, 0x6e, 0x64, 0x69, 0x76, 0x69, 0x64, 0x75, 0x61, 0x6c, 0x53, 0x75, 0x70, 0x65, 0x72, - 0x76, 0x69, 0x73, 0x6f, 0x72, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x22, 0x9b, 0x01, 0x0a, - 0x0d, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x12, 0x3c, - 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, - 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x0c, - 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x43, 0x0a, 0x0f, - 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, - 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, - 0x00, 0x52, 0x0e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x42, 0x07, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x8f, 0x01, 0x0a, 0x0c, 0x53, - 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x31, 0x0a, 0x05, 0x73, - 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x4c, - 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, - 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x55, - 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x4e, 0x4f, 0x4e, - 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x55, - 0x4e, 0x41, 0x56, 0x41, 0x49, 0x4c, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x03, 0x22, 0x73, 0x0a, 0x0f, - 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x17, 0x61, 0x63, 0x74, - 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x5f, 0x6d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x61, 0x63, 0x74, 0x69, - 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x32, 0xc2, 0x01, 0x0a, 0x02, 0x4f, 0x53, 0x12, 0x40, 0x0a, 0x07, 0x49, 0x6e, 0x73, 0x74, - 0x61, 0x6c, 0x6c, 0x12, 0x17, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x49, 0x6e, - 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x30, 0x01, 0x12, 0x3f, 0x0a, 0x08, 0x41, 0x63, - 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, - 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, - 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x06, 0x56, - 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, - 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x27, 0xd2, 0x3e, 0x05, 0x30, 0x2e, 0x31, 0x2e, 0x34, - 0x5a, 0x1d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, - 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x6f, 0x73, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_os_os_proto_rawDescOnce sync.Once - file_os_os_proto_rawDescData = file_os_os_proto_rawDesc -) - -func file_os_os_proto_rawDescGZIP() []byte { - file_os_os_proto_rawDescOnce.Do(func() { - file_os_os_proto_rawDescData = protoimpl.X.CompressGZIP(file_os_os_proto_rawDescData) - }) - return file_os_os_proto_rawDescData -} - -var file_os_os_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_os_os_proto_msgTypes = make([]protoimpl.MessageInfo, 18) -var file_os_os_proto_goTypes = []interface{}{ - (InstallError_Type)(0), // 0: gnoi.os.InstallError.Type - (ActivateError_Type)(0), // 1: gnoi.os.ActivateError.Type - (StandbyState_State)(0), // 2: gnoi.os.StandbyState.State - (*InstallRequest)(nil), // 3: gnoi.os.InstallRequest - (*TransferRequest)(nil), // 4: gnoi.os.TransferRequest - (*TransferEnd)(nil), // 5: gnoi.os.TransferEnd - (*InstallResponse)(nil), // 6: gnoi.os.InstallResponse - (*TransferReady)(nil), // 7: gnoi.os.TransferReady - (*TransferProgress)(nil), // 8: gnoi.os.TransferProgress - (*SyncProgress)(nil), // 9: gnoi.os.SyncProgress - (*Validated)(nil), // 10: gnoi.os.Validated - (*InstallError)(nil), // 11: gnoi.os.InstallError - (*ActivateRequest)(nil), // 12: gnoi.os.ActivateRequest - (*ActivateResponse)(nil), // 13: gnoi.os.ActivateResponse - (*ActivateOK)(nil), // 14: gnoi.os.ActivateOK - (*ActivateError)(nil), // 15: gnoi.os.ActivateError - (*VerifyRequest)(nil), // 16: gnoi.os.VerifyRequest - (*VerifyResponse)(nil), // 17: gnoi.os.VerifyResponse - (*VerifyStandby)(nil), // 18: gnoi.os.VerifyStandby - (*StandbyState)(nil), // 19: gnoi.os.StandbyState - (*StandbyResponse)(nil), // 20: gnoi.os.StandbyResponse -} -var file_os_os_proto_depIdxs = []int32{ - 4, // 0: gnoi.os.InstallRequest.transfer_request:type_name -> gnoi.os.TransferRequest - 5, // 1: gnoi.os.InstallRequest.transfer_end:type_name -> gnoi.os.TransferEnd - 7, // 2: gnoi.os.InstallResponse.transfer_ready:type_name -> gnoi.os.TransferReady - 8, // 3: gnoi.os.InstallResponse.transfer_progress:type_name -> gnoi.os.TransferProgress - 9, // 4: gnoi.os.InstallResponse.sync_progress:type_name -> gnoi.os.SyncProgress - 10, // 5: gnoi.os.InstallResponse.validated:type_name -> gnoi.os.Validated - 11, // 6: gnoi.os.InstallResponse.install_error:type_name -> gnoi.os.InstallError - 0, // 7: gnoi.os.InstallError.type:type_name -> gnoi.os.InstallError.Type - 14, // 8: gnoi.os.ActivateResponse.activate_ok:type_name -> gnoi.os.ActivateOK - 15, // 9: gnoi.os.ActivateResponse.activate_error:type_name -> gnoi.os.ActivateError - 1, // 10: gnoi.os.ActivateError.type:type_name -> gnoi.os.ActivateError.Type - 18, // 11: gnoi.os.VerifyResponse.verify_standby:type_name -> gnoi.os.VerifyStandby - 19, // 12: gnoi.os.VerifyStandby.standby_state:type_name -> gnoi.os.StandbyState - 20, // 13: gnoi.os.VerifyStandby.verify_response:type_name -> gnoi.os.StandbyResponse - 2, // 14: gnoi.os.StandbyState.state:type_name -> gnoi.os.StandbyState.State - 3, // 15: gnoi.os.OS.Install:input_type -> gnoi.os.InstallRequest - 12, // 16: gnoi.os.OS.Activate:input_type -> gnoi.os.ActivateRequest - 16, // 17: gnoi.os.OS.Verify:input_type -> gnoi.os.VerifyRequest - 6, // 18: gnoi.os.OS.Install:output_type -> gnoi.os.InstallResponse - 13, // 19: gnoi.os.OS.Activate:output_type -> gnoi.os.ActivateResponse - 17, // 20: gnoi.os.OS.Verify:output_type -> gnoi.os.VerifyResponse - 18, // [18:21] is the sub-list for method output_type - 15, // [15:18] is the sub-list for method input_type - 15, // [15:15] is the sub-list for extension type_name - 15, // [15:15] is the sub-list for extension extendee - 0, // [0:15] is the sub-list for field type_name -} - -func init() { file_os_os_proto_init() } -func file_os_os_proto_init() { - if File_os_os_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_os_os_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InstallRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransferRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransferEnd); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InstallResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransferReady); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransferProgress); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SyncProgress); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Validated); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InstallError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ActivateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ActivateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ActivateOK); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ActivateError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VerifyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VerifyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VerifyStandby); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StandbyState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StandbyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_os_os_proto_msgTypes[0].OneofWrappers = []interface{}{ - (*InstallRequest_TransferRequest)(nil), - (*InstallRequest_TransferContent)(nil), - (*InstallRequest_TransferEnd)(nil), - } - file_os_os_proto_msgTypes[3].OneofWrappers = []interface{}{ - (*InstallResponse_TransferReady)(nil), - (*InstallResponse_TransferProgress)(nil), - (*InstallResponse_SyncProgress)(nil), - (*InstallResponse_Validated)(nil), - (*InstallResponse_InstallError)(nil), - } - file_os_os_proto_msgTypes[10].OneofWrappers = []interface{}{ - (*ActivateResponse_ActivateOk)(nil), - (*ActivateResponse_ActivateError)(nil), - } - file_os_os_proto_msgTypes[15].OneofWrappers = []interface{}{ - (*VerifyStandby_StandbyState)(nil), - (*VerifyStandby_VerifyResponse)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_os_os_proto_rawDesc, - NumEnums: 3, - NumMessages: 18, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_os_os_proto_goTypes, - DependencyIndexes: file_os_os_proto_depIdxs, - EnumInfos: file_os_os_proto_enumTypes, - MessageInfos: file_os_os_proto_msgTypes, - }.Build() - File_os_os_proto = out.File - file_os_os_proto_rawDesc = nil - file_os_os_proto_goTypes = nil - file_os_os_proto_depIdxs = nil -} diff --git a/src/sonic-framework/gnoi/os/os.proto b/src/sonic-framework/gnoi/os/os.proto deleted file mode 100644 index 00c1827c2265..000000000000 --- a/src/sonic-framework/gnoi/os/os.proto +++ /dev/null @@ -1,425 +0,0 @@ -// -// Copyright 2017 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.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 gnoi.os; - -import "github.com/openconfig/gnoi/types/types.proto"; - -option go_package = "github.com/openconfig/gnoi/os"; - -option (types.gnoi_version) = "0.1.4"; - - -// The OS service provides an interface for OS installation on a Target. The -// Client progresses through 3 RPCs: -// 1) Installation - provide the Target with the OS package. -// 2) Activation - activate an installed OS package. -// 3) Verification - verify that the Activation was successful. -// -// Dual Supervisor Target is supported, where the above process is executed once -// for the whole Target or once for each Supervisor. Targets that require the -// above process executed once per Supervisor will reply with the flag -// Verify->VerifyResponse->individual_supervisor_install set to true. -// -// Note that certain platforms may have particular approaches to upgrade the -// firmware of specific components, eg., power supply units, etc.. In addition, -// platforms may have processes to apply patches to the running OS. Handling -// these exceptions introduces extra complexities. For Targets that implement -// this service, component firmware upgrade or OS patching MUST be embedded -// within an OS upgrade. -service OS { - // Install transfers an OS package into the Target. No concurrent Install RPCs - // MUST be allowed to the same Target. - // - // The OS package file format is platform dependent. The platform MUST - // validate that the OS package that is supplied is valid and bootable. This - // SHOULD include a hash check against a known good hash. It is recommended - // that the hash is embedded in the OS package. - // - // The Target manages its own persistent storage, and OS installation process. - // It stores a set of distinct OS packages, and always proactively frees up - // space for incoming new OS packages. It is guaranteed that the Target always - // has enough space for a valid incoming OS package. The currently running OS - // packages MUST never be removed. The Client MUST expect that the last - // successfully installed package is available. - // - // The Install RPC allows the Client to specify the OS package version. If - // the Target already has an OS package with the same version then there is no - // need to transfer the OS package to the Target. If the Target does not have - // an OS package with the same version, then the OS package is copied. - // - // Scenario 1 - When the Target already has the OS package: - // - // Client :--------------|--------------> Target - // TransferRequest --> - // <-- [Validated|InstallError] - // - // - // Scenario 2 - When the Target does not have the OS package: - // - // Client :--------------|--------------> Target - // TransferRequest --> - // <-- [TransferReady|InstallError] - // transfer_content --> - // ... - // <-- [TransferProgress|InstallError] - // ... - // TransferEnd --> - // <-- [Validated|InstallError] - // - // On a dual Supervisor Target which requires installing the entire - // system with one Install RPC, one Install RPC is sufficient to - // install the package on all Supervisors. - // On a dual Supervisor Target which requires one Install RPC per - // supervisor, the Install RPC applies to the Active Supervisor unless - // InstallRequest->TransferRequest->standby_supervisor is set, in which - // case it applies to the Standby Supervisor. The Target MUST accept any - // order of package installation. - // On a dual Supervisor Target which requires installing the entire - // system with one Install RPC, the package MUST be made available on - // all Supervisors or none. If upon installation the package is absent - // from either Supervisor, the Target will transfer to both Supervisors - // overwriting the existing one. - // On a dual Supervisor Target which requires one Install RPC per - // supervisor, the Target MUST always attempt to copy the OS package - // between Supervisors first before accepting the transfer from the - // Client. The syncing progress is reported to the client with - // InstallResponse->SyncProgress messages. - // - // If a switchover is triggered during the Install RPC, the RPC MUST - // immediately abort with Error->type->UNEXPECTED_SWITCHOVER. - // - // Scenario 3 - When both Supervisors already have the OS package, regardless - // of the value in Start.standby_supervisor: - // - // Client :--------------|--------------> Target - // TransferRequest --> - // <-- [Validated|InstallError] - // - // - // Scenario 4 - On a dual Supervisor Target which requires one Install RPC - // per supervisor, and when one of the Supervisors already has the OS - // package but the other Supervisor is the target of the Install: - // - // Client :--------------|--------------> Target - // TransferRequest --> - // <-- [SyncProgress|InstallError] - // ... - // <-- [Validated|InstallError] - // - // - // Scenario 5 - When neither of the two Supervisors has the OS package: - // - // Client :--------------|--------------> Target - // TransferRequest --> - // <-- [TransferReady|InstallError] - // transfer_content --> - // ... - // <-- [TransferProgress|InstallError] - // ... - // TransferEnd --> - // <-- [Validated|InstallError] - // - rpc Install(stream InstallRequest) returns (stream InstallResponse); - - // Activate sets the requested OS version as the version which is used at the - // next reboot, and reboots the Target if the 'no_reboot' flag is not set. - // When booting the requested OS version fails, the Target recovers by - // booting the previously running OS package. - rpc Activate(ActivateRequest) returns (ActivateResponse); - - // Verify checks the running OS version. During reboot, gRPC client returns - // the gRPC status code UNAVAILABLE while the Target is unreachable, which - // should be retried by the client until successful. After the Target becomes - // reachable, it should report all ready or error states normally through - // VerifyResponse. - // - // On a dual Supervisor system, if the Standby Supervisor is rebooting, it - // should be reported in the VerifyResponse via verify_standby as - // StandbyState UNAVAILABLE. - rpc Verify(VerifyRequest) returns (VerifyResponse); -} - -message InstallRequest { - oneof request { - TransferRequest transfer_request = 1; - bytes transfer_content = 2; - TransferEnd transfer_end = 3; - } -} - -message TransferRequest { - // The version string is a vendor defined string that identifies the OS - // version. It is provided by the vendor and embedded in the OS package. This - // value states the desired OS package version to transfer to the Target. If - // the Target already has the OS package version it will reply with - // InstallResponse->Validated. In the case that the target is a - // single Supervisor device, or the partner Supervisor does not have the OS - // image specified, it will respond with InstallResponse->TransferReady. - // In this case, the client MUST subsequently transfer the image. In the case - // that the image is available on the peer Supervisor of a dual Supervisor - // system, it will respond with InstallResponse->SyncProgress. In this, - // latter, case - the client does not need to transfer the OS image. This - // value can also be set empty, in which case the OS package is forced - // transferred to the Target. The Target MUST never validate that this value - // matches the one in the InstallResponse->Validated message, that is the - // Client's responsibility. - // A dual Supervisor Target which requires installing the entire system - // with one Install RPC, will either have the image on both Supervisors - // or neither Supervisor. Such Targets do not need to sync the image - // from peer Supervisor and MUST immediately respond with TransferReady - string version = 1; - - // For a Target with dual Supervisors setting this flag instructs the Target - // to perform the action on the Standby Supervisor. - // A dual Supervisor Target which requires installing the entire system - // with one Install RPC MUST return an error code of NOT_SUPPORTED_ON_BACKUP - // if requested to install on standby only. - bool standby_supervisor = 2; - - // Optionally specify the package size in bytes of the OS package being - // transferred. - // If 1) the value is different than 0 - // and 2) the required space in the Target is larger than the available space - // and 3) the Target is unable to release space for the incoming OS package, - // then the Target must reply with InstallError->Type->TOO_LARGE. - uint64 package_size = 3; -} - -// The TransferEnd message is sent whenever the Client finishes transferring -// the OS package to the Target. At this point the Target MUST perform a general -// health check to the OS package. If the Target fails to parse the OS package -// it MUST immediately reply with an InstallError->type->PARSE_FAIL. If the -// integrity check of the OS package fails it MUST immediately reply with an -// InstallError->type->INTEGRITY_FAIL. If the identified OS version contained in -// the package is not compatible with the Target either because of the platform -// type or the running OS, it MUST immediately reply with an -// InstallError->type->INCOMPATIBLE. If the image is force transferred by -// omitting the InstallRequest->TransferRequest->version value, and the OS -// package is the same as the one running in the Target, the RPC MUST -// immediately abort and reply with an InstallError->type->INSTALL_RUN_PACKAGE. -message TransferEnd { -} - -// The InstallResponse is used by the Target to inform the Client about the -// state of the Install RPC. At any stage of the process the Target can reply -// with an Error message which MUST terminate the stream. -// A dual Supervisor Target which requires installing the entire system with -// one Install RPC, will either have the image on both Supervisors or neither -// Supervisor. Such Targets do not need to sync the image from peer Supervisor -// and MUST immediately respond with TransferReady. -message InstallResponse { - oneof response { - TransferReady transfer_ready = 1; - TransferProgress transfer_progress = 2; - SyncProgress sync_progress = 3; - Validated validated = 4; - InstallError install_error = 5; - } -} - -// The TransferReady message tells the Client that the Target is ready to accept -// the transfer of the OS package. At this stage the Target MUST have cleared -// enough space to accept the incoming OS package. -message TransferReady { -} - -// The TransferProgress message is sent by the target asynchronously during a -// file transfer. The device SHOULD not respond to each input block received -// from the client, but rather determine reasonable intervals at which to send -// the message (e.g., 5MB). -message TransferProgress { - // The number of bytes transferred. - uint64 bytes_received = 1; -} - -// The SyncProgress message signals the Client about the progress of -// transferring the OS package between Supervisors. -// A dual Supervisor Target which requires installing the entire system with -// one Install RPC, does not need to transfer the package between Supervisors -// and MUST not send SyncProgress. -message SyncProgress { - // The percentage that has transferred between Supervisors. - uint32 percentage_transferred = 1; -} - -// The Validated message asserts that the Target was able to parse the package -// and perform integrity checks to its contents. -message Validated { - // The OS version string that identifies the OS version in the OS package. - string version = 1; - // Informational field that SHOULD be used for providing more details about - // the OS package and its version. This MUST be strictly informational if - // used, and can contain information such as build date, target platform, - // developer, etc. - string description = 2; -} - -// The InstallError message MUST be sent by the Target to the Client whenever an -// issue occurs. The Target MUST immediately close the RPC without a gRPC error. -message InstallError { - enum Type { - // An unspecified error. Must use the detail value to describe the issue. - UNSPECIFIED = 0; - // The newly transferred package is not compatible with the Target platform. - // The detail field MUST contain the detailed error message. - INCOMPATIBLE = 1; - // The OS package being transferred is larger than the available size the - // Target provisioned. This is unexpected since the Target MUST clear disk - // space for the new OS packages. The most likely cause of this error is - // that a wrong package is being transferred, as the available space and - // the OS package size MUST be guaranteed by the platform maker. - // However, this error may also be returned if the target does not have - // enough space for both the new OS package and the current running package - // (which must be preserved as a fallback). - TOO_LARGE = 2; - // Used whenever the system is unable to parse the newly transferred - // package, like reading the OS version or the integrity checksums. - PARSE_FAIL = 3; - // The transferred OS package fails integrity check. - INTEGRITY_FAIL = 4; - // Attempting to force transfer an OS package with the same version as the - // currently running. - INSTALL_RUN_PACKAGE = 5; - // Another Install RPC to this Target is already in progress. - INSTALL_IN_PROGRESS = 6; - // A switchover happened during the Install RPC. - UNEXPECTED_SWITCHOVER = 7; - // Failed to sync the transferred OS package to the standby Supervisor. The - // detail value MUST have more information. - // A dual Supervisor Target which requires installing the entire system - // with one Install RPC, MUST not return SYNC_FAIL. - SYNC_FAIL = 8; - // Dual Supervisor Target which requires installing the entire system - // with one Install RPC MUST return this error when requested to - // install on standby Supervisor. - NOT_SUPPORTED_ON_BACKUP = 9; - } - Type type = 1; - string detail = 2; -} - -// The ActivateRequest is sent by the Client to the Target to initiate a change -// in the next bootable OS version that is to be used on the Target. -// Dual Supervisor Target which requires installing the entire system with -// one Install RPC MUST return NOT_SUPPORTED_ON_BACKUP error when requested -// to Activate on standby Supervisor. -message ActivateRequest { - // The version that is required to be activated and optionally immediattely - // booted. - string version = 1; - // For dual Supervisors setting this flag instructs the Target to perform the - // action on the Standby Supervisor. - bool standby_supervisor = 2; - // If set to 'False' the Target will initiate the reboot process immediatelly - // after changing the next bootable OS version. - // If set to 'True' a separate action to reboot the Target and start using - // the activated OS version is required. This action CAN be executing - // the gNOI.system.Reboot() RPC. - bool no_reboot = 3; -} - -// The ActivateResponse is sent from the Target to the Client in response to the -// Activate RPC. It indicates the success of making the OS package version -// active. -message ActivateResponse { - oneof response { - ActivateOK activate_ok = 1; - ActivateError activate_error = 2; - } -} - -// If the Target is already running the requested version in ActivateRequest, -// then it replies with ActivateOK. If the Target has the OS package version -// requested in ActivateRequest then it replies with ActivateOK and proceeds to -// boot. -// A dual Supervisor Target which requires installing the entire system with -// one Install RPC, will activate the image on all Supervisors in response to -// one Activate RPC. The Target should activate the image on both Supervisors -// with the least impact possible to forwarding. -// -// On a dual Supervisor Target which requires one Install RPC per supervisor, -// performing this RPC on the Active Supervisor triggers a switchover before -// booting the (old)Active Supervisor. The Target should perform a switchover -// with the least impact possible to forwarding. -message ActivateOK { -} - -message ActivateError { - enum Type { - // An unspecified error. Must use the detail value to describe the issue. - UNSPECIFIED = 0; - // There is no OS package with the version requested for activation. This is - // also used for an empty version string. - NON_EXISTENT_VERSION = 1; - // Dual Supervisor Target which requires installing the entire system - // with one Install RPC MUST return NOT_SUPPORTED_ON_BACKUP error when - // requested to Activate on standby Supervisor. - NOT_SUPPORTED_ON_BACKUP = 2; - } - Type type = 1; - string detail = 2; -} - -message VerifyRequest { -} - -message VerifyResponse { - // The OS version currently running. This string should match OC path - // /system/state/software-version - string version = 1; - // Informational message describing fail details of the last boot. This MUST - // be set when a newly transferred OS fails to boot and the system falls back - // to the previously running OS version. It MUST be cleared whenever the - // systems successfully boots the activated OS version. - string activation_fail_message = 2; - - VerifyStandby verify_standby = 3; - // Dual Supervisor Targets that require the Install/Activate/Verify process - // executed once per supervisor reply with individual_supervisor_install set - // to true - bool individual_supervisor_install = 4; -} - -message VerifyStandby { - oneof state { - // Standby state indicates problems with the standby. - StandbyState standby_state = 1; - // Standby response indicates that the standby is present and ready. - StandbyResponse verify_response = 2; - } -} - -message StandbyState { - enum State { - UNSPECIFIED = 0; - // The Target does not support dual Supervisors. - UNSUPPORTED = 1; - // Standby Supervisor is supported but does not exist. - NON_EXISTENT = 2; - // Standby Supervisor is supported but is not available, eg.: rebooting. - UNAVAILABLE = 3; - } - State state = 1; -} - -message StandbyResponse { - // Standby Supervisor ID, usually the slot number. - string id = 1; - string version = 2; - string activation_fail_message = 3; -} diff --git a/src/sonic-framework/gnoi/os/os_grpc.pb.go b/src/sonic-framework/gnoi/os/os_grpc.pb.go deleted file mode 100755 index b5cf28090e83..000000000000 --- a/src/sonic-framework/gnoi/os/os_grpc.pb.go +++ /dev/null @@ -1,210 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.21.10 -// source: os/os.proto - -package os - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// OSClient is the client API for OS service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type OSClient interface { - Install(ctx context.Context, opts ...grpc.CallOption) (OS_InstallClient, error) - Activate(ctx context.Context, in *ActivateRequest, opts ...grpc.CallOption) (*ActivateResponse, error) - Verify(ctx context.Context, in *VerifyRequest, opts ...grpc.CallOption) (*VerifyResponse, error) -} - -type oSClient struct { - cc grpc.ClientConnInterface -} - -func NewOSClient(cc grpc.ClientConnInterface) OSClient { - return &oSClient{cc} -} - -func (c *oSClient) Install(ctx context.Context, opts ...grpc.CallOption) (OS_InstallClient, error) { - stream, err := c.cc.NewStream(ctx, &OS_ServiceDesc.Streams[0], "/gnoi.os.OS/Install", opts...) - if err != nil { - return nil, err - } - x := &oSInstallClient{stream} - return x, nil -} - -type OS_InstallClient interface { - Send(*InstallRequest) error - Recv() (*InstallResponse, error) - grpc.ClientStream -} - -type oSInstallClient struct { - grpc.ClientStream -} - -func (x *oSInstallClient) Send(m *InstallRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *oSInstallClient) Recv() (*InstallResponse, error) { - m := new(InstallResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *oSClient) Activate(ctx context.Context, in *ActivateRequest, opts ...grpc.CallOption) (*ActivateResponse, error) { - out := new(ActivateResponse) - err := c.cc.Invoke(ctx, "/gnoi.os.OS/Activate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *oSClient) Verify(ctx context.Context, in *VerifyRequest, opts ...grpc.CallOption) (*VerifyResponse, error) { - out := new(VerifyResponse) - err := c.cc.Invoke(ctx, "/gnoi.os.OS/Verify", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// OSServer is the server API for OS service. -// All implementations must embed UnimplementedOSServer -// for forward compatibility -type OSServer interface { - Install(OS_InstallServer) error - Activate(context.Context, *ActivateRequest) (*ActivateResponse, error) - Verify(context.Context, *VerifyRequest) (*VerifyResponse, error) - mustEmbedUnimplementedOSServer() -} - -// UnimplementedOSServer must be embedded to have forward compatible implementations. -type UnimplementedOSServer struct { -} - -func (UnimplementedOSServer) Install(OS_InstallServer) error { - return status.Errorf(codes.Unimplemented, "method Install not implemented") -} -func (UnimplementedOSServer) Activate(context.Context, *ActivateRequest) (*ActivateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Activate not implemented") -} -func (UnimplementedOSServer) Verify(context.Context, *VerifyRequest) (*VerifyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Verify not implemented") -} -func (UnimplementedOSServer) mustEmbedUnimplementedOSServer() {} - -// UnsafeOSServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to OSServer will -// result in compilation errors. -type UnsafeOSServer interface { - mustEmbedUnimplementedOSServer() -} - -func RegisterOSServer(s grpc.ServiceRegistrar, srv OSServer) { - s.RegisterService(&OS_ServiceDesc, srv) -} - -func _OS_Install_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(OSServer).Install(&oSInstallServer{stream}) -} - -type OS_InstallServer interface { - Send(*InstallResponse) error - Recv() (*InstallRequest, error) - grpc.ServerStream -} - -type oSInstallServer struct { - grpc.ServerStream -} - -func (x *oSInstallServer) Send(m *InstallResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *oSInstallServer) Recv() (*InstallRequest, error) { - m := new(InstallRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _OS_Activate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ActivateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OSServer).Activate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.os.OS/Activate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OSServer).Activate(ctx, req.(*ActivateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _OS_Verify_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(VerifyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OSServer).Verify(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.os.OS/Verify", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OSServer).Verify(ctx, req.(*VerifyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// OS_ServiceDesc is the grpc.ServiceDesc for OS service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var OS_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.os.OS", - HandlerType: (*OSServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Activate", - Handler: _OS_Activate_Handler, - }, - { - MethodName: "Verify", - Handler: _OS_Verify_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "Install", - Handler: _OS_Install_Handler, - ServerStreams: true, - ClientStreams: true, - }, - }, - Metadata: "os/os.proto", -} diff --git a/src/sonic-framework/gnoi/otdr/BUILD.bazel b/src/sonic-framework/gnoi/otdr/BUILD.bazel deleted file mode 100644 index 0d9c7d37259a..000000000000 --- a/src/sonic-framework/gnoi/otdr/BUILD.bazel +++ /dev/null @@ -1,61 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") -load("//:common.bzl", "use_new_compilers") - -#Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# 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. - -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -use_new_compilers() - -proto_library( - name = "otdr_proto", - srcs = ["otdr.proto"], - deps = ["//types:types_proto"], -) - -cc_proto_library( - name = "otdr_cc_proto", - deps = [":otdr_proto"], -) - -cc_grpc_library( - name = "otdr_cc_grpc_proto", - srcs = [":otdr_proto"], - grpc_only = True, - deps = [":otdr_cc_proto"], -) - -go_proto_library( - name = "otdr_go_proto", - compilers = [ - "go_protoc_gen_go", - "go_protoc_gen_go_grpc", - ], - importpath = "github.com/openconfig/gnoi/otdr", - proto = ":otdr_proto", - deps = ["//types"], -) - -go_library( - name = "otdr", - embed = [":otdr_go_proto"], - importpath = "github.com/openconfig/gnoi/otdr", -) diff --git a/src/sonic-framework/gnoi/otdr/otdr.pb.go b/src/sonic-framework/gnoi/otdr/otdr.pb.go deleted file mode 100644 index 2b0435f6f234..000000000000 --- a/src/sonic-framework/gnoi/otdr/otdr.pb.go +++ /dev/null @@ -1,1111 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v3.21.10 -// source: otdr/otdr.proto - -package otdr - -import ( - types "github.com/openconfig/gnoi/types" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type FiberTypeProfile int32 - -const ( - FiberTypeProfile_FTP_UNKNOWN FiberTypeProfile = 0 - FiberTypeProfile_FTP_DSF FiberTypeProfile = 1 - FiberTypeProfile_FTP_LEAF FiberTypeProfile = 2 - FiberTypeProfile_FTP_SSMF FiberTypeProfile = 3 - FiberTypeProfile_FTP_TWC FiberTypeProfile = 4 - FiberTypeProfile_FTP_TWRS FiberTypeProfile = 5 - FiberTypeProfile_FTP_LS FiberTypeProfile = 6 - FiberTypeProfile_FTP_TERAWAVE FiberTypeProfile = 7 - FiberTypeProfile_FTP_TERALIGHT FiberTypeProfile = 8 -) - -// Enum value maps for FiberTypeProfile. -var ( - FiberTypeProfile_name = map[int32]string{ - 0: "FTP_UNKNOWN", - 1: "FTP_DSF", - 2: "FTP_LEAF", - 3: "FTP_SSMF", - 4: "FTP_TWC", - 5: "FTP_TWRS", - 6: "FTP_LS", - 7: "FTP_TERAWAVE", - 8: "FTP_TERALIGHT", - } - FiberTypeProfile_value = map[string]int32{ - "FTP_UNKNOWN": 0, - "FTP_DSF": 1, - "FTP_LEAF": 2, - "FTP_SSMF": 3, - "FTP_TWC": 4, - "FTP_TWRS": 5, - "FTP_LS": 6, - "FTP_TERAWAVE": 7, - "FTP_TERALIGHT": 8, - } -) - -func (x FiberTypeProfile) Enum() *FiberTypeProfile { - p := new(FiberTypeProfile) - *p = x - return p -} - -func (x FiberTypeProfile) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (FiberTypeProfile) Descriptor() protoreflect.EnumDescriptor { - return file_otdr_otdr_proto_enumTypes[0].Descriptor() -} - -func (FiberTypeProfile) Type() protoreflect.EnumType { - return &file_otdr_otdr_proto_enumTypes[0] -} - -func (x FiberTypeProfile) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use FiberTypeProfile.Descriptor instead. -func (FiberTypeProfile) EnumDescriptor() ([]byte, []int) { - return file_otdr_otdr_proto_rawDescGZIP(), []int{0} -} - -type InitiateRequest_ResultsMethod int32 - -const ( - InitiateRequest_RESULTS_UNKNOWN InitiateRequest_ResultsMethod = 0 - InitiateRequest_RESULTS_TO_LOCAL_DISK InitiateRequest_ResultsMethod = 1 - InitiateRequest_RESULTS_IN_RESPONSE InitiateRequest_ResultsMethod = 2 -) - -// Enum value maps for InitiateRequest_ResultsMethod. -var ( - InitiateRequest_ResultsMethod_name = map[int32]string{ - 0: "RESULTS_UNKNOWN", - 1: "RESULTS_TO_LOCAL_DISK", - 2: "RESULTS_IN_RESPONSE", - } - InitiateRequest_ResultsMethod_value = map[string]int32{ - "RESULTS_UNKNOWN": 0, - "RESULTS_TO_LOCAL_DISK": 1, - "RESULTS_IN_RESPONSE": 2, - } -) - -func (x InitiateRequest_ResultsMethod) Enum() *InitiateRequest_ResultsMethod { - p := new(InitiateRequest_ResultsMethod) - *p = x - return p -} - -func (x InitiateRequest_ResultsMethod) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (InitiateRequest_ResultsMethod) Descriptor() protoreflect.EnumDescriptor { - return file_otdr_otdr_proto_enumTypes[1].Descriptor() -} - -func (InitiateRequest_ResultsMethod) Type() protoreflect.EnumType { - return &file_otdr_otdr_proto_enumTypes[1] -} - -func (x InitiateRequest_ResultsMethod) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use InitiateRequest_ResultsMethod.Descriptor instead. -func (InitiateRequest_ResultsMethod) EnumDescriptor() ([]byte, []int) { - return file_otdr_otdr_proto_rawDescGZIP(), []int{0, 0} -} - -type InitiateProgress_State int32 - -const ( - InitiateProgress_UNKNOWN InitiateProgress_State = 0 - InitiateProgress_RUNNING InitiateProgress_State = 1 - InitiateProgress_PENDING InitiateProgress_State = 2 - InitiateProgress_COMPLETE InitiateProgress_State = 3 -) - -// Enum value maps for InitiateProgress_State. -var ( - InitiateProgress_State_name = map[int32]string{ - 0: "UNKNOWN", - 1: "RUNNING", - 2: "PENDING", - 3: "COMPLETE", - } - InitiateProgress_State_value = map[string]int32{ - "UNKNOWN": 0, - "RUNNING": 1, - "PENDING": 2, - "COMPLETE": 3, - } -) - -func (x InitiateProgress_State) Enum() *InitiateProgress_State { - p := new(InitiateProgress_State) - *p = x - return p -} - -func (x InitiateProgress_State) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (InitiateProgress_State) Descriptor() protoreflect.EnumDescriptor { - return file_otdr_otdr_proto_enumTypes[2].Descriptor() -} - -func (InitiateProgress_State) Type() protoreflect.EnumType { - return &file_otdr_otdr_proto_enumTypes[2] -} - -func (x InitiateProgress_State) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use InitiateProgress_State.Descriptor instead. -func (InitiateProgress_State) EnumDescriptor() ([]byte, []int) { - return file_otdr_otdr_proto_rawDescGZIP(), []int{2, 0} -} - -type InitiateError_Type int32 - -const ( - InitiateError_UNSPECIFIED InitiateError_Type = 0 - InitiateError_ALREADY_IN_PROGRESS InitiateError_Type = 1 - InitiateError_HARDWARE_FAILURE InitiateError_Type = 2 -) - -// Enum value maps for InitiateError_Type. -var ( - InitiateError_Type_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "ALREADY_IN_PROGRESS", - 2: "HARDWARE_FAILURE", - } - InitiateError_Type_value = map[string]int32{ - "UNSPECIFIED": 0, - "ALREADY_IN_PROGRESS": 1, - "HARDWARE_FAILURE": 2, - } -) - -func (x InitiateError_Type) Enum() *InitiateError_Type { - p := new(InitiateError_Type) - *p = x - return p -} - -func (x InitiateError_Type) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (InitiateError_Type) Descriptor() protoreflect.EnumDescriptor { - return file_otdr_otdr_proto_enumTypes[3].Descriptor() -} - -func (InitiateError_Type) Type() protoreflect.EnumType { - return &file_otdr_otdr_proto_enumTypes[3] -} - -func (x InitiateError_Type) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use InitiateError_Type.Descriptor instead. -func (InitiateError_Type) EnumDescriptor() ([]byte, []int) { - return file_otdr_otdr_proto_rawDescGZIP(), []int{4, 0} -} - -type InitiateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Component *types.Path `protobuf:"bytes,1,opt,name=component,proto3" json:"component,omitempty"` - ResultsMethod []InitiateRequest_ResultsMethod `protobuf:"varint,2,rep,packed,name=results_method,json=resultsMethod,proto3,enum=gnoi.optical.InitiateRequest_ResultsMethod" json:"results_method,omitempty"` - Configuration *OTDRConfiguration `protobuf:"bytes,3,opt,name=configuration,proto3" json:"configuration,omitempty"` - Label string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"` -} - -func (x *InitiateRequest) Reset() { - *x = InitiateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_otdr_otdr_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InitiateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InitiateRequest) ProtoMessage() {} - -func (x *InitiateRequest) ProtoReflect() protoreflect.Message { - mi := &file_otdr_otdr_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InitiateRequest.ProtoReflect.Descriptor instead. -func (*InitiateRequest) Descriptor() ([]byte, []int) { - return file_otdr_otdr_proto_rawDescGZIP(), []int{0} -} - -func (x *InitiateRequest) GetComponent() *types.Path { - if x != nil { - return x.Component - } - return nil -} - -func (x *InitiateRequest) GetResultsMethod() []InitiateRequest_ResultsMethod { - if x != nil { - return x.ResultsMethod - } - return nil -} - -func (x *InitiateRequest) GetConfiguration() *OTDRConfiguration { - if x != nil { - return x.Configuration - } - return nil -} - -func (x *InitiateRequest) GetLabel() string { - if x != nil { - return x.Label - } - return "" -} - -type OTDRConfiguration struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AcquisitionTimeS uint32 `protobuf:"varint,1,opt,name=acquisition_time_s,json=acquisitionTimeS,proto3" json:"acquisition_time_s,omitempty"` - PulseWidthNs float32 `protobuf:"fixed32,2,opt,name=pulse_width_ns,json=pulseWidthNs,proto3" json:"pulse_width_ns,omitempty"` - WavelengthMhz uint64 `protobuf:"varint,3,opt,name=wavelength_mhz,json=wavelengthMhz,proto3" json:"wavelength_mhz,omitempty"` - RangeM float32 `protobuf:"fixed32,4,opt,name=range_m,json=rangeM,proto3" json:"range_m,omitempty"` - FiberType FiberTypeProfile `protobuf:"varint,5,opt,name=fiber_type,json=fiberType,proto3,enum=gnoi.optical.FiberTypeProfile" json:"fiber_type,omitempty"` - SamplingResolutionM float32 `protobuf:"fixed32,6,opt,name=sampling_resolution_m,json=samplingResolutionM,proto3" json:"sampling_resolution_m,omitempty"` -} - -func (x *OTDRConfiguration) Reset() { - *x = OTDRConfiguration{} - if protoimpl.UnsafeEnabled { - mi := &file_otdr_otdr_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OTDRConfiguration) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OTDRConfiguration) ProtoMessage() {} - -func (x *OTDRConfiguration) ProtoReflect() protoreflect.Message { - mi := &file_otdr_otdr_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OTDRConfiguration.ProtoReflect.Descriptor instead. -func (*OTDRConfiguration) Descriptor() ([]byte, []int) { - return file_otdr_otdr_proto_rawDescGZIP(), []int{1} -} - -func (x *OTDRConfiguration) GetAcquisitionTimeS() uint32 { - if x != nil { - return x.AcquisitionTimeS - } - return 0 -} - -func (x *OTDRConfiguration) GetPulseWidthNs() float32 { - if x != nil { - return x.PulseWidthNs - } - return 0 -} - -func (x *OTDRConfiguration) GetWavelengthMhz() uint64 { - if x != nil { - return x.WavelengthMhz - } - return 0 -} - -func (x *OTDRConfiguration) GetRangeM() float32 { - if x != nil { - return x.RangeM - } - return 0 -} - -func (x *OTDRConfiguration) GetFiberType() FiberTypeProfile { - if x != nil { - return x.FiberType - } - return FiberTypeProfile_FTP_UNKNOWN -} - -func (x *OTDRConfiguration) GetSamplingResolutionM() float32 { - if x != nil { - return x.SamplingResolutionM - } - return 0 -} - -type InitiateProgress struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - State InitiateProgress_State `protobuf:"varint,1,opt,name=state,proto3,enum=gnoi.optical.InitiateProgress_State" json:"state,omitempty"` -} - -func (x *InitiateProgress) Reset() { - *x = InitiateProgress{} - if protoimpl.UnsafeEnabled { - mi := &file_otdr_otdr_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InitiateProgress) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InitiateProgress) ProtoMessage() {} - -func (x *InitiateProgress) ProtoReflect() protoreflect.Message { - mi := &file_otdr_otdr_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InitiateProgress.ProtoReflect.Descriptor instead. -func (*InitiateProgress) Descriptor() ([]byte, []int) { - return file_otdr_otdr_proto_rawDescGZIP(), []int{2} -} - -func (x *InitiateProgress) GetState() InitiateProgress_State { - if x != nil { - return x.State - } - return InitiateProgress_UNKNOWN -} - -type InitiateResults struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - LocalPath string `protobuf:"bytes,1,opt,name=local_path,json=localPath,proto3" json:"local_path,omitempty"` - OtdrTrace *OTDRTrace `protobuf:"bytes,2,opt,name=otdr_trace,json=otdrTrace,proto3" json:"otdr_trace,omitempty"` -} - -func (x *InitiateResults) Reset() { - *x = InitiateResults{} - if protoimpl.UnsafeEnabled { - mi := &file_otdr_otdr_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InitiateResults) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InitiateResults) ProtoMessage() {} - -func (x *InitiateResults) ProtoReflect() protoreflect.Message { - mi := &file_otdr_otdr_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InitiateResults.ProtoReflect.Descriptor instead. -func (*InitiateResults) Descriptor() ([]byte, []int) { - return file_otdr_otdr_proto_rawDescGZIP(), []int{3} -} - -func (x *InitiateResults) GetLocalPath() string { - if x != nil { - return x.LocalPath - } - return "" -} - -func (x *InitiateResults) GetOtdrTrace() *OTDRTrace { - if x != nil { - return x.OtdrTrace - } - return nil -} - -type InitiateError struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Type InitiateError_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.optical.InitiateError_Type" json:"type,omitempty"` - Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` -} - -func (x *InitiateError) Reset() { - *x = InitiateError{} - if protoimpl.UnsafeEnabled { - mi := &file_otdr_otdr_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InitiateError) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InitiateError) ProtoMessage() {} - -func (x *InitiateError) ProtoReflect() protoreflect.Message { - mi := &file_otdr_otdr_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InitiateError.ProtoReflect.Descriptor instead. -func (*InitiateError) Descriptor() ([]byte, []int) { - return file_otdr_otdr_proto_rawDescGZIP(), []int{4} -} - -func (x *InitiateError) GetType() InitiateError_Type { - if x != nil { - return x.Type - } - return InitiateError_UNSPECIFIED -} - -func (x *InitiateError) GetDetail() string { - if x != nil { - return x.Detail - } - return "" -} - -type InitiateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Response: - // - // *InitiateResponse_Progress - // *InitiateResponse_Results - // *InitiateResponse_Error - Response isInitiateResponse_Response `protobuf_oneof:"response"` -} - -func (x *InitiateResponse) Reset() { - *x = InitiateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_otdr_otdr_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InitiateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InitiateResponse) ProtoMessage() {} - -func (x *InitiateResponse) ProtoReflect() protoreflect.Message { - mi := &file_otdr_otdr_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InitiateResponse.ProtoReflect.Descriptor instead. -func (*InitiateResponse) Descriptor() ([]byte, []int) { - return file_otdr_otdr_proto_rawDescGZIP(), []int{5} -} - -func (m *InitiateResponse) GetResponse() isInitiateResponse_Response { - if m != nil { - return m.Response - } - return nil -} - -func (x *InitiateResponse) GetProgress() *InitiateProgress { - if x, ok := x.GetResponse().(*InitiateResponse_Progress); ok { - return x.Progress - } - return nil -} - -func (x *InitiateResponse) GetResults() *InitiateResults { - if x, ok := x.GetResponse().(*InitiateResponse_Results); ok { - return x.Results - } - return nil -} - -func (x *InitiateResponse) GetError() *InitiateError { - if x, ok := x.GetResponse().(*InitiateResponse_Error); ok { - return x.Error - } - return nil -} - -type isInitiateResponse_Response interface { - isInitiateResponse_Response() -} - -type InitiateResponse_Progress struct { - Progress *InitiateProgress `protobuf:"bytes,1,opt,name=progress,proto3,oneof"` -} - -type InitiateResponse_Results struct { - Results *InitiateResults `protobuf:"bytes,2,opt,name=results,proto3,oneof"` -} - -type InitiateResponse_Error struct { - Error *InitiateError `protobuf:"bytes,3,opt,name=error,proto3,oneof"` -} - -func (*InitiateResponse_Progress) isInitiateResponse_Response() {} - -func (*InitiateResponse_Results) isInitiateResponse_Response() {} - -func (*InitiateResponse_Error) isInitiateResponse_Response() {} - -type OTDRTrace struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TotalLossDb float32 `protobuf:"fixed32,1,opt,name=total_loss_db,json=totalLossDb,proto3" json:"total_loss_db,omitempty"` - TotalLengthM float32 `protobuf:"fixed32,2,opt,name=total_length_m,json=totalLengthM,proto3" json:"total_length_m,omitempty"` - OpticalReturnLossDb float32 `protobuf:"fixed32,3,opt,name=optical_return_loss_db,json=opticalReturnLossDb,proto3" json:"optical_return_loss_db,omitempty"` - AverageLossDbKm float32 `protobuf:"fixed32,4,opt,name=average_loss_db_km,json=averageLossDbKm,proto3" json:"average_loss_db_km,omitempty"` - DiscoveredFiberType FiberTypeProfile `protobuf:"varint,5,opt,name=discovered_fiber_type,json=discoveredFiberType,proto3,enum=gnoi.optical.FiberTypeProfile" json:"discovered_fiber_type,omitempty"` - Events []*Event `protobuf:"bytes,6,rep,name=events,proto3" json:"events,omitempty"` -} - -func (x *OTDRTrace) Reset() { - *x = OTDRTrace{} - if protoimpl.UnsafeEnabled { - mi := &file_otdr_otdr_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OTDRTrace) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OTDRTrace) ProtoMessage() {} - -func (x *OTDRTrace) ProtoReflect() protoreflect.Message { - mi := &file_otdr_otdr_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OTDRTrace.ProtoReflect.Descriptor instead. -func (*OTDRTrace) Descriptor() ([]byte, []int) { - return file_otdr_otdr_proto_rawDescGZIP(), []int{6} -} - -func (x *OTDRTrace) GetTotalLossDb() float32 { - if x != nil { - return x.TotalLossDb - } - return 0 -} - -func (x *OTDRTrace) GetTotalLengthM() float32 { - if x != nil { - return x.TotalLengthM - } - return 0 -} - -func (x *OTDRTrace) GetOpticalReturnLossDb() float32 { - if x != nil { - return x.OpticalReturnLossDb - } - return 0 -} - -func (x *OTDRTrace) GetAverageLossDbKm() float32 { - if x != nil { - return x.AverageLossDbKm - } - return 0 -} - -func (x *OTDRTrace) GetDiscoveredFiberType() FiberTypeProfile { - if x != nil { - return x.DiscoveredFiberType - } - return FiberTypeProfile_FTP_UNKNOWN -} - -func (x *OTDRTrace) GetEvents() []*Event { - if x != nil { - return x.Events - } - return nil -} - -type Event struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DistanceM float32 `protobuf:"fixed32,1,opt,name=distance_m,json=distanceM,proto3" json:"distance_m,omitempty"` - LossDb float32 `protobuf:"fixed32,2,opt,name=loss_db,json=lossDb,proto3" json:"loss_db,omitempty"` - ReflectionDb float32 `protobuf:"fixed32,3,opt,name=reflection_db,json=reflectionDb,proto3" json:"reflection_db,omitempty"` -} - -func (x *Event) Reset() { - *x = Event{} - if protoimpl.UnsafeEnabled { - mi := &file_otdr_otdr_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Event) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Event) ProtoMessage() {} - -func (x *Event) ProtoReflect() protoreflect.Message { - mi := &file_otdr_otdr_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Event.ProtoReflect.Descriptor instead. -func (*Event) Descriptor() ([]byte, []int) { - return file_otdr_otdr_proto_rawDescGZIP(), []int{7} -} - -func (x *Event) GetDistanceM() float32 { - if x != nil { - return x.DistanceM - } - return 0 -} - -func (x *Event) GetLossDb() float32 { - if x != nil { - return x.LossDb - } - return 0 -} - -func (x *Event) GetReflectionDb() float32 { - if x != nil { - return x.ReflectionDb - } - return 0 -} - -var File_otdr_otdr_proto protoreflect.FileDescriptor - -var file_otdr_otdr_proto_rawDesc = []byte{ - 0x0a, 0x0f, 0x6f, 0x74, 0x64, 0x72, 0x2f, 0x6f, 0x74, 0x64, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x0c, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x1a, - 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcc, 0x02, - 0x0a, 0x0f, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x2e, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, - 0x74, 0x12, 0x52, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x5f, 0x6d, 0x65, 0x74, - 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, - 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x4d, - 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x45, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x4f, 0x54, 0x44, 0x52, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, - 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, 0x62, - 0x65, 0x6c, 0x22, 0x58, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x4d, 0x65, 0x74, - 0x68, 0x6f, 0x64, 0x12, 0x13, 0x0a, 0x0f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x53, 0x5f, 0x55, - 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x52, 0x45, 0x53, 0x55, - 0x4c, 0x54, 0x53, 0x5f, 0x54, 0x4f, 0x5f, 0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x5f, 0x44, 0x49, 0x53, - 0x4b, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x53, 0x5f, 0x49, - 0x4e, 0x5f, 0x52, 0x45, 0x53, 0x50, 0x4f, 0x4e, 0x53, 0x45, 0x10, 0x02, 0x22, 0x9a, 0x02, 0x0a, - 0x11, 0x4f, 0x54, 0x44, 0x52, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x2c, 0x0a, 0x12, 0x61, 0x63, 0x71, 0x75, 0x69, 0x73, 0x69, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x10, - 0x61, 0x63, 0x71, 0x75, 0x69, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x53, - 0x12, 0x24, 0x0a, 0x0e, 0x70, 0x75, 0x6c, 0x73, 0x65, 0x5f, 0x77, 0x69, 0x64, 0x74, 0x68, 0x5f, - 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0c, 0x70, 0x75, 0x6c, 0x73, 0x65, 0x57, - 0x69, 0x64, 0x74, 0x68, 0x4e, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x77, 0x61, 0x76, 0x65, 0x6c, 0x65, - 0x6e, 0x67, 0x74, 0x68, 0x5f, 0x6d, 0x68, 0x7a, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, - 0x77, 0x61, 0x76, 0x65, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x4d, 0x68, 0x7a, 0x12, 0x17, 0x0a, - 0x07, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x06, - 0x72, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x12, 0x3d, 0x0a, 0x0a, 0x66, 0x69, 0x62, 0x65, 0x72, 0x5f, - 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x46, 0x69, 0x62, 0x65, 0x72, 0x54, - 0x79, 0x70, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x09, 0x66, 0x69, 0x62, 0x65, - 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, - 0x67, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x02, 0x52, 0x13, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x52, 0x65, - 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x22, 0x8c, 0x01, 0x0a, 0x10, 0x49, 0x6e, - 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3a, - 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x49, 0x6e, 0x69, - 0x74, 0x69, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x3c, 0x0a, 0x05, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, - 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0b, 0x0a, - 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x4f, - 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x03, 0x22, 0x68, 0x0a, 0x0f, 0x49, 0x6e, 0x69, 0x74, - 0x69, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, - 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x50, 0x61, 0x74, 0x68, 0x12, 0x36, 0x0a, 0x0a, 0x6f, 0x74, - 0x64, 0x72, 0x5f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x4f, 0x54, - 0x44, 0x52, 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, 0x09, 0x6f, 0x74, 0x64, 0x72, 0x54, 0x72, 0x61, - 0x63, 0x65, 0x22, 0xa5, 0x01, 0x0a, 0x0d, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x45, - 0x72, 0x72, 0x6f, 0x72, 0x12, 0x34, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, - 0x6c, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x2e, - 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, - 0x74, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, - 0x69, 0x6c, 0x22, 0x46, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, - 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x41, - 0x4c, 0x52, 0x45, 0x41, 0x44, 0x59, 0x5f, 0x49, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x45, - 0x53, 0x53, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x48, 0x41, 0x52, 0x44, 0x57, 0x41, 0x52, 0x45, - 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x02, 0x22, 0xcc, 0x01, 0x0a, 0x10, 0x49, - 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x3c, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, - 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, - 0x73, 0x48, 0x00, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x39, 0x0a, - 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x49, 0x6e, - 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x48, 0x00, 0x52, - 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x33, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, - 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, - 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x45, - 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x0a, 0x0a, - 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb8, 0x02, 0x0a, 0x09, 0x4f, 0x54, - 0x44, 0x52, 0x54, 0x72, 0x61, 0x63, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x74, 0x6f, 0x74, 0x61, 0x6c, - 0x5f, 0x6c, 0x6f, 0x73, 0x73, 0x5f, 0x64, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0b, - 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x4c, 0x6f, 0x73, 0x73, 0x44, 0x62, 0x12, 0x24, 0x0a, 0x0e, 0x74, - 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x5f, 0x6d, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x02, 0x52, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, - 0x4d, 0x12, 0x33, 0x0a, 0x16, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x5f, 0x6c, 0x6f, 0x73, 0x73, 0x5f, 0x64, 0x62, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x02, 0x52, 0x13, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x4c, 0x6f, 0x73, 0x73, 0x44, 0x62, 0x12, 0x2b, 0x0a, 0x12, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, - 0x65, 0x5f, 0x6c, 0x6f, 0x73, 0x73, 0x5f, 0x64, 0x62, 0x5f, 0x6b, 0x6d, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x02, 0x52, 0x0f, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x4c, 0x6f, 0x73, 0x73, 0x44, - 0x62, 0x4b, 0x6d, 0x12, 0x52, 0x0a, 0x15, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x65, - 0x64, 0x5f, 0x66, 0x69, 0x62, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, - 0x6c, 0x2e, 0x46, 0x69, 0x62, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, - 0x6c, 0x65, 0x52, 0x13, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x65, 0x64, 0x46, 0x69, - 0x62, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, - 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x73, 0x22, 0x64, 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x1d, 0x0a, - 0x0a, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x02, 0x52, 0x09, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4d, 0x12, 0x17, 0x0a, 0x07, - 0x6c, 0x6f, 0x73, 0x73, 0x5f, 0x64, 0x62, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x06, 0x6c, - 0x6f, 0x73, 0x73, 0x44, 0x62, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x62, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0c, 0x72, 0x65, - 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x62, 0x2a, 0x98, 0x01, 0x0a, 0x10, 0x46, - 0x69, 0x62, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, - 0x0f, 0x0a, 0x0b, 0x46, 0x54, 0x50, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, - 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x54, 0x50, 0x5f, 0x44, 0x53, 0x46, 0x10, 0x01, 0x12, 0x0c, 0x0a, - 0x08, 0x46, 0x54, 0x50, 0x5f, 0x4c, 0x45, 0x41, 0x46, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x46, - 0x54, 0x50, 0x5f, 0x53, 0x53, 0x4d, 0x46, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x54, 0x50, - 0x5f, 0x54, 0x57, 0x43, 0x10, 0x04, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x54, 0x50, 0x5f, 0x54, 0x57, - 0x52, 0x53, 0x10, 0x05, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x54, 0x50, 0x5f, 0x4c, 0x53, 0x10, 0x06, - 0x12, 0x10, 0x0a, 0x0c, 0x46, 0x54, 0x50, 0x5f, 0x54, 0x45, 0x52, 0x41, 0x57, 0x41, 0x56, 0x45, - 0x10, 0x07, 0x12, 0x11, 0x0a, 0x0d, 0x46, 0x54, 0x50, 0x5f, 0x54, 0x45, 0x52, 0x41, 0x4c, 0x49, - 0x47, 0x48, 0x54, 0x10, 0x08, 0x32, 0x55, 0x0a, 0x04, 0x4f, 0x54, 0x44, 0x52, 0x12, 0x4d, 0x0a, - 0x08, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x42, 0x29, 0xd2, 0x3e, - 0x05, 0x30, 0x2e, 0x31, 0x2e, 0x30, 0x5a, 0x1f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, - 0x6f, 0x69, 0x2f, 0x6f, 0x74, 0x64, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_otdr_otdr_proto_rawDescOnce sync.Once - file_otdr_otdr_proto_rawDescData = file_otdr_otdr_proto_rawDesc -) - -func file_otdr_otdr_proto_rawDescGZIP() []byte { - file_otdr_otdr_proto_rawDescOnce.Do(func() { - file_otdr_otdr_proto_rawDescData = protoimpl.X.CompressGZIP(file_otdr_otdr_proto_rawDescData) - }) - return file_otdr_otdr_proto_rawDescData -} - -var file_otdr_otdr_proto_enumTypes = make([]protoimpl.EnumInfo, 4) -var file_otdr_otdr_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_otdr_otdr_proto_goTypes = []interface{}{ - (FiberTypeProfile)(0), // 0: gnoi.optical.FiberTypeProfile - (InitiateRequest_ResultsMethod)(0), // 1: gnoi.optical.InitiateRequest.ResultsMethod - (InitiateProgress_State)(0), // 2: gnoi.optical.InitiateProgress.State - (InitiateError_Type)(0), // 3: gnoi.optical.InitiateError.Type - (*InitiateRequest)(nil), // 4: gnoi.optical.InitiateRequest - (*OTDRConfiguration)(nil), // 5: gnoi.optical.OTDRConfiguration - (*InitiateProgress)(nil), // 6: gnoi.optical.InitiateProgress - (*InitiateResults)(nil), // 7: gnoi.optical.InitiateResults - (*InitiateError)(nil), // 8: gnoi.optical.InitiateError - (*InitiateResponse)(nil), // 9: gnoi.optical.InitiateResponse - (*OTDRTrace)(nil), // 10: gnoi.optical.OTDRTrace - (*Event)(nil), // 11: gnoi.optical.Event - (*types.Path)(nil), // 12: gnoi.types.Path -} -var file_otdr_otdr_proto_depIdxs = []int32{ - 12, // 0: gnoi.optical.InitiateRequest.component:type_name -> gnoi.types.Path - 1, // 1: gnoi.optical.InitiateRequest.results_method:type_name -> gnoi.optical.InitiateRequest.ResultsMethod - 5, // 2: gnoi.optical.InitiateRequest.configuration:type_name -> gnoi.optical.OTDRConfiguration - 0, // 3: gnoi.optical.OTDRConfiguration.fiber_type:type_name -> gnoi.optical.FiberTypeProfile - 2, // 4: gnoi.optical.InitiateProgress.state:type_name -> gnoi.optical.InitiateProgress.State - 10, // 5: gnoi.optical.InitiateResults.otdr_trace:type_name -> gnoi.optical.OTDRTrace - 3, // 6: gnoi.optical.InitiateError.type:type_name -> gnoi.optical.InitiateError.Type - 6, // 7: gnoi.optical.InitiateResponse.progress:type_name -> gnoi.optical.InitiateProgress - 7, // 8: gnoi.optical.InitiateResponse.results:type_name -> gnoi.optical.InitiateResults - 8, // 9: gnoi.optical.InitiateResponse.error:type_name -> gnoi.optical.InitiateError - 0, // 10: gnoi.optical.OTDRTrace.discovered_fiber_type:type_name -> gnoi.optical.FiberTypeProfile - 11, // 11: gnoi.optical.OTDRTrace.events:type_name -> gnoi.optical.Event - 4, // 12: gnoi.optical.OTDR.Initiate:input_type -> gnoi.optical.InitiateRequest - 9, // 13: gnoi.optical.OTDR.Initiate:output_type -> gnoi.optical.InitiateResponse - 13, // [13:14] is the sub-list for method output_type - 12, // [12:13] is the sub-list for method input_type - 12, // [12:12] is the sub-list for extension type_name - 12, // [12:12] is the sub-list for extension extendee - 0, // [0:12] is the sub-list for field type_name -} - -func init() { file_otdr_otdr_proto_init() } -func file_otdr_otdr_proto_init() { - if File_otdr_otdr_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_otdr_otdr_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InitiateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_otdr_otdr_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OTDRConfiguration); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_otdr_otdr_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InitiateProgress); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_otdr_otdr_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InitiateResults); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_otdr_otdr_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InitiateError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_otdr_otdr_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InitiateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_otdr_otdr_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OTDRTrace); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_otdr_otdr_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Event); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_otdr_otdr_proto_msgTypes[5].OneofWrappers = []interface{}{ - (*InitiateResponse_Progress)(nil), - (*InitiateResponse_Results)(nil), - (*InitiateResponse_Error)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_otdr_otdr_proto_rawDesc, - NumEnums: 4, - NumMessages: 8, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_otdr_otdr_proto_goTypes, - DependencyIndexes: file_otdr_otdr_proto_depIdxs, - EnumInfos: file_otdr_otdr_proto_enumTypes, - MessageInfos: file_otdr_otdr_proto_msgTypes, - }.Build() - File_otdr_otdr_proto = out.File - file_otdr_otdr_proto_rawDesc = nil - file_otdr_otdr_proto_goTypes = nil - file_otdr_otdr_proto_depIdxs = nil -} diff --git a/src/sonic-framework/gnoi/otdr/otdr.proto b/src/sonic-framework/gnoi/otdr/otdr.proto deleted file mode 100644 index 54ed97ecfcaf..000000000000 --- a/src/sonic-framework/gnoi/otdr/otdr.proto +++ /dev/null @@ -1,174 +0,0 @@ -// -// Copyright 2019 Google LLC. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.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 gnoi.optical; - -import "github.com/openconfig/gnoi/types/types.proto"; - -option go_package = "github.com/openconfig/gnoi/otdr"; - -option (types.gnoi_version) = "0.1.0"; - -service OTDR { - // Initiate triggers an optical time domain reflectometer (OTDR) trace to - // be run on a specified port. The results of the trace may be sent back in - // the response or saved on the device to be retrieved later. If the - // information is saved on the device a path to the file must be returned - // which can later be used by File.Get or File.TransferToRemote. The RPC - // should initiate the OTDR trace and wait until the OTDR trace has completed - // and the device has processed the results before returning. If the RPC is - // cancelled while in operation, the running OTDR trace should stop. - rpc Initiate(InitiateRequest) returns (stream InitiateResponse) {} -} - -message InitiateRequest { - // Absolute path to the /components/component list member in the OpenConfig - // model corresponding to the port to perform the OTDR trace from. - // (e.g., /components/component[name=otdr-1-1]) - types.Path component = 1; - - enum ResultsMethod { - RESULTS_UNKNOWN = 0; - RESULTS_TO_LOCAL_DISK = 1; // Results saved to a file on the device. - RESULTS_IN_RESPONSE = 2; // Results sent back in the response. - } - // Describes how the results of the OTDR trace should be made available. More - // than one option may be specified if desired. - repeated ResultsMethod results_method = 2; - - // Describes the configuration used to perform an OTDR trace. - OTDRConfiguration configuration = 3; - - // If specified, the device will label the OTDR trace so it can be recalled - // later. For example, the initial OTDR trace measured during span - // commissioning might be labeled "baseline". - string label = 4; -} - -// OTDR configuration options which can be set on the device. It is not required -// that every field be set as some fields may not apply for a given -// implementation. -message OTDRConfiguration { - // The time in seconds in which the OTDR trace will run continuously to - // collect data. - uint32 acquisition_time_s = 1; - - // The pulse width in nanoseconds which defines how long pulses sent by the - // OTDR will be during the test. - float pulse_width_ns = 2; - - // The wavelength in MHz that will be sent by the OTDR. This may be left blank - // if the OTDR only supports one wavelength. - uint64 wavelength_mhz = 3; - - // The maximum fiber distance range in meters that the OTDR trace will - // support. - float range_m = 4; - - // The type of fiber that is being measured. - FiberTypeProfile fiber_type = 5; - - // The sampling resolution in meters. - float sampling_resolution_m = 6; -} - -// Type definition for different profiles of fiber types. These match what is -// already defined in OpenConfig under the FIBER_TYPE_PROFILE identityref in -// openconfig-optical-amplifier.yang model. -enum FiberTypeProfile { - FTP_UNKNOWN = 0; - FTP_DSF = 1; // Dispersion shifted fiber. - FTP_LEAF = 2; // Large effective area fiber. - FTP_SSMF = 3; // Standard single mode fiber. - FTP_TWC = 4; // True wave classic fiber. - FTP_TWRS = 5; // True wave reduced slope fiber. - FTP_LS = 6; // LEAF Submarine fiber. - FTP_TERAWAVE = 7; // TeraWave fiber. - FTP_TERALIGHT = 8; // TeraLight fiber. -} - -message InitiateProgress { - // The State enum defines possible states that the OTDR trace may be in - // while running the operation. - enum State { - UNKNOWN = 0; - RUNNING = 1; // The OTDR is currently performing an OTDR trace. - PENDING = 2; // The OTDR is pending underlying resources being available. - COMPLETE = 3; // The OTDR trace was completed. - } - // The state of the OTDR trace requested. Note that this does not include - // error states as these should be returned as a gRPC error. - State state = 1; -} - -message InitiateResults { - // The local path in which the OTDR file is saved on the device. - string local_path = 1; - // The OTDR trace details in a structured format. - OTDRTrace otdr_trace = 2; -} - -message InitiateError { - enum Type { - // An unspecified error. Must use the detail value to describe the issue. - UNSPECIFIED = 0; - // An existing OTDR trace is already in progress. - ALREADY_IN_PROGRESS = 1; - // The OTDR hardware has failed and cannot complete an OTDR trace. - HARDWARE_FAILURE = 2; - } - Type type = 1; - string detail = 2; -} - -// IntitiateResponse describes the possible response messages that will be -// streamed after the RPC is initiated. While the OTDR is running, "progress" -// messages should be sent at a regular interval. When the OTDR trace is -// completed, a final "results" or "error" message should be streamed before -// the RPC is terminated. -message InitiateResponse { - oneof response { - InitiateProgress progress = 1; - InitiateResults results = 2; - InitiateError error = 3; - } -} - -message OTDRTrace { - // Total measured loss of the fiber. - float total_loss_db = 1; - // Total measured length of the fiber in meters. - float total_length_m = 2; - // Optical return loss of the fiber in dB. - float optical_return_loss_db = 3; - // Average fiber loss (dB/km) - float average_loss_db_km = 4; - // Discovered fiber type, if the OTDR can infer this information. - FiberTypeProfile discovered_fiber_type = 5; - - repeated Event events = 6; -} - -message Event { - // Distance at which the event occurred in meters. - float distance_m = 1; - // The fiber loss that occurred at the event in dB. - float loss_db = 2; - // The reflection that occurred at the event in dB. - float reflection_db = 3; -} - diff --git a/src/sonic-framework/gnoi/otdr/otdr_grpc.pb.go b/src/sonic-framework/gnoi/otdr/otdr_grpc.pb.go deleted file mode 100755 index c0d5fa22a0cb..000000000000 --- a/src/sonic-framework/gnoi/otdr/otdr_grpc.pb.go +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.21.10 -// source: otdr/otdr.proto - -package otdr - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// OTDRClient is the client API for OTDR service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type OTDRClient interface { - Initiate(ctx context.Context, in *InitiateRequest, opts ...grpc.CallOption) (OTDR_InitiateClient, error) -} - -type oTDRClient struct { - cc grpc.ClientConnInterface -} - -func NewOTDRClient(cc grpc.ClientConnInterface) OTDRClient { - return &oTDRClient{cc} -} - -func (c *oTDRClient) Initiate(ctx context.Context, in *InitiateRequest, opts ...grpc.CallOption) (OTDR_InitiateClient, error) { - stream, err := c.cc.NewStream(ctx, &OTDR_ServiceDesc.Streams[0], "/gnoi.optical.OTDR/Initiate", opts...) - if err != nil { - return nil, err - } - x := &oTDRInitiateClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type OTDR_InitiateClient interface { - Recv() (*InitiateResponse, error) - grpc.ClientStream -} - -type oTDRInitiateClient struct { - grpc.ClientStream -} - -func (x *oTDRInitiateClient) Recv() (*InitiateResponse, error) { - m := new(InitiateResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// OTDRServer is the server API for OTDR service. -// All implementations must embed UnimplementedOTDRServer -// for forward compatibility -type OTDRServer interface { - Initiate(*InitiateRequest, OTDR_InitiateServer) error - mustEmbedUnimplementedOTDRServer() -} - -// UnimplementedOTDRServer must be embedded to have forward compatible implementations. -type UnimplementedOTDRServer struct { -} - -func (UnimplementedOTDRServer) Initiate(*InitiateRequest, OTDR_InitiateServer) error { - return status.Errorf(codes.Unimplemented, "method Initiate not implemented") -} -func (UnimplementedOTDRServer) mustEmbedUnimplementedOTDRServer() {} - -// UnsafeOTDRServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to OTDRServer will -// result in compilation errors. -type UnsafeOTDRServer interface { - mustEmbedUnimplementedOTDRServer() -} - -func RegisterOTDRServer(s grpc.ServiceRegistrar, srv OTDRServer) { - s.RegisterService(&OTDR_ServiceDesc, srv) -} - -func _OTDR_Initiate_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(InitiateRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(OTDRServer).Initiate(m, &oTDRInitiateServer{stream}) -} - -type OTDR_InitiateServer interface { - Send(*InitiateResponse) error - grpc.ServerStream -} - -type oTDRInitiateServer struct { - grpc.ServerStream -} - -func (x *oTDRInitiateServer) Send(m *InitiateResponse) error { - return x.ServerStream.SendMsg(m) -} - -// OTDR_ServiceDesc is the grpc.ServiceDesc for OTDR service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var OTDR_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.optical.OTDR", - HandlerType: (*OTDRServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "Initiate", - Handler: _OTDR_Initiate_Handler, - ServerStreams: true, - }, - }, - Metadata: "otdr/otdr.proto", -} diff --git a/src/sonic-framework/gnoi/packet_capture/BUILD.bazel b/src/sonic-framework/gnoi/packet_capture/BUILD.bazel deleted file mode 100644 index 84cef5766782..000000000000 --- a/src/sonic-framework/gnoi/packet_capture/BUILD.bazel +++ /dev/null @@ -1,56 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") -load("//:common.bzl", "use_new_compilers") -# Copyright 2024 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -use_new_compilers() - -proto_library( - name = "pcap_proto", - srcs = ["packet_capture.proto"], - visibility = ["//visibility:public"], -) - -go_proto_library( - name = "pcap_go_proto", - compilers = [ - "go_protoc_gen_go", - "go_protoc_gen_go_grpc", - ], - importpath = "github.com/openconfig/gnoi/packet_capture", - proto = ":pcap_proto", - visibility = ["//visibility:public"], -) - -go_library( - name = "pcap", - embed = [":pcap_go_proto"], - importpath = "github.com/openconfig/gnoi/pcap", - visibility = ["//visibility:public"], -) - -go_library( - name = "packet_capture", - embed = [":pcap_go_proto"], - importpath = "github.com/openconfig/gnoi/packet_capture", - visibility = ["//visibility:public"], -) diff --git a/src/sonic-framework/gnoi/packet_capture/packet_capture.pb.go b/src/sonic-framework/gnoi/packet_capture/packet_capture.pb.go deleted file mode 100644 index 3b641b92266b..000000000000 --- a/src/sonic-framework/gnoi/packet_capture/packet_capture.pb.go +++ /dev/null @@ -1,1284 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v3.21.10 -// source: packet_capture/packet_capture.proto - -package pcap - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type OperatingBand int32 - -const ( - OperatingBand_BAND_2G OperatingBand = 0 - OperatingBand_BAND_5G OperatingBand = 1 - OperatingBand_BAND_6G OperatingBand = 2 - OperatingBand_BAND_ALL OperatingBand = 3 -) - -// Enum value maps for OperatingBand. -var ( - OperatingBand_name = map[int32]string{ - 0: "BAND_2G", - 1: "BAND_5G", - 2: "BAND_6G", - 3: "BAND_ALL", - } - OperatingBand_value = map[string]int32{ - "BAND_2G": 0, - "BAND_5G": 1, - "BAND_6G": 2, - "BAND_ALL": 3, - } -) - -func (x OperatingBand) Enum() *OperatingBand { - p := new(OperatingBand) - *p = x - return p -} - -func (x OperatingBand) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (OperatingBand) Descriptor() protoreflect.EnumDescriptor { - return file_packet_capture_packet_capture_proto_enumTypes[0].Descriptor() -} - -func (OperatingBand) Type() protoreflect.EnumType { - return &file_packet_capture_packet_capture_proto_enumTypes[0] -} - -func (x OperatingBand) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use OperatingBand.Descriptor instead. -func (OperatingBand) EnumDescriptor() ([]byte, []int) { - return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{0} -} - -type Protocol int32 - -const ( - Protocol_TCP Protocol = 0 - Protocol_UDP Protocol = 1 -) - -// Enum value maps for Protocol. -var ( - Protocol_name = map[int32]string{ - 0: "TCP", - 1: "UDP", - } - Protocol_value = map[string]int32{ - "TCP": 0, - "UDP": 1, - } -) - -func (x Protocol) Enum() *Protocol { - p := new(Protocol) - *p = x - return p -} - -func (x Protocol) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Protocol) Descriptor() protoreflect.EnumDescriptor { - return file_packet_capture_packet_capture_proto_enumTypes[1].Descriptor() -} - -func (Protocol) Type() protoreflect.EnumType { - return &file_packet_capture_packet_capture_proto_enumTypes[1] -} - -func (x Protocol) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Protocol.Descriptor instead. -func (Protocol) EnumDescriptor() ([]byte, []int) { - return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{1} -} - -type Direction int32 - -const ( - Direction_RX Direction = 0 - Direction_TX Direction = 1 - Direction_BOTH Direction = 2 -) - -// Enum value maps for Direction. -var ( - Direction_name = map[int32]string{ - 0: "RX", - 1: "TX", - 2: "BOTH", - } - Direction_value = map[string]int32{ - "RX": 0, - "TX": 1, - "BOTH": 2, - } -) - -func (x Direction) Enum() *Direction { - p := new(Direction) - *p = x - return p -} - -func (x Direction) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Direction) Descriptor() protoreflect.EnumDescriptor { - return file_packet_capture_packet_capture_proto_enumTypes[2].Descriptor() -} - -func (Direction) Type() protoreflect.EnumType { - return &file_packet_capture_packet_capture_proto_enumTypes[2] -} - -func (x Direction) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Direction.Descriptor instead. -func (Direction) EnumDescriptor() ([]byte, []int) { - return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{2} -} - -type ChannelWidth int32 - -const ( - ChannelWidth_WIDTH_20MHZ ChannelWidth = 0 - ChannelWidth_WIDTH_40MHZ ChannelWidth = 1 - ChannelWidth_WIDTH_80MHZ ChannelWidth = 2 - ChannelWidth_WIDTH_160MHZ ChannelWidth = 3 -) - -// Enum value maps for ChannelWidth. -var ( - ChannelWidth_name = map[int32]string{ - 0: "WIDTH_20MHZ", - 1: "WIDTH_40MHZ", - 2: "WIDTH_80MHZ", - 3: "WIDTH_160MHZ", - } - ChannelWidth_value = map[string]int32{ - "WIDTH_20MHZ": 0, - "WIDTH_40MHZ": 1, - "WIDTH_80MHZ": 2, - "WIDTH_160MHZ": 3, - } -) - -func (x ChannelWidth) Enum() *ChannelWidth { - p := new(ChannelWidth) - *p = x - return p -} - -func (x ChannelWidth) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ChannelWidth) Descriptor() protoreflect.EnumDescriptor { - return file_packet_capture_packet_capture_proto_enumTypes[3].Descriptor() -} - -func (ChannelWidth) Type() protoreflect.EnumType { - return &file_packet_capture_packet_capture_proto_enumTypes[3] -} - -func (x ChannelWidth) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ChannelWidth.Descriptor instead. -func (ChannelWidth) EnumDescriptor() ([]byte, []int) { - return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{3} -} - -type AccessCaptureType struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OperatingBand []OperatingBand `protobuf:"varint,1,rep,packed,name=operating_band,json=operatingBand,proto3,enum=gnoi.pcap.OperatingBand" json:"operating_band,omitempty"` - // Types that are assignable to FilterType: - // - // *AccessCaptureType_Ssid - // *AccessCaptureType_Mac - FilterType isAccessCaptureType_FilterType `protobuf_oneof:"filter_type"` - PromiscuousMode bool `protobuf:"varint,4,opt,name=promiscuous_mode,json=promiscuousMode,proto3" json:"promiscuous_mode,omitempty"` -} - -func (x *AccessCaptureType) Reset() { - *x = AccessCaptureType{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_capture_packet_capture_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AccessCaptureType) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AccessCaptureType) ProtoMessage() {} - -func (x *AccessCaptureType) ProtoReflect() protoreflect.Message { - mi := &file_packet_capture_packet_capture_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AccessCaptureType.ProtoReflect.Descriptor instead. -func (*AccessCaptureType) Descriptor() ([]byte, []int) { - return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{0} -} - -func (x *AccessCaptureType) GetOperatingBand() []OperatingBand { - if x != nil { - return x.OperatingBand - } - return nil -} - -func (m *AccessCaptureType) GetFilterType() isAccessCaptureType_FilterType { - if m != nil { - return m.FilterType - } - return nil -} - -func (x *AccessCaptureType) GetSsid() string { - if x, ok := x.GetFilterType().(*AccessCaptureType_Ssid); ok { - return x.Ssid - } - return "" -} - -func (x *AccessCaptureType) GetMac() string { - if x, ok := x.GetFilterType().(*AccessCaptureType_Mac); ok { - return x.Mac - } - return "" -} - -func (x *AccessCaptureType) GetPromiscuousMode() bool { - if x != nil { - return x.PromiscuousMode - } - return false -} - -type isAccessCaptureType_FilterType interface { - isAccessCaptureType_FilterType() -} - -type AccessCaptureType_Ssid struct { - Ssid string `protobuf:"bytes,2,opt,name=ssid,proto3,oneof"` -} - -type AccessCaptureType_Mac struct { - Mac string `protobuf:"bytes,3,opt,name=mac,proto3,oneof"` -} - -func (*AccessCaptureType_Ssid) isAccessCaptureType_FilterType() {} - -func (*AccessCaptureType_Mac) isAccessCaptureType_FilterType() {} - -type ChannelInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Channel string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"` - ChannelWidth ChannelWidth `protobuf:"varint,2,opt,name=channel_width,json=channelWidth,proto3,enum=gnoi.pcap.ChannelWidth" json:"channel_width,omitempty"` -} - -func (x *ChannelInfo) Reset() { - *x = ChannelInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_capture_packet_capture_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ChannelInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ChannelInfo) ProtoMessage() {} - -func (x *ChannelInfo) ProtoReflect() protoreflect.Message { - mi := &file_packet_capture_packet_capture_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ChannelInfo.ProtoReflect.Descriptor instead. -func (*ChannelInfo) Descriptor() ([]byte, []int) { - return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{1} -} - -func (x *ChannelInfo) GetChannel() string { - if x != nil { - return x.Channel - } - return "" -} - -func (x *ChannelInfo) GetChannelWidth() ChannelWidth { - if x != nil { - return x.ChannelWidth - } - return ChannelWidth_WIDTH_20MHZ -} - -type BandChannelCombo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OperatingBand OperatingBand `protobuf:"varint,1,opt,name=operating_band,json=operatingBand,proto3,enum=gnoi.pcap.OperatingBand" json:"operating_band,omitempty"` - ChannelInfo []*ChannelInfo `protobuf:"bytes,2,rep,name=channel_info,json=channelInfo,proto3" json:"channel_info,omitempty"` -} - -func (x *BandChannelCombo) Reset() { - *x = BandChannelCombo{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_capture_packet_capture_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BandChannelCombo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BandChannelCombo) ProtoMessage() {} - -func (x *BandChannelCombo) ProtoReflect() protoreflect.Message { - mi := &file_packet_capture_packet_capture_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BandChannelCombo.ProtoReflect.Descriptor instead. -func (*BandChannelCombo) Descriptor() ([]byte, []int) { - return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{2} -} - -func (x *BandChannelCombo) GetOperatingBand() OperatingBand { - if x != nil { - return x.OperatingBand - } - return OperatingBand_BAND_2G -} - -func (x *BandChannelCombo) GetChannelInfo() []*ChannelInfo { - if x != nil { - return x.ChannelInfo - } - return nil -} - -type ScanCaptureType struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Combo []*BandChannelCombo `protobuf:"bytes,1,rep,name=combo,proto3" json:"combo,omitempty"` - DwellTime uint64 `protobuf:"varint,2,opt,name=dwell_time,json=dwellTime,proto3" json:"dwell_time,omitempty"` -} - -func (x *ScanCaptureType) Reset() { - *x = ScanCaptureType{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_capture_packet_capture_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ScanCaptureType) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ScanCaptureType) ProtoMessage() {} - -func (x *ScanCaptureType) ProtoReflect() protoreflect.Message { - mi := &file_packet_capture_packet_capture_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ScanCaptureType.ProtoReflect.Descriptor instead. -func (*ScanCaptureType) Descriptor() ([]byte, []int) { - return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{3} -} - -func (x *ScanCaptureType) GetCombo() []*BandChannelCombo { - if x != nil { - return x.Combo - } - return nil -} - -func (x *ScanCaptureType) GetDwellTime() uint64 { - if x != nil { - return x.DwellTime - } - return 0 -} - -type Filter struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - FilterName string `protobuf:"bytes,1,opt,name=filter_name,json=filterName,proto3" json:"filter_name,omitempty"` - SrcNet string `protobuf:"bytes,2,opt,name=src_net,json=srcNet,proto3" json:"src_net,omitempty"` - DestNet string `protobuf:"bytes,3,opt,name=dest_net,json=destNet,proto3" json:"dest_net,omitempty"` - Protocol []Protocol `protobuf:"varint,4,rep,packed,name=protocol,proto3,enum=gnoi.pcap.Protocol" json:"protocol,omitempty"` - Port []uint32 `protobuf:"varint,5,rep,packed,name=port,proto3" json:"port,omitempty"` - Vlan []uint32 `protobuf:"varint,6,rep,packed,name=vlan,proto3" json:"vlan,omitempty"` -} - -func (x *Filter) Reset() { - *x = Filter{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_capture_packet_capture_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Filter) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Filter) ProtoMessage() {} - -func (x *Filter) ProtoReflect() protoreflect.Message { - mi := &file_packet_capture_packet_capture_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Filter.ProtoReflect.Descriptor instead. -func (*Filter) Descriptor() ([]byte, []int) { - return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{4} -} - -func (x *Filter) GetFilterName() string { - if x != nil { - return x.FilterName - } - return "" -} - -func (x *Filter) GetSrcNet() string { - if x != nil { - return x.SrcNet - } - return "" -} - -func (x *Filter) GetDestNet() string { - if x != nil { - return x.DestNet - } - return "" -} - -func (x *Filter) GetProtocol() []Protocol { - if x != nil { - return x.Protocol - } - return nil -} - -func (x *Filter) GetPort() []uint32 { - if x != nil { - return x.Port - } - return nil -} - -func (x *Filter) GetVlan() []uint32 { - if x != nil { - return x.Vlan - } - return nil -} - -type WiredRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Ifname string `protobuf:"bytes,1,opt,name=ifname,proto3" json:"ifname,omitempty"` - Direction Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=gnoi.pcap.Direction" json:"direction,omitempty"` - // Types that are assignable to FilterType: - // - // *WiredRequest_TcpdumpExpression - // *WiredRequest_Filter - FilterType isWiredRequest_FilterType `protobuf_oneof:"filter_type"` -} - -func (x *WiredRequest) Reset() { - *x = WiredRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_capture_packet_capture_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WiredRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WiredRequest) ProtoMessage() {} - -func (x *WiredRequest) ProtoReflect() protoreflect.Message { - mi := &file_packet_capture_packet_capture_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WiredRequest.ProtoReflect.Descriptor instead. -func (*WiredRequest) Descriptor() ([]byte, []int) { - return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{5} -} - -func (x *WiredRequest) GetIfname() string { - if x != nil { - return x.Ifname - } - return "" -} - -func (x *WiredRequest) GetDirection() Direction { - if x != nil { - return x.Direction - } - return Direction_RX -} - -func (m *WiredRequest) GetFilterType() isWiredRequest_FilterType { - if m != nil { - return m.FilterType - } - return nil -} - -func (x *WiredRequest) GetTcpdumpExpression() string { - if x, ok := x.GetFilterType().(*WiredRequest_TcpdumpExpression); ok { - return x.TcpdumpExpression - } - return "" -} - -func (x *WiredRequest) GetFilter() *Filter { - if x, ok := x.GetFilterType().(*WiredRequest_Filter); ok { - return x.Filter - } - return nil -} - -type isWiredRequest_FilterType interface { - isWiredRequest_FilterType() -} - -type WiredRequest_TcpdumpExpression struct { - TcpdumpExpression string `protobuf:"bytes,3,opt,name=tcpdump_expression,json=tcpdumpExpression,proto3,oneof"` -} - -type WiredRequest_Filter struct { - Filter *Filter `protobuf:"bytes,4,opt,name=filter,proto3,oneof"` -} - -func (*WiredRequest_TcpdumpExpression) isWiredRequest_FilterType() {} - -func (*WiredRequest_Filter) isWiredRequest_FilterType() {} - -type WirelessRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to CaptureType: - // - // *WirelessRequest_AccessType - // *WirelessRequest_ScanType - CaptureType isWirelessRequest_CaptureType `protobuf_oneof:"capture_type"` -} - -func (x *WirelessRequest) Reset() { - *x = WirelessRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_capture_packet_capture_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WirelessRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WirelessRequest) ProtoMessage() {} - -func (x *WirelessRequest) ProtoReflect() protoreflect.Message { - mi := &file_packet_capture_packet_capture_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WirelessRequest.ProtoReflect.Descriptor instead. -func (*WirelessRequest) Descriptor() ([]byte, []int) { - return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{6} -} - -func (m *WirelessRequest) GetCaptureType() isWirelessRequest_CaptureType { - if m != nil { - return m.CaptureType - } - return nil -} - -func (x *WirelessRequest) GetAccessType() *AccessCaptureType { - if x, ok := x.GetCaptureType().(*WirelessRequest_AccessType); ok { - return x.AccessType - } - return nil -} - -func (x *WirelessRequest) GetScanType() *ScanCaptureType { - if x, ok := x.GetCaptureType().(*WirelessRequest_ScanType); ok { - return x.ScanType - } - return nil -} - -type isWirelessRequest_CaptureType interface { - isWirelessRequest_CaptureType() -} - -type WirelessRequest_AccessType struct { - AccessType *AccessCaptureType `protobuf:"bytes,1,opt,name=access_type,json=accessType,proto3,oneof"` -} - -type WirelessRequest_ScanType struct { - ScanType *ScanCaptureType `protobuf:"bytes,2,opt,name=scan_type,json=scanType,proto3,oneof"` -} - -func (*WirelessRequest_AccessType) isWirelessRequest_CaptureType() {} - -func (*WirelessRequest_ScanType) isWirelessRequest_CaptureType() {} - -type PcapRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to RequestType: - // - // *PcapRequest_WiredRequest - // *PcapRequest_WirelessRequest - RequestType isPcapRequest_RequestType `protobuf_oneof:"request_type"` - TrimPayload uint32 `protobuf:"varint,3,opt,name=trim_payload,json=trimPayload,proto3" json:"trim_payload,omitempty"` - PacketCount uint32 `protobuf:"varint,4,opt,name=packet_count,json=packetCount,proto3" json:"packet_count,omitempty"` - Duration uint64 `protobuf:"varint,5,opt,name=duration,proto3" json:"duration,omitempty"` -} - -func (x *PcapRequest) Reset() { - *x = PcapRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_capture_packet_capture_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PcapRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PcapRequest) ProtoMessage() {} - -func (x *PcapRequest) ProtoReflect() protoreflect.Message { - mi := &file_packet_capture_packet_capture_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PcapRequest.ProtoReflect.Descriptor instead. -func (*PcapRequest) Descriptor() ([]byte, []int) { - return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{7} -} - -func (m *PcapRequest) GetRequestType() isPcapRequest_RequestType { - if m != nil { - return m.RequestType - } - return nil -} - -func (x *PcapRequest) GetWiredRequest() *WiredRequest { - if x, ok := x.GetRequestType().(*PcapRequest_WiredRequest); ok { - return x.WiredRequest - } - return nil -} - -func (x *PcapRequest) GetWirelessRequest() *WirelessRequest { - if x, ok := x.GetRequestType().(*PcapRequest_WirelessRequest); ok { - return x.WirelessRequest - } - return nil -} - -func (x *PcapRequest) GetTrimPayload() uint32 { - if x != nil { - return x.TrimPayload - } - return 0 -} - -func (x *PcapRequest) GetPacketCount() uint32 { - if x != nil { - return x.PacketCount - } - return 0 -} - -func (x *PcapRequest) GetDuration() uint64 { - if x != nil { - return x.Duration - } - return 0 -} - -type isPcapRequest_RequestType interface { - isPcapRequest_RequestType() -} - -type PcapRequest_WiredRequest struct { - WiredRequest *WiredRequest `protobuf:"bytes,1,opt,name=wired_request,json=wiredRequest,proto3,oneof"` -} - -type PcapRequest_WirelessRequest struct { - WirelessRequest *WirelessRequest `protobuf:"bytes,2,opt,name=wireless_request,json=wirelessRequest,proto3,oneof"` -} - -func (*PcapRequest_WiredRequest) isPcapRequest_RequestType() {} - -func (*PcapRequest_WirelessRequest) isPcapRequest_RequestType() {} - -type Packet struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` -} - -func (x *Packet) Reset() { - *x = Packet{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_capture_packet_capture_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Packet) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Packet) ProtoMessage() {} - -func (x *Packet) ProtoReflect() protoreflect.Message { - mi := &file_packet_capture_packet_capture_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Packet.ProtoReflect.Descriptor instead. -func (*Packet) Descriptor() ([]byte, []int) { - return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{8} -} - -func (x *Packet) GetData() []byte { - if x != nil { - return x.Data - } - return nil -} - -type PcapResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Packets []*Packet `protobuf:"bytes,1,rep,name=packets,proto3" json:"packets,omitempty"` -} - -func (x *PcapResponse) Reset() { - *x = PcapResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_capture_packet_capture_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PcapResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PcapResponse) ProtoMessage() {} - -func (x *PcapResponse) ProtoReflect() protoreflect.Message { - mi := &file_packet_capture_packet_capture_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PcapResponse.ProtoReflect.Descriptor instead. -func (*PcapResponse) Descriptor() ([]byte, []int) { - return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{9} -} - -func (x *PcapResponse) GetPackets() []*Packet { - if x != nil { - return x.Packets - } - return nil -} - -var File_packet_capture_packet_capture_proto protoreflect.FileDescriptor - -var file_packet_capture_packet_capture_proto_rawDesc = []byte{ - 0x0a, 0x23, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x63, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, - 0x2f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x63, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, - 0x22, 0xb8, 0x01, 0x0a, 0x11, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, 0x61, 0x70, 0x74, 0x75, - 0x72, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3f, 0x0a, 0x0e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x61, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x18, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6e, 0x67, 0x42, 0x61, 0x6e, 0x64, 0x52, 0x0d, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6e, 0x67, 0x42, 0x61, 0x6e, 0x64, 0x12, 0x14, 0x0a, 0x04, 0x73, 0x73, 0x69, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x73, 0x73, 0x69, 0x64, 0x12, 0x12, 0x0a, - 0x03, 0x6d, 0x61, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x6d, 0x61, - 0x63, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x6d, 0x69, 0x73, 0x63, 0x75, 0x6f, 0x75, 0x73, - 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x70, 0x72, 0x6f, - 0x6d, 0x69, 0x73, 0x63, 0x75, 0x6f, 0x75, 0x73, 0x4d, 0x6f, 0x64, 0x65, 0x42, 0x0d, 0x0a, 0x0b, - 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x65, 0x0a, 0x0b, 0x43, - 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x68, - 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x68, 0x61, - 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x3c, 0x0a, 0x0d, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, - 0x77, 0x69, 0x64, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x57, - 0x69, 0x64, 0x74, 0x68, 0x52, 0x0c, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x57, 0x69, 0x64, - 0x74, 0x68, 0x22, 0x8e, 0x01, 0x0a, 0x10, 0x42, 0x61, 0x6e, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x6e, - 0x65, 0x6c, 0x43, 0x6f, 0x6d, 0x62, 0x6f, 0x12, 0x3f, 0x0a, 0x0e, 0x6f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x61, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x4f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x61, 0x6e, 0x64, 0x52, 0x0d, 0x6f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6e, 0x67, 0x42, 0x61, 0x6e, 0x64, 0x12, 0x39, 0x0a, 0x0c, 0x63, 0x68, 0x61, 0x6e, - 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x6e, - 0x65, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, - 0x6e, 0x66, 0x6f, 0x22, 0x63, 0x0a, 0x0f, 0x53, 0x63, 0x61, 0x6e, 0x43, 0x61, 0x70, 0x74, 0x75, - 0x72, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x31, 0x0a, 0x05, 0x63, 0x6f, 0x6d, 0x62, 0x6f, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, - 0x70, 0x2e, 0x42, 0x61, 0x6e, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x43, 0x6f, 0x6d, - 0x62, 0x6f, 0x52, 0x05, 0x63, 0x6f, 0x6d, 0x62, 0x6f, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x77, 0x65, - 0x6c, 0x6c, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x64, - 0x77, 0x65, 0x6c, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xb6, 0x01, 0x0a, 0x06, 0x46, 0x69, 0x6c, - 0x74, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x72, 0x63, 0x5f, 0x6e, 0x65, 0x74, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x72, 0x63, 0x4e, 0x65, 0x74, 0x12, 0x19, 0x0a, - 0x08, 0x64, 0x65, 0x73, 0x74, 0x5f, 0x6e, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x64, 0x65, 0x73, 0x74, 0x4e, 0x65, 0x74, 0x12, 0x2f, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, - 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, - 0x74, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a, - 0x04, 0x76, 0x6c, 0x61, 0x6e, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x04, 0x76, 0x6c, 0x61, - 0x6e, 0x22, 0xc7, 0x01, 0x0a, 0x0c, 0x57, 0x69, 0x72, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x66, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x69, 0x66, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x09, 0x64, 0x69, - 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2f, - 0x0a, 0x12, 0x74, 0x63, 0x70, 0x64, 0x75, 0x6d, 0x70, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x11, 0x74, 0x63, - 0x70, 0x64, 0x75, 0x6d, 0x70, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, - 0x2b, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x11, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x46, 0x69, 0x6c, 0x74, - 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x42, 0x0d, 0x0a, 0x0b, - 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x9d, 0x01, 0x0a, 0x0f, - 0x57, 0x69, 0x72, 0x65, 0x6c, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x3f, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, - 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x54, 0x79, - 0x70, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x39, 0x0a, 0x09, 0x73, 0x63, 0x61, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, - 0x53, 0x63, 0x61, 0x6e, 0x43, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x54, 0x79, 0x70, 0x65, 0x48, - 0x00, 0x52, 0x08, 0x73, 0x63, 0x61, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x42, 0x0e, 0x0a, 0x0c, 0x63, - 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x88, 0x02, 0x0a, 0x0b, - 0x50, 0x63, 0x61, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x77, - 0x69, 0x72, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x57, - 0x69, 0x72, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x77, - 0x69, 0x72, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x47, 0x0a, 0x10, 0x77, - 0x69, 0x72, 0x65, 0x6c, 0x65, 0x73, 0x73, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, - 0x70, 0x2e, 0x57, 0x69, 0x72, 0x65, 0x6c, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x48, 0x00, 0x52, 0x0f, 0x77, 0x69, 0x72, 0x65, 0x6c, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x72, 0x69, 0x6d, 0x5f, 0x70, 0x61, 0x79, - 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x74, 0x72, 0x69, 0x6d, - 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x63, 0x6b, 0x65, - 0x74, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x70, - 0x61, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x64, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0e, 0x0a, 0x0c, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x1c, 0x0a, 0x06, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, - 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, - 0x64, 0x61, 0x74, 0x61, 0x22, 0x3b, 0x0a, 0x0c, 0x50, 0x63, 0x61, 0x70, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x07, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, - 0x70, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x07, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, - 0x73, 0x2a, 0x44, 0x0a, 0x0d, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x61, - 0x6e, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x41, 0x4e, 0x44, 0x5f, 0x32, 0x47, 0x10, 0x00, 0x12, - 0x0b, 0x0a, 0x07, 0x42, 0x41, 0x4e, 0x44, 0x5f, 0x35, 0x47, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, - 0x42, 0x41, 0x4e, 0x44, 0x5f, 0x36, 0x47, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x42, 0x41, 0x4e, - 0x44, 0x5f, 0x41, 0x4c, 0x4c, 0x10, 0x03, 0x2a, 0x1c, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x63, 0x6f, 0x6c, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x43, 0x50, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, - 0x55, 0x44, 0x50, 0x10, 0x01, 0x2a, 0x25, 0x0a, 0x09, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x06, 0x0a, 0x02, 0x52, 0x58, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x54, 0x58, - 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x42, 0x4f, 0x54, 0x48, 0x10, 0x02, 0x2a, 0x53, 0x0a, 0x0c, - 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x57, 0x69, 0x64, 0x74, 0x68, 0x12, 0x0f, 0x0a, 0x0b, - 0x57, 0x49, 0x44, 0x54, 0x48, 0x5f, 0x32, 0x30, 0x4d, 0x48, 0x5a, 0x10, 0x00, 0x12, 0x0f, 0x0a, - 0x0b, 0x57, 0x49, 0x44, 0x54, 0x48, 0x5f, 0x34, 0x30, 0x4d, 0x48, 0x5a, 0x10, 0x01, 0x12, 0x0f, - 0x0a, 0x0b, 0x57, 0x49, 0x44, 0x54, 0x48, 0x5f, 0x38, 0x30, 0x4d, 0x48, 0x5a, 0x10, 0x02, 0x12, - 0x10, 0x0a, 0x0c, 0x57, 0x49, 0x44, 0x54, 0x48, 0x5f, 0x31, 0x36, 0x30, 0x4d, 0x48, 0x5a, 0x10, - 0x03, 0x32, 0x4c, 0x0a, 0x0d, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x70, 0x74, 0x75, - 0x72, 0x65, 0x12, 0x3b, 0x0a, 0x04, 0x50, 0x63, 0x61, 0x70, 0x12, 0x16, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x50, 0x63, 0x61, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x50, - 0x63, 0x61, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x42, - 0x30, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, - 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x70, 0x61, - 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x63, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x3b, 0x70, 0x63, 0x61, - 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_packet_capture_packet_capture_proto_rawDescOnce sync.Once - file_packet_capture_packet_capture_proto_rawDescData = file_packet_capture_packet_capture_proto_rawDesc -) - -func file_packet_capture_packet_capture_proto_rawDescGZIP() []byte { - file_packet_capture_packet_capture_proto_rawDescOnce.Do(func() { - file_packet_capture_packet_capture_proto_rawDescData = protoimpl.X.CompressGZIP(file_packet_capture_packet_capture_proto_rawDescData) - }) - return file_packet_capture_packet_capture_proto_rawDescData -} - -var file_packet_capture_packet_capture_proto_enumTypes = make([]protoimpl.EnumInfo, 4) -var file_packet_capture_packet_capture_proto_msgTypes = make([]protoimpl.MessageInfo, 10) -var file_packet_capture_packet_capture_proto_goTypes = []interface{}{ - (OperatingBand)(0), // 0: gnoi.pcap.OperatingBand - (Protocol)(0), // 1: gnoi.pcap.Protocol - (Direction)(0), // 2: gnoi.pcap.Direction - (ChannelWidth)(0), // 3: gnoi.pcap.ChannelWidth - (*AccessCaptureType)(nil), // 4: gnoi.pcap.AccessCaptureType - (*ChannelInfo)(nil), // 5: gnoi.pcap.ChannelInfo - (*BandChannelCombo)(nil), // 6: gnoi.pcap.BandChannelCombo - (*ScanCaptureType)(nil), // 7: gnoi.pcap.ScanCaptureType - (*Filter)(nil), // 8: gnoi.pcap.Filter - (*WiredRequest)(nil), // 9: gnoi.pcap.WiredRequest - (*WirelessRequest)(nil), // 10: gnoi.pcap.WirelessRequest - (*PcapRequest)(nil), // 11: gnoi.pcap.PcapRequest - (*Packet)(nil), // 12: gnoi.pcap.Packet - (*PcapResponse)(nil), // 13: gnoi.pcap.PcapResponse -} -var file_packet_capture_packet_capture_proto_depIdxs = []int32{ - 0, // 0: gnoi.pcap.AccessCaptureType.operating_band:type_name -> gnoi.pcap.OperatingBand - 3, // 1: gnoi.pcap.ChannelInfo.channel_width:type_name -> gnoi.pcap.ChannelWidth - 0, // 2: gnoi.pcap.BandChannelCombo.operating_band:type_name -> gnoi.pcap.OperatingBand - 5, // 3: gnoi.pcap.BandChannelCombo.channel_info:type_name -> gnoi.pcap.ChannelInfo - 6, // 4: gnoi.pcap.ScanCaptureType.combo:type_name -> gnoi.pcap.BandChannelCombo - 1, // 5: gnoi.pcap.Filter.protocol:type_name -> gnoi.pcap.Protocol - 2, // 6: gnoi.pcap.WiredRequest.direction:type_name -> gnoi.pcap.Direction - 8, // 7: gnoi.pcap.WiredRequest.filter:type_name -> gnoi.pcap.Filter - 4, // 8: gnoi.pcap.WirelessRequest.access_type:type_name -> gnoi.pcap.AccessCaptureType - 7, // 9: gnoi.pcap.WirelessRequest.scan_type:type_name -> gnoi.pcap.ScanCaptureType - 9, // 10: gnoi.pcap.PcapRequest.wired_request:type_name -> gnoi.pcap.WiredRequest - 10, // 11: gnoi.pcap.PcapRequest.wireless_request:type_name -> gnoi.pcap.WirelessRequest - 12, // 12: gnoi.pcap.PcapResponse.packets:type_name -> gnoi.pcap.Packet - 11, // 13: gnoi.pcap.PacketCapture.Pcap:input_type -> gnoi.pcap.PcapRequest - 13, // 14: gnoi.pcap.PacketCapture.Pcap:output_type -> gnoi.pcap.PcapResponse - 14, // [14:15] is the sub-list for method output_type - 13, // [13:14] is the sub-list for method input_type - 13, // [13:13] is the sub-list for extension type_name - 13, // [13:13] is the sub-list for extension extendee - 0, // [0:13] is the sub-list for field type_name -} - -func init() { file_packet_capture_packet_capture_proto_init() } -func file_packet_capture_packet_capture_proto_init() { - if File_packet_capture_packet_capture_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_packet_capture_packet_capture_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AccessCaptureType); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_capture_packet_capture_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChannelInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_capture_packet_capture_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BandChannelCombo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_capture_packet_capture_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ScanCaptureType); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_capture_packet_capture_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Filter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_capture_packet_capture_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WiredRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_capture_packet_capture_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WirelessRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_capture_packet_capture_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PcapRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_capture_packet_capture_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Packet); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_capture_packet_capture_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PcapResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_packet_capture_packet_capture_proto_msgTypes[0].OneofWrappers = []interface{}{ - (*AccessCaptureType_Ssid)(nil), - (*AccessCaptureType_Mac)(nil), - } - file_packet_capture_packet_capture_proto_msgTypes[5].OneofWrappers = []interface{}{ - (*WiredRequest_TcpdumpExpression)(nil), - (*WiredRequest_Filter)(nil), - } - file_packet_capture_packet_capture_proto_msgTypes[6].OneofWrappers = []interface{}{ - (*WirelessRequest_AccessType)(nil), - (*WirelessRequest_ScanType)(nil), - } - file_packet_capture_packet_capture_proto_msgTypes[7].OneofWrappers = []interface{}{ - (*PcapRequest_WiredRequest)(nil), - (*PcapRequest_WirelessRequest)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_packet_capture_packet_capture_proto_rawDesc, - NumEnums: 4, - NumMessages: 10, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_packet_capture_packet_capture_proto_goTypes, - DependencyIndexes: file_packet_capture_packet_capture_proto_depIdxs, - EnumInfos: file_packet_capture_packet_capture_proto_enumTypes, - MessageInfos: file_packet_capture_packet_capture_proto_msgTypes, - }.Build() - File_packet_capture_packet_capture_proto = out.File - file_packet_capture_packet_capture_proto_rawDesc = nil - file_packet_capture_packet_capture_proto_goTypes = nil - file_packet_capture_packet_capture_proto_depIdxs = nil -} diff --git a/src/sonic-framework/gnoi/packet_capture/packet_capture.proto b/src/sonic-framework/gnoi/packet_capture/packet_capture.proto deleted file mode 100644 index 666154d98126..000000000000 --- a/src/sonic-framework/gnoi/packet_capture/packet_capture.proto +++ /dev/null @@ -1,176 +0,0 @@ -// -// Copyright 2024 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.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 gnoi.pcap; - -option go_package = "github.com/openconfig/gnoi/packet_capture;pcap"; - -// The PacketCapture service exported by targets. -service PacketCapture { - // Pcap starts packet capture on the target and streams back the results as - // raw data packets that should be appropriately decoded by the receiver. - // For example, most commonly an Ethernet decoder would be used for a typical - // WiredRequest. A WirelessRequest may require a Prism decoder or - // related 802.11 decoder. - rpc Pcap(PcapRequest) returns (stream PcapResponse) {} -} - -enum OperatingBand { - BAND_2G = 0; - BAND_5G = 1; - BAND_6G = 2; - BAND_ALL = 3; -} - -enum Protocol { - TCP = 0; - UDP = 1; -} - -enum Direction { - // When applied to an interface, the Direction of packets to capture, receive - // transmit, or both. - RX = 0; - TX = 1; - BOTH = 2; -} - -enum ChannelWidth { - WIDTH_20MHZ = 0; - WIDTH_40MHZ = 1; - WIDTH_80MHZ = 2; - WIDTH_160MHZ = 3; -} - -// The capture is performed on the operating access radio(s) and it is not -// client impacting. -message AccessCaptureType { - // Operating band: 2.4G, 5G, 6G. - repeated OperatingBand operating_band = 1; - oneof filter_type { - // Optional, SSID of a VAP. - string ssid = 2; - // Optional, MAC addresss matching a BSSID or a client MAC. - string mac = 3; - } - // Capture packets in promiscuous mode. When enabled, all possible packets - // meeting the criteria are captured. When disabled, only own tx/rx packets - // meeting the criteria are captured. - bool promiscuous_mode = 4; -} - -message ChannelInfo { - // Channels. - string channel = 1; - // Channel width: 20/40/80/160 MHz, if not specified defaults to 20MHz. - ChannelWidth channel_width = 2; -} - -// BandChannelCombo specifies the bands and channels to capture on. -message BandChannelCombo { - // Operating band: 2.4G, 5G, 6G. - OperatingBand operating_band = 1; - // Channel Info. - repeated ChannelInfo channel_info = 2; -} - -// A ScanCaptureType on a dedicated scan radio. If a dedicated scan radio does -// not exist, the device may turn an access radio(s) into scan radio(s), which -// may impact clients. -message ScanCaptureType { - repeated BandChannelCombo combo = 1; - // Channel capture duration in nanoseconds, if not specified - // defaults to something, supported by the platform. - uint64 dwell_time = 2; -} - -message Filter { - // Different types of filtering options. - - // filter_name can be a reference to a filter already configured on the device - // such as an ACL/class-map or other platform-specific abstraction that - // may allow for the configuration of other filtering not otherwise available. - string filter_name = 1; - // Source/destination net may be used to match traffic and should be specified - // using CIDR notation. eg. 1.1.1.1/32 - string src_net = 2; - string dest_net = 3; - repeated Protocol protocol = 4; - // The specific protocol port number to match, eg. HTTP=80. - repeated uint32 port = 5; - // A VLAN ID. - repeated uint32 vlan = 6; -} - -message WiredRequest { - // Interface name. - string ifname = 1; - // The Direction to capture from, if not specified defaults to BOTH. - Direction direction = 2; - // Filtering based on protocols. - oneof filter_type { - // A tcpdump expression: https://www.tcpdump.org/manpages/pcap-filter.7.html - // if raw expressions are supported by the device. - string tcpdump_expression = 3; - // A Filter as defined in a message. - Filter filter = 4; - } -} - -message WirelessRequest { - // A WirelessRequest may be on the access radio(s) or a dedicated scan - // radio(s). On a device with a dedicated scan radio, an AccessCaptureType or - // ScanCaptureType should not impact clients -- the access radios should not - // go off channel or stop servicing clients. On a device *without* a - // dedicated scan radio, an AccessCaptureType should not be client impacting. - // If ScanCaptureType is used on a device without a dedicated scan radio; the - // device MAY impact clients and honor the packet capture requirements. - oneof capture_type { - // Access radio. - AccessCaptureType access_type = 1; - // Scan radio. - ScanCaptureType scan_type = 2; - } -} - -message PcapRequest { - oneof request_type { - // Wired capture request. - WiredRequest wired_request = 1; - // Wireless capture request. - WirelessRequest wireless_request = 2; - } - // Bytes to trim the data during packet capture: 0 for entire packet. - uint32 trim_payload = 3; - // The number of pakets to capture, after which the capture will end; 0 for - // for unlimited. - uint32 packet_count = 4; - // Capture duration in nanoseconds; 0 for indefinite. - uint64 duration = 5; -} - -message Packet { - // The raw bytes making up the packet. - bytes data = 1; -} - -message PcapResponse { - // A packet is the raw network packet that must be decoded. Libraries exist - // for different languages for decoding. - // Python: https://scapy.readthedocs.io/en/latest/api/scapy.layers.html - // GoLang: https://github.com/google/gopacket/blob/master/layers/layertypes.go - repeated Packet packets = 1; -} diff --git a/src/sonic-framework/gnoi/packet_capture/packet_capture_grpc.pb.go b/src/sonic-framework/gnoi/packet_capture/packet_capture_grpc.pb.go deleted file mode 100755 index 903bf46b057f..000000000000 --- a/src/sonic-framework/gnoi/packet_capture/packet_capture_grpc.pb.go +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.21.10 -// source: packet_capture/packet_capture.proto - -package pcap - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// PacketCaptureClient is the client API for PacketCapture service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type PacketCaptureClient interface { - Pcap(ctx context.Context, in *PcapRequest, opts ...grpc.CallOption) (PacketCapture_PcapClient, error) -} - -type packetCaptureClient struct { - cc grpc.ClientConnInterface -} - -func NewPacketCaptureClient(cc grpc.ClientConnInterface) PacketCaptureClient { - return &packetCaptureClient{cc} -} - -func (c *packetCaptureClient) Pcap(ctx context.Context, in *PcapRequest, opts ...grpc.CallOption) (PacketCapture_PcapClient, error) { - stream, err := c.cc.NewStream(ctx, &PacketCapture_ServiceDesc.Streams[0], "/gnoi.pcap.PacketCapture/Pcap", opts...) - if err != nil { - return nil, err - } - x := &packetCapturePcapClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type PacketCapture_PcapClient interface { - Recv() (*PcapResponse, error) - grpc.ClientStream -} - -type packetCapturePcapClient struct { - grpc.ClientStream -} - -func (x *packetCapturePcapClient) Recv() (*PcapResponse, error) { - m := new(PcapResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// PacketCaptureServer is the server API for PacketCapture service. -// All implementations must embed UnimplementedPacketCaptureServer -// for forward compatibility -type PacketCaptureServer interface { - Pcap(*PcapRequest, PacketCapture_PcapServer) error - mustEmbedUnimplementedPacketCaptureServer() -} - -// UnimplementedPacketCaptureServer must be embedded to have forward compatible implementations. -type UnimplementedPacketCaptureServer struct { -} - -func (UnimplementedPacketCaptureServer) Pcap(*PcapRequest, PacketCapture_PcapServer) error { - return status.Errorf(codes.Unimplemented, "method Pcap not implemented") -} -func (UnimplementedPacketCaptureServer) mustEmbedUnimplementedPacketCaptureServer() {} - -// UnsafePacketCaptureServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to PacketCaptureServer will -// result in compilation errors. -type UnsafePacketCaptureServer interface { - mustEmbedUnimplementedPacketCaptureServer() -} - -func RegisterPacketCaptureServer(s grpc.ServiceRegistrar, srv PacketCaptureServer) { - s.RegisterService(&PacketCapture_ServiceDesc, srv) -} - -func _PacketCapture_Pcap_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(PcapRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(PacketCaptureServer).Pcap(m, &packetCapturePcapServer{stream}) -} - -type PacketCapture_PcapServer interface { - Send(*PcapResponse) error - grpc.ServerStream -} - -type packetCapturePcapServer struct { - grpc.ServerStream -} - -func (x *packetCapturePcapServer) Send(m *PcapResponse) error { - return x.ServerStream.SendMsg(m) -} - -// PacketCapture_ServiceDesc is the grpc.ServiceDesc for PacketCapture service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var PacketCapture_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.pcap.PacketCapture", - HandlerType: (*PacketCaptureServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "Pcap", - Handler: _PacketCapture_Pcap_Handler, - ServerStreams: true, - }, - }, - Metadata: "packet_capture/packet_capture.proto", -} diff --git a/src/sonic-framework/gnoi/packet_link_qualification/BUILD.bazel b/src/sonic-framework/gnoi/packet_link_qualification/BUILD.bazel deleted file mode 100644 index 592cac3009da..000000000000 --- a/src/sonic-framework/gnoi/packet_link_qualification/BUILD.bazel +++ /dev/null @@ -1,67 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") -load("//:common.bzl", "use_new_compilers") - -# Copyright 2024 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -use_new_compilers() - -proto_library( - name = "linkqual_proto", - srcs = ["packet_link_qualification.proto"], - visibility = ["//visibility:public"], - deps = [ - "//types:types_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:timestamp_proto", - "@go_googleapis//google/rpc:status_proto", - ], -) - -go_proto_library( - name = "linkqual_go_proto", - compilers = [ - "go_protoc_gen_go", - "go_protoc_gen_go_grpc", - ], - importpath = "github.com/openconfig/gnoi/packet_link_qualification", - proto = ":linkqual_proto", - visibility = ["//visibility:public"], - deps = [ - "//types", - "@go_googleapis//google/rpc:status_go_proto", - ], -) - -go_library( - name = "linkqual", - embed = [":linkqual_go_proto"], - importpath = "github.com/openconfig/gnoi/linkqual", - visibility = ["//visibility:public"], -) - -go_library( - name = "packet_link_qualification", - embed = [":linkqual_go_proto"], - importpath = "github.com/openconfig/gnoi/packet_link_qualification", - visibility = ["//visibility:public"], -) diff --git a/src/sonic-framework/gnoi/packet_link_qualification/img/link_qual.svg b/src/sonic-framework/gnoi/packet_link_qualification/img/link_qual.svg deleted file mode 100644 index 1e92f62ff033..000000000000 --- a/src/sonic-framework/gnoi/packet_link_qualification/img/link_qual.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/sonic-framework/gnoi/packet_link_qualification/img/link_qual_ntp.svg b/src/sonic-framework/gnoi/packet_link_qualification/img/link_qual_ntp.svg deleted file mode 100644 index e80e0ca27d4f..000000000000 --- a/src/sonic-framework/gnoi/packet_link_qualification/img/link_qual_ntp.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/sonic-framework/gnoi/packet_link_qualification/index.md b/src/sonic-framework/gnoi/packet_link_qualification/index.md deleted file mode 100644 index 973a444af26c..000000000000 --- a/src/sonic-framework/gnoi/packet_link_qualification/index.md +++ /dev/null @@ -1,379 +0,0 @@ -# Link Qualification Service v2 Definition - -## Background - -The link qualification service provides a way to certify link -quality on two devices. This service defines a protocol for setting up the peer -devices to allow for the generation of packets from one device to another and -validate those packets are sent and received, then restoring the devices to -their previous state. This service's intent is to allow for different -generation and reflection modes of operation based on the hardware capabilities -of the device. There is a standard report generated regardless of modes -selected and that common report can be used by upstream services to aggregate -network wide link quality. - -## TLDR - -### General flow - -![General Flow](img/link_qual.svg) - -### Specific requirements around the service - -#### Connectivity to devices during link qualification maybe interrupted - -Upon calling Create, the interfaces on the device will be put into a forwarding -mode which must not contain other traffic, control or data. This may cause the -generator or reflector endpoint to become unreachable. The service -implementation must gracefully handle this state. - -**Devices must return to pre-link qualification state after the link qualification has completed or errored** - -The service is not expected to persist state across reboots of the device. -Since no state is changed in the configuration of the device, on boot the -system should boot normally and there will be no side effects left from -previous link qualifications. - -During the link qualification the device must put the interfaces into a -`TESTING` `oper-status` for the duration of the qualification. Once complete, -the `oper-status` should be restored to the previous state. - -##### Devices must garbage collect results after some period to keep from filling up storage on the device - -The service should store at least 2 qualification results for each interface. -The results are not expected to persist across reboots of the device. - -##### The service implementation must support multiple generations of forwarding hardware which have different capabilities with regards to both generation and reflection of packets - -* Packet Generators -The preferred method for the generation of frames for the link qualification is -via a packet generator. This mode provides the most flexibility around packet -rates, packet sizes and packet content. - -* Packet Injectors -To support hardware which doesn't have a built in packet generator, link -qualification provides a packet injector mode to support a loop between both -endpoints in the qualification for packets to be injected and looped. - -* ASIC Loopback -The ASIC loopback mode allows for the loopback of frames to happen in the -forwarding path of the device. This enables the most comprehensive testing -results as all counters should be available to the qualification. This is the -preferred mode of reflection. - -* PMD Loopback -For devices which cannot implement an ASIC based loopback. The PMD loopback -mode can be supported. This mode allows for the interface to be looped back at -either the PMD or in the interface. This will likely limit what counters are -available for results on the reflector but can still validate the link. - -## Service Definition - -See [proto](packet_link_qualification.proto) for rpc and message definitions. - -### Capabilities - -Capabilities returns the endpoint types the device is able to support for link -qualifications. - -### Create - -Create will create the linkqualifcations for the provides interfaces on the -device. The provided configurations specific the id to be used by the qualifcation -as well as the endpoint type to be used. - -### Delete - -Delete will delete the qualifiction id from the device. If the qualifcation is not -in `QUALIFICATION_STATE_ERROR` or `QUALIFICATION_STATE_COMPLETED` the qualification -will be cancelled and torn down and deleted. - -### Get - -Get returns the current status and results for the provided qualfication id. - -### List - -List returns the list of all current and previous qualifications on the device. - -## Use Cases - -### Duplicate test ID called - -* Create with config.id=”Test1” for interface Ethernet1 -* While the above is still ongoing, Create with config.id=”Test1” for interface Ethernet2 -* Second call to Create will return `AlreadyExists` error code within the gRPC error - response. - -### Existing Qualification running on interface - -* StartPacketQualification with config.id=”Test1” for interface Ethernet1 -* After the above is completed, StartPacketQualification with config.id=”Test1” for interface Ethernet2 -* Second call to Create will return AlreadyExists error code - -### Duplicate id but called after previous id is deleted - -* Create with config.id=”Test1” for interface Ethernet1 -* Delete with id=”Test1” -* Create with config.id=”Test1” for interface Ethernet2 -* Second call to StartPacketQualification is expected to go through without errors. - -### How a based generator walks through setting itself up - -* Create call is made -* For all status errors described below are part of the individual qualification status - and not part of the RPC status. -* Service validates the `interface_name` is valid - * if not return `INVALID_PARAMETER` -* Service validates the `interface_name` is found - * if not return `NOT_FOUND` -* Service validates the test id doesn't conflict with existing tests - * if not return `ALREADY_EXISTS` -* Service validates the endpoint type is supported - * if not return `INVALID_PARAMETER` -* Service validates endpoint configuration - * if not return `INVALID_PARAMETER` - * status should return what parameters are invalid -* If the synchronization mode is NTP - * Validate that the service can start at that time it must be at least endpoint type setup time + current time away - * if not return `INVALID_PARAMETER` - * Mark status as `QUALIFICATION_STATE_IDLE` - * Wait for `start_time` - `min_setup_time` - * Begin Setup - * Mark status as `QUALIFICATION_STATE_SETUP` - * if the setup cannot be completed before `start_time` - * Mark status as `QUALIFICATION_STATE_ERROR` - * Begin Qualification at `start_time` - * Start the qualification run for duration providing updates to the result every `min_sample_interval` - * Mark status as `QUALIFICATION_STATE_RUNNING` - * Wait for `end_time` - * Mark status as `QUALIFICATION_STATE_TEARDOWN` - * If `teardown_time` is set - * Wait until `teardown_time` - * Begin teardown - * if the teardown cannot be completed - * Mark status as `QUALIFICATION_STATE_ERROR` - * Mark status as `QUALIFICATION_STATE_COMPLETED` -* if the synchronization mode is RPC - * Validate the synchronization parameters for setup / teardown - * If any errors have occurred - * Mark status as `QUALIFICATION_STATE_ERROR` - * if any failures occur during the following steps also mark status as `QUALIFICATION_STATE_ERROR` - * Mark status as `QUALIFICATION_STATE_IDLE` - * Mark status as `QUALIFICATION_STATE_SETUP` - * Wait for `pre_sync_duration` - * Start the setup for the setup - * if the setup cannot be completed in `setup_duration` - * Mark status as `QUALIFICATION_STATE_ERROR` - * Once setup, wait for any remaining time based on the setup - * Start the qualification run for duration providing updates to the result every `min_sample_interval` - * Mark status as `QUALIFICATION_STATE_RUNNING` - * Mark status as `QUALIFICATION_STATE_TEARDOWN` - * Wait for `post_sync_duration` - * Begin teardown - * Mark status as `QUALIFICATION_STATE_TEARDOWN` - * if the teardown cannot be completed in `teardown_duration` - * Mark status as `QUALIFICATION_STATE_ERROR` - * Wait for the remaining `teardown_duration` - * Mark status as `QUALIFICATION_STATE_COMPLETED` - -### Call graph for NTP synchronization - -![NTP Flow](img/link_qual_ntp.svg) - -### Call example for RPC synchronization with packet injector and PMD loopback - -* Caller gets Capabilities - * generator supports: - -``` -message PacketInjectorCapabilities { - min_mtu: 64 - max_mtu: 1500 - min_injected_packets: 1 - max_injected_packets: 1000 - min_setup_duration: "30s" - min_teardown_duration: "30s" - min_sample_interval: "60s" - loopback_modes: PACKET_INJECTOR_LOOPBACK_MODE_PMD -} -``` - -* loopback supports: - -``` -message PmdLoopbackCapabilities { - min_setup_duration: "10s" - min_teardown_duration: "10s" -} -``` - -* Caller calculates the `pre_sync_duration`, `setup_duration`, `teardown_duration` and `post_sync_duration` for each side - * **This assumes that both rpc's are sent in parallel** - * Generator - * `pre_sync_duration` = 10s - * remote setup time so we know the loopback is ready for us to generate packets - * `setup_duration` = 30s - * Setup time desired for this endpoint type. cannot be less than `min_setup_duration` provided as a capability. - * Start sending packets - * `duration` = 180s - * qualification duration - * stats must be updated every `min_sample_interval` - * `post_sync_duration` = 0s - * Generators should not need to set this value but may for synchronization issues with remote sides. - * `teardown_duration` = 30s - * The generator side teardown duration - * The `min_teardown_duration` will be used if left unset - * Reflector - * `pre_sync_duration` = 0s - * Loopbacks should not need to set this value but may for synchronization issues with remote sides. - * `setup_duration` = 40s - * This value should be the sum of the remote `setup_duration` and the local `min_setup_duration`. This value allows for the sides to be synchronized at the qualification start. - * `duration` = 180s - * qualification duration - * stats must be updated every `min_sample_interval` - * `post_sync_duration` = 30s - * the reflector side should hold up the loopback until the remote side has finished teardown - * `teardown_duration` = 10s - * The reflector side teardown duration - * The `min_teardown_duration` will be used if left unset -* Call generator and reflector Create() -* On the device acting as the Generator (PacketInjector) - * Validate that `setup_duration` is >= `min_setup_duration` - * Validate that `teardown_duration` is >= `min_teardown_duration` - * Schedule the work with backend which should being with waiting for `pre_sync_duration` if set - * Once the `pre_sync_duration` duration is reached - * Begin putting interface into generator mode - * If `setup_duration` has not been reached wait for the remaining duration - * Take first snapshot of packets and rates for the initial result - * Repeat taking snapshots of results every `min_sample_interval` - * Once duration is reached wait for `post_sync_duration` if set (for generators this value is not expected to be set) - * After `post_sync_duration` is reached begin teardown -* Reflector (PmdLoopback) - * Validate that `setup_duration` is >= `min_setup_duration` - * Validate that `teardown_duration` is >= `min_teardown_duration` - * Schedule the work with backend which should being with waiting for `pre_sync_duration` if set (for reflector this value is not expected to be set) - * Once the `pre_sync_duration` duration is reached - * Begin putting interface into reflector mode - * If `setup_duration` has not been reached wait for the remaining duration - * Take first snapshot of packets and rates for the initial result - * Repeat taking snapshots of results every update\_interval - * Once duration is reached wait for `post_sync_duration` if set - * After `post_sync_duration` is reached begin teardown - -### Call graph for Mixed synchronization generator RPC / loopback NTP - -* Caller gets Capabilities - * generator supports: - - ``` - message PacketGeneratorCapabilities { - max_bps: 250000000000 - max_pps: 200000000 - min_mtu: 64 - max_mtu: 9216 - min_setup_duration: "2s" - min_teardown_duration: "2s" - min_sample_interval: "1s" - } - ``` - -* loopback supports: - - ``` - message PmdLoopbackCapabilities { - min_setup_duration: "10s" - min_teardown_duration: "10s" - } - ``` - -* Caller calculates the `pre_sync_duration`, `setup_duration`, `teardown_duration` and `post_sync_duration` for each side - * **This assumes that both rpc's are sent in parallel** - * Generator - - ``` - message NTPSyncedTiming { - start_time: time.Now()+"60s" - end_time: time.Now()+"180s" - } - ``` - - * `start_time` - * adding 60 secs just to show how to balance out the loopback side via RPC - * `end_time` = `start_time` + "180s" - * qualification duration - * stats must be updated every `min_sample_interval` - * `teardown_time` - * left unset as we want to the generator to teardown immediately after `end_time` - * Reflector - * `pre_sync_duration` = 0s - * Reflectors should not need to set this value unless the RPC's are dispatched synchronously. - * `setup_duration` = 60s - * This value should be the sum of the remote `setup_duration` and the local `setup_duration`. This value allows for the sides to be synchronized at the qualification start. - * `duration` = 180s - * qualification duration - * stats must be updated every `min_sample_interval` - * `post_sync_duration` = 2s - * the reflector side should hold up the loopback until the remote side has finished teardown - * `teardown_duration` = 10s - * The reflector side teardown duration - * The `min_teardown_duration` will be used if left unset -* Call generator and reflector Create() -* Generator - * Validate that `start_time >= time.Now() + min_setup_duration` - * if `teardown_time` is set - * `teardown_time` must be >= `end_time` - * If not, `teardown_time` will be `end_time` - * Begin setup at `start_time` - `min_setup_duration` - * Take first snapshot of packets and rates for the initial result - * Repeat taking snapshots of results every `min_sample_interval` until `end_time` - * if `teardown_time` is not set, begin teardown. - * if set wait until `teardown_time` then begin teardown - * Once the teardown is complete, take the final reading on `packets_sent`, `packets_received`, `packets_error` and `packets_dropped` at the Generator end. - * `qualification_rate_bytes_per_second` counter should be computed only during the test duration using the bytes sent in the `min_sample_interval`. -* Reflector - * Validate that `setup_duration` is >= `min_setup_duration` - * Validate that `teardown_duration` is >= `min_teardown_duration` - * Schedule the work with backend which should being with waiting for `pre_sync_duration` if set (for reflector this value is not expected to be set) - * Once the `pre_sync_duration` duration is reached - * Begin putting interface into reflector mode - * If `setup_duration` has not been reached wait for the remaining duration - * Take first snapshot of packets and rates for the initial result - * Repeat taking snapshots of results every `update_interva`l - * Once duration is reached wait for `post_sync_duration` if set - * After `post_sync_duration` is reached begin teardown - * Once the teardown is complete, take the final reading on `packets_sent`, `packets_received`, `packets_error` and `packets_dropped` at the reflector end. - * `qualification_rate_bytes_per_second` counter should be computed only during the test duration using the bytes sent in the `min_sample_interval`. - -### Workflow for Delete in the case of canceling early - -* A caller may want cancel a running qualification early due to several administrative reasons - * Noticing the errors have already exceeded a threshold - * Wanting to change the rate or mtu for a running test - * Canceling it as might have been scheduled at the wrong time -* The expectation would be that calling delete before completion would cause the service to immediately cancel the packet ongoing test by - * Setting the status into `QUALIFICATION_STATE_ERROR` - * The status would be `CANCELLED` in the embedded status message - * The service would immediately start a teardown on the qualification - * Once the qualification is torn down the results would be deleted. - -## Future work - -### Inband signaled link qualification - -Using this API as a general purpose framework, it could be extended to support -an inband signaled mode of operation. In the currently defined implementations -the calling service must orchestrate both ends of the link via create / get / -delete calls. An inband version could allow the caller to only need to -orchestrate the one side of the link. Also there could even be internal use -cases in which the devices themselves could initiate a link qualification -without external prompting. - -### Link round-trip or one-way latency measurements - -Some service providers use measured link round trip or one way latency as part of their -qualification process for link turn-up, often by comparing such values with those the -circuit design predicts. For example, this informs us whether the path was built on -“the correct side of the mountain”. A generator could be defined that passes timestamps -in-band in both directions that the devices at the ends of the link under test would -interpret to produce the round trip and potentially the one-way delay timing. diff --git a/src/sonic-framework/gnoi/packet_link_qualification/packet_link_qualification.pb.go b/src/sonic-framework/gnoi/packet_link_qualification/packet_link_qualification.pb.go deleted file mode 100644 index 9433476ccdc9..000000000000 --- a/src/sonic-framework/gnoi/packet_link_qualification/packet_link_qualification.pb.go +++ /dev/null @@ -1,2720 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v3.21.10 -// source: packet_link_qualification/packet_link_qualification.proto - -package linkqual - -import ( - _ "github.com/openconfig/gnoi/types" - status "google.golang.org/genproto/googleapis/rpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type QualificationState int32 - -const ( - QualificationState_QUALIFICATION_STATE_UNSPECIFIED QualificationState = 0 - QualificationState_QUALIFICATION_STATE_ERROR QualificationState = 1 - QualificationState_QUALIFICATION_STATE_IDLE QualificationState = 2 - QualificationState_QUALIFICATION_STATE_SETUP QualificationState = 3 - QualificationState_QUALIFICATION_STATE_RUNNING QualificationState = 4 - QualificationState_QUALIFICATION_STATE_TEARDOWN QualificationState = 5 - QualificationState_QUALIFICATION_STATE_COMPLETED QualificationState = 6 -) - -// Enum value maps for QualificationState. -var ( - QualificationState_name = map[int32]string{ - 0: "QUALIFICATION_STATE_UNSPECIFIED", - 1: "QUALIFICATION_STATE_ERROR", - 2: "QUALIFICATION_STATE_IDLE", - 3: "QUALIFICATION_STATE_SETUP", - 4: "QUALIFICATION_STATE_RUNNING", - 5: "QUALIFICATION_STATE_TEARDOWN", - 6: "QUALIFICATION_STATE_COMPLETED", - } - QualificationState_value = map[string]int32{ - "QUALIFICATION_STATE_UNSPECIFIED": 0, - "QUALIFICATION_STATE_ERROR": 1, - "QUALIFICATION_STATE_IDLE": 2, - "QUALIFICATION_STATE_SETUP": 3, - "QUALIFICATION_STATE_RUNNING": 4, - "QUALIFICATION_STATE_TEARDOWN": 5, - "QUALIFICATION_STATE_COMPLETED": 6, - } -) - -func (x QualificationState) Enum() *QualificationState { - p := new(QualificationState) - *p = x - return p -} - -func (x QualificationState) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (QualificationState) Descriptor() protoreflect.EnumDescriptor { - return file_packet_link_qualification_packet_link_qualification_proto_enumTypes[0].Descriptor() -} - -func (QualificationState) Type() protoreflect.EnumType { - return &file_packet_link_qualification_packet_link_qualification_proto_enumTypes[0] -} - -func (x QualificationState) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use QualificationState.Descriptor instead. -func (QualificationState) EnumDescriptor() ([]byte, []int) { - return file_packet_link_qualification_packet_link_qualification_proto_rawDescGZIP(), []int{0} -} - -type PacketInjectorLoopbackMode int32 - -const ( - PacketInjectorLoopbackMode_PACKET_INJECTOR_LOOPBACK_MODE_UNSPECIFIED PacketInjectorLoopbackMode = 0 - PacketInjectorLoopbackMode_PACKET_INJECTOR_LOOPBACK_MODE_PMD PacketInjectorLoopbackMode = 1 - PacketInjectorLoopbackMode_PACKET_INJECTOR_LOOPBACK_MODE_ASIC PacketInjectorLoopbackMode = 2 -) - -// Enum value maps for PacketInjectorLoopbackMode. -var ( - PacketInjectorLoopbackMode_name = map[int32]string{ - 0: "PACKET_INJECTOR_LOOPBACK_MODE_UNSPECIFIED", - 1: "PACKET_INJECTOR_LOOPBACK_MODE_PMD", - 2: "PACKET_INJECTOR_LOOPBACK_MODE_ASIC", - } - PacketInjectorLoopbackMode_value = map[string]int32{ - "PACKET_INJECTOR_LOOPBACK_MODE_UNSPECIFIED": 0, - "PACKET_INJECTOR_LOOPBACK_MODE_PMD": 1, - "PACKET_INJECTOR_LOOPBACK_MODE_ASIC": 2, - } -) - -func (x PacketInjectorLoopbackMode) Enum() *PacketInjectorLoopbackMode { - p := new(PacketInjectorLoopbackMode) - *p = x - return p -} - -func (x PacketInjectorLoopbackMode) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (PacketInjectorLoopbackMode) Descriptor() protoreflect.EnumDescriptor { - return file_packet_link_qualification_packet_link_qualification_proto_enumTypes[1].Descriptor() -} - -func (PacketInjectorLoopbackMode) Type() protoreflect.EnumType { - return &file_packet_link_qualification_packet_link_qualification_proto_enumTypes[1] -} - -func (x PacketInjectorLoopbackMode) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use PacketInjectorLoopbackMode.Descriptor instead. -func (PacketInjectorLoopbackMode) EnumDescriptor() ([]byte, []int) { - return file_packet_link_qualification_packet_link_qualification_proto_rawDescGZIP(), []int{1} -} - -type HeaderMatchField int32 - -const ( - HeaderMatchField_HEADER_MATCH_FIELD_UNSPECIFIED HeaderMatchField = 0 - HeaderMatchField_HEADER_MATCH_FIELD_L2 HeaderMatchField = 1 - HeaderMatchField_HEADER_MATCH_FIELD_L3 HeaderMatchField = 2 - HeaderMatchField_HEADER_MATCH_FIELD_L4 HeaderMatchField = 3 -) - -// Enum value maps for HeaderMatchField. -var ( - HeaderMatchField_name = map[int32]string{ - 0: "HEADER_MATCH_FIELD_UNSPECIFIED", - 1: "HEADER_MATCH_FIELD_L2", - 2: "HEADER_MATCH_FIELD_L3", - 3: "HEADER_MATCH_FIELD_L4", - } - HeaderMatchField_value = map[string]int32{ - "HEADER_MATCH_FIELD_UNSPECIFIED": 0, - "HEADER_MATCH_FIELD_L2": 1, - "HEADER_MATCH_FIELD_L3": 2, - "HEADER_MATCH_FIELD_L4": 3, - } -) - -func (x HeaderMatchField) Enum() *HeaderMatchField { - p := new(HeaderMatchField) - *p = x - return p -} - -func (x HeaderMatchField) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (HeaderMatchField) Descriptor() protoreflect.EnumDescriptor { - return file_packet_link_qualification_packet_link_qualification_proto_enumTypes[2].Descriptor() -} - -func (HeaderMatchField) Type() protoreflect.EnumType { - return &file_packet_link_qualification_packet_link_qualification_proto_enumTypes[2] -} - -func (x HeaderMatchField) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use HeaderMatchField.Descriptor instead. -func (HeaderMatchField) EnumDescriptor() ([]byte, []int) { - return file_packet_link_qualification_packet_link_qualification_proto_rawDescGZIP(), []int{2} -} - -type CreateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Interfaces []*QualificationConfiguration `protobuf:"bytes,1,rep,name=interfaces,proto3" json:"interfaces,omitempty"` -} - -func (x *CreateRequest) Reset() { - *x = CreateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateRequest) ProtoMessage() {} - -func (x *CreateRequest) ProtoReflect() protoreflect.Message { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead. -func (*CreateRequest) Descriptor() ([]byte, []int) { - return file_packet_link_qualification_packet_link_qualification_proto_rawDescGZIP(), []int{0} -} - -func (x *CreateRequest) GetInterfaces() []*QualificationConfiguration { - if x != nil { - return x.Interfaces - } - return nil -} - -type CreateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status map[string]*status.Status `protobuf:"bytes,2,rep,name=status,proto3" json:"status,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *CreateResponse) Reset() { - *x = CreateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateResponse) ProtoMessage() {} - -func (x *CreateResponse) ProtoReflect() protoreflect.Message { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead. -func (*CreateResponse) Descriptor() ([]byte, []int) { - return file_packet_link_qualification_packet_link_qualification_proto_rawDescGZIP(), []int{1} -} - -func (x *CreateResponse) GetStatus() map[string]*status.Status { - if x != nil { - return x.Status - } - return nil -} - -type NTPSyncedTiming struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` - TeardownTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=teardown_time,json=teardownTime,proto3" json:"teardown_time,omitempty"` -} - -func (x *NTPSyncedTiming) Reset() { - *x = NTPSyncedTiming{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NTPSyncedTiming) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NTPSyncedTiming) ProtoMessage() {} - -func (x *NTPSyncedTiming) ProtoReflect() protoreflect.Message { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NTPSyncedTiming.ProtoReflect.Descriptor instead. -func (*NTPSyncedTiming) Descriptor() ([]byte, []int) { - return file_packet_link_qualification_packet_link_qualification_proto_rawDescGZIP(), []int{2} -} - -func (x *NTPSyncedTiming) GetStartTime() *timestamppb.Timestamp { - if x != nil { - return x.StartTime - } - return nil -} - -func (x *NTPSyncedTiming) GetEndTime() *timestamppb.Timestamp { - if x != nil { - return x.EndTime - } - return nil -} - -func (x *NTPSyncedTiming) GetTeardownTime() *timestamppb.Timestamp { - if x != nil { - return x.TeardownTime - } - return nil -} - -type RPCSyncedTiming struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PreSyncDuration *durationpb.Duration `protobuf:"bytes,1,opt,name=pre_sync_duration,json=preSyncDuration,proto3" json:"pre_sync_duration,omitempty"` - SetupDuration *durationpb.Duration `protobuf:"bytes,2,opt,name=setup_duration,json=setupDuration,proto3" json:"setup_duration,omitempty"` - Duration *durationpb.Duration `protobuf:"bytes,3,opt,name=duration,proto3" json:"duration,omitempty"` - PostSyncDuration *durationpb.Duration `protobuf:"bytes,4,opt,name=post_sync_duration,json=postSyncDuration,proto3" json:"post_sync_duration,omitempty"` - TeardownDuration *durationpb.Duration `protobuf:"bytes,5,opt,name=teardown_duration,json=teardownDuration,proto3" json:"teardown_duration,omitempty"` -} - -func (x *RPCSyncedTiming) Reset() { - *x = RPCSyncedTiming{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RPCSyncedTiming) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RPCSyncedTiming) ProtoMessage() {} - -func (x *RPCSyncedTiming) ProtoReflect() protoreflect.Message { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RPCSyncedTiming.ProtoReflect.Descriptor instead. -func (*RPCSyncedTiming) Descriptor() ([]byte, []int) { - return file_packet_link_qualification_packet_link_qualification_proto_rawDescGZIP(), []int{3} -} - -func (x *RPCSyncedTiming) GetPreSyncDuration() *durationpb.Duration { - if x != nil { - return x.PreSyncDuration - } - return nil -} - -func (x *RPCSyncedTiming) GetSetupDuration() *durationpb.Duration { - if x != nil { - return x.SetupDuration - } - return nil -} - -func (x *RPCSyncedTiming) GetDuration() *durationpb.Duration { - if x != nil { - return x.Duration - } - return nil -} - -func (x *RPCSyncedTiming) GetPostSyncDuration() *durationpb.Duration { - if x != nil { - return x.PostSyncDuration - } - return nil -} - -func (x *RPCSyncedTiming) GetTeardownDuration() *durationpb.Duration { - if x != nil { - return x.TeardownDuration - } - return nil -} - -type QualificationConfiguration struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - InterfaceName string `protobuf:"bytes,2,opt,name=interface_name,json=interfaceName,proto3" json:"interface_name,omitempty"` - // Types that are assignable to Timing: - // - // *QualificationConfiguration_Ntp - // *QualificationConfiguration_Rpc - Timing isQualificationConfiguration_Timing `protobuf_oneof:"timing"` - // Types that are assignable to EndpointType: - // - // *QualificationConfiguration_PacketGenerator - // *QualificationConfiguration_PacketInjector - // *QualificationConfiguration_PmdLoopback - // *QualificationConfiguration_AsicLoopback - EndpointType isQualificationConfiguration_EndpointType `protobuf_oneof:"endpoint_type"` -} - -func (x *QualificationConfiguration) Reset() { - *x = QualificationConfiguration{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QualificationConfiguration) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QualificationConfiguration) ProtoMessage() {} - -func (x *QualificationConfiguration) ProtoReflect() protoreflect.Message { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use QualificationConfiguration.ProtoReflect.Descriptor instead. -func (*QualificationConfiguration) Descriptor() ([]byte, []int) { - return file_packet_link_qualification_packet_link_qualification_proto_rawDescGZIP(), []int{4} -} - -func (x *QualificationConfiguration) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *QualificationConfiguration) GetInterfaceName() string { - if x != nil { - return x.InterfaceName - } - return "" -} - -func (m *QualificationConfiguration) GetTiming() isQualificationConfiguration_Timing { - if m != nil { - return m.Timing - } - return nil -} - -func (x *QualificationConfiguration) GetNtp() *NTPSyncedTiming { - if x, ok := x.GetTiming().(*QualificationConfiguration_Ntp); ok { - return x.Ntp - } - return nil -} - -func (x *QualificationConfiguration) GetRpc() *RPCSyncedTiming { - if x, ok := x.GetTiming().(*QualificationConfiguration_Rpc); ok { - return x.Rpc - } - return nil -} - -func (m *QualificationConfiguration) GetEndpointType() isQualificationConfiguration_EndpointType { - if m != nil { - return m.EndpointType - } - return nil -} - -func (x *QualificationConfiguration) GetPacketGenerator() *PacketGeneratorConfiguration { - if x, ok := x.GetEndpointType().(*QualificationConfiguration_PacketGenerator); ok { - return x.PacketGenerator - } - return nil -} - -func (x *QualificationConfiguration) GetPacketInjector() *PacketInjectorConfiguration { - if x, ok := x.GetEndpointType().(*QualificationConfiguration_PacketInjector); ok { - return x.PacketInjector - } - return nil -} - -func (x *QualificationConfiguration) GetPmdLoopback() *PmdLoopbackConfiguration { - if x, ok := x.GetEndpointType().(*QualificationConfiguration_PmdLoopback); ok { - return x.PmdLoopback - } - return nil -} - -func (x *QualificationConfiguration) GetAsicLoopback() *AsicLoopbackConfiguration { - if x, ok := x.GetEndpointType().(*QualificationConfiguration_AsicLoopback); ok { - return x.AsicLoopback - } - return nil -} - -type isQualificationConfiguration_Timing interface { - isQualificationConfiguration_Timing() -} - -type QualificationConfiguration_Ntp struct { - Ntp *NTPSyncedTiming `protobuf:"bytes,101,opt,name=ntp,proto3,oneof"` -} - -type QualificationConfiguration_Rpc struct { - Rpc *RPCSyncedTiming `protobuf:"bytes,102,opt,name=rpc,proto3,oneof"` -} - -func (*QualificationConfiguration_Ntp) isQualificationConfiguration_Timing() {} - -func (*QualificationConfiguration_Rpc) isQualificationConfiguration_Timing() {} - -type isQualificationConfiguration_EndpointType interface { - isQualificationConfiguration_EndpointType() -} - -type QualificationConfiguration_PacketGenerator struct { - PacketGenerator *PacketGeneratorConfiguration `protobuf:"bytes,111,opt,name=packet_generator,json=packetGenerator,proto3,oneof"` -} - -type QualificationConfiguration_PacketInjector struct { - PacketInjector *PacketInjectorConfiguration `protobuf:"bytes,112,opt,name=packet_injector,json=packetInjector,proto3,oneof"` -} - -type QualificationConfiguration_PmdLoopback struct { - PmdLoopback *PmdLoopbackConfiguration `protobuf:"bytes,113,opt,name=pmd_loopback,json=pmdLoopback,proto3,oneof"` -} - -type QualificationConfiguration_AsicLoopback struct { - AsicLoopback *AsicLoopbackConfiguration `protobuf:"bytes,114,opt,name=asic_loopback,json=asicLoopback,proto3,oneof"` -} - -func (*QualificationConfiguration_PacketGenerator) isQualificationConfiguration_EndpointType() {} - -func (*QualificationConfiguration_PacketInjector) isQualificationConfiguration_EndpointType() {} - -func (*QualificationConfiguration_PmdLoopback) isQualificationConfiguration_EndpointType() {} - -func (*QualificationConfiguration_AsicLoopback) isQualificationConfiguration_EndpointType() {} - -type PacketGeneratorConfiguration struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PacketRate uint64 `protobuf:"varint,1,opt,name=packet_rate,json=packetRate,proto3" json:"packet_rate,omitempty"` - PacketSize uint32 `protobuf:"varint,2,opt,name=packet_size,json=packetSize,proto3" json:"packet_size,omitempty"` -} - -func (x *PacketGeneratorConfiguration) Reset() { - *x = PacketGeneratorConfiguration{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PacketGeneratorConfiguration) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PacketGeneratorConfiguration) ProtoMessage() {} - -func (x *PacketGeneratorConfiguration) ProtoReflect() protoreflect.Message { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PacketGeneratorConfiguration.ProtoReflect.Descriptor instead. -func (*PacketGeneratorConfiguration) Descriptor() ([]byte, []int) { - return file_packet_link_qualification_packet_link_qualification_proto_rawDescGZIP(), []int{5} -} - -func (x *PacketGeneratorConfiguration) GetPacketRate() uint64 { - if x != nil { - return x.PacketRate - } - return 0 -} - -func (x *PacketGeneratorConfiguration) GetPacketSize() uint32 { - if x != nil { - return x.PacketSize - } - return 0 -} - -type PacketInjectorConfiguration struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PacketCount uint32 `protobuf:"varint,1,opt,name=packet_count,json=packetCount,proto3" json:"packet_count,omitempty"` - PacketSize uint32 `protobuf:"varint,2,opt,name=packet_size,json=packetSize,proto3" json:"packet_size,omitempty"` - // Types that are assignable to LoopbackMode: - // - // *PacketInjectorConfiguration_PmdLoopback - // *PacketInjectorConfiguration_AsicLoopback - LoopbackMode isPacketInjectorConfiguration_LoopbackMode `protobuf_oneof:"loopback_mode"` -} - -func (x *PacketInjectorConfiguration) Reset() { - *x = PacketInjectorConfiguration{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PacketInjectorConfiguration) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PacketInjectorConfiguration) ProtoMessage() {} - -func (x *PacketInjectorConfiguration) ProtoReflect() protoreflect.Message { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PacketInjectorConfiguration.ProtoReflect.Descriptor instead. -func (*PacketInjectorConfiguration) Descriptor() ([]byte, []int) { - return file_packet_link_qualification_packet_link_qualification_proto_rawDescGZIP(), []int{6} -} - -func (x *PacketInjectorConfiguration) GetPacketCount() uint32 { - if x != nil { - return x.PacketCount - } - return 0 -} - -func (x *PacketInjectorConfiguration) GetPacketSize() uint32 { - if x != nil { - return x.PacketSize - } - return 0 -} - -func (m *PacketInjectorConfiguration) GetLoopbackMode() isPacketInjectorConfiguration_LoopbackMode { - if m != nil { - return m.LoopbackMode - } - return nil -} - -func (x *PacketInjectorConfiguration) GetPmdLoopback() *PmdLoopbackConfiguration { - if x, ok := x.GetLoopbackMode().(*PacketInjectorConfiguration_PmdLoopback); ok { - return x.PmdLoopback - } - return nil -} - -func (x *PacketInjectorConfiguration) GetAsicLoopback() *AsicLoopbackConfiguration { - if x, ok := x.GetLoopbackMode().(*PacketInjectorConfiguration_AsicLoopback); ok { - return x.AsicLoopback - } - return nil -} - -type isPacketInjectorConfiguration_LoopbackMode interface { - isPacketInjectorConfiguration_LoopbackMode() -} - -type PacketInjectorConfiguration_PmdLoopback struct { - PmdLoopback *PmdLoopbackConfiguration `protobuf:"bytes,101,opt,name=pmd_loopback,json=pmdLoopback,proto3,oneof"` -} - -type PacketInjectorConfiguration_AsicLoopback struct { - AsicLoopback *AsicLoopbackConfiguration `protobuf:"bytes,102,opt,name=asic_loopback,json=asicLoopback,proto3,oneof"` -} - -func (*PacketInjectorConfiguration_PmdLoopback) isPacketInjectorConfiguration_LoopbackMode() {} - -func (*PacketInjectorConfiguration_AsicLoopback) isPacketInjectorConfiguration_LoopbackMode() {} - -type PmdLoopbackConfiguration struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *PmdLoopbackConfiguration) Reset() { - *x = PmdLoopbackConfiguration{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PmdLoopbackConfiguration) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PmdLoopbackConfiguration) ProtoMessage() {} - -func (x *PmdLoopbackConfiguration) ProtoReflect() protoreflect.Message { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PmdLoopbackConfiguration.ProtoReflect.Descriptor instead. -func (*PmdLoopbackConfiguration) Descriptor() ([]byte, []int) { - return file_packet_link_qualification_packet_link_qualification_proto_rawDescGZIP(), []int{7} -} - -type AsicLoopbackConfiguration struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *AsicLoopbackConfiguration) Reset() { - *x = AsicLoopbackConfiguration{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AsicLoopbackConfiguration) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AsicLoopbackConfiguration) ProtoMessage() {} - -func (x *AsicLoopbackConfiguration) ProtoReflect() protoreflect.Message { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AsicLoopbackConfiguration.ProtoReflect.Descriptor instead. -func (*AsicLoopbackConfiguration) Descriptor() ([]byte, []int) { - return file_packet_link_qualification_packet_link_qualification_proto_rawDescGZIP(), []int{8} -} - -type GetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` -} - -func (x *GetRequest) Reset() { - *x = GetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetRequest) ProtoMessage() {} - -func (x *GetRequest) ProtoReflect() protoreflect.Message { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetRequest.ProtoReflect.Descriptor instead. -func (*GetRequest) Descriptor() ([]byte, []int) { - return file_packet_link_qualification_packet_link_qualification_proto_rawDescGZIP(), []int{9} -} - -func (x *GetRequest) GetIds() []string { - if x != nil { - return x.Ids - } - return nil -} - -type GetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Results map[string]*QualificationResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *GetResponse) Reset() { - *x = GetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetResponse) ProtoMessage() {} - -func (x *GetResponse) ProtoReflect() protoreflect.Message { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetResponse.ProtoReflect.Descriptor instead. -func (*GetResponse) Descriptor() ([]byte, []int) { - return file_packet_link_qualification_packet_link_qualification_proto_rawDescGZIP(), []int{10} -} - -func (x *GetResponse) GetResults() map[string]*QualificationResult { - if x != nil { - return x.Results - } - return nil -} - -type QualificationResult struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - InterfaceName string `protobuf:"bytes,2,opt,name=interface_name,json=interfaceName,proto3" json:"interface_name,omitempty"` - State QualificationState `protobuf:"varint,3,opt,name=state,proto3,enum=gnoi.packet_link_qualification.QualificationState" json:"state,omitempty"` - PacketsSent uint64 `protobuf:"varint,4,opt,name=packets_sent,json=packetsSent,proto3" json:"packets_sent,omitempty"` - PacketsReceived uint64 `protobuf:"varint,5,opt,name=packets_received,json=packetsReceived,proto3" json:"packets_received,omitempty"` - PacketsError uint64 `protobuf:"varint,6,opt,name=packets_error,json=packetsError,proto3" json:"packets_error,omitempty"` - PacketsDropped uint64 `protobuf:"varint,7,opt,name=packets_dropped,json=packetsDropped,proto3" json:"packets_dropped,omitempty"` - StartTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` - EndTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` - ExpectedRateBytesPerSecond uint64 `protobuf:"varint,10,opt,name=expected_rate_bytes_per_second,json=expectedRateBytesPerSecond,proto3" json:"expected_rate_bytes_per_second,omitempty"` - QualificationRateBytesPerSecond uint64 `protobuf:"varint,11,opt,name=qualification_rate_bytes_per_second,json=qualificationRateBytesPerSecond,proto3" json:"qualification_rate_bytes_per_second,omitempty"` - Status *status.Status `protobuf:"bytes,12,opt,name=status,proto3" json:"status,omitempty"` -} - -func (x *QualificationResult) Reset() { - *x = QualificationResult{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QualificationResult) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QualificationResult) ProtoMessage() {} - -func (x *QualificationResult) ProtoReflect() protoreflect.Message { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use QualificationResult.ProtoReflect.Descriptor instead. -func (*QualificationResult) Descriptor() ([]byte, []int) { - return file_packet_link_qualification_packet_link_qualification_proto_rawDescGZIP(), []int{11} -} - -func (x *QualificationResult) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *QualificationResult) GetInterfaceName() string { - if x != nil { - return x.InterfaceName - } - return "" -} - -func (x *QualificationResult) GetState() QualificationState { - if x != nil { - return x.State - } - return QualificationState_QUALIFICATION_STATE_UNSPECIFIED -} - -func (x *QualificationResult) GetPacketsSent() uint64 { - if x != nil { - return x.PacketsSent - } - return 0 -} - -func (x *QualificationResult) GetPacketsReceived() uint64 { - if x != nil { - return x.PacketsReceived - } - return 0 -} - -func (x *QualificationResult) GetPacketsError() uint64 { - if x != nil { - return x.PacketsError - } - return 0 -} - -func (x *QualificationResult) GetPacketsDropped() uint64 { - if x != nil { - return x.PacketsDropped - } - return 0 -} - -func (x *QualificationResult) GetStartTime() *timestamppb.Timestamp { - if x != nil { - return x.StartTime - } - return nil -} - -func (x *QualificationResult) GetEndTime() *timestamppb.Timestamp { - if x != nil { - return x.EndTime - } - return nil -} - -func (x *QualificationResult) GetExpectedRateBytesPerSecond() uint64 { - if x != nil { - return x.ExpectedRateBytesPerSecond - } - return 0 -} - -func (x *QualificationResult) GetQualificationRateBytesPerSecond() uint64 { - if x != nil { - return x.QualificationRateBytesPerSecond - } - return 0 -} - -func (x *QualificationResult) GetStatus() *status.Status { - if x != nil { - return x.Status - } - return nil -} - -type DeleteRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` -} - -func (x *DeleteRequest) Reset() { - *x = DeleteRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteRequest) ProtoMessage() {} - -func (x *DeleteRequest) ProtoReflect() protoreflect.Message { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead. -func (*DeleteRequest) Descriptor() ([]byte, []int) { - return file_packet_link_qualification_packet_link_qualification_proto_rawDescGZIP(), []int{12} -} - -func (x *DeleteRequest) GetIds() []string { - if x != nil { - return x.Ids - } - return nil -} - -type DeleteResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Results map[string]*status.Status `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *DeleteResponse) Reset() { - *x = DeleteResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteResponse) ProtoMessage() {} - -func (x *DeleteResponse) ProtoReflect() protoreflect.Message { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead. -func (*DeleteResponse) Descriptor() ([]byte, []int) { - return file_packet_link_qualification_packet_link_qualification_proto_rawDescGZIP(), []int{13} -} - -func (x *DeleteResponse) GetResults() map[string]*status.Status { - if x != nil { - return x.Results - } - return nil -} - -type CapabilitiesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *CapabilitiesRequest) Reset() { - *x = CapabilitiesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CapabilitiesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CapabilitiesRequest) ProtoMessage() {} - -func (x *CapabilitiesRequest) ProtoReflect() protoreflect.Message { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CapabilitiesRequest.ProtoReflect.Descriptor instead. -func (*CapabilitiesRequest) Descriptor() ([]byte, []int) { - return file_packet_link_qualification_packet_link_qualification_proto_rawDescGZIP(), []int{14} -} - -type CapabilitiesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` - NtpSynced bool `protobuf:"varint,2,opt,name=ntp_synced,json=ntpSynced,proto3" json:"ntp_synced,omitempty"` - Generator *GeneratorCapabilities `protobuf:"bytes,3,opt,name=generator,proto3" json:"generator,omitempty"` - Reflector *ReflectorCapabilities `protobuf:"bytes,4,opt,name=reflector,proto3" json:"reflector,omitempty"` - MaxHistoricalResultsPerInterface uint64 `protobuf:"varint,5,opt,name=max_historical_results_per_interface,json=maxHistoricalResultsPerInterface,proto3" json:"max_historical_results_per_interface,omitempty"` -} - -func (x *CapabilitiesResponse) Reset() { - *x = CapabilitiesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CapabilitiesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CapabilitiesResponse) ProtoMessage() {} - -func (x *CapabilitiesResponse) ProtoReflect() protoreflect.Message { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CapabilitiesResponse.ProtoReflect.Descriptor instead. -func (*CapabilitiesResponse) Descriptor() ([]byte, []int) { - return file_packet_link_qualification_packet_link_qualification_proto_rawDescGZIP(), []int{15} -} - -func (x *CapabilitiesResponse) GetTime() *timestamppb.Timestamp { - if x != nil { - return x.Time - } - return nil -} - -func (x *CapabilitiesResponse) GetNtpSynced() bool { - if x != nil { - return x.NtpSynced - } - return false -} - -func (x *CapabilitiesResponse) GetGenerator() *GeneratorCapabilities { - if x != nil { - return x.Generator - } - return nil -} - -func (x *CapabilitiesResponse) GetReflector() *ReflectorCapabilities { - if x != nil { - return x.Reflector - } - return nil -} - -func (x *CapabilitiesResponse) GetMaxHistoricalResultsPerInterface() uint64 { - if x != nil { - return x.MaxHistoricalResultsPerInterface - } - return 0 -} - -type PacketGeneratorCapabilities struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MaxBps uint64 `protobuf:"varint,1,opt,name=max_bps,json=maxBps,proto3" json:"max_bps,omitempty"` - MaxPps uint64 `protobuf:"varint,2,opt,name=max_pps,json=maxPps,proto3" json:"max_pps,omitempty"` - MinMtu uint32 `protobuf:"varint,3,opt,name=min_mtu,json=minMtu,proto3" json:"min_mtu,omitempty"` - MaxMtu uint32 `protobuf:"varint,4,opt,name=max_mtu,json=maxMtu,proto3" json:"max_mtu,omitempty"` - MinSetupDuration *durationpb.Duration `protobuf:"bytes,5,opt,name=min_setup_duration,json=minSetupDuration,proto3" json:"min_setup_duration,omitempty"` - MinTeardownDuration *durationpb.Duration `protobuf:"bytes,6,opt,name=min_teardown_duration,json=minTeardownDuration,proto3" json:"min_teardown_duration,omitempty"` - MinSampleInterval *durationpb.Duration `protobuf:"bytes,7,opt,name=min_sample_interval,json=minSampleInterval,proto3" json:"min_sample_interval,omitempty"` -} - -func (x *PacketGeneratorCapabilities) Reset() { - *x = PacketGeneratorCapabilities{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PacketGeneratorCapabilities) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PacketGeneratorCapabilities) ProtoMessage() {} - -func (x *PacketGeneratorCapabilities) ProtoReflect() protoreflect.Message { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PacketGeneratorCapabilities.ProtoReflect.Descriptor instead. -func (*PacketGeneratorCapabilities) Descriptor() ([]byte, []int) { - return file_packet_link_qualification_packet_link_qualification_proto_rawDescGZIP(), []int{16} -} - -func (x *PacketGeneratorCapabilities) GetMaxBps() uint64 { - if x != nil { - return x.MaxBps - } - return 0 -} - -func (x *PacketGeneratorCapabilities) GetMaxPps() uint64 { - if x != nil { - return x.MaxPps - } - return 0 -} - -func (x *PacketGeneratorCapabilities) GetMinMtu() uint32 { - if x != nil { - return x.MinMtu - } - return 0 -} - -func (x *PacketGeneratorCapabilities) GetMaxMtu() uint32 { - if x != nil { - return x.MaxMtu - } - return 0 -} - -func (x *PacketGeneratorCapabilities) GetMinSetupDuration() *durationpb.Duration { - if x != nil { - return x.MinSetupDuration - } - return nil -} - -func (x *PacketGeneratorCapabilities) GetMinTeardownDuration() *durationpb.Duration { - if x != nil { - return x.MinTeardownDuration - } - return nil -} - -func (x *PacketGeneratorCapabilities) GetMinSampleInterval() *durationpb.Duration { - if x != nil { - return x.MinSampleInterval - } - return nil -} - -type PacketInjectorCapabilities struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MinMtu uint32 `protobuf:"varint,1,opt,name=min_mtu,json=minMtu,proto3" json:"min_mtu,omitempty"` - MaxMtu uint32 `protobuf:"varint,2,opt,name=max_mtu,json=maxMtu,proto3" json:"max_mtu,omitempty"` - MinInjectedPackets uint32 `protobuf:"varint,3,opt,name=min_injected_packets,json=minInjectedPackets,proto3" json:"min_injected_packets,omitempty"` - MaxInjectedPackets uint32 `protobuf:"varint,4,opt,name=max_injected_packets,json=maxInjectedPackets,proto3" json:"max_injected_packets,omitempty"` - MinSetupDuration *durationpb.Duration `protobuf:"bytes,5,opt,name=min_setup_duration,json=minSetupDuration,proto3" json:"min_setup_duration,omitempty"` - MinTeardownDuration *durationpb.Duration `protobuf:"bytes,6,opt,name=min_teardown_duration,json=minTeardownDuration,proto3" json:"min_teardown_duration,omitempty"` - MinSampleInterval *durationpb.Duration `protobuf:"bytes,7,opt,name=min_sample_interval,json=minSampleInterval,proto3" json:"min_sample_interval,omitempty"` - LoopbackModes []PacketInjectorLoopbackMode `protobuf:"varint,8,rep,packed,name=loopback_modes,json=loopbackModes,proto3,enum=gnoi.packet_link_qualification.PacketInjectorLoopbackMode" json:"loopback_modes,omitempty"` -} - -func (x *PacketInjectorCapabilities) Reset() { - *x = PacketInjectorCapabilities{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PacketInjectorCapabilities) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PacketInjectorCapabilities) ProtoMessage() {} - -func (x *PacketInjectorCapabilities) ProtoReflect() protoreflect.Message { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PacketInjectorCapabilities.ProtoReflect.Descriptor instead. -func (*PacketInjectorCapabilities) Descriptor() ([]byte, []int) { - return file_packet_link_qualification_packet_link_qualification_proto_rawDescGZIP(), []int{17} -} - -func (x *PacketInjectorCapabilities) GetMinMtu() uint32 { - if x != nil { - return x.MinMtu - } - return 0 -} - -func (x *PacketInjectorCapabilities) GetMaxMtu() uint32 { - if x != nil { - return x.MaxMtu - } - return 0 -} - -func (x *PacketInjectorCapabilities) GetMinInjectedPackets() uint32 { - if x != nil { - return x.MinInjectedPackets - } - return 0 -} - -func (x *PacketInjectorCapabilities) GetMaxInjectedPackets() uint32 { - if x != nil { - return x.MaxInjectedPackets - } - return 0 -} - -func (x *PacketInjectorCapabilities) GetMinSetupDuration() *durationpb.Duration { - if x != nil { - return x.MinSetupDuration - } - return nil -} - -func (x *PacketInjectorCapabilities) GetMinTeardownDuration() *durationpb.Duration { - if x != nil { - return x.MinTeardownDuration - } - return nil -} - -func (x *PacketInjectorCapabilities) GetMinSampleInterval() *durationpb.Duration { - if x != nil { - return x.MinSampleInterval - } - return nil -} - -func (x *PacketInjectorCapabilities) GetLoopbackModes() []PacketInjectorLoopbackMode { - if x != nil { - return x.LoopbackModes - } - return nil -} - -type GeneratorCapabilities struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PacketGenerator *PacketGeneratorCapabilities `protobuf:"bytes,1,opt,name=packet_generator,json=packetGenerator,proto3" json:"packet_generator,omitempty"` - PacketInjector *PacketInjectorCapabilities `protobuf:"bytes,2,opt,name=packet_injector,json=packetInjector,proto3" json:"packet_injector,omitempty"` -} - -func (x *GeneratorCapabilities) Reset() { - *x = GeneratorCapabilities{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GeneratorCapabilities) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GeneratorCapabilities) ProtoMessage() {} - -func (x *GeneratorCapabilities) ProtoReflect() protoreflect.Message { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GeneratorCapabilities.ProtoReflect.Descriptor instead. -func (*GeneratorCapabilities) Descriptor() ([]byte, []int) { - return file_packet_link_qualification_packet_link_qualification_proto_rawDescGZIP(), []int{18} -} - -func (x *GeneratorCapabilities) GetPacketGenerator() *PacketGeneratorCapabilities { - if x != nil { - return x.PacketGenerator - } - return nil -} - -func (x *GeneratorCapabilities) GetPacketInjector() *PacketInjectorCapabilities { - if x != nil { - return x.PacketInjector - } - return nil -} - -type PmdLoopbackCapabilities struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MinSetupDuration *durationpb.Duration `protobuf:"bytes,1,opt,name=min_setup_duration,json=minSetupDuration,proto3" json:"min_setup_duration,omitempty"` - MinTeardownDuration *durationpb.Duration `protobuf:"bytes,2,opt,name=min_teardown_duration,json=minTeardownDuration,proto3" json:"min_teardown_duration,omitempty"` -} - -func (x *PmdLoopbackCapabilities) Reset() { - *x = PmdLoopbackCapabilities{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PmdLoopbackCapabilities) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PmdLoopbackCapabilities) ProtoMessage() {} - -func (x *PmdLoopbackCapabilities) ProtoReflect() protoreflect.Message { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PmdLoopbackCapabilities.ProtoReflect.Descriptor instead. -func (*PmdLoopbackCapabilities) Descriptor() ([]byte, []int) { - return file_packet_link_qualification_packet_link_qualification_proto_rawDescGZIP(), []int{19} -} - -func (x *PmdLoopbackCapabilities) GetMinSetupDuration() *durationpb.Duration { - if x != nil { - return x.MinSetupDuration - } - return nil -} - -func (x *PmdLoopbackCapabilities) GetMinTeardownDuration() *durationpb.Duration { - if x != nil { - return x.MinTeardownDuration - } - return nil -} - -type AsicLoopbackCapabilities struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MinSetupDuration *durationpb.Duration `protobuf:"bytes,1,opt,name=min_setup_duration,json=minSetupDuration,proto3" json:"min_setup_duration,omitempty"` - MinTeardownDuration *durationpb.Duration `protobuf:"bytes,2,opt,name=min_teardown_duration,json=minTeardownDuration,proto3" json:"min_teardown_duration,omitempty"` - Fields []HeaderMatchField `protobuf:"varint,3,rep,packed,name=fields,proto3,enum=gnoi.packet_link_qualification.HeaderMatchField" json:"fields,omitempty"` -} - -func (x *AsicLoopbackCapabilities) Reset() { - *x = AsicLoopbackCapabilities{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AsicLoopbackCapabilities) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AsicLoopbackCapabilities) ProtoMessage() {} - -func (x *AsicLoopbackCapabilities) ProtoReflect() protoreflect.Message { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AsicLoopbackCapabilities.ProtoReflect.Descriptor instead. -func (*AsicLoopbackCapabilities) Descriptor() ([]byte, []int) { - return file_packet_link_qualification_packet_link_qualification_proto_rawDescGZIP(), []int{20} -} - -func (x *AsicLoopbackCapabilities) GetMinSetupDuration() *durationpb.Duration { - if x != nil { - return x.MinSetupDuration - } - return nil -} - -func (x *AsicLoopbackCapabilities) GetMinTeardownDuration() *durationpb.Duration { - if x != nil { - return x.MinTeardownDuration - } - return nil -} - -func (x *AsicLoopbackCapabilities) GetFields() []HeaderMatchField { - if x != nil { - return x.Fields - } - return nil -} - -type ReflectorCapabilities struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PmdLoopback *PmdLoopbackCapabilities `protobuf:"bytes,1,opt,name=pmd_loopback,json=pmdLoopback,proto3" json:"pmd_loopback,omitempty"` - AsicLoopback *AsicLoopbackCapabilities `protobuf:"bytes,2,opt,name=asic_loopback,json=asicLoopback,proto3" json:"asic_loopback,omitempty"` -} - -func (x *ReflectorCapabilities) Reset() { - *x = ReflectorCapabilities{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ReflectorCapabilities) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ReflectorCapabilities) ProtoMessage() {} - -func (x *ReflectorCapabilities) ProtoReflect() protoreflect.Message { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ReflectorCapabilities.ProtoReflect.Descriptor instead. -func (*ReflectorCapabilities) Descriptor() ([]byte, []int) { - return file_packet_link_qualification_packet_link_qualification_proto_rawDescGZIP(), []int{21} -} - -func (x *ReflectorCapabilities) GetPmdLoopback() *PmdLoopbackCapabilities { - if x != nil { - return x.PmdLoopback - } - return nil -} - -func (x *ReflectorCapabilities) GetAsicLoopback() *AsicLoopbackCapabilities { - if x != nil { - return x.AsicLoopback - } - return nil -} - -type ListRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ListRequest) Reset() { - *x = ListRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListRequest) ProtoMessage() {} - -func (x *ListRequest) ProtoReflect() protoreflect.Message { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListRequest.ProtoReflect.Descriptor instead. -func (*ListRequest) Descriptor() ([]byte, []int) { - return file_packet_link_qualification_packet_link_qualification_proto_rawDescGZIP(), []int{22} -} - -type ListResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Results []*ListResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` -} - -func (x *ListResponse) Reset() { - *x = ListResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListResponse) ProtoMessage() {} - -func (x *ListResponse) ProtoReflect() protoreflect.Message { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListResponse.ProtoReflect.Descriptor instead. -func (*ListResponse) Descriptor() ([]byte, []int) { - return file_packet_link_qualification_packet_link_qualification_proto_rawDescGZIP(), []int{23} -} - -func (x *ListResponse) GetResults() []*ListResult { - if x != nil { - return x.Results - } - return nil -} - -type ListResult struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - State QualificationState `protobuf:"varint,2,opt,name=state,proto3,enum=gnoi.packet_link_qualification.QualificationState" json:"state,omitempty"` - InterfaceName string `protobuf:"bytes,3,opt,name=interface_name,json=interfaceName,proto3" json:"interface_name,omitempty"` -} - -func (x *ListResult) Reset() { - *x = ListResult{} - if protoimpl.UnsafeEnabled { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListResult) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListResult) ProtoMessage() {} - -func (x *ListResult) ProtoReflect() protoreflect.Message { - mi := &file_packet_link_qualification_packet_link_qualification_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListResult.ProtoReflect.Descriptor instead. -func (*ListResult) Descriptor() ([]byte, []int) { - return file_packet_link_qualification_packet_link_qualification_proto_rawDescGZIP(), []int{24} -} - -func (x *ListResult) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *ListResult) GetState() QualificationState { - if x != nil { - return x.State - } - return QualificationState_QUALIFICATION_STATE_UNSPECIFIED -} - -func (x *ListResult) GetInterfaceName() string { - if x != nil { - return x.InterfaceName - } - return "" -} - -var File_packet_link_qualification_packet_link_qualification_proto protoreflect.FileDescriptor - -var file_packet_link_qualification_packet_link_qualification_proto_rawDesc = []byte{ - 0x0a, 0x39, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x71, 0x75, - 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x61, 0x63, 0x6b, - 0x65, 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x71, 0x75, - 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x2c, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0x6b, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x5a, 0x0a, 0x0a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, - 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x71, 0x75, 0x61, 0x6c, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x61, 0x6c, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, - 0x22, 0xb3, 0x01, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x65, - 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, - 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x1a, 0x4d, 0x0a, 0x0b, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x28, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xc4, 0x01, 0x0a, 0x0f, 0x4e, 0x54, 0x50, 0x53, 0x79, - 0x6e, 0x63, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x69, 0x6e, 0x67, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, - 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, - 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3f, 0x0a, 0x0d, - 0x74, 0x65, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, - 0x0c, 0x74, 0x65, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xe2, 0x02, - 0x0a, 0x0f, 0x52, 0x50, 0x43, 0x53, 0x79, 0x6e, 0x63, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x69, 0x6e, - 0x67, 0x12, 0x45, 0x0a, 0x11, 0x70, 0x72, 0x65, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x64, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x70, 0x72, 0x65, 0x53, 0x79, 0x6e, 0x63, - 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x40, 0x0a, 0x0e, 0x73, 0x65, 0x74, 0x75, - 0x70, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x73, 0x65, 0x74, - 0x75, 0x70, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x08, 0x64, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x47, 0x0a, 0x12, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x64, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x70, 0x6f, 0x73, 0x74, 0x53, 0x79, - 0x6e, 0x63, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x46, 0x0a, 0x11, 0x74, 0x65, - 0x61, 0x72, 0x64, 0x6f, 0x77, 0x6e, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x10, 0x74, 0x65, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x6e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x22, 0x8c, 0x05, 0x0a, 0x1a, 0x51, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, - 0x66, 0x61, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x43, 0x0a, 0x03, 0x6e, 0x74, 0x70, 0x18, - 0x65, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x61, 0x63, - 0x6b, 0x65, 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4e, 0x54, 0x50, 0x53, 0x79, 0x6e, 0x63, 0x65, 0x64, - 0x54, 0x69, 0x6d, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x03, 0x6e, 0x74, 0x70, 0x12, 0x43, 0x0a, - 0x03, 0x72, 0x70, 0x63, 0x18, 0x66, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x71, 0x75, - 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x50, 0x43, 0x53, - 0x79, 0x6e, 0x63, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x03, 0x72, - 0x70, 0x63, 0x12, 0x69, 0x0a, 0x10, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x67, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x6f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, - 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x61, - 0x63, 0x6b, 0x65, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x01, 0x52, 0x0f, 0x70, 0x61, - 0x63, 0x6b, 0x65, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x66, 0x0a, - 0x0f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x69, 0x6e, 0x6a, 0x65, 0x63, 0x74, 0x6f, 0x72, - 0x18, 0x70, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x61, - 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x49, 0x6e, - 0x6a, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x48, 0x01, 0x52, 0x0e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x49, 0x6e, 0x6a, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x5d, 0x0a, 0x0c, 0x70, 0x6d, 0x64, 0x5f, 0x6c, 0x6f, 0x6f, - 0x70, 0x62, 0x61, 0x63, 0x6b, 0x18, 0x71, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x71, - 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x6d, 0x64, - 0x4c, 0x6f, 0x6f, 0x70, 0x62, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x01, 0x52, 0x0b, 0x70, 0x6d, 0x64, 0x4c, 0x6f, 0x6f, 0x70, - 0x62, 0x61, 0x63, 0x6b, 0x12, 0x60, 0x0a, 0x0d, 0x61, 0x73, 0x69, 0x63, 0x5f, 0x6c, 0x6f, 0x6f, - 0x70, 0x62, 0x61, 0x63, 0x6b, 0x18, 0x72, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x71, - 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x73, 0x69, - 0x63, 0x4c, 0x6f, 0x6f, 0x70, 0x62, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x01, 0x52, 0x0c, 0x61, 0x73, 0x69, 0x63, 0x4c, 0x6f, - 0x6f, 0x70, 0x62, 0x61, 0x63, 0x6b, 0x42, 0x08, 0x0a, 0x06, 0x74, 0x69, 0x6d, 0x69, 0x6e, 0x67, - 0x42, 0x0f, 0x0a, 0x0d, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x22, 0x60, 0x0a, 0x1c, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, - 0x61, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x72, 0x61, 0x74, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x61, - 0x74, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x73, 0x69, 0x7a, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x53, - 0x69, 0x7a, 0x65, 0x22, 0xb3, 0x02, 0x0a, 0x1b, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x49, 0x6e, - 0x6a, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x70, 0x61, 0x63, 0x6b, 0x65, - 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, - 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x70, 0x61, 0x63, - 0x6b, 0x65, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x5d, 0x0a, 0x0c, 0x70, 0x6d, 0x64, 0x5f, 0x6c, - 0x6f, 0x6f, 0x70, 0x62, 0x61, 0x63, 0x6b, 0x18, 0x65, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, - 0x5f, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, - 0x6d, 0x64, 0x4c, 0x6f, 0x6f, 0x70, 0x62, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0b, 0x70, 0x6d, 0x64, 0x4c, 0x6f, - 0x6f, 0x70, 0x62, 0x61, 0x63, 0x6b, 0x12, 0x60, 0x0a, 0x0d, 0x61, 0x73, 0x69, 0x63, 0x5f, 0x6c, - 0x6f, 0x6f, 0x70, 0x62, 0x61, 0x63, 0x6b, 0x18, 0x66, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, - 0x5f, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, - 0x73, 0x69, 0x63, 0x4c, 0x6f, 0x6f, 0x70, 0x62, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0c, 0x61, 0x73, 0x69, 0x63, - 0x4c, 0x6f, 0x6f, 0x70, 0x62, 0x61, 0x63, 0x6b, 0x42, 0x0f, 0x0a, 0x0d, 0x6c, 0x6f, 0x6f, 0x70, - 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x22, 0x1a, 0x0a, 0x18, 0x50, 0x6d, 0x64, - 0x4c, 0x6f, 0x6f, 0x70, 0x62, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x1b, 0x0a, 0x19, 0x41, 0x73, 0x69, 0x63, 0x4c, 0x6f, 0x6f, - 0x70, 0x62, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x22, 0x1e, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x69, - 0x64, 0x73, 0x22, 0xd2, 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x52, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x65, - 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x72, - 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x1a, 0x6f, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x49, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, - 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x71, 0x75, 0x61, 0x6c, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xe2, 0x04, 0x0a, 0x13, 0x51, 0x75, 0x61, 0x6c, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, - 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x48, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x61, 0x63, - 0x6b, 0x65, 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, - 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x5f, 0x73, 0x65, 0x6e, 0x74, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x53, - 0x65, 0x6e, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x5f, 0x72, - 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x70, - 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x12, 0x23, - 0x0a, 0x0d, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x45, 0x72, - 0x72, 0x6f, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x5f, 0x64, - 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x70, 0x61, - 0x63, 0x6b, 0x65, 0x74, 0x73, 0x44, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x12, 0x39, 0x0a, 0x0a, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, - 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, - 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x42, - 0x0a, 0x1e, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x5f, - 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, - 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x1a, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, - 0x52, 0x61, 0x74, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x50, 0x65, 0x72, 0x53, 0x65, 0x63, 0x6f, - 0x6e, 0x64, 0x12, 0x4c, 0x0a, 0x23, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x70, - 0x65, 0x72, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x1f, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x61, - 0x74, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x50, 0x65, 0x72, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, - 0x12, 0x2a, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x21, 0x0a, 0x0d, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, - 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x69, 0x64, 0x73, 0x22, - 0xb7, 0x01, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x55, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x65, - 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x1a, 0x4e, 0x0a, 0x0c, 0x52, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x28, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x15, 0x0a, 0x13, 0x43, 0x61, 0x70, - 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x22, 0xdf, 0x02, 0x0a, 0x14, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x69, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x74, 0x70, - 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x6e, - 0x74, 0x70, 0x53, 0x79, 0x6e, 0x63, 0x65, 0x64, 0x12, 0x53, 0x0a, 0x09, 0x67, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x71, - 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, - 0x65, 0x73, 0x52, 0x09, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x53, 0x0a, - 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x35, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6c, - 0x69, 0x6e, 0x6b, 0x5f, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, - 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x09, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x12, 0x4e, 0x0a, 0x24, 0x6d, 0x61, 0x78, 0x5f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, - 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x5f, 0x70, 0x65, 0x72, - 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x20, 0x6d, 0x61, 0x78, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x63, 0x61, 0x6c, 0x52, - 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x50, 0x65, 0x72, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, - 0x63, 0x65, 0x22, 0xe4, 0x02, 0x0a, 0x1b, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x47, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, - 0x65, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x6d, 0x61, 0x78, 0x5f, 0x62, 0x70, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x06, 0x6d, 0x61, 0x78, 0x42, 0x70, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x6d, - 0x61, 0x78, 0x5f, 0x70, 0x70, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6d, 0x61, - 0x78, 0x50, 0x70, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x6d, 0x69, 0x6e, 0x5f, 0x6d, 0x74, 0x75, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x6d, 0x69, 0x6e, 0x4d, 0x74, 0x75, 0x12, 0x17, 0x0a, - 0x07, 0x6d, 0x61, 0x78, 0x5f, 0x6d, 0x74, 0x75, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, - 0x6d, 0x61, 0x78, 0x4d, 0x74, 0x75, 0x12, 0x47, 0x0a, 0x12, 0x6d, 0x69, 0x6e, 0x5f, 0x73, 0x65, - 0x74, 0x75, 0x70, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x6d, - 0x69, 0x6e, 0x53, 0x65, 0x74, 0x75, 0x70, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x4d, 0x0a, 0x15, 0x6d, 0x69, 0x6e, 0x5f, 0x74, 0x65, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x6e, 0x5f, - 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x6d, 0x69, 0x6e, 0x54, 0x65, - 0x61, 0x72, 0x64, 0x6f, 0x77, 0x6e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x49, - 0x0a, 0x13, 0x6d, 0x69, 0x6e, 0x5f, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x5f, 0x69, 0x6e, 0x74, - 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x6d, 0x69, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, - 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x22, 0xf8, 0x03, 0x0a, 0x1a, 0x50, 0x61, - 0x63, 0x6b, 0x65, 0x74, 0x49, 0x6e, 0x6a, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x61, 0x70, 0x61, - 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x6d, 0x69, 0x6e, 0x5f, - 0x6d, 0x74, 0x75, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x6d, 0x69, 0x6e, 0x4d, 0x74, - 0x75, 0x12, 0x17, 0x0a, 0x07, 0x6d, 0x61, 0x78, 0x5f, 0x6d, 0x74, 0x75, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x06, 0x6d, 0x61, 0x78, 0x4d, 0x74, 0x75, 0x12, 0x30, 0x0a, 0x14, 0x6d, 0x69, - 0x6e, 0x5f, 0x69, 0x6e, 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x65, - 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x12, 0x6d, 0x69, 0x6e, 0x49, 0x6e, 0x6a, - 0x65, 0x63, 0x74, 0x65, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x12, 0x30, 0x0a, 0x14, - 0x6d, 0x61, 0x78, 0x5f, 0x69, 0x6e, 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x70, 0x61, 0x63, - 0x6b, 0x65, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x12, 0x6d, 0x61, 0x78, 0x49, - 0x6e, 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x12, 0x47, - 0x0a, 0x12, 0x6d, 0x69, 0x6e, 0x5f, 0x73, 0x65, 0x74, 0x75, 0x70, 0x5f, 0x64, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x6d, 0x69, 0x6e, 0x53, 0x65, 0x74, 0x75, 0x70, 0x44, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4d, 0x0a, 0x15, 0x6d, 0x69, 0x6e, 0x5f, 0x74, - 0x65, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x6e, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x13, 0x6d, 0x69, 0x6e, 0x54, 0x65, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x6e, 0x44, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x49, 0x0a, 0x13, 0x6d, 0x69, 0x6e, 0x5f, 0x73, 0x61, - 0x6d, 0x70, 0x6c, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, - 0x6d, 0x69, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, - 0x6c, 0x12, 0x61, 0x0a, 0x0e, 0x6c, 0x6f, 0x6f, 0x70, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x6d, 0x6f, - 0x64, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x3a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x71, 0x75, 0x61, - 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65, - 0x74, 0x49, 0x6e, 0x6a, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x62, 0x61, 0x63, - 0x6b, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0d, 0x6c, 0x6f, 0x6f, 0x70, 0x62, 0x61, 0x63, 0x6b, 0x4d, - 0x6f, 0x64, 0x65, 0x73, 0x22, 0xe4, 0x01, 0x0a, 0x15, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x6f, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x66, - 0x0a, 0x10, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x71, 0x75, 0x61, 0x6c, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, - 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, - 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x0f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x47, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x63, 0x0a, 0x0f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, - 0x5f, 0x69, 0x6e, 0x6a, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x3a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6c, 0x69, - 0x6e, 0x6b, 0x5f, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x49, 0x6e, 0x6a, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, - 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x0e, 0x70, 0x61, 0x63, - 0x6b, 0x65, 0x74, 0x49, 0x6e, 0x6a, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22, 0xb1, 0x01, 0x0a, 0x17, - 0x50, 0x6d, 0x64, 0x4c, 0x6f, 0x6f, 0x70, 0x62, 0x61, 0x63, 0x6b, 0x43, 0x61, 0x70, 0x61, 0x62, - 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x12, 0x6d, 0x69, 0x6e, 0x5f, 0x73, - 0x65, 0x74, 0x75, 0x70, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, - 0x6d, 0x69, 0x6e, 0x53, 0x65, 0x74, 0x75, 0x70, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x4d, 0x0a, 0x15, 0x6d, 0x69, 0x6e, 0x5f, 0x74, 0x65, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x6e, - 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x6d, 0x69, 0x6e, 0x54, - 0x65, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x6e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, - 0xfc, 0x01, 0x0a, 0x18, 0x41, 0x73, 0x69, 0x63, 0x4c, 0x6f, 0x6f, 0x70, 0x62, 0x61, 0x63, 0x6b, - 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x12, - 0x6d, 0x69, 0x6e, 0x5f, 0x73, 0x65, 0x74, 0x75, 0x70, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x6d, 0x69, 0x6e, 0x53, 0x65, 0x74, 0x75, 0x70, 0x44, 0x75, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4d, 0x0a, 0x15, 0x6d, 0x69, 0x6e, 0x5f, 0x74, 0x65, 0x61, - 0x72, 0x64, 0x6f, 0x77, 0x6e, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x13, 0x6d, 0x69, 0x6e, 0x54, 0x65, 0x61, 0x72, 0x64, 0x6f, 0x77, 0x6e, 0x44, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x48, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x03, - 0x20, 0x03, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x61, 0x63, 0x6b, - 0x65, 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x4d, 0x61, 0x74, 0x63, - 0x68, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x22, 0xd2, - 0x01, 0x0a, 0x15, 0x52, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x61, 0x70, 0x61, - 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x5a, 0x0a, 0x0c, 0x70, 0x6d, 0x64, 0x5f, - 0x6c, 0x6f, 0x6f, 0x70, 0x62, 0x61, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6c, 0x69, 0x6e, - 0x6b, 0x5f, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x50, 0x6d, 0x64, 0x4c, 0x6f, 0x6f, 0x70, 0x62, 0x61, 0x63, 0x6b, 0x43, 0x61, 0x70, 0x61, 0x62, - 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x0b, 0x70, 0x6d, 0x64, 0x4c, 0x6f, 0x6f, 0x70, - 0x62, 0x61, 0x63, 0x6b, 0x12, 0x5d, 0x0a, 0x0d, 0x61, 0x73, 0x69, 0x63, 0x5f, 0x6c, 0x6f, 0x6f, - 0x70, 0x62, 0x61, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x71, - 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x73, 0x69, - 0x63, 0x4c, 0x6f, 0x6f, 0x70, 0x62, 0x61, 0x63, 0x6b, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, - 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x0c, 0x61, 0x73, 0x69, 0x63, 0x4c, 0x6f, 0x6f, 0x70, 0x62, - 0x61, 0x63, 0x6b, 0x22, 0x0d, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x22, 0x54, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x44, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x65, - 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, - 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0x8d, 0x01, 0x0a, 0x0a, 0x4c, 0x69, 0x73, - 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x48, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x61, - 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, - 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, - 0x66, 0x61, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x2a, 0xfb, 0x01, 0x0a, 0x12, 0x51, 0x75, 0x61, - 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, - 0x23, 0x0a, 0x1f, 0x51, 0x55, 0x41, 0x4c, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, - 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, - 0x45, 0x44, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x51, 0x55, 0x41, 0x4c, 0x49, 0x46, 0x49, 0x43, - 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x45, 0x52, 0x52, 0x4f, - 0x52, 0x10, 0x01, 0x12, 0x1c, 0x0a, 0x18, 0x51, 0x55, 0x41, 0x4c, 0x49, 0x46, 0x49, 0x43, 0x41, - 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x49, 0x44, 0x4c, 0x45, 0x10, - 0x02, 0x12, 0x1d, 0x0a, 0x19, 0x51, 0x55, 0x41, 0x4c, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, - 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x45, 0x54, 0x55, 0x50, 0x10, 0x03, - 0x12, 0x1f, 0x0a, 0x1b, 0x51, 0x55, 0x41, 0x4c, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, - 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, - 0x04, 0x12, 0x20, 0x0a, 0x1c, 0x51, 0x55, 0x41, 0x4c, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, - 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x54, 0x45, 0x41, 0x52, 0x44, 0x4f, 0x57, - 0x4e, 0x10, 0x05, 0x12, 0x21, 0x0a, 0x1d, 0x51, 0x55, 0x41, 0x4c, 0x49, 0x46, 0x49, 0x43, 0x41, - 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, - 0x45, 0x54, 0x45, 0x44, 0x10, 0x06, 0x2a, 0x9a, 0x01, 0x0a, 0x1a, 0x50, 0x61, 0x63, 0x6b, 0x65, - 0x74, 0x49, 0x6e, 0x6a, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x4c, 0x6f, 0x6f, 0x70, 0x62, 0x61, 0x63, - 0x6b, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x2d, 0x0a, 0x29, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, - 0x49, 0x4e, 0x4a, 0x45, 0x43, 0x54, 0x4f, 0x52, 0x5f, 0x4c, 0x4f, 0x4f, 0x50, 0x42, 0x41, 0x43, - 0x4b, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, - 0x45, 0x44, 0x10, 0x00, 0x12, 0x25, 0x0a, 0x21, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x49, - 0x4e, 0x4a, 0x45, 0x43, 0x54, 0x4f, 0x52, 0x5f, 0x4c, 0x4f, 0x4f, 0x50, 0x42, 0x41, 0x43, 0x4b, - 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x50, 0x4d, 0x44, 0x10, 0x01, 0x12, 0x26, 0x0a, 0x22, 0x50, - 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x49, 0x4e, 0x4a, 0x45, 0x43, 0x54, 0x4f, 0x52, 0x5f, 0x4c, - 0x4f, 0x4f, 0x50, 0x42, 0x41, 0x43, 0x4b, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x41, 0x53, 0x49, - 0x43, 0x10, 0x02, 0x2a, 0x87, 0x01, 0x0a, 0x10, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x4d, 0x61, - 0x74, 0x63, 0x68, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x22, 0x0a, 0x1e, 0x48, 0x45, 0x41, 0x44, - 0x45, 0x52, 0x5f, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x5f, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x55, - 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, - 0x48, 0x45, 0x41, 0x44, 0x45, 0x52, 0x5f, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x5f, 0x46, 0x49, 0x45, - 0x4c, 0x44, 0x5f, 0x4c, 0x32, 0x10, 0x01, 0x12, 0x19, 0x0a, 0x15, 0x48, 0x45, 0x41, 0x44, 0x45, - 0x52, 0x5f, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x5f, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x4c, 0x33, - 0x10, 0x02, 0x12, 0x19, 0x0a, 0x15, 0x48, 0x45, 0x41, 0x44, 0x45, 0x52, 0x5f, 0x4d, 0x41, 0x54, - 0x43, 0x48, 0x5f, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x4c, 0x34, 0x10, 0x03, 0x32, 0xa3, 0x04, - 0x0a, 0x11, 0x4c, 0x69, 0x6e, 0x6b, 0x51, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x67, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x2d, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, - 0x5f, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, - 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x03, - 0x47, 0x65, 0x74, 0x12, 0x2a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x65, - 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6c, 0x69, - 0x6e, 0x6b, 0x5f, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x79, 0x0a, 0x0c, - 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x33, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, - 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x61, - 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x34, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, - 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x67, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x12, 0x2d, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, - 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x2e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6c, - 0x69, 0x6e, 0x6b, 0x5f, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x61, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x71, 0x75, 0x61, 0x6c, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x61, 0x63, - 0x6b, 0x65, 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x42, 0x47, 0xd2, 0x3e, 0x05, 0x31, 0x2e, 0x31, 0x2e, 0x30, 0x5a, 0x3d, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, - 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x3b, 0x6c, 0x69, 0x6e, 0x6b, 0x71, 0x75, 0x61, 0x6c, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_packet_link_qualification_packet_link_qualification_proto_rawDescOnce sync.Once - file_packet_link_qualification_packet_link_qualification_proto_rawDescData = file_packet_link_qualification_packet_link_qualification_proto_rawDesc -) - -func file_packet_link_qualification_packet_link_qualification_proto_rawDescGZIP() []byte { - file_packet_link_qualification_packet_link_qualification_proto_rawDescOnce.Do(func() { - file_packet_link_qualification_packet_link_qualification_proto_rawDescData = protoimpl.X.CompressGZIP(file_packet_link_qualification_packet_link_qualification_proto_rawDescData) - }) - return file_packet_link_qualification_packet_link_qualification_proto_rawDescData -} - -var file_packet_link_qualification_packet_link_qualification_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_packet_link_qualification_packet_link_qualification_proto_msgTypes = make([]protoimpl.MessageInfo, 28) -var file_packet_link_qualification_packet_link_qualification_proto_goTypes = []interface{}{ - (QualificationState)(0), // 0: gnoi.packet_link_qualification.QualificationState - (PacketInjectorLoopbackMode)(0), // 1: gnoi.packet_link_qualification.PacketInjectorLoopbackMode - (HeaderMatchField)(0), // 2: gnoi.packet_link_qualification.HeaderMatchField - (*CreateRequest)(nil), // 3: gnoi.packet_link_qualification.CreateRequest - (*CreateResponse)(nil), // 4: gnoi.packet_link_qualification.CreateResponse - (*NTPSyncedTiming)(nil), // 5: gnoi.packet_link_qualification.NTPSyncedTiming - (*RPCSyncedTiming)(nil), // 6: gnoi.packet_link_qualification.RPCSyncedTiming - (*QualificationConfiguration)(nil), // 7: gnoi.packet_link_qualification.QualificationConfiguration - (*PacketGeneratorConfiguration)(nil), // 8: gnoi.packet_link_qualification.PacketGeneratorConfiguration - (*PacketInjectorConfiguration)(nil), // 9: gnoi.packet_link_qualification.PacketInjectorConfiguration - (*PmdLoopbackConfiguration)(nil), // 10: gnoi.packet_link_qualification.PmdLoopbackConfiguration - (*AsicLoopbackConfiguration)(nil), // 11: gnoi.packet_link_qualification.AsicLoopbackConfiguration - (*GetRequest)(nil), // 12: gnoi.packet_link_qualification.GetRequest - (*GetResponse)(nil), // 13: gnoi.packet_link_qualification.GetResponse - (*QualificationResult)(nil), // 14: gnoi.packet_link_qualification.QualificationResult - (*DeleteRequest)(nil), // 15: gnoi.packet_link_qualification.DeleteRequest - (*DeleteResponse)(nil), // 16: gnoi.packet_link_qualification.DeleteResponse - (*CapabilitiesRequest)(nil), // 17: gnoi.packet_link_qualification.CapabilitiesRequest - (*CapabilitiesResponse)(nil), // 18: gnoi.packet_link_qualification.CapabilitiesResponse - (*PacketGeneratorCapabilities)(nil), // 19: gnoi.packet_link_qualification.PacketGeneratorCapabilities - (*PacketInjectorCapabilities)(nil), // 20: gnoi.packet_link_qualification.PacketInjectorCapabilities - (*GeneratorCapabilities)(nil), // 21: gnoi.packet_link_qualification.GeneratorCapabilities - (*PmdLoopbackCapabilities)(nil), // 22: gnoi.packet_link_qualification.PmdLoopbackCapabilities - (*AsicLoopbackCapabilities)(nil), // 23: gnoi.packet_link_qualification.AsicLoopbackCapabilities - (*ReflectorCapabilities)(nil), // 24: gnoi.packet_link_qualification.ReflectorCapabilities - (*ListRequest)(nil), // 25: gnoi.packet_link_qualification.ListRequest - (*ListResponse)(nil), // 26: gnoi.packet_link_qualification.ListResponse - (*ListResult)(nil), // 27: gnoi.packet_link_qualification.ListResult - nil, // 28: gnoi.packet_link_qualification.CreateResponse.StatusEntry - nil, // 29: gnoi.packet_link_qualification.GetResponse.ResultsEntry - nil, // 30: gnoi.packet_link_qualification.DeleteResponse.ResultsEntry - (*timestamppb.Timestamp)(nil), // 31: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 32: google.protobuf.Duration - (*status.Status)(nil), // 33: google.rpc.Status -} -var file_packet_link_qualification_packet_link_qualification_proto_depIdxs = []int32{ - 7, // 0: gnoi.packet_link_qualification.CreateRequest.interfaces:type_name -> gnoi.packet_link_qualification.QualificationConfiguration - 28, // 1: gnoi.packet_link_qualification.CreateResponse.status:type_name -> gnoi.packet_link_qualification.CreateResponse.StatusEntry - 31, // 2: gnoi.packet_link_qualification.NTPSyncedTiming.start_time:type_name -> google.protobuf.Timestamp - 31, // 3: gnoi.packet_link_qualification.NTPSyncedTiming.end_time:type_name -> google.protobuf.Timestamp - 31, // 4: gnoi.packet_link_qualification.NTPSyncedTiming.teardown_time:type_name -> google.protobuf.Timestamp - 32, // 5: gnoi.packet_link_qualification.RPCSyncedTiming.pre_sync_duration:type_name -> google.protobuf.Duration - 32, // 6: gnoi.packet_link_qualification.RPCSyncedTiming.setup_duration:type_name -> google.protobuf.Duration - 32, // 7: gnoi.packet_link_qualification.RPCSyncedTiming.duration:type_name -> google.protobuf.Duration - 32, // 8: gnoi.packet_link_qualification.RPCSyncedTiming.post_sync_duration:type_name -> google.protobuf.Duration - 32, // 9: gnoi.packet_link_qualification.RPCSyncedTiming.teardown_duration:type_name -> google.protobuf.Duration - 5, // 10: gnoi.packet_link_qualification.QualificationConfiguration.ntp:type_name -> gnoi.packet_link_qualification.NTPSyncedTiming - 6, // 11: gnoi.packet_link_qualification.QualificationConfiguration.rpc:type_name -> gnoi.packet_link_qualification.RPCSyncedTiming - 8, // 12: gnoi.packet_link_qualification.QualificationConfiguration.packet_generator:type_name -> gnoi.packet_link_qualification.PacketGeneratorConfiguration - 9, // 13: gnoi.packet_link_qualification.QualificationConfiguration.packet_injector:type_name -> gnoi.packet_link_qualification.PacketInjectorConfiguration - 10, // 14: gnoi.packet_link_qualification.QualificationConfiguration.pmd_loopback:type_name -> gnoi.packet_link_qualification.PmdLoopbackConfiguration - 11, // 15: gnoi.packet_link_qualification.QualificationConfiguration.asic_loopback:type_name -> gnoi.packet_link_qualification.AsicLoopbackConfiguration - 10, // 16: gnoi.packet_link_qualification.PacketInjectorConfiguration.pmd_loopback:type_name -> gnoi.packet_link_qualification.PmdLoopbackConfiguration - 11, // 17: gnoi.packet_link_qualification.PacketInjectorConfiguration.asic_loopback:type_name -> gnoi.packet_link_qualification.AsicLoopbackConfiguration - 29, // 18: gnoi.packet_link_qualification.GetResponse.results:type_name -> gnoi.packet_link_qualification.GetResponse.ResultsEntry - 0, // 19: gnoi.packet_link_qualification.QualificationResult.state:type_name -> gnoi.packet_link_qualification.QualificationState - 31, // 20: gnoi.packet_link_qualification.QualificationResult.start_time:type_name -> google.protobuf.Timestamp - 31, // 21: gnoi.packet_link_qualification.QualificationResult.end_time:type_name -> google.protobuf.Timestamp - 33, // 22: gnoi.packet_link_qualification.QualificationResult.status:type_name -> google.rpc.Status - 30, // 23: gnoi.packet_link_qualification.DeleteResponse.results:type_name -> gnoi.packet_link_qualification.DeleteResponse.ResultsEntry - 31, // 24: gnoi.packet_link_qualification.CapabilitiesResponse.time:type_name -> google.protobuf.Timestamp - 21, // 25: gnoi.packet_link_qualification.CapabilitiesResponse.generator:type_name -> gnoi.packet_link_qualification.GeneratorCapabilities - 24, // 26: gnoi.packet_link_qualification.CapabilitiesResponse.reflector:type_name -> gnoi.packet_link_qualification.ReflectorCapabilities - 32, // 27: gnoi.packet_link_qualification.PacketGeneratorCapabilities.min_setup_duration:type_name -> google.protobuf.Duration - 32, // 28: gnoi.packet_link_qualification.PacketGeneratorCapabilities.min_teardown_duration:type_name -> google.protobuf.Duration - 32, // 29: gnoi.packet_link_qualification.PacketGeneratorCapabilities.min_sample_interval:type_name -> google.protobuf.Duration - 32, // 30: gnoi.packet_link_qualification.PacketInjectorCapabilities.min_setup_duration:type_name -> google.protobuf.Duration - 32, // 31: gnoi.packet_link_qualification.PacketInjectorCapabilities.min_teardown_duration:type_name -> google.protobuf.Duration - 32, // 32: gnoi.packet_link_qualification.PacketInjectorCapabilities.min_sample_interval:type_name -> google.protobuf.Duration - 1, // 33: gnoi.packet_link_qualification.PacketInjectorCapabilities.loopback_modes:type_name -> gnoi.packet_link_qualification.PacketInjectorLoopbackMode - 19, // 34: gnoi.packet_link_qualification.GeneratorCapabilities.packet_generator:type_name -> gnoi.packet_link_qualification.PacketGeneratorCapabilities - 20, // 35: gnoi.packet_link_qualification.GeneratorCapabilities.packet_injector:type_name -> gnoi.packet_link_qualification.PacketInjectorCapabilities - 32, // 36: gnoi.packet_link_qualification.PmdLoopbackCapabilities.min_setup_duration:type_name -> google.protobuf.Duration - 32, // 37: gnoi.packet_link_qualification.PmdLoopbackCapabilities.min_teardown_duration:type_name -> google.protobuf.Duration - 32, // 38: gnoi.packet_link_qualification.AsicLoopbackCapabilities.min_setup_duration:type_name -> google.protobuf.Duration - 32, // 39: gnoi.packet_link_qualification.AsicLoopbackCapabilities.min_teardown_duration:type_name -> google.protobuf.Duration - 2, // 40: gnoi.packet_link_qualification.AsicLoopbackCapabilities.fields:type_name -> gnoi.packet_link_qualification.HeaderMatchField - 22, // 41: gnoi.packet_link_qualification.ReflectorCapabilities.pmd_loopback:type_name -> gnoi.packet_link_qualification.PmdLoopbackCapabilities - 23, // 42: gnoi.packet_link_qualification.ReflectorCapabilities.asic_loopback:type_name -> gnoi.packet_link_qualification.AsicLoopbackCapabilities - 27, // 43: gnoi.packet_link_qualification.ListResponse.results:type_name -> gnoi.packet_link_qualification.ListResult - 0, // 44: gnoi.packet_link_qualification.ListResult.state:type_name -> gnoi.packet_link_qualification.QualificationState - 33, // 45: gnoi.packet_link_qualification.CreateResponse.StatusEntry.value:type_name -> google.rpc.Status - 14, // 46: gnoi.packet_link_qualification.GetResponse.ResultsEntry.value:type_name -> gnoi.packet_link_qualification.QualificationResult - 33, // 47: gnoi.packet_link_qualification.DeleteResponse.ResultsEntry.value:type_name -> google.rpc.Status - 3, // 48: gnoi.packet_link_qualification.LinkQualification.Create:input_type -> gnoi.packet_link_qualification.CreateRequest - 12, // 49: gnoi.packet_link_qualification.LinkQualification.Get:input_type -> gnoi.packet_link_qualification.GetRequest - 17, // 50: gnoi.packet_link_qualification.LinkQualification.Capabilities:input_type -> gnoi.packet_link_qualification.CapabilitiesRequest - 15, // 51: gnoi.packet_link_qualification.LinkQualification.Delete:input_type -> gnoi.packet_link_qualification.DeleteRequest - 25, // 52: gnoi.packet_link_qualification.LinkQualification.List:input_type -> gnoi.packet_link_qualification.ListRequest - 4, // 53: gnoi.packet_link_qualification.LinkQualification.Create:output_type -> gnoi.packet_link_qualification.CreateResponse - 13, // 54: gnoi.packet_link_qualification.LinkQualification.Get:output_type -> gnoi.packet_link_qualification.GetResponse - 18, // 55: gnoi.packet_link_qualification.LinkQualification.Capabilities:output_type -> gnoi.packet_link_qualification.CapabilitiesResponse - 16, // 56: gnoi.packet_link_qualification.LinkQualification.Delete:output_type -> gnoi.packet_link_qualification.DeleteResponse - 26, // 57: gnoi.packet_link_qualification.LinkQualification.List:output_type -> gnoi.packet_link_qualification.ListResponse - 53, // [53:58] is the sub-list for method output_type - 48, // [48:53] is the sub-list for method input_type - 48, // [48:48] is the sub-list for extension type_name - 48, // [48:48] is the sub-list for extension extendee - 0, // [0:48] is the sub-list for field type_name -} - -func init() { file_packet_link_qualification_packet_link_qualification_proto_init() } -func file_packet_link_qualification_packet_link_qualification_proto_init() { - if File_packet_link_qualification_packet_link_qualification_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_packet_link_qualification_packet_link_qualification_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_link_qualification_packet_link_qualification_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_link_qualification_packet_link_qualification_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NTPSyncedTiming); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_link_qualification_packet_link_qualification_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RPCSyncedTiming); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_link_qualification_packet_link_qualification_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QualificationConfiguration); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_link_qualification_packet_link_qualification_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PacketGeneratorConfiguration); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_link_qualification_packet_link_qualification_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PacketInjectorConfiguration); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_link_qualification_packet_link_qualification_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PmdLoopbackConfiguration); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_link_qualification_packet_link_qualification_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AsicLoopbackConfiguration); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_link_qualification_packet_link_qualification_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_link_qualification_packet_link_qualification_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_link_qualification_packet_link_qualification_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QualificationResult); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_link_qualification_packet_link_qualification_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_link_qualification_packet_link_qualification_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_link_qualification_packet_link_qualification_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CapabilitiesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_link_qualification_packet_link_qualification_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CapabilitiesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_link_qualification_packet_link_qualification_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PacketGeneratorCapabilities); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_link_qualification_packet_link_qualification_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PacketInjectorCapabilities); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_link_qualification_packet_link_qualification_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GeneratorCapabilities); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_link_qualification_packet_link_qualification_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PmdLoopbackCapabilities); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_link_qualification_packet_link_qualification_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AsicLoopbackCapabilities); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_link_qualification_packet_link_qualification_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReflectorCapabilities); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_link_qualification_packet_link_qualification_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_link_qualification_packet_link_qualification_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_packet_link_qualification_packet_link_qualification_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListResult); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_packet_link_qualification_packet_link_qualification_proto_msgTypes[4].OneofWrappers = []interface{}{ - (*QualificationConfiguration_Ntp)(nil), - (*QualificationConfiguration_Rpc)(nil), - (*QualificationConfiguration_PacketGenerator)(nil), - (*QualificationConfiguration_PacketInjector)(nil), - (*QualificationConfiguration_PmdLoopback)(nil), - (*QualificationConfiguration_AsicLoopback)(nil), - } - file_packet_link_qualification_packet_link_qualification_proto_msgTypes[6].OneofWrappers = []interface{}{ - (*PacketInjectorConfiguration_PmdLoopback)(nil), - (*PacketInjectorConfiguration_AsicLoopback)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_packet_link_qualification_packet_link_qualification_proto_rawDesc, - NumEnums: 3, - NumMessages: 28, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_packet_link_qualification_packet_link_qualification_proto_goTypes, - DependencyIndexes: file_packet_link_qualification_packet_link_qualification_proto_depIdxs, - EnumInfos: file_packet_link_qualification_packet_link_qualification_proto_enumTypes, - MessageInfos: file_packet_link_qualification_packet_link_qualification_proto_msgTypes, - }.Build() - File_packet_link_qualification_packet_link_qualification_proto = out.File - file_packet_link_qualification_packet_link_qualification_proto_rawDesc = nil - file_packet_link_qualification_packet_link_qualification_proto_goTypes = nil - file_packet_link_qualification_packet_link_qualification_proto_depIdxs = nil -} diff --git a/src/sonic-framework/gnoi/packet_link_qualification/packet_link_qualification.proto b/src/sonic-framework/gnoi/packet_link_qualification/packet_link_qualification.proto deleted file mode 100644 index 89ccd686786b..000000000000 --- a/src/sonic-framework/gnoi/packet_link_qualification/packet_link_qualification.proto +++ /dev/null @@ -1,382 +0,0 @@ -// A generic network operational interface gRPC service to perform packet based -// link qualification operations on a network device. -syntax = "proto3"; - -package gnoi.packet_link_qualification; - -import "github.com/openconfig/gnoi/types/types.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/timestamp.proto"; -import "google/rpc/status.proto"; - -option go_package = - "github.com/openconfig/gnoi/packet_link_qualification;linkqual"; - -option (types.gnoi_version) = "1.1.0"; - -service LinkQualification { - // Create will dispatch a create operation for each interface and return. - // The rpc will only return an error in the case that gNOI service cannot - // handle the RPC request. Create will return an error on failure to - // create the qualification. - rpc Create(CreateRequest) returns (CreateResponse); - - // Get will return the status for the provided qualification ids. - rpc Get(GetRequest) returns (GetResponse); - - // Capabilities will return the capabilities of the gnoi.LinkQualification - // service implementation. This RPC is used to allow the caller to - // orchestrate the peer requirements of the service to complete a link - // qualification between two devices. - rpc Capabilities(CapabilitiesRequest) returns (CapabilitiesResponse); - - // Delete will remove the qualification results for the provided ids. - // If the qualification is not in QUALIFICATION_STATE_COMPLETED - // or QUALIFICATION_STATE_ERROR, the qualification will be canceled then - // deleted as requested. - // If the qualification cannot be stopped or deleted a status will be returned - // with the error. - // If the id is not found NOT_FOUND will be returned. - rpc Delete(DeleteRequest) returns (DeleteResponse); - - // List qualifications currently on the target. - rpc List(ListRequest) returns (ListResponse); -} - -// CreateRequest contains the list of interfaces to be Qualified. -// Each interface must only appear once and all IDs to be used -// by qualification must be unique on the device. -message CreateRequest { - repeated QualificationConfiguration interfaces = 1; -} - -// CreateResponse will return a map of the status of each CreateRequest. -// The map key is the qualification id requested in the CreateRequest. -// Valid Status responses are: -// OK: create has been accepted. -// NOT_FOUND: interface_name could not be found on the service. -// INVALID_ARGUMENT: if any of the configuration is not supported. -// ALREADY_EXISTS: if the qualification id is already in use. -message CreateResponse { - map status = 2; -} - -message NTPSyncedTiming { - // The timestamp for the start of the qualification. Based on the - // provided configuration the qualification setup must - // at least start at (start_time - min_setup_time). - google.protobuf.Timestamp start_time = 1; - // The timestamp for the end of qualification. - google.protobuf.Timestamp end_time = 2; - // Timestamp to begin teardown. If unset teardown will start - // immediately after end_time. - // This value allows for a peer to wait for before tearing down - // the port under test. - // teardown_time must occur after end_time. - google.protobuf.Timestamp teardown_time = 3; -} - -// RPCSyncedTiming will be all synchronization by assuming the start rpc's are -// sent very close temporally with enough overlap in duration to get valid -// results. -// The pre_qual_wait will allow the caller to adjust any setup timing -// differences between peers. The post_qual_wait will allow for the caller to -// adjust any teardown differences in timing between peers. -// pre_qual_wait cannot be less than selected endpoint type's min_setup_time. -// post_qual_wait cannot be less than the selected endpoint type's -// min_teardown_time. -message RPCSyncedTiming { - // pre_sync_duration is the time the service should wait before starting - // setup. - // For generators this would be the time the remote side needs to put itself - // into loopback before generating packets. - // For loopbacks this value would be expected to be zero or unset. - google.protobuf.Duration pre_sync_duration = 1; - - // The requested setup time for the endpoint. setup_duration must be >= - // min_setup_duration in the service capabilities. If the service - // completes setup before setup_duration it must wait setup_duration - // before moving to qualification. - google.protobuf.Duration setup_duration = 2; - - // duration is the length of the qualification. - google.protobuf.Duration duration = 3; - - // post_sync_duration is the amount time a side should wait before starting - // its teardown. - // For generators this value would be expected to be zero or unset. - // For loopbacks this would be the duration it takes for the generator - // to stop sending packets before starting a teardown. - google.protobuf.Duration post_sync_duration = 4; - - // This requested teardown duration for the endpoint. teardown_duration - // must be >= min_teardown_duration in the service capabilities. If the - // service completes before the teardown_duration it must wait teardown - // duration before completing. - google.protobuf.Duration teardown_duration = 5; -} - -message QualificationConfiguration { - // Id to be used for this interface qualification run. - string id = 1; - - // interface name on the device must be unique to the device. - string interface_name = 2; - - // timing allows for specifying either NTP or by using the Create RPC as - // the synchronization method for the qualification. - oneof timing { - NTPSyncedTiming ntp = 101; - RPCSyncedTiming rpc = 102; - } - - // endpoint_type is how this side of the link will be configured for the - // qualification. - oneof endpoint_type { - PacketGeneratorConfiguration packet_generator = 111; - PacketInjectorConfiguration packet_injector = 112; - PmdLoopbackConfiguration pmd_loopback = 113; - AsicLoopbackConfiguration asic_loopback = 114; - } -} - -// A packet generator implementation defines that the generator of the side of -// the link will be responsible for generating a stream of packets at the -// provided rate and size. -message PacketGeneratorConfiguration { - // Packet per second rate to use for this test. - uint64 packet_rate = 1; - - // Size of packets to inject. - // if unspecified, the default value is 1500 bytes. - uint32 packet_size = 2; -} - -// A packet injector implementation defines that the generator side of the link -// will be responsible for both setting the interface into a loopback as well -// as injecting individual packets up to packet_count into the closed loop at -// the packet_size. These packets will form a closed loop as both sides of the -// loop will forward the same set of packets for the duration of the -// qualification. -message PacketInjectorConfiguration { - // Number of packets to inject into the closed loop. - uint32 packet_count = 1; - - // Size of packets to inject. - // if unspecified, the default value is 1500 bytes. - uint32 packet_size = 2; - - // Loopback mode for this qualification. - oneof loopback_mode { - // PMD based loopback encompasses either PHY based port - // loopbacks or port based ASIC loopbacks which do - // use forwarding engine processing. - // Their use may limit the stats available for the - // qualification. - PmdLoopbackConfiguration pmd_loopback = 101; - // ASIC based loops are done inside the forwarding - // engine and must have stats available to the - // qualification. - AsicLoopbackConfiguration asic_loopback = 102; - } -} - -message PmdLoopbackConfiguration { - -} - -message AsicLoopbackConfiguration { - // This is where any l2/l3/l4 match criteria would be described. -} -// GetRequest returns the status for the provided ids. -message GetRequest { - repeated string ids = 1; -} - -// GetResponse returns a map containing the values for all requested -// Qualification results. If the QualificationResult state is -// QUALIFICATION_STATE_ERROR the caller should inspect the status field for -// the exact error code and message. -// Expected errors codes: -// NOT_FOUND when the requested id was not found by the service. -// INVALID_ARGUMENT for any configuration parameter which is unsupported. -message GetResponse { - map results = 1; -} - -// States of qualification. -enum QualificationState { - QUALIFICATION_STATE_UNSPECIFIED = 0; - QUALIFICATION_STATE_ERROR = 1; // The qualification has errored. - QUALIFICATION_STATE_IDLE = 2; // Initial state for the qualification. - QUALIFICATION_STATE_SETUP = 3; // Interface is being configured. - QUALIFICATION_STATE_RUNNING = 4; // Qualification underway. - QUALIFICATION_STATE_TEARDOWN = 5; // Interface is being reset. - QUALIFICATION_STATE_COMPLETED = 6; // Qualification is complete. -} - -message QualificationResult { - // ID of the qualification. - string id = 1; - - // Interface name of the qualification. - string interface_name = 2; - - // The state the test was in when the results were snapshotted. - QualificationState state = 3; - - // The number of qualification packets sent. - uint64 packets_sent = 4; - - // The number of qualification packets received. - uint64 packets_received = 5; - - // The number of packets transmitted that experienced corruption. - uint64 packets_error = 6; - - // The number of packets dropped by the device due to internal drop, - // lookup or forwarding errors. - uint64 packets_dropped = 7; - - // The qualification start time. Also when the first snapshot of - // results are taken. - google.protobuf.Timestamp start_time = 8; - - // The qualification end time or the current snapshot time since epoch. - google.protobuf.Timestamp end_time = 9; - - // Expected rate for the qualification. This is the computed or - // observed rate that the service expected to be maintained - // throughout the qualification duration. - uint64 expected_rate_bytes_per_second = 10; - - // The qualification rate observed during the qualification. - // It is updated every min_sample_interval in bytes per second. - uint64 qualification_rate_bytes_per_second = 11; - - // Status response for the Qualification result. Will only be set if the - // state is QUALIFICATION_STATE_ERROR. - google.rpc.Status status = 12; -} - -// DeleteRequest will delete the qualification results for the provided id. -message DeleteRequest { - repeated string ids = 1; -} - -// Delete response will contain a list of all id's in the request to be deleted. -// If the id was not found NOT_FOUND will be returned. -message DeleteResponse { - map results = 1; -} - -message CapabilitiesRequest { - -} - -message CapabilitiesResponse { - // Current timestamp on the service. - google.protobuf.Timestamp time = 1; - // Indicates that the device's time is currently synchronised via NTP. - bool ntp_synced = 2; - - // Capabilities that the generator and reflect support on the - // service. If the top level field is unset the service cannot act - // as any defined generator or reflector. - GeneratorCapabilities generator = 3; - ReflectorCapabilities reflector = 4; - - // Maximum number of results allowed to be stored per interface. - // The minimum supported just be 2 or greater. - uint64 max_historical_results_per_interface = 5; -} - -message PacketGeneratorCapabilities { - uint64 max_bps = 1; // bits per second - uint64 max_pps = 2; // packets per second - uint32 min_mtu = 3; // minimum MTU supported. - uint32 max_mtu = 4; // max MTU supported. - // The minimum duration required to set up a packet generator-based - // qualification. - google.protobuf.Duration min_setup_duration = 5; - // The minimum time required to return the affected interface to the - // pre-test state. - google.protobuf.Duration min_teardown_duration = 6; - // The minimum interval between samples for statistics relating to the - // qualification. - google.protobuf.Duration min_sample_interval = 7; -} - -enum PacketInjectorLoopbackMode { - PACKET_INJECTOR_LOOPBACK_MODE_UNSPECIFIED = 0; - PACKET_INJECTOR_LOOPBACK_MODE_PMD = 1; - PACKET_INJECTOR_LOOPBACK_MODE_ASIC = 2; -} - -message PacketInjectorCapabilities { - // The definitions of fields 1-7 are the same as those described in the - // PacketGeneratorCapabilities message. - uint32 min_mtu = 1; - uint32 max_mtu = 2; - uint32 min_injected_packets = 3; - uint32 max_injected_packets = 4; - google.protobuf.Duration min_setup_duration = 5; - google.protobuf.Duration min_teardown_duration = 6; - google.protobuf.Duration min_sample_interval = 7; - // Loopback modes that are supported by the device when using the packet - // injector mode. - repeated PacketInjectorLoopbackMode loopback_modes = 8; -} - -// If the service does not support any of the defined -// modes then the message should be unset. -message GeneratorCapabilities { - PacketGeneratorCapabilities packet_generator = 1; - PacketInjectorCapabilities packet_injector = 2; -} - -// PMD or port based loopbacks are expect to have limited ability -// to report packet counters. Packet rate/errors/transmitted/received -// may not be available on the remote side for these types of loopbacks. -message PmdLoopbackCapabilities { - google.protobuf.Duration min_setup_duration = 1; - google.protobuf.Duration min_teardown_duration = 2; -} - -enum HeaderMatchField { - HEADER_MATCH_FIELD_UNSPECIFIED = 0; - HEADER_MATCH_FIELD_L2 = 1; - HEADER_MATCH_FIELD_L3 = 2; - HEADER_MATCH_FIELD_L4 = 3; -} - -message AsicLoopbackCapabilities { - // The minimum time required to set up the ASIC loopback mode. - google.protobuf.Duration min_setup_duration = 1; - // The minimum time required to return the interfaces to their pre-test state - // following a qualification. - google.protobuf.Duration min_teardown_duration = 2; - repeated HeaderMatchField fields = 3; -} - -// If the service does not support any of the defined -// modes then the message should be unset. -message ReflectorCapabilities { - PmdLoopbackCapabilities pmd_loopback = 1; - AsicLoopbackCapabilities asic_loopback = 2; -} - -message ListRequest { - -} - -message ListResponse { - // The results that have not yet been deleted from the device. - repeated ListResult results = 1; -} - -message ListResult { - string id = 1; - QualificationState state = 2; - string interface_name = 3; -} diff --git a/src/sonic-framework/gnoi/packet_link_qualification/packet_link_qualification_grpc.pb.go b/src/sonic-framework/gnoi/packet_link_qualification/packet_link_qualification_grpc.pb.go deleted file mode 100755 index 64ac5aca22b3..000000000000 --- a/src/sonic-framework/gnoi/packet_link_qualification/packet_link_qualification_grpc.pb.go +++ /dev/null @@ -1,249 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.21.10 -// source: packet_link_qualification/packet_link_qualification.proto - -package linkqual - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// LinkQualificationClient is the client API for LinkQualification service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type LinkQualificationClient interface { - Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) - Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) - Capabilities(ctx context.Context, in *CapabilitiesRequest, opts ...grpc.CallOption) (*CapabilitiesResponse, error) - Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) - List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) -} - -type linkQualificationClient struct { - cc grpc.ClientConnInterface -} - -func NewLinkQualificationClient(cc grpc.ClientConnInterface) LinkQualificationClient { - return &linkQualificationClient{cc} -} - -func (c *linkQualificationClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) { - out := new(CreateResponse) - err := c.cc.Invoke(ctx, "/gnoi.packet_link_qualification.LinkQualification/Create", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *linkQualificationClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) { - out := new(GetResponse) - err := c.cc.Invoke(ctx, "/gnoi.packet_link_qualification.LinkQualification/Get", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *linkQualificationClient) Capabilities(ctx context.Context, in *CapabilitiesRequest, opts ...grpc.CallOption) (*CapabilitiesResponse, error) { - out := new(CapabilitiesResponse) - err := c.cc.Invoke(ctx, "/gnoi.packet_link_qualification.LinkQualification/Capabilities", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *linkQualificationClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) { - out := new(DeleteResponse) - err := c.cc.Invoke(ctx, "/gnoi.packet_link_qualification.LinkQualification/Delete", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *linkQualificationClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) { - out := new(ListResponse) - err := c.cc.Invoke(ctx, "/gnoi.packet_link_qualification.LinkQualification/List", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// LinkQualificationServer is the server API for LinkQualification service. -// All implementations must embed UnimplementedLinkQualificationServer -// for forward compatibility -type LinkQualificationServer interface { - Create(context.Context, *CreateRequest) (*CreateResponse, error) - Get(context.Context, *GetRequest) (*GetResponse, error) - Capabilities(context.Context, *CapabilitiesRequest) (*CapabilitiesResponse, error) - Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) - List(context.Context, *ListRequest) (*ListResponse, error) - mustEmbedUnimplementedLinkQualificationServer() -} - -// UnimplementedLinkQualificationServer must be embedded to have forward compatible implementations. -type UnimplementedLinkQualificationServer struct { -} - -func (UnimplementedLinkQualificationServer) Create(context.Context, *CreateRequest) (*CreateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") -} -func (UnimplementedLinkQualificationServer) Get(context.Context, *GetRequest) (*GetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") -} -func (UnimplementedLinkQualificationServer) Capabilities(context.Context, *CapabilitiesRequest) (*CapabilitiesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Capabilities not implemented") -} -func (UnimplementedLinkQualificationServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") -} -func (UnimplementedLinkQualificationServer) List(context.Context, *ListRequest) (*ListResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method List not implemented") -} -func (UnimplementedLinkQualificationServer) mustEmbedUnimplementedLinkQualificationServer() {} - -// UnsafeLinkQualificationServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to LinkQualificationServer will -// result in compilation errors. -type UnsafeLinkQualificationServer interface { - mustEmbedUnimplementedLinkQualificationServer() -} - -func RegisterLinkQualificationServer(s grpc.ServiceRegistrar, srv LinkQualificationServer) { - s.RegisterService(&LinkQualification_ServiceDesc, srv) -} - -func _LinkQualification_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(LinkQualificationServer).Create(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.packet_link_qualification.LinkQualification/Create", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(LinkQualificationServer).Create(ctx, req.(*CreateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _LinkQualification_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(LinkQualificationServer).Get(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.packet_link_qualification.LinkQualification/Get", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(LinkQualificationServer).Get(ctx, req.(*GetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _LinkQualification_Capabilities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CapabilitiesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(LinkQualificationServer).Capabilities(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.packet_link_qualification.LinkQualification/Capabilities", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(LinkQualificationServer).Capabilities(ctx, req.(*CapabilitiesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _LinkQualification_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(LinkQualificationServer).Delete(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.packet_link_qualification.LinkQualification/Delete", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(LinkQualificationServer).Delete(ctx, req.(*DeleteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _LinkQualification_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(LinkQualificationServer).List(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.packet_link_qualification.LinkQualification/List", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(LinkQualificationServer).List(ctx, req.(*ListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// LinkQualification_ServiceDesc is the grpc.ServiceDesc for LinkQualification service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var LinkQualification_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.packet_link_qualification.LinkQualification", - HandlerType: (*LinkQualificationServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Create", - Handler: _LinkQualification_Create_Handler, - }, - { - MethodName: "Get", - Handler: _LinkQualification_Get_Handler, - }, - { - MethodName: "Capabilities", - Handler: _LinkQualification_Capabilities_Handler, - }, - { - MethodName: "Delete", - Handler: _LinkQualification_Delete_Handler, - }, - { - MethodName: "List", - Handler: _LinkQualification_List_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "packet_link_qualification/packet_link_qualification.proto", -} diff --git a/src/sonic-framework/gnoi/regenerate-files.sh b/src/sonic-framework/gnoi/regenerate-files.sh deleted file mode 100755 index a23fc1ded2bf..000000000000 --- a/src/sonic-framework/gnoi/regenerate-files.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/bash -set -euo pipefail - -BASE=$(bazel info bazel-genfiles) -GNOI_NS='github.com/openconfig/gnoi' - -copy_generated() { - pkg="$1" - # Default to using package name for proto if $2 is unset - proto="$1" && [ "${2++}" ] && proto="$2" - # Bazel go_rules will create empty files containing "// +build ignore\n\npackage ignore" - # in the case where the protoc compiler doesn't generate any output. See: - # https://github.com/bazelbuild/rules_go/blob/03a8b8e90eebe699d7/go/tools/builders/protoc.go#L190 - for file in "${BASE}"/"${pkg}"/"${proto}"_go_proto_/"${GNOI_NS}"/"${pkg}"/*.pb.go; do - [[ $(head -n 1 "${file}") == "// +build ignore" ]] || cp "${file}" "${pkg}"/ - done -} - -bazel build //bgp:all -copy_generated "bgp" -bazel build //bootconfig:all -copy_generated "bootconfig" -bazel build //cert:all -copy_generated "cert" -bazel build //common:all -copy_generated "common" -bazel build //containerz:all -copy_generated "containerz" -bazel build //debug:all -copy_generated "debug" -bazel build //diag:all -copy_generated "diag" -bazel build //factory_reset:all -copy_generated "factory_reset" -bazel build //file:all -copy_generated "file" -bazel build //healthz:all -copy_generated "healthz" -bazel build //layer2:all -copy_generated "layer2" -bazel build //mpls:all -copy_generated "mpls" -bazel build //os:all -copy_generated "os" -bazel build //otdr:all -copy_generated "otdr" -bazel build //packet_capture:all -copy_generated "packet_capture" "pcap" -bazel build //packet_link_qualification:all -copy_generated "packet_link_qualification" "linkqual" -bazel build //system:all -copy_generated "system" -bazel build //types:all -copy_generated "types" -bazel build //wavelength_router:all -copy_generated "wavelength_router" diff --git a/src/sonic-framework/gnoi/system/BUILD.bazel b/src/sonic-framework/gnoi/system/BUILD.bazel deleted file mode 100644 index 647da9a9013f..000000000000 --- a/src/sonic-framework/gnoi/system/BUILD.bazel +++ /dev/null @@ -1,67 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") -load("//:common.bzl", "use_new_compilers") - -#Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# 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. - -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -use_new_compilers() - -proto_library( - name = "system_proto", - srcs = ["system.proto"], - deps = [ - "//common:common_proto", - "//types:types_proto", - ], -) - -cc_proto_library( - name = "system_cc_proto", - deps = [":system_proto"], -) - -cc_grpc_library( - name = "system_cc_grpc_proto", - srcs = [":system_proto"], - grpc_only = True, - deps = [":system_cc_proto"], -) - -go_proto_library( - name = "system_go_proto", - compilers = [ - "go_protoc_gen_go", - "go_protoc_gen_go_grpc", - ], - importpath = "github.com/openconfig/gnoi/system", - proto = ":system_proto", - deps = [ - "//common", - "//types", - ], -) - -go_library( - name = "system", - embed = [":system_go_proto"], - importpath = "github.com/openconfig/gnoi/system", -) diff --git a/src/sonic-framework/gnoi/system/system.pb.go b/src/sonic-framework/gnoi/system/system.pb.go deleted file mode 100644 index c10ec8cfcc6f..000000000000 --- a/src/sonic-framework/gnoi/system/system.pb.go +++ /dev/null @@ -1,2493 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v3.21.10 -// source: system/system.proto - -package system - -import ( - common "github.com/openconfig/gnoi/common" - types "github.com/openconfig/gnoi/types" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type RebootMethod int32 - -const ( - RebootMethod_UNKNOWN RebootMethod = 0 - RebootMethod_COLD RebootMethod = 1 - RebootMethod_POWERDOWN RebootMethod = 2 - RebootMethod_HALT RebootMethod = 3 - RebootMethod_WARM RebootMethod = 4 - RebootMethod_NSF RebootMethod = 5 - RebootMethod_POWERUP RebootMethod = 7 -) - -// Enum value maps for RebootMethod. -var ( - RebootMethod_name = map[int32]string{ - 0: "UNKNOWN", - 1: "COLD", - 2: "POWERDOWN", - 3: "HALT", - 4: "WARM", - 5: "NSF", - 7: "POWERUP", - } - RebootMethod_value = map[string]int32{ - "UNKNOWN": 0, - "COLD": 1, - "POWERDOWN": 2, - "HALT": 3, - "WARM": 4, - "NSF": 5, - "POWERUP": 7, - } -) - -func (x RebootMethod) Enum() *RebootMethod { - p := new(RebootMethod) - *p = x - return p -} - -func (x RebootMethod) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (RebootMethod) Descriptor() protoreflect.EnumDescriptor { - return file_system_system_proto_enumTypes[0].Descriptor() -} - -func (RebootMethod) Type() protoreflect.EnumType { - return &file_system_system_proto_enumTypes[0] -} - -func (x RebootMethod) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use RebootMethod.Descriptor instead. -func (RebootMethod) EnumDescriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{0} -} - -type RebootStatus_Status int32 - -const ( - RebootStatus_STATUS_UNKNOWN RebootStatus_Status = 0 - RebootStatus_STATUS_SUCCESS RebootStatus_Status = 1 - RebootStatus_STATUS_RETRIABLE_FAILURE RebootStatus_Status = 2 - RebootStatus_STATUS_FAILURE RebootStatus_Status = 3 -) - -// Enum value maps for RebootStatus_Status. -var ( - RebootStatus_Status_name = map[int32]string{ - 0: "STATUS_UNKNOWN", - 1: "STATUS_SUCCESS", - 2: "STATUS_RETRIABLE_FAILURE", - 3: "STATUS_FAILURE", - } - RebootStatus_Status_value = map[string]int32{ - "STATUS_UNKNOWN": 0, - "STATUS_SUCCESS": 1, - "STATUS_RETRIABLE_FAILURE": 2, - "STATUS_FAILURE": 3, - } -) - -func (x RebootStatus_Status) Enum() *RebootStatus_Status { - p := new(RebootStatus_Status) - *p = x - return p -} - -func (x RebootStatus_Status) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (RebootStatus_Status) Descriptor() protoreflect.EnumDescriptor { - return file_system_system_proto_enumTypes[1].Descriptor() -} - -func (RebootStatus_Status) Type() protoreflect.EnumType { - return &file_system_system_proto_enumTypes[1] -} - -func (x RebootStatus_Status) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use RebootStatus_Status.Descriptor instead. -func (RebootStatus_Status) EnumDescriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{8, 0} -} - -type TracerouteRequest_L4Protocol int32 - -const ( - TracerouteRequest_ICMP TracerouteRequest_L4Protocol = 0 - TracerouteRequest_TCP TracerouteRequest_L4Protocol = 1 - TracerouteRequest_UDP TracerouteRequest_L4Protocol = 2 -) - -// Enum value maps for TracerouteRequest_L4Protocol. -var ( - TracerouteRequest_L4Protocol_name = map[int32]string{ - 0: "ICMP", - 1: "TCP", - 2: "UDP", - } - TracerouteRequest_L4Protocol_value = map[string]int32{ - "ICMP": 0, - "TCP": 1, - "UDP": 2, - } -) - -func (x TracerouteRequest_L4Protocol) Enum() *TracerouteRequest_L4Protocol { - p := new(TracerouteRequest_L4Protocol) - *p = x - return p -} - -func (x TracerouteRequest_L4Protocol) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (TracerouteRequest_L4Protocol) Descriptor() protoreflect.EnumDescriptor { - return file_system_system_proto_enumTypes[2].Descriptor() -} - -func (TracerouteRequest_L4Protocol) Type() protoreflect.EnumType { - return &file_system_system_proto_enumTypes[2] -} - -func (x TracerouteRequest_L4Protocol) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use TracerouteRequest_L4Protocol.Descriptor instead. -func (TracerouteRequest_L4Protocol) EnumDescriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{13, 0} -} - -type TracerouteResponse_State int32 - -const ( - TracerouteResponse_DEFAULT TracerouteResponse_State = 0 - TracerouteResponse_NONE TracerouteResponse_State = 1 - TracerouteResponse_UNKNOWN TracerouteResponse_State = 2 - TracerouteResponse_ICMP TracerouteResponse_State = 3 - TracerouteResponse_HOST_UNREACHABLE TracerouteResponse_State = 4 - TracerouteResponse_NETWORK_UNREACHABLE TracerouteResponse_State = 5 - TracerouteResponse_PROTOCOL_UNREACHABLE TracerouteResponse_State = 6 - TracerouteResponse_SOURCE_ROUTE_FAILED TracerouteResponse_State = 7 - TracerouteResponse_FRAGMENTATION_NEEDED TracerouteResponse_State = 8 - TracerouteResponse_PROHIBITED TracerouteResponse_State = 9 - TracerouteResponse_PRECEDENCE_VIOLATION TracerouteResponse_State = 10 - TracerouteResponse_PRECEDENCE_CUTOFF TracerouteResponse_State = 11 -) - -// Enum value maps for TracerouteResponse_State. -var ( - TracerouteResponse_State_name = map[int32]string{ - 0: "DEFAULT", - 1: "NONE", - 2: "UNKNOWN", - 3: "ICMP", - 4: "HOST_UNREACHABLE", - 5: "NETWORK_UNREACHABLE", - 6: "PROTOCOL_UNREACHABLE", - 7: "SOURCE_ROUTE_FAILED", - 8: "FRAGMENTATION_NEEDED", - 9: "PROHIBITED", - 10: "PRECEDENCE_VIOLATION", - 11: "PRECEDENCE_CUTOFF", - } - TracerouteResponse_State_value = map[string]int32{ - "DEFAULT": 0, - "NONE": 1, - "UNKNOWN": 2, - "ICMP": 3, - "HOST_UNREACHABLE": 4, - "NETWORK_UNREACHABLE": 5, - "PROTOCOL_UNREACHABLE": 6, - "SOURCE_ROUTE_FAILED": 7, - "FRAGMENTATION_NEEDED": 8, - "PROHIBITED": 9, - "PRECEDENCE_VIOLATION": 10, - "PRECEDENCE_CUTOFF": 11, - } -) - -func (x TracerouteResponse_State) Enum() *TracerouteResponse_State { - p := new(TracerouteResponse_State) - *p = x - return p -} - -func (x TracerouteResponse_State) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (TracerouteResponse_State) Descriptor() protoreflect.EnumDescriptor { - return file_system_system_proto_enumTypes[3].Descriptor() -} - -func (TracerouteResponse_State) Type() protoreflect.EnumType { - return &file_system_system_proto_enumTypes[3] -} - -func (x TracerouteResponse_State) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use TracerouteResponse_State.Descriptor instead. -func (TracerouteResponse_State) EnumDescriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{14, 0} -} - -type KillProcessRequest_Signal int32 - -const ( - KillProcessRequest_SIGNAL_UNSPECIFIED KillProcessRequest_Signal = 0 - KillProcessRequest_SIGNAL_TERM KillProcessRequest_Signal = 1 - KillProcessRequest_SIGNAL_KILL KillProcessRequest_Signal = 2 - KillProcessRequest_SIGNAL_HUP KillProcessRequest_Signal = 3 - KillProcessRequest_SIGNAL_ABRT KillProcessRequest_Signal = 4 -) - -// Enum value maps for KillProcessRequest_Signal. -var ( - KillProcessRequest_Signal_name = map[int32]string{ - 0: "SIGNAL_UNSPECIFIED", - 1: "SIGNAL_TERM", - 2: "SIGNAL_KILL", - 3: "SIGNAL_HUP", - 4: "SIGNAL_ABRT", - } - KillProcessRequest_Signal_value = map[string]int32{ - "SIGNAL_UNSPECIFIED": 0, - "SIGNAL_TERM": 1, - "SIGNAL_KILL": 2, - "SIGNAL_HUP": 3, - "SIGNAL_ABRT": 4, - } -) - -func (x KillProcessRequest_Signal) Enum() *KillProcessRequest_Signal { - p := new(KillProcessRequest_Signal) - *p = x - return p -} - -func (x KillProcessRequest_Signal) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (KillProcessRequest_Signal) Descriptor() protoreflect.EnumDescriptor { - return file_system_system_proto_enumTypes[4].Descriptor() -} - -func (KillProcessRequest_Signal) Type() protoreflect.EnumType { - return &file_system_system_proto_enumTypes[4] -} - -func (x KillProcessRequest_Signal) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use KillProcessRequest_Signal.Descriptor instead. -func (KillProcessRequest_Signal) EnumDescriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{18, 0} -} - -type SwitchControlProcessorRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ControlProcessor *types.Path `protobuf:"bytes,1,opt,name=control_processor,json=controlProcessor,proto3" json:"control_processor,omitempty"` -} - -func (x *SwitchControlProcessorRequest) Reset() { - *x = SwitchControlProcessorRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SwitchControlProcessorRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SwitchControlProcessorRequest) ProtoMessage() {} - -func (x *SwitchControlProcessorRequest) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SwitchControlProcessorRequest.ProtoReflect.Descriptor instead. -func (*SwitchControlProcessorRequest) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{0} -} - -func (x *SwitchControlProcessorRequest) GetControlProcessor() *types.Path { - if x != nil { - return x.ControlProcessor - } - return nil -} - -type SwitchControlProcessorResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ControlProcessor *types.Path `protobuf:"bytes,1,opt,name=control_processor,json=controlProcessor,proto3" json:"control_processor,omitempty"` - Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` - Uptime int64 `protobuf:"varint,3,opt,name=uptime,proto3" json:"uptime,omitempty"` -} - -func (x *SwitchControlProcessorResponse) Reset() { - *x = SwitchControlProcessorResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SwitchControlProcessorResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SwitchControlProcessorResponse) ProtoMessage() {} - -func (x *SwitchControlProcessorResponse) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SwitchControlProcessorResponse.ProtoReflect.Descriptor instead. -func (*SwitchControlProcessorResponse) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{1} -} - -func (x *SwitchControlProcessorResponse) GetControlProcessor() *types.Path { - if x != nil { - return x.ControlProcessor - } - return nil -} - -func (x *SwitchControlProcessorResponse) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -func (x *SwitchControlProcessorResponse) GetUptime() int64 { - if x != nil { - return x.Uptime - } - return 0 -} - -type RebootRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Method RebootMethod `protobuf:"varint,1,opt,name=method,proto3,enum=gnoi.system.RebootMethod" json:"method,omitempty"` - Delay uint64 `protobuf:"varint,2,opt,name=delay,proto3" json:"delay,omitempty"` - Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` - Subcomponents []*types.Path `protobuf:"bytes,4,rep,name=subcomponents,proto3" json:"subcomponents,omitempty"` - Force bool `protobuf:"varint,5,opt,name=force,proto3" json:"force,omitempty"` -} - -func (x *RebootRequest) Reset() { - *x = RebootRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RebootRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RebootRequest) ProtoMessage() {} - -func (x *RebootRequest) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RebootRequest.ProtoReflect.Descriptor instead. -func (*RebootRequest) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{2} -} - -func (x *RebootRequest) GetMethod() RebootMethod { - if x != nil { - return x.Method - } - return RebootMethod_UNKNOWN -} - -func (x *RebootRequest) GetDelay() uint64 { - if x != nil { - return x.Delay - } - return 0 -} - -func (x *RebootRequest) GetMessage() string { - if x != nil { - return x.Message - } - return "" -} - -func (x *RebootRequest) GetSubcomponents() []*types.Path { - if x != nil { - return x.Subcomponents - } - return nil -} - -func (x *RebootRequest) GetForce() bool { - if x != nil { - return x.Force - } - return false -} - -type RebootResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *RebootResponse) Reset() { - *x = RebootResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RebootResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RebootResponse) ProtoMessage() {} - -func (x *RebootResponse) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RebootResponse.ProtoReflect.Descriptor instead. -func (*RebootResponse) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{3} -} - -type CancelRebootRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` - Subcomponents []*types.Path `protobuf:"bytes,2,rep,name=subcomponents,proto3" json:"subcomponents,omitempty"` -} - -func (x *CancelRebootRequest) Reset() { - *x = CancelRebootRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CancelRebootRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CancelRebootRequest) ProtoMessage() {} - -func (x *CancelRebootRequest) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CancelRebootRequest.ProtoReflect.Descriptor instead. -func (*CancelRebootRequest) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{4} -} - -func (x *CancelRebootRequest) GetMessage() string { - if x != nil { - return x.Message - } - return "" -} - -func (x *CancelRebootRequest) GetSubcomponents() []*types.Path { - if x != nil { - return x.Subcomponents - } - return nil -} - -type CancelRebootResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *CancelRebootResponse) Reset() { - *x = CancelRebootResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CancelRebootResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CancelRebootResponse) ProtoMessage() {} - -func (x *CancelRebootResponse) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CancelRebootResponse.ProtoReflect.Descriptor instead. -func (*CancelRebootResponse) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{5} -} - -type RebootStatusRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Subcomponents []*types.Path `protobuf:"bytes,1,rep,name=subcomponents,proto3" json:"subcomponents,omitempty"` -} - -func (x *RebootStatusRequest) Reset() { - *x = RebootStatusRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RebootStatusRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RebootStatusRequest) ProtoMessage() {} - -func (x *RebootStatusRequest) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RebootStatusRequest.ProtoReflect.Descriptor instead. -func (*RebootStatusRequest) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{6} -} - -func (x *RebootStatusRequest) GetSubcomponents() []*types.Path { - if x != nil { - return x.Subcomponents - } - return nil -} - -type RebootStatusResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"` - Wait uint64 `protobuf:"varint,2,opt,name=wait,proto3" json:"wait,omitempty"` - When uint64 `protobuf:"varint,3,opt,name=when,proto3" json:"when,omitempty"` - Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` - Count uint32 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"` - Method RebootMethod `protobuf:"varint,6,opt,name=method,proto3,enum=gnoi.system.RebootMethod" json:"method,omitempty"` - Status *RebootStatus `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"` -} - -func (x *RebootStatusResponse) Reset() { - *x = RebootStatusResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RebootStatusResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RebootStatusResponse) ProtoMessage() {} - -func (x *RebootStatusResponse) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RebootStatusResponse.ProtoReflect.Descriptor instead. -func (*RebootStatusResponse) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{7} -} - -func (x *RebootStatusResponse) GetActive() bool { - if x != nil { - return x.Active - } - return false -} - -func (x *RebootStatusResponse) GetWait() uint64 { - if x != nil { - return x.Wait - } - return 0 -} - -func (x *RebootStatusResponse) GetWhen() uint64 { - if x != nil { - return x.When - } - return 0 -} - -func (x *RebootStatusResponse) GetReason() string { - if x != nil { - return x.Reason - } - return "" -} - -func (x *RebootStatusResponse) GetCount() uint32 { - if x != nil { - return x.Count - } - return 0 -} - -func (x *RebootStatusResponse) GetMethod() RebootMethod { - if x != nil { - return x.Method - } - return RebootMethod_UNKNOWN -} - -func (x *RebootStatusResponse) GetStatus() *RebootStatus { - if x != nil { - return x.Status - } - return nil -} - -type RebootStatus struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status RebootStatus_Status `protobuf:"varint,1,opt,name=status,proto3,enum=gnoi.system.RebootStatus_Status" json:"status,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` -} - -func (x *RebootStatus) Reset() { - *x = RebootStatus{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RebootStatus) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RebootStatus) ProtoMessage() {} - -func (x *RebootStatus) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RebootStatus.ProtoReflect.Descriptor instead. -func (*RebootStatus) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{8} -} - -func (x *RebootStatus) GetStatus() RebootStatus_Status { - if x != nil { - return x.Status - } - return RebootStatus_STATUS_UNKNOWN -} - -func (x *RebootStatus) GetMessage() string { - if x != nil { - return x.Message - } - return "" -} - -type TimeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *TimeRequest) Reset() { - *x = TimeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TimeRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TimeRequest) ProtoMessage() {} - -func (x *TimeRequest) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TimeRequest.ProtoReflect.Descriptor instead. -func (*TimeRequest) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{9} -} - -type TimeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Time uint64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"` -} - -func (x *TimeResponse) Reset() { - *x = TimeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TimeResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TimeResponse) ProtoMessage() {} - -func (x *TimeResponse) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TimeResponse.ProtoReflect.Descriptor instead. -func (*TimeResponse) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{10} -} - -func (x *TimeResponse) GetTime() uint64 { - if x != nil { - return x.Time - } - return 0 -} - -type PingRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Destination string `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` - Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` - Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` - Interval int64 `protobuf:"varint,4,opt,name=interval,proto3" json:"interval,omitempty"` - Wait int64 `protobuf:"varint,5,opt,name=wait,proto3" json:"wait,omitempty"` - Size int32 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"` - DoNotFragment bool `protobuf:"varint,7,opt,name=do_not_fragment,json=doNotFragment,proto3" json:"do_not_fragment,omitempty"` - DoNotResolve bool `protobuf:"varint,8,opt,name=do_not_resolve,json=doNotResolve,proto3" json:"do_not_resolve,omitempty"` - L3Protocol types.L3Protocol `protobuf:"varint,9,opt,name=l3protocol,proto3,enum=gnoi.types.L3Protocol" json:"l3protocol,omitempty"` - NetworkInstance string `protobuf:"bytes,10,opt,name=network_instance,json=networkInstance,proto3" json:"network_instance,omitempty"` -} - -func (x *PingRequest) Reset() { - *x = PingRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PingRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PingRequest) ProtoMessage() {} - -func (x *PingRequest) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PingRequest.ProtoReflect.Descriptor instead. -func (*PingRequest) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{11} -} - -func (x *PingRequest) GetDestination() string { - if x != nil { - return x.Destination - } - return "" -} - -func (x *PingRequest) GetSource() string { - if x != nil { - return x.Source - } - return "" -} - -func (x *PingRequest) GetCount() int32 { - if x != nil { - return x.Count - } - return 0 -} - -func (x *PingRequest) GetInterval() int64 { - if x != nil { - return x.Interval - } - return 0 -} - -func (x *PingRequest) GetWait() int64 { - if x != nil { - return x.Wait - } - return 0 -} - -func (x *PingRequest) GetSize() int32 { - if x != nil { - return x.Size - } - return 0 -} - -func (x *PingRequest) GetDoNotFragment() bool { - if x != nil { - return x.DoNotFragment - } - return false -} - -func (x *PingRequest) GetDoNotResolve() bool { - if x != nil { - return x.DoNotResolve - } - return false -} - -func (x *PingRequest) GetL3Protocol() types.L3Protocol { - if x != nil { - return x.L3Protocol - } - return types.L3Protocol(0) -} - -func (x *PingRequest) GetNetworkInstance() string { - if x != nil { - return x.NetworkInstance - } - return "" -} - -type PingResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` - Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` - Sent int32 `protobuf:"varint,3,opt,name=sent,proto3" json:"sent,omitempty"` - Received int32 `protobuf:"varint,4,opt,name=received,proto3" json:"received,omitempty"` - MinTime int64 `protobuf:"varint,5,opt,name=min_time,json=minTime,proto3" json:"min_time,omitempty"` - AvgTime int64 `protobuf:"varint,6,opt,name=avg_time,json=avgTime,proto3" json:"avg_time,omitempty"` - MaxTime int64 `protobuf:"varint,7,opt,name=max_time,json=maxTime,proto3" json:"max_time,omitempty"` - StdDev int64 `protobuf:"varint,8,opt,name=std_dev,json=stdDev,proto3" json:"std_dev,omitempty"` - Bytes int32 `protobuf:"varint,11,opt,name=bytes,proto3" json:"bytes,omitempty"` - Sequence int32 `protobuf:"varint,12,opt,name=sequence,proto3" json:"sequence,omitempty"` - Ttl int32 `protobuf:"varint,13,opt,name=ttl,proto3" json:"ttl,omitempty"` -} - -func (x *PingResponse) Reset() { - *x = PingResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PingResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PingResponse) ProtoMessage() {} - -func (x *PingResponse) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PingResponse.ProtoReflect.Descriptor instead. -func (*PingResponse) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{12} -} - -func (x *PingResponse) GetSource() string { - if x != nil { - return x.Source - } - return "" -} - -func (x *PingResponse) GetTime() int64 { - if x != nil { - return x.Time - } - return 0 -} - -func (x *PingResponse) GetSent() int32 { - if x != nil { - return x.Sent - } - return 0 -} - -func (x *PingResponse) GetReceived() int32 { - if x != nil { - return x.Received - } - return 0 -} - -func (x *PingResponse) GetMinTime() int64 { - if x != nil { - return x.MinTime - } - return 0 -} - -func (x *PingResponse) GetAvgTime() int64 { - if x != nil { - return x.AvgTime - } - return 0 -} - -func (x *PingResponse) GetMaxTime() int64 { - if x != nil { - return x.MaxTime - } - return 0 -} - -func (x *PingResponse) GetStdDev() int64 { - if x != nil { - return x.StdDev - } - return 0 -} - -func (x *PingResponse) GetBytes() int32 { - if x != nil { - return x.Bytes - } - return 0 -} - -func (x *PingResponse) GetSequence() int32 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *PingResponse) GetTtl() int32 { - if x != nil { - return x.Ttl - } - return 0 -} - -type TracerouteRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` - Destination string `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` - InitialTtl uint32 `protobuf:"varint,3,opt,name=initial_ttl,json=initialTtl,proto3" json:"initial_ttl,omitempty"` - MaxTtl int32 `protobuf:"varint,4,opt,name=max_ttl,json=maxTtl,proto3" json:"max_ttl,omitempty"` - Wait int64 `protobuf:"varint,5,opt,name=wait,proto3" json:"wait,omitempty"` - DoNotFragment bool `protobuf:"varint,6,opt,name=do_not_fragment,json=doNotFragment,proto3" json:"do_not_fragment,omitempty"` - DoNotResolve bool `protobuf:"varint,7,opt,name=do_not_resolve,json=doNotResolve,proto3" json:"do_not_resolve,omitempty"` - L3Protocol types.L3Protocol `protobuf:"varint,8,opt,name=l3protocol,proto3,enum=gnoi.types.L3Protocol" json:"l3protocol,omitempty"` - L4Protocol TracerouteRequest_L4Protocol `protobuf:"varint,9,opt,name=l4protocol,proto3,enum=gnoi.system.TracerouteRequest_L4Protocol" json:"l4protocol,omitempty"` - DoNotLookupAsn bool `protobuf:"varint,10,opt,name=do_not_lookup_asn,json=doNotLookupAsn,proto3" json:"do_not_lookup_asn,omitempty"` - NetworkInstance string `protobuf:"bytes,11,opt,name=network_instance,json=networkInstance,proto3" json:"network_instance,omitempty"` -} - -func (x *TracerouteRequest) Reset() { - *x = TracerouteRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TracerouteRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TracerouteRequest) ProtoMessage() {} - -func (x *TracerouteRequest) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TracerouteRequest.ProtoReflect.Descriptor instead. -func (*TracerouteRequest) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{13} -} - -func (x *TracerouteRequest) GetSource() string { - if x != nil { - return x.Source - } - return "" -} - -func (x *TracerouteRequest) GetDestination() string { - if x != nil { - return x.Destination - } - return "" -} - -func (x *TracerouteRequest) GetInitialTtl() uint32 { - if x != nil { - return x.InitialTtl - } - return 0 -} - -func (x *TracerouteRequest) GetMaxTtl() int32 { - if x != nil { - return x.MaxTtl - } - return 0 -} - -func (x *TracerouteRequest) GetWait() int64 { - if x != nil { - return x.Wait - } - return 0 -} - -func (x *TracerouteRequest) GetDoNotFragment() bool { - if x != nil { - return x.DoNotFragment - } - return false -} - -func (x *TracerouteRequest) GetDoNotResolve() bool { - if x != nil { - return x.DoNotResolve - } - return false -} - -func (x *TracerouteRequest) GetL3Protocol() types.L3Protocol { - if x != nil { - return x.L3Protocol - } - return types.L3Protocol(0) -} - -func (x *TracerouteRequest) GetL4Protocol() TracerouteRequest_L4Protocol { - if x != nil { - return x.L4Protocol - } - return TracerouteRequest_ICMP -} - -func (x *TracerouteRequest) GetDoNotLookupAsn() bool { - if x != nil { - return x.DoNotLookupAsn - } - return false -} - -func (x *TracerouteRequest) GetNetworkInstance() string { - if x != nil { - return x.NetworkInstance - } - return "" -} - -type TracerouteResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DestinationName string `protobuf:"bytes,1,opt,name=destination_name,json=destinationName,proto3" json:"destination_name,omitempty"` - DestinationAddress string `protobuf:"bytes,2,opt,name=destination_address,json=destinationAddress,proto3" json:"destination_address,omitempty"` - Hops int32 `protobuf:"varint,3,opt,name=hops,proto3" json:"hops,omitempty"` - PacketSize int32 `protobuf:"varint,4,opt,name=packet_size,json=packetSize,proto3" json:"packet_size,omitempty"` - Hop int32 `protobuf:"varint,5,opt,name=hop,proto3" json:"hop,omitempty"` - Address string `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"` - Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"` - Rtt int64 `protobuf:"varint,8,opt,name=rtt,proto3" json:"rtt,omitempty"` - State TracerouteResponse_State `protobuf:"varint,9,opt,name=state,proto3,enum=gnoi.system.TracerouteResponse_State" json:"state,omitempty"` - IcmpCode int32 `protobuf:"varint,10,opt,name=icmp_code,json=icmpCode,proto3" json:"icmp_code,omitempty"` - Mpls map[string]string `protobuf:"bytes,11,rep,name=mpls,proto3" json:"mpls,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - AsPath []int32 `protobuf:"varint,12,rep,packed,name=as_path,json=asPath,proto3" json:"as_path,omitempty"` - IcmpExtData []*TracerouteResponse_IcmpExtData `protobuf:"bytes,13,rep,name=icmp_ext_data,json=icmpExtData,proto3" json:"icmp_ext_data,omitempty"` -} - -func (x *TracerouteResponse) Reset() { - *x = TracerouteResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TracerouteResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TracerouteResponse) ProtoMessage() {} - -func (x *TracerouteResponse) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TracerouteResponse.ProtoReflect.Descriptor instead. -func (*TracerouteResponse) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{14} -} - -func (x *TracerouteResponse) GetDestinationName() string { - if x != nil { - return x.DestinationName - } - return "" -} - -func (x *TracerouteResponse) GetDestinationAddress() string { - if x != nil { - return x.DestinationAddress - } - return "" -} - -func (x *TracerouteResponse) GetHops() int32 { - if x != nil { - return x.Hops - } - return 0 -} - -func (x *TracerouteResponse) GetPacketSize() int32 { - if x != nil { - return x.PacketSize - } - return 0 -} - -func (x *TracerouteResponse) GetHop() int32 { - if x != nil { - return x.Hop - } - return 0 -} - -func (x *TracerouteResponse) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *TracerouteResponse) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *TracerouteResponse) GetRtt() int64 { - if x != nil { - return x.Rtt - } - return 0 -} - -func (x *TracerouteResponse) GetState() TracerouteResponse_State { - if x != nil { - return x.State - } - return TracerouteResponse_DEFAULT -} - -func (x *TracerouteResponse) GetIcmpCode() int32 { - if x != nil { - return x.IcmpCode - } - return 0 -} - -func (x *TracerouteResponse) GetMpls() map[string]string { - if x != nil { - return x.Mpls - } - return nil -} - -func (x *TracerouteResponse) GetAsPath() []int32 { - if x != nil { - return x.AsPath - } - return nil -} - -func (x *TracerouteResponse) GetIcmpExtData() []*TracerouteResponse_IcmpExtData { - if x != nil { - return x.IcmpExtData - } - return nil -} - -type Package struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` - Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` - Activate bool `protobuf:"varint,5,opt,name=activate,proto3" json:"activate,omitempty"` - RemoteDownload *common.RemoteDownload `protobuf:"bytes,6,opt,name=remote_download,json=remoteDownload,proto3" json:"remote_download,omitempty"` -} - -func (x *Package) Reset() { - *x = Package{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Package) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Package) ProtoMessage() {} - -func (x *Package) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Package.ProtoReflect.Descriptor instead. -func (*Package) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{15} -} - -func (x *Package) GetFilename() string { - if x != nil { - return x.Filename - } - return "" -} - -func (x *Package) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -func (x *Package) GetActivate() bool { - if x != nil { - return x.Activate - } - return false -} - -func (x *Package) GetRemoteDownload() *common.RemoteDownload { - if x != nil { - return x.RemoteDownload - } - return nil -} - -type SetPackageRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Request: - // - // *SetPackageRequest_Package - // *SetPackageRequest_Contents - // *SetPackageRequest_Hash - Request isSetPackageRequest_Request `protobuf_oneof:"request"` -} - -func (x *SetPackageRequest) Reset() { - *x = SetPackageRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SetPackageRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SetPackageRequest) ProtoMessage() {} - -func (x *SetPackageRequest) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SetPackageRequest.ProtoReflect.Descriptor instead. -func (*SetPackageRequest) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{16} -} - -func (m *SetPackageRequest) GetRequest() isSetPackageRequest_Request { - if m != nil { - return m.Request - } - return nil -} - -func (x *SetPackageRequest) GetPackage() *Package { - if x, ok := x.GetRequest().(*SetPackageRequest_Package); ok { - return x.Package - } - return nil -} - -func (x *SetPackageRequest) GetContents() []byte { - if x, ok := x.GetRequest().(*SetPackageRequest_Contents); ok { - return x.Contents - } - return nil -} - -func (x *SetPackageRequest) GetHash() *types.HashType { - if x, ok := x.GetRequest().(*SetPackageRequest_Hash); ok { - return x.Hash - } - return nil -} - -type isSetPackageRequest_Request interface { - isSetPackageRequest_Request() -} - -type SetPackageRequest_Package struct { - Package *Package `protobuf:"bytes,1,opt,name=package,proto3,oneof"` -} - -type SetPackageRequest_Contents struct { - Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3,oneof"` -} - -type SetPackageRequest_Hash struct { - Hash *types.HashType `protobuf:"bytes,3,opt,name=hash,proto3,oneof"` -} - -func (*SetPackageRequest_Package) isSetPackageRequest_Request() {} - -func (*SetPackageRequest_Contents) isSetPackageRequest_Request() {} - -func (*SetPackageRequest_Hash) isSetPackageRequest_Request() {} - -type SetPackageResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *SetPackageResponse) Reset() { - *x = SetPackageResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SetPackageResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SetPackageResponse) ProtoMessage() {} - -func (x *SetPackageResponse) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SetPackageResponse.ProtoReflect.Descriptor instead. -func (*SetPackageResponse) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{17} -} - -type KillProcessRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Pid uint32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Signal KillProcessRequest_Signal `protobuf:"varint,3,opt,name=signal,proto3,enum=gnoi.system.KillProcessRequest_Signal" json:"signal,omitempty"` - Restart bool `protobuf:"varint,4,opt,name=restart,proto3" json:"restart,omitempty"` -} - -func (x *KillProcessRequest) Reset() { - *x = KillProcessRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *KillProcessRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*KillProcessRequest) ProtoMessage() {} - -func (x *KillProcessRequest) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use KillProcessRequest.ProtoReflect.Descriptor instead. -func (*KillProcessRequest) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{18} -} - -func (x *KillProcessRequest) GetPid() uint32 { - if x != nil { - return x.Pid - } - return 0 -} - -func (x *KillProcessRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *KillProcessRequest) GetSignal() KillProcessRequest_Signal { - if x != nil { - return x.Signal - } - return KillProcessRequest_SIGNAL_UNSPECIFIED -} - -func (x *KillProcessRequest) GetRestart() bool { - if x != nil { - return x.Restart - } - return false -} - -type KillProcessResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *KillProcessResponse) Reset() { - *x = KillProcessResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *KillProcessResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*KillProcessResponse) ProtoMessage() {} - -func (x *KillProcessResponse) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use KillProcessResponse.ProtoReflect.Descriptor instead. -func (*KillProcessResponse) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{19} -} - -type TracerouteResponse_IcmpExtData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Class uint32 `protobuf:"varint,1,opt,name=class,proto3" json:"class,omitempty"` - Type uint32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"` - Data []uint32 `protobuf:"varint,3,rep,packed,name=data,proto3" json:"data,omitempty"` -} - -func (x *TracerouteResponse_IcmpExtData) Reset() { - *x = TracerouteResponse_IcmpExtData{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TracerouteResponse_IcmpExtData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TracerouteResponse_IcmpExtData) ProtoMessage() {} - -func (x *TracerouteResponse_IcmpExtData) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TracerouteResponse_IcmpExtData.ProtoReflect.Descriptor instead. -func (*TracerouteResponse_IcmpExtData) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{14, 0} -} - -func (x *TracerouteResponse_IcmpExtData) GetClass() uint32 { - if x != nil { - return x.Class - } - return 0 -} - -func (x *TracerouteResponse_IcmpExtData) GetType() uint32 { - if x != nil { - return x.Type - } - return 0 -} - -func (x *TracerouteResponse_IcmpExtData) GetData() []uint32 { - if x != nil { - return x.Data - } - return nil -} - -var File_system_system_proto protoreflect.FileDescriptor - -var file_system_system_proto_rawDesc = []byte{ - 0x0a, 0x13, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, - 0x65, 0x6d, 0x1a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, - 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x63, - 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, - 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0x5e, 0x0a, 0x1d, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, - 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x3d, 0x0a, 0x11, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x5f, 0x70, 0x72, 0x6f, - 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x10, - 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, - 0x22, 0x91, 0x01, 0x0a, 0x1e, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, - 0x6f, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x11, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x5f, 0x70, - 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, - 0x52, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, - 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, - 0x75, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x70, - 0x74, 0x69, 0x6d, 0x65, 0x22, 0xc0, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, - 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, - 0x64, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6c, - 0x61, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x12, - 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x36, 0x0a, 0x0d, 0x73, 0x75, 0x62, - 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, - 0x74, 0x68, 0x52, 0x0d, 0x73, 0x75, 0x62, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, - 0x73, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x22, 0x10, 0x0a, 0x0e, 0x52, 0x65, 0x62, 0x6f, 0x6f, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x67, 0x0a, 0x13, 0x43, 0x61, 0x6e, - 0x63, 0x65, 0x6c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x36, 0x0a, 0x0d, 0x73, 0x75, - 0x62, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, - 0x61, 0x74, 0x68, 0x52, 0x0d, 0x73, 0x75, 0x62, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, - 0x74, 0x73, 0x22, 0x16, 0x0a, 0x14, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x62, 0x6f, - 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4d, 0x0a, 0x13, 0x52, 0x65, - 0x62, 0x6f, 0x6f, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x36, 0x0a, 0x0d, 0x73, 0x75, 0x62, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, - 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x0d, 0x73, 0x75, 0x62, 0x63, - 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xea, 0x01, 0x0a, 0x14, 0x52, 0x65, - 0x62, 0x6f, 0x6f, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x77, 0x61, - 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x77, 0x61, 0x69, 0x74, 0x12, 0x12, - 0x0a, 0x04, 0x77, 0x68, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x77, 0x68, - 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x12, 0x31, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x52, - 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x06, 0x6d, 0x65, 0x74, - 0x68, 0x6f, 0x64, 0x12, 0x31, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, - 0x6d, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xc6, 0x01, 0x0a, 0x0c, 0x52, 0x65, 0x62, 0x6f, 0x6f, - 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x38, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, - 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x62, 0x0a, 0x06, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, - 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, - 0x54, 0x55, 0x53, 0x5f, 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x01, 0x12, 0x1c, 0x0a, - 0x18, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x52, 0x45, 0x54, 0x52, 0x49, 0x41, 0x42, 0x4c, - 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x53, - 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x03, 0x22, - 0x0d, 0x0a, 0x0b, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x22, - 0x0a, 0x0c, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, - 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x74, 0x69, - 0x6d, 0x65, 0x22, 0xd2, 0x02, 0x0a, 0x0b, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x12, - 0x0a, 0x04, 0x77, 0x61, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x77, 0x61, - 0x69, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x64, 0x6f, 0x5f, 0x6e, 0x6f, 0x74, - 0x5f, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x0d, 0x64, 0x6f, 0x4e, 0x6f, 0x74, 0x46, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x24, - 0x0a, 0x0e, 0x64, 0x6f, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, - 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x6f, 0x4e, 0x6f, 0x74, 0x52, 0x65, 0x73, - 0x6f, 0x6c, 0x76, 0x65, 0x12, 0x36, 0x0a, 0x0a, 0x6c, 0x33, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, - 0x6f, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4c, 0x33, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, - 0x52, 0x0a, 0x6c, 0x33, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x29, 0x0a, 0x10, - 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x98, 0x02, 0x0a, 0x0c, 0x50, 0x69, 0x6e, 0x67, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, - 0x74, 0x69, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x04, 0x73, 0x65, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x63, 0x65, - 0x69, 0x76, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x65, 0x63, 0x65, - 0x69, 0x76, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x69, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x69, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, - 0x19, 0x0a, 0x08, 0x61, 0x76, 0x67, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x07, 0x61, 0x76, 0x67, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x61, - 0x78, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x61, - 0x78, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x74, 0x64, 0x5f, 0x64, 0x65, 0x76, - 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x74, 0x64, 0x44, 0x65, 0x76, 0x12, 0x14, - 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x62, - 0x79, 0x74, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, - 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, - 0x12, 0x10, 0x0a, 0x03, 0x74, 0x74, 0x6c, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x74, - 0x74, 0x6c, 0x22, 0xec, 0x03, 0x0a, 0x11, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, 0x75, 0x74, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x74, 0x74, - 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, - 0x54, 0x74, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x6d, 0x61, 0x78, 0x5f, 0x74, 0x74, 0x6c, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6d, 0x61, 0x78, 0x54, 0x74, 0x6c, 0x12, 0x12, 0x0a, 0x04, - 0x77, 0x61, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x77, 0x61, 0x69, 0x74, - 0x12, 0x26, 0x0a, 0x0f, 0x64, 0x6f, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x66, 0x72, 0x61, 0x67, 0x6d, - 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x64, 0x6f, 0x4e, 0x6f, 0x74, - 0x46, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x6f, 0x5f, 0x6e, - 0x6f, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x0c, 0x64, 0x6f, 0x4e, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x12, 0x36, - 0x0a, 0x0a, 0x6c, 0x33, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x08, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x4c, 0x33, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x0a, 0x6c, 0x33, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x49, 0x0a, 0x0a, 0x6c, 0x34, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, - 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4c, 0x34, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x0a, 0x6c, 0x34, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, - 0x6c, 0x12, 0x29, 0x0a, 0x11, 0x64, 0x6f, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x6c, 0x6f, 0x6f, 0x6b, - 0x75, 0x70, 0x5f, 0x61, 0x73, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x64, 0x6f, - 0x4e, 0x6f, 0x74, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x41, 0x73, 0x6e, 0x12, 0x29, 0x0a, 0x10, - 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x28, 0x0a, 0x0a, 0x4c, 0x34, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x43, 0x4d, 0x50, 0x10, 0x00, 0x12, - 0x07, 0x0a, 0x03, 0x54, 0x43, 0x50, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x44, 0x50, 0x10, - 0x02, 0x22, 0xf5, 0x06, 0x0a, 0x12, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, 0x75, 0x74, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x65, 0x73, 0x74, - 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x13, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x12, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x70, 0x73, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x04, 0x68, 0x6f, 0x70, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, 0x63, 0x6b, - 0x65, 0x74, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x70, - 0x61, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x68, 0x6f, 0x70, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x68, 0x6f, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x72, 0x74, 0x74, - 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x72, 0x74, 0x74, 0x12, 0x3b, 0x0a, 0x05, 0x73, - 0x74, 0x61, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, - 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x63, 0x6d, 0x70, - 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x69, 0x63, 0x6d, - 0x70, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x3d, 0x0a, 0x04, 0x6d, 0x70, 0x6c, 0x73, 0x18, 0x0b, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, - 0x6d, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4d, 0x70, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, - 0x6d, 0x70, 0x6c, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x61, 0x73, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, - 0x0c, 0x20, 0x03, 0x28, 0x05, 0x52, 0x06, 0x61, 0x73, 0x50, 0x61, 0x74, 0x68, 0x12, 0x4f, 0x0a, - 0x0d, 0x69, 0x63, 0x6d, 0x70, 0x5f, 0x65, 0x78, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x0d, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, - 0x65, 0x6d, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x49, 0x63, 0x6d, 0x70, 0x45, 0x78, 0x74, 0x44, 0x61, 0x74, - 0x61, 0x52, 0x0b, 0x69, 0x63, 0x6d, 0x70, 0x45, 0x78, 0x74, 0x44, 0x61, 0x74, 0x61, 0x1a, 0x4b, - 0x0a, 0x0b, 0x49, 0x63, 0x6d, 0x70, 0x45, 0x78, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, - 0x05, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6c, - 0x61, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, - 0x03, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x37, 0x0a, 0x09, 0x4d, - 0x70, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x3a, 0x02, 0x38, 0x01, 0x22, 0xf2, 0x01, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0b, - 0x0a, 0x07, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4e, - 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, - 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x43, 0x4d, 0x50, 0x10, 0x03, 0x12, 0x14, 0x0a, 0x10, - 0x48, 0x4f, 0x53, 0x54, 0x5f, 0x55, 0x4e, 0x52, 0x45, 0x41, 0x43, 0x48, 0x41, 0x42, 0x4c, 0x45, - 0x10, 0x04, 0x12, 0x17, 0x0a, 0x13, 0x4e, 0x45, 0x54, 0x57, 0x4f, 0x52, 0x4b, 0x5f, 0x55, 0x4e, - 0x52, 0x45, 0x41, 0x43, 0x48, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x05, 0x12, 0x18, 0x0a, 0x14, 0x50, - 0x52, 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, 0x55, 0x4e, 0x52, 0x45, 0x41, 0x43, 0x48, 0x41, - 0x42, 0x4c, 0x45, 0x10, 0x06, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, - 0x52, 0x4f, 0x55, 0x54, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x07, 0x12, 0x18, - 0x0a, 0x14, 0x46, 0x52, 0x41, 0x47, 0x4d, 0x45, 0x4e, 0x54, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, - 0x4e, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x08, 0x12, 0x0e, 0x0a, 0x0a, 0x50, 0x52, 0x4f, 0x48, - 0x49, 0x42, 0x49, 0x54, 0x45, 0x44, 0x10, 0x09, 0x12, 0x18, 0x0a, 0x14, 0x50, 0x52, 0x45, 0x43, - 0x45, 0x44, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x56, 0x49, 0x4f, 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, - 0x10, 0x0a, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x52, 0x45, 0x43, 0x45, 0x44, 0x45, 0x4e, 0x43, 0x45, - 0x5f, 0x43, 0x55, 0x54, 0x4f, 0x46, 0x46, 0x10, 0x0b, 0x22, 0xa1, 0x01, 0x0a, 0x07, 0x50, 0x61, - 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x61, - 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x61, - 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x44, 0x0a, 0x0f, 0x72, 0x65, 0x6d, 0x6f, 0x74, - 0x65, 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x52, - 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x0e, 0x72, - 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x9a, 0x01, - 0x0a, 0x11, 0x53, 0x65, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x07, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, - 0x65, 0x6d, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x07, 0x70, 0x61, - 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, - 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, - 0x6e, 0x74, 0x73, 0x12, 0x2a, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x48, - 0x61, 0x73, 0x68, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x42, - 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x14, 0x0a, 0x12, 0x53, 0x65, - 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0xf9, 0x01, 0x0a, 0x12, 0x4b, 0x69, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x70, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3e, 0x0a, - 0x06, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x4b, 0x69, 0x6c, 0x6c, - 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x53, - 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x52, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x12, 0x18, 0x0a, - 0x07, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, - 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x22, 0x63, 0x0a, 0x06, 0x53, 0x69, 0x67, 0x6e, 0x61, - 0x6c, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x49, 0x47, 0x4e, 0x41, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, - 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x49, 0x47, - 0x4e, 0x41, 0x4c, 0x5f, 0x54, 0x45, 0x52, 0x4d, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x49, - 0x47, 0x4e, 0x41, 0x4c, 0x5f, 0x4b, 0x49, 0x4c, 0x4c, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x53, - 0x49, 0x47, 0x4e, 0x41, 0x4c, 0x5f, 0x48, 0x55, 0x50, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x53, - 0x49, 0x47, 0x4e, 0x41, 0x4c, 0x5f, 0x41, 0x42, 0x52, 0x54, 0x10, 0x04, 0x22, 0x15, 0x0a, 0x13, - 0x4b, 0x69, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x2a, 0x64, 0x0a, 0x0c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x4d, 0x65, 0x74, - 0x68, 0x6f, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, - 0x12, 0x08, 0x0a, 0x04, 0x43, 0x4f, 0x4c, 0x44, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x50, 0x4f, - 0x57, 0x45, 0x52, 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x41, 0x4c, - 0x54, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x57, 0x41, 0x52, 0x4d, 0x10, 0x04, 0x12, 0x07, 0x0a, - 0x03, 0x4e, 0x53, 0x46, 0x10, 0x05, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x55, - 0x50, 0x10, 0x07, 0x22, 0x04, 0x08, 0x06, 0x10, 0x06, 0x32, 0xea, 0x05, 0x0a, 0x06, 0x53, 0x79, - 0x73, 0x74, 0x65, 0x6d, 0x12, 0x3f, 0x0a, 0x04, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x18, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, - 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x51, 0x0a, 0x0a, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, - 0x75, 0x74, 0x65, 0x12, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, - 0x6d, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, - 0x6d, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x3d, 0x0a, 0x04, 0x54, 0x69, 0x6d, 0x65, - 0x12, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x54, - 0x69, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x0a, 0x53, 0x65, 0x74, 0x50, 0x61, - 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, - 0x74, 0x65, 0x6d, 0x2e, 0x53, 0x65, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, - 0x74, 0x65, 0x6d, 0x2e, 0x53, 0x65, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x12, 0x73, 0x0a, 0x16, 0x53, 0x77, - 0x69, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, - 0x73, 0x73, 0x6f, 0x72, 0x12, 0x2a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, - 0x65, 0x6d, 0x2e, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, - 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x2b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x53, - 0x77, 0x69, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x72, 0x6f, 0x63, - 0x65, 0x73, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x43, 0x0a, 0x06, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x12, 0x1a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, - 0x74, 0x65, 0x6d, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x55, 0x0a, 0x0c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, - 0x65, 0x6d, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, - 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x55, 0x0a, 0x0c, 0x43, - 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x12, 0x20, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, - 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x43, 0x61, 0x6e, 0x63, - 0x65, 0x6c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x52, 0x0a, 0x0b, 0x4b, 0x69, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, - 0x73, 0x12, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, - 0x4b, 0x69, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, - 0x2e, 0x4b, 0x69, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x2b, 0xd2, 0x3e, 0x05, 0x31, 0x2e, 0x34, 0x2e, 0x30, - 0x5a, 0x21, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, - 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x73, 0x79, 0x73, - 0x74, 0x65, 0x6d, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_system_system_proto_rawDescOnce sync.Once - file_system_system_proto_rawDescData = file_system_system_proto_rawDesc -) - -func file_system_system_proto_rawDescGZIP() []byte { - file_system_system_proto_rawDescOnce.Do(func() { - file_system_system_proto_rawDescData = protoimpl.X.CompressGZIP(file_system_system_proto_rawDescData) - }) - return file_system_system_proto_rawDescData -} - -var file_system_system_proto_enumTypes = make([]protoimpl.EnumInfo, 5) -var file_system_system_proto_msgTypes = make([]protoimpl.MessageInfo, 22) -var file_system_system_proto_goTypes = []interface{}{ - (RebootMethod)(0), // 0: gnoi.system.RebootMethod - (RebootStatus_Status)(0), // 1: gnoi.system.RebootStatus.Status - (TracerouteRequest_L4Protocol)(0), // 2: gnoi.system.TracerouteRequest.L4Protocol - (TracerouteResponse_State)(0), // 3: gnoi.system.TracerouteResponse.State - (KillProcessRequest_Signal)(0), // 4: gnoi.system.KillProcessRequest.Signal - (*SwitchControlProcessorRequest)(nil), // 5: gnoi.system.SwitchControlProcessorRequest - (*SwitchControlProcessorResponse)(nil), // 6: gnoi.system.SwitchControlProcessorResponse - (*RebootRequest)(nil), // 7: gnoi.system.RebootRequest - (*RebootResponse)(nil), // 8: gnoi.system.RebootResponse - (*CancelRebootRequest)(nil), // 9: gnoi.system.CancelRebootRequest - (*CancelRebootResponse)(nil), // 10: gnoi.system.CancelRebootResponse - (*RebootStatusRequest)(nil), // 11: gnoi.system.RebootStatusRequest - (*RebootStatusResponse)(nil), // 12: gnoi.system.RebootStatusResponse - (*RebootStatus)(nil), // 13: gnoi.system.RebootStatus - (*TimeRequest)(nil), // 14: gnoi.system.TimeRequest - (*TimeResponse)(nil), // 15: gnoi.system.TimeResponse - (*PingRequest)(nil), // 16: gnoi.system.PingRequest - (*PingResponse)(nil), // 17: gnoi.system.PingResponse - (*TracerouteRequest)(nil), // 18: gnoi.system.TracerouteRequest - (*TracerouteResponse)(nil), // 19: gnoi.system.TracerouteResponse - (*Package)(nil), // 20: gnoi.system.Package - (*SetPackageRequest)(nil), // 21: gnoi.system.SetPackageRequest - (*SetPackageResponse)(nil), // 22: gnoi.system.SetPackageResponse - (*KillProcessRequest)(nil), // 23: gnoi.system.KillProcessRequest - (*KillProcessResponse)(nil), // 24: gnoi.system.KillProcessResponse - (*TracerouteResponse_IcmpExtData)(nil), // 25: gnoi.system.TracerouteResponse.IcmpExtData - nil, // 26: gnoi.system.TracerouteResponse.MplsEntry - (*types.Path)(nil), // 27: gnoi.types.Path - (types.L3Protocol)(0), // 28: gnoi.types.L3Protocol - (*common.RemoteDownload)(nil), // 29: gnoi.common.RemoteDownload - (*types.HashType)(nil), // 30: gnoi.types.HashType -} -var file_system_system_proto_depIdxs = []int32{ - 27, // 0: gnoi.system.SwitchControlProcessorRequest.control_processor:type_name -> gnoi.types.Path - 27, // 1: gnoi.system.SwitchControlProcessorResponse.control_processor:type_name -> gnoi.types.Path - 0, // 2: gnoi.system.RebootRequest.method:type_name -> gnoi.system.RebootMethod - 27, // 3: gnoi.system.RebootRequest.subcomponents:type_name -> gnoi.types.Path - 27, // 4: gnoi.system.CancelRebootRequest.subcomponents:type_name -> gnoi.types.Path - 27, // 5: gnoi.system.RebootStatusRequest.subcomponents:type_name -> gnoi.types.Path - 0, // 6: gnoi.system.RebootStatusResponse.method:type_name -> gnoi.system.RebootMethod - 13, // 7: gnoi.system.RebootStatusResponse.status:type_name -> gnoi.system.RebootStatus - 1, // 8: gnoi.system.RebootStatus.status:type_name -> gnoi.system.RebootStatus.Status - 28, // 9: gnoi.system.PingRequest.l3protocol:type_name -> gnoi.types.L3Protocol - 28, // 10: gnoi.system.TracerouteRequest.l3protocol:type_name -> gnoi.types.L3Protocol - 2, // 11: gnoi.system.TracerouteRequest.l4protocol:type_name -> gnoi.system.TracerouteRequest.L4Protocol - 3, // 12: gnoi.system.TracerouteResponse.state:type_name -> gnoi.system.TracerouteResponse.State - 26, // 13: gnoi.system.TracerouteResponse.mpls:type_name -> gnoi.system.TracerouteResponse.MplsEntry - 25, // 14: gnoi.system.TracerouteResponse.icmp_ext_data:type_name -> gnoi.system.TracerouteResponse.IcmpExtData - 29, // 15: gnoi.system.Package.remote_download:type_name -> gnoi.common.RemoteDownload - 20, // 16: gnoi.system.SetPackageRequest.package:type_name -> gnoi.system.Package - 30, // 17: gnoi.system.SetPackageRequest.hash:type_name -> gnoi.types.HashType - 4, // 18: gnoi.system.KillProcessRequest.signal:type_name -> gnoi.system.KillProcessRequest.Signal - 16, // 19: gnoi.system.System.Ping:input_type -> gnoi.system.PingRequest - 18, // 20: gnoi.system.System.Traceroute:input_type -> gnoi.system.TracerouteRequest - 14, // 21: gnoi.system.System.Time:input_type -> gnoi.system.TimeRequest - 21, // 22: gnoi.system.System.SetPackage:input_type -> gnoi.system.SetPackageRequest - 5, // 23: gnoi.system.System.SwitchControlProcessor:input_type -> gnoi.system.SwitchControlProcessorRequest - 7, // 24: gnoi.system.System.Reboot:input_type -> gnoi.system.RebootRequest - 11, // 25: gnoi.system.System.RebootStatus:input_type -> gnoi.system.RebootStatusRequest - 9, // 26: gnoi.system.System.CancelReboot:input_type -> gnoi.system.CancelRebootRequest - 23, // 27: gnoi.system.System.KillProcess:input_type -> gnoi.system.KillProcessRequest - 17, // 28: gnoi.system.System.Ping:output_type -> gnoi.system.PingResponse - 19, // 29: gnoi.system.System.Traceroute:output_type -> gnoi.system.TracerouteResponse - 15, // 30: gnoi.system.System.Time:output_type -> gnoi.system.TimeResponse - 22, // 31: gnoi.system.System.SetPackage:output_type -> gnoi.system.SetPackageResponse - 6, // 32: gnoi.system.System.SwitchControlProcessor:output_type -> gnoi.system.SwitchControlProcessorResponse - 8, // 33: gnoi.system.System.Reboot:output_type -> gnoi.system.RebootResponse - 12, // 34: gnoi.system.System.RebootStatus:output_type -> gnoi.system.RebootStatusResponse - 10, // 35: gnoi.system.System.CancelReboot:output_type -> gnoi.system.CancelRebootResponse - 24, // 36: gnoi.system.System.KillProcess:output_type -> gnoi.system.KillProcessResponse - 28, // [28:37] is the sub-list for method output_type - 19, // [19:28] is the sub-list for method input_type - 19, // [19:19] is the sub-list for extension type_name - 19, // [19:19] is the sub-list for extension extendee - 0, // [0:19] is the sub-list for field type_name -} - -func init() { file_system_system_proto_init() } -func file_system_system_proto_init() { - if File_system_system_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_system_system_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SwitchControlProcessorRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SwitchControlProcessorResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RebootRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RebootResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CancelRebootRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CancelRebootResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RebootStatusRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RebootStatusResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RebootStatus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TimeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TimeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PingRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PingResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TracerouteRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TracerouteResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Package); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetPackageRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetPackageResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*KillProcessRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*KillProcessResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TracerouteResponse_IcmpExtData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_system_system_proto_msgTypes[16].OneofWrappers = []interface{}{ - (*SetPackageRequest_Package)(nil), - (*SetPackageRequest_Contents)(nil), - (*SetPackageRequest_Hash)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_system_system_proto_rawDesc, - NumEnums: 5, - NumMessages: 22, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_system_system_proto_goTypes, - DependencyIndexes: file_system_system_proto_depIdxs, - EnumInfos: file_system_system_proto_enumTypes, - MessageInfos: file_system_system_proto_msgTypes, - }.Build() - File_system_system_proto = out.File - file_system_system_proto_rawDesc = nil - file_system_system_proto_goTypes = nil - file_system_system_proto_depIdxs = nil -} diff --git a/src/sonic-framework/gnoi/system/system.proto b/src/sonic-framework/gnoi/system/system.proto deleted file mode 100644 index 7793a1dd2bcb..000000000000 --- a/src/sonic-framework/gnoi/system/system.proto +++ /dev/null @@ -1,369 +0,0 @@ -// -// Copyright 2017 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.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. -// - -// Generic Network Operation Interface, GNOI, defines a set of RPC's used for -// the operational aspects of network targets. These services are meant to be -// used in conjunction with GNMI for all target state and operational aspects -// of a network target. The gnoi.system.Service is the only mandatory vendor -// implementation. - -syntax = "proto3"; - -package gnoi.system; - -import "common/common.proto"; -import "types/types.proto"; - -option go_package = "github.com/openconfig/gnoi/system"; - -option (types.gnoi_version) = "1.4.0"; - -// The gNOI service is a collection of operational RPC's that allow for the -// management of a target outside of the configuration and telemetry pipeline. -service System { - // Ping executes the ping command on the target and streams back - // the results. Some targets may not stream any results until all - // results are in. The stream should provide single ping packet responses - // and must provide summary statistics. - rpc Ping(PingRequest) returns (stream PingResponse) {} - - // Traceroute executes the traceroute command on the target and streams back - // the results. Some targets may not stream any results until all - // results are in. If a hop count is not explicitly provided, - // 30 is used. - rpc Traceroute(TracerouteRequest) returns (stream TracerouteResponse) {} - - // Time returns the current time on the target. Time is typically used to - // test if a target is actually responding. - rpc Time(TimeRequest) returns (TimeResponse) {} - - // SetPackage places a software package (possibly including bootable images) - // on the target. The file is sent in sequential messages, each message - // up to 64KB of data. A final message must be sent that includes the hash - // of the data sent. An error is returned if the location does not exist or - // there is an error writing the data. If no checksum is received, the target - // must assume the operation is incomplete and remove the partially - // transmitted file. The target should initially write the file to a temporary - // location so a failure does not destroy the original file. - rpc SetPackage(stream SetPackageRequest) returns (SetPackageResponse) {} - - // SwitchControlProcessor will switch from the current route processor to the - // provided route processor. If the current route processor is the same as the - // one provided it is a NOOP. If the target does not exist an error is - // returned. - rpc SwitchControlProcessor(SwitchControlProcessorRequest) - returns (SwitchControlProcessorResponse) {} - - // Reboot causes the target to reboot, possibly at some point in the future. - // If the method of reboot is not supported then the Reboot RPC will fail. - // If the reboot is immediate the command will block until the subcomponents - // have restarted. - // If a reboot on the active control processor is pending the service must - // reject all other reboot requests. - // If a reboot request for active control processor is initiated with other - // pending reboot requests it must be rejected. - rpc Reboot(RebootRequest) returns (RebootResponse) {} - - // RebootStatus returns the status of reboot for the target. - rpc RebootStatus(RebootStatusRequest) returns (RebootStatusResponse) {} - - // CancelReboot cancels any pending reboot request. - rpc CancelReboot(CancelRebootRequest) returns (CancelRebootResponse) {} - - // KillProcess kills an OS process and optionally restarts it. - rpc KillProcess(KillProcessRequest) returns (KillProcessResponse) {} -} - -message SwitchControlProcessorRequest { - // Path to the target Control Processor. - types.Path control_processor = 1; -} - -message SwitchControlProcessorResponse { - // Path to the Control Processor that the system switched to. - types.Path control_processor = 1; - // Current software version of the target Control Processor. - string version = 2; - // Uptime of the target Control Processor in nanoseconds. - int64 uptime = 3; -} - -// A RebootRequest requests the specified target be rebooted using the specified -// method after the specified delay. Only the COLD method with a delay of 0 -// is guaranteed to be accepted for all target types. -message RebootRequest { - RebootMethod method = 1; - // Delay in nanoseconds before issuing reboot. - uint64 delay = 2; - // Informational reason for the reboot. - string message = 3; - // Optional sub-components to reboot. - repeated types.Path subcomponents = 4; - // Force reboot if sanity checks fail. (ex. uncommited configuration) - bool force = 5; -} - -message RebootResponse { -} - -// A RebootMethod determines what should be done with a target when a Reboot is -// requested. Only the COLD method is required to be supported by all -// targets. A target should return 'INVALID_ARGUMENT` if UNKNOWN or any other -// unsupported method is called. -// -// It is vendor defined if a WARM reboot is the same as an NSF reboot. -enum RebootMethod { - UNKNOWN = 0; // Invalid default method. - COLD = 1; // Shutdown and restart OS and all hardware. - POWERDOWN = 2; // Halt and power down, if possible. - HALT = 3; // Halt, if possible. - WARM = 4; // Reload configuration but not underlying hardware. - NSF = 5; // Non-stop-forwarding reboot, if possible. - // RESET method is deprecated in favor of the gNOI FactoryReset.Start(). - reserved 6; - POWERUP = 7; // Apply power, no-op if power is already on. -} - -// A CancelRebootRequest requests the cancelation of any outstanding reboot -// request. -message CancelRebootRequest { - string message = 1; // informational reason for the cancel - repeated types.Path subcomponents = 2; // optional sub-components. -} - -message CancelRebootResponse { -} - -message RebootStatusRequest { - repeated types.Path subcomponents = 1; // optional sub-component. -} - -message RebootStatusResponse { - bool active = 1; // If reboot is active. - uint64 wait = 2; // Time left until reboot. - uint64 when = 3; // Time to reboot in nanoseconds since the epoch. - string reason = 4; // Reason for reboot. - uint32 count = 5; // Number of reboots since active. - RebootMethod method = 6; // Type of reboot. - RebootStatus status = 7; // Applicable only when active = false. -} - -message RebootStatus { - enum Status { - STATUS_UNKNOWN = 0; - STATUS_SUCCESS = 1; - STATUS_RETRIABLE_FAILURE = 2; - STATUS_FAILURE = 3; - } - - Status status = 1; - string message = 2; -} - -// A TimeRequest requests the current time accodring to the target. -message TimeRequest { -} - -message TimeResponse { - uint64 time = 1; // Current time in nanoseconds since epoch. -} - -// A PingRequest describes the ping operation to perform. Only the destination -// fields is required. Any field not specified is set to a reasonable server -// specified value. Not all fields are supported by all vendors. -// -// A count of 0 defaults to a vendor specified value, typically 5. A count of -// -1 means continue until the RPC times out or is canceled. -// -// If the interval is -1 then a flood ping is issued. -// -// If the size is 0, the vendor default size will be used (typically 56 bytes). -message PingRequest { - string destination = 1; // Destination address to ping. required. - string source = 2; // Source address to ping from. - int32 count = 3; // Number of packets. - int64 interval = 4; // Nanoseconds between requests. - int64 wait = 5; // Nanoseconds to wait for a response. - int32 size = 6; // Size of request packet. (excluding ICMP header) - bool do_not_fragment = 7; // Set the do not fragment bit. (IPv4 destinations) - bool do_not_resolve = 8; // Do not try resolve the address returned. - types.L3Protocol l3protocol = 9; // Layer3 protocol requested for the ping. - string network_instance = 10; // Network instance to ping the destination in -} - -// A PingResponse represents either the reponse to a single ping packet -// (the bytes field is non-zero) or the summary statistics (sent is non-zero). -// -// For a single ping packet, time is the round trip time, in nanoseconds. For -// summary statistics, it is the time spent by the ping operation. The time is -// not always present in summary statistics. The std_dev is not always present -// in summary statistics. -message PingResponse { - string source = 1; // Source of received bytes. - int64 time = 2; - - int32 sent = 3; // Total packets sent. - int32 received = 4; // Total packets received. - int64 min_time = 5; // Minimum round trip time in nanoseconds. - int64 avg_time = 6; // Average round trip time in nanoseconds. - int64 max_time = 7; // Maximum round trip time in nanoseconds. - int64 std_dev = 8; // Standard deviation in round trip time. - - int32 bytes = 11; // Bytes received. - int32 sequence = 12; // Sequence number of received packet. - int32 ttl = 13; // Remaining time to live value. -} - -// A TracerouteRequest describes the traceroute operation to perform. Only the -// destination field is required. Any field not specified is set to a -// reasonable server specified value. Not all fields are supported by all -// vendors. -// -// If the hop_count is -1 the traceroute will continue forever. -// -message TracerouteRequest { - string source = 1; // Source address to ping from. - string destination = 2; // Destination address to ping. - uint32 initial_ttl = 3; // Initial TTL. (default=1) - int32 max_ttl = 4; // Maximum number of hops. (default=30) - int64 wait = 5; // Nanoseconds to wait for a response. - bool do_not_fragment = 6; // Set the do not fragment bit. (IPv4 destinations) - bool do_not_resolve = 7; // Do not try resolve the address returned. - types.L3Protocol l3protocol = 8; // Layer-3 protocol requested for the ping. - enum L4Protocol { - ICMP = 0; // Use ICMP ECHO for probes. - TCP = 1; // Use TCP SYN for probes. - UDP = 2; // Use UDP for probes. - } - L4Protocol l4protocol = 9; - bool do_not_lookup_asn = 10; // Do not try to lookup ASN - string network_instance = 11; // Network instance to trace the destination in -} - -// A TraceRouteResponse contains the result of a single traceoute packet. -// -// There may be an optional initial response that provides information about the -// traceroute request itself and contains at least one of the fields in the the -// initial block of fields and none of the fields following that block. All -// subsequent responses should not contain any of these fields. -// -// Typically multiple responses are received for each hop, as the packets are -// received. -// -// The mpls field maps names to values. Example names include "Label", "CoS", -// "TTL", "S", and "MRU". -// [Perhaps we should list the canonical names that must be used when -// applicable]. -message TracerouteResponse { - // The following fields are only filled in for the first message. - // If any of these fields are specified, all fields following this - // block are left unspecified. - string destination_name = 1; - string destination_address = 2; - int32 hops = 3; - int32 packet_size = 4; - - // State is the resulting state of a single traceoroute packet. - enum State { - DEFAULT = 0; // Normal hop response. - NONE = 1; // No response. - UNKNOWN = 2; // Unknown response state. - ICMP = 3; // See icmp_code field. - HOST_UNREACHABLE = 4; // Host unreachable. - NETWORK_UNREACHABLE = 5; // Network unreachable. - PROTOCOL_UNREACHABLE = 6; // Protocol unreachable. - SOURCE_ROUTE_FAILED = 7; // Source route failed. - FRAGMENTATION_NEEDED = 8; // Fragmentation needed. - PROHIBITED = 9; // Communication administratively prohibited. - PRECEDENCE_VIOLATION = 10; // Host precedence violation. - PRECEDENCE_CUTOFF = 11; // Precedence cutoff in effect. - } - - message IcmpExtData{ - uint32 class = 1; // class number - uint32 type = 2; // class type - repeated uint32 data = 3; // raw words associated with this data - } - - // The following fields provide the disposition of a single traceroute - // packet. - int32 hop = 5; // Hop number. required. - string address = 6; // Address of responding hop. required. - string name = 7; // Name of responding hop. - int64 rtt = 8; // Round trip time in nanoseconds. - State state = 9; // State of this hop. - int32 icmp_code = 10; // Code terminating hop. - map mpls = 11; // MPLS key/value pairs. - repeated int32 as_path = 12; // AS path. - repeated IcmpExtData icmp_ext_data = 13; // ICMP extension data -} - -// Package defines a single package file to be placed on the target. -message Package { - // Destination path and filename of the package. - string filename = 1; - // Version of the package. (vendor internal name) - string version = 4; - // Indicates that the package should be made active after receipt on - // the device. For system image packages, the new image is expected to - // be active after a reboot. - bool activate = 5; - // Details for the device to download the package from a remote location. - common.RemoteDownload remote_download = 6; -} - -// SetPackageRequest will place the package onto the target and optionally mark -// it as the next bootable image. The initial message must be a package -// message containing the filename and information about the file. Following the -// initial message the contents are then streamed in maximum 64k chunks. The -// final message must be a hash message contains the hash of the file contents. -message SetPackageRequest { - oneof request { - Package package = 1; - bytes contents = 2; - types.HashType hash = 3; // Verification hash of data. - } -} - -message SetPackageResponse { -} - -// KillProcessRequest describes the process kill operation. Either a pid or -// process name must be specified, and a termination signal must be specified. -message KillProcessRequest { - // Process ID of the process to be killed. - uint32 pid = 1; - // Name of the process to be killed. - string name = 2; - // Termination signal sent to the process. - enum Signal { - SIGNAL_UNSPECIFIED = 0; // Invalid default. - SIGNAL_TERM = 1; // Terminate the process gracefully. - SIGNAL_KILL = 2; // Terminate the process immediately. - SIGNAL_HUP = 3; // Reload the process configuration. - // Terminate the process immediately and dump a core file. - SIGNAL_ABRT = 4; - } - - Signal signal = 3; - // Whether the process should be restarted after termination. - // This value is ignored when the termination signal is SIGHUP. - bool restart = 4; -} - -// KillProcessResponse describes the result of the process kill operation. -message KillProcessResponse { -} diff --git a/src/sonic-framework/gnoi/system/system_grpc.pb.go b/src/sonic-framework/gnoi/system/system_grpc.pb.go deleted file mode 100755 index 628e3347f551..000000000000 --- a/src/sonic-framework/gnoi/system/system_grpc.pb.go +++ /dev/null @@ -1,482 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.21.10 -// source: system/system.proto - -package system - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// SystemClient is the client API for System service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type SystemClient interface { - Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (System_PingClient, error) - Traceroute(ctx context.Context, in *TracerouteRequest, opts ...grpc.CallOption) (System_TracerouteClient, error) - Time(ctx context.Context, in *TimeRequest, opts ...grpc.CallOption) (*TimeResponse, error) - SetPackage(ctx context.Context, opts ...grpc.CallOption) (System_SetPackageClient, error) - SwitchControlProcessor(ctx context.Context, in *SwitchControlProcessorRequest, opts ...grpc.CallOption) (*SwitchControlProcessorResponse, error) - Reboot(ctx context.Context, in *RebootRequest, opts ...grpc.CallOption) (*RebootResponse, error) - RebootStatus(ctx context.Context, in *RebootStatusRequest, opts ...grpc.CallOption) (*RebootStatusResponse, error) - CancelReboot(ctx context.Context, in *CancelRebootRequest, opts ...grpc.CallOption) (*CancelRebootResponse, error) - KillProcess(ctx context.Context, in *KillProcessRequest, opts ...grpc.CallOption) (*KillProcessResponse, error) -} - -type systemClient struct { - cc grpc.ClientConnInterface -} - -func NewSystemClient(cc grpc.ClientConnInterface) SystemClient { - return &systemClient{cc} -} - -func (c *systemClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (System_PingClient, error) { - stream, err := c.cc.NewStream(ctx, &System_ServiceDesc.Streams[0], "/gnoi.system.System/Ping", opts...) - if err != nil { - return nil, err - } - x := &systemPingClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type System_PingClient interface { - Recv() (*PingResponse, error) - grpc.ClientStream -} - -type systemPingClient struct { - grpc.ClientStream -} - -func (x *systemPingClient) Recv() (*PingResponse, error) { - m := new(PingResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *systemClient) Traceroute(ctx context.Context, in *TracerouteRequest, opts ...grpc.CallOption) (System_TracerouteClient, error) { - stream, err := c.cc.NewStream(ctx, &System_ServiceDesc.Streams[1], "/gnoi.system.System/Traceroute", opts...) - if err != nil { - return nil, err - } - x := &systemTracerouteClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type System_TracerouteClient interface { - Recv() (*TracerouteResponse, error) - grpc.ClientStream -} - -type systemTracerouteClient struct { - grpc.ClientStream -} - -func (x *systemTracerouteClient) Recv() (*TracerouteResponse, error) { - m := new(TracerouteResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *systemClient) Time(ctx context.Context, in *TimeRequest, opts ...grpc.CallOption) (*TimeResponse, error) { - out := new(TimeResponse) - err := c.cc.Invoke(ctx, "/gnoi.system.System/Time", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *systemClient) SetPackage(ctx context.Context, opts ...grpc.CallOption) (System_SetPackageClient, error) { - stream, err := c.cc.NewStream(ctx, &System_ServiceDesc.Streams[2], "/gnoi.system.System/SetPackage", opts...) - if err != nil { - return nil, err - } - x := &systemSetPackageClient{stream} - return x, nil -} - -type System_SetPackageClient interface { - Send(*SetPackageRequest) error - CloseAndRecv() (*SetPackageResponse, error) - grpc.ClientStream -} - -type systemSetPackageClient struct { - grpc.ClientStream -} - -func (x *systemSetPackageClient) Send(m *SetPackageRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *systemSetPackageClient) CloseAndRecv() (*SetPackageResponse, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - m := new(SetPackageResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *systemClient) SwitchControlProcessor(ctx context.Context, in *SwitchControlProcessorRequest, opts ...grpc.CallOption) (*SwitchControlProcessorResponse, error) { - out := new(SwitchControlProcessorResponse) - err := c.cc.Invoke(ctx, "/gnoi.system.System/SwitchControlProcessor", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *systemClient) Reboot(ctx context.Context, in *RebootRequest, opts ...grpc.CallOption) (*RebootResponse, error) { - out := new(RebootResponse) - err := c.cc.Invoke(ctx, "/gnoi.system.System/Reboot", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *systemClient) RebootStatus(ctx context.Context, in *RebootStatusRequest, opts ...grpc.CallOption) (*RebootStatusResponse, error) { - out := new(RebootStatusResponse) - err := c.cc.Invoke(ctx, "/gnoi.system.System/RebootStatus", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *systemClient) CancelReboot(ctx context.Context, in *CancelRebootRequest, opts ...grpc.CallOption) (*CancelRebootResponse, error) { - out := new(CancelRebootResponse) - err := c.cc.Invoke(ctx, "/gnoi.system.System/CancelReboot", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *systemClient) KillProcess(ctx context.Context, in *KillProcessRequest, opts ...grpc.CallOption) (*KillProcessResponse, error) { - out := new(KillProcessResponse) - err := c.cc.Invoke(ctx, "/gnoi.system.System/KillProcess", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// SystemServer is the server API for System service. -// All implementations must embed UnimplementedSystemServer -// for forward compatibility -type SystemServer interface { - Ping(*PingRequest, System_PingServer) error - Traceroute(*TracerouteRequest, System_TracerouteServer) error - Time(context.Context, *TimeRequest) (*TimeResponse, error) - SetPackage(System_SetPackageServer) error - SwitchControlProcessor(context.Context, *SwitchControlProcessorRequest) (*SwitchControlProcessorResponse, error) - Reboot(context.Context, *RebootRequest) (*RebootResponse, error) - RebootStatus(context.Context, *RebootStatusRequest) (*RebootStatusResponse, error) - CancelReboot(context.Context, *CancelRebootRequest) (*CancelRebootResponse, error) - KillProcess(context.Context, *KillProcessRequest) (*KillProcessResponse, error) - mustEmbedUnimplementedSystemServer() -} - -// UnimplementedSystemServer must be embedded to have forward compatible implementations. -type UnimplementedSystemServer struct { -} - -func (UnimplementedSystemServer) Ping(*PingRequest, System_PingServer) error { - return status.Errorf(codes.Unimplemented, "method Ping not implemented") -} -func (UnimplementedSystemServer) Traceroute(*TracerouteRequest, System_TracerouteServer) error { - return status.Errorf(codes.Unimplemented, "method Traceroute not implemented") -} -func (UnimplementedSystemServer) Time(context.Context, *TimeRequest) (*TimeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Time not implemented") -} -func (UnimplementedSystemServer) SetPackage(System_SetPackageServer) error { - return status.Errorf(codes.Unimplemented, "method SetPackage not implemented") -} -func (UnimplementedSystemServer) SwitchControlProcessor(context.Context, *SwitchControlProcessorRequest) (*SwitchControlProcessorResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SwitchControlProcessor not implemented") -} -func (UnimplementedSystemServer) Reboot(context.Context, *RebootRequest) (*RebootResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Reboot not implemented") -} -func (UnimplementedSystemServer) RebootStatus(context.Context, *RebootStatusRequest) (*RebootStatusResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RebootStatus not implemented") -} -func (UnimplementedSystemServer) CancelReboot(context.Context, *CancelRebootRequest) (*CancelRebootResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CancelReboot not implemented") -} -func (UnimplementedSystemServer) KillProcess(context.Context, *KillProcessRequest) (*KillProcessResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KillProcess not implemented") -} -func (UnimplementedSystemServer) mustEmbedUnimplementedSystemServer() {} - -// UnsafeSystemServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to SystemServer will -// result in compilation errors. -type UnsafeSystemServer interface { - mustEmbedUnimplementedSystemServer() -} - -func RegisterSystemServer(s grpc.ServiceRegistrar, srv SystemServer) { - s.RegisterService(&System_ServiceDesc, srv) -} - -func _System_Ping_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(PingRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(SystemServer).Ping(m, &systemPingServer{stream}) -} - -type System_PingServer interface { - Send(*PingResponse) error - grpc.ServerStream -} - -type systemPingServer struct { - grpc.ServerStream -} - -func (x *systemPingServer) Send(m *PingResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _System_Traceroute_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(TracerouteRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(SystemServer).Traceroute(m, &systemTracerouteServer{stream}) -} - -type System_TracerouteServer interface { - Send(*TracerouteResponse) error - grpc.ServerStream -} - -type systemTracerouteServer struct { - grpc.ServerStream -} - -func (x *systemTracerouteServer) Send(m *TracerouteResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _System_Time_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TimeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SystemServer).Time(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.system.System/Time", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SystemServer).Time(ctx, req.(*TimeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _System_SetPackage_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(SystemServer).SetPackage(&systemSetPackageServer{stream}) -} - -type System_SetPackageServer interface { - SendAndClose(*SetPackageResponse) error - Recv() (*SetPackageRequest, error) - grpc.ServerStream -} - -type systemSetPackageServer struct { - grpc.ServerStream -} - -func (x *systemSetPackageServer) SendAndClose(m *SetPackageResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *systemSetPackageServer) Recv() (*SetPackageRequest, error) { - m := new(SetPackageRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _System_SwitchControlProcessor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SwitchControlProcessorRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SystemServer).SwitchControlProcessor(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.system.System/SwitchControlProcessor", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SystemServer).SwitchControlProcessor(ctx, req.(*SwitchControlProcessorRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _System_Reboot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RebootRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SystemServer).Reboot(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.system.System/Reboot", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SystemServer).Reboot(ctx, req.(*RebootRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _System_RebootStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RebootStatusRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SystemServer).RebootStatus(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.system.System/RebootStatus", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SystemServer).RebootStatus(ctx, req.(*RebootStatusRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _System_CancelReboot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CancelRebootRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SystemServer).CancelReboot(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.system.System/CancelReboot", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SystemServer).CancelReboot(ctx, req.(*CancelRebootRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _System_KillProcess_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(KillProcessRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SystemServer).KillProcess(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.system.System/KillProcess", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SystemServer).KillProcess(ctx, req.(*KillProcessRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// System_ServiceDesc is the grpc.ServiceDesc for System service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var System_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.system.System", - HandlerType: (*SystemServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Time", - Handler: _System_Time_Handler, - }, - { - MethodName: "SwitchControlProcessor", - Handler: _System_SwitchControlProcessor_Handler, - }, - { - MethodName: "Reboot", - Handler: _System_Reboot_Handler, - }, - { - MethodName: "RebootStatus", - Handler: _System_RebootStatus_Handler, - }, - { - MethodName: "CancelReboot", - Handler: _System_CancelReboot_Handler, - }, - { - MethodName: "KillProcess", - Handler: _System_KillProcess_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "Ping", - Handler: _System_Ping_Handler, - ServerStreams: true, - }, - { - StreamName: "Traceroute", - Handler: _System_Traceroute_Handler, - ServerStreams: true, - }, - { - StreamName: "SetPackage", - Handler: _System_SetPackage_Handler, - ClientStreams: true, - }, - }, - Metadata: "system/system.proto", -} diff --git a/src/sonic-framework/gnoi/test/BUILD.bazel b/src/sonic-framework/gnoi/test/BUILD.bazel deleted file mode 100644 index 2c0c063850bb..000000000000 --- a/src/sonic-framework/gnoi/test/BUILD.bazel +++ /dev/null @@ -1,21 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "test", - srcs = ["simple.go"], - importpath = "github.com/openconfig/gnoi/test", - visibility = ["//visibility:public"], -) - -go_test( - name = "test_test", - srcs = ["simple_test.go"], - embed = [":test"], - deps = [ - "//bgp", - "//common", - "//system", - "//types", - "@com_github_golang_protobuf//proto:go_default_library", - ], -) diff --git a/src/sonic-framework/gnoi/test/simple.go b/src/sonic-framework/gnoi/test/simple.go deleted file mode 100644 index e71210c9cac8..000000000000 --- a/src/sonic-framework/gnoi/test/simple.go +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright 2017 Google Inc. -// -// Licensed under the Apache License, Version 2.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. - -// Package simple defines a simple set of gNOI tests. -package simple diff --git a/src/sonic-framework/gnoi/test/simple_test.go b/src/sonic-framework/gnoi/test/simple_test.go deleted file mode 100644 index ead7239841ec..000000000000 --- a/src/sonic-framework/gnoi/test/simple_test.go +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright 2017 Google Inc. -// -// Licensed under the Apache License, Version 2.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. - -package simple - -import ( - "testing" - - //lint:ignore SA1019 Test depends on deprecated proto marshal API. - "github.com/golang/protobuf/proto" - bgppb "github.com/openconfig/gnoi/bgp" - cpb "github.com/openconfig/gnoi/common" - spb "github.com/openconfig/gnoi/system" - tpb "github.com/openconfig/gnoi/types" -) - -func TestGNOI(t *testing.T) { - tests := []struct { - desc string - in proto.Message - want string - }{{ - desc: "tpb.Path", - in: &tpb.Path{ - Origin: "oc", - Elem: []*tpb.PathElem{{Name: "interfaces", Key: map[string]string{"name": "Ethernet1/1/0"}}}, - }, - want: "origin: \"oc\"\nelem: <\n name: \"interfaces\"\n key: <\n key: \"name\"\n value: \"Ethernet1/1/0\"\n >\n>\n", - }, { - desc: "tpb.HashType", - in: &tpb.HashType{ - Method: tpb.HashType_MD5, - Hash: []byte("foo"), - }, - want: "method: MD5\nhash: \"foo\"\n", - }, { - desc: "bgp.ClearBGPNeighborRequest", - in: &bgppb.ClearBGPNeighborRequest{ - Address: "foo", - RoutingInstance: "bar", - Mode: bgppb.ClearBGPNeighborRequest_HARD, - }, - want: "address: \"foo\"\nrouting_instance: \"bar\"\nmode: HARD\n", - }, { - desc: "system.SetPackage", - in: &spb.Package{ - Filename: "filename", - RemoteDownload: &cpb.RemoteDownload{ - Path: "foo", - Protocol: cpb.RemoteDownload_SCP, - Credentials: &tpb.Credentials{ - Username: "bar", - }, - }, - }, - want: "filename: \"filename\"\nremote_download: <\n path: \"foo\"\n protocol: SCP\n credentials: <\n username: \"bar\"\n >\n>\n", - }} - for _, tt := range tests { - t.Run(tt.desc, func(t *testing.T) { - if got := proto.MarshalTextString(tt.in); got != tt.want { - t.Fatalf("Text Proto output failed: got %q, want %q", got, tt.want) - } - }) - } -} diff --git a/src/sonic-framework/gnoi/types/BUILD.bazel b/src/sonic-framework/gnoi/types/BUILD.bazel deleted file mode 100644 index 46370cceb7c4..000000000000 --- a/src/sonic-framework/gnoi/types/BUILD.bazel +++ /dev/null @@ -1,54 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") -load("//:common.bzl", "use_new_compilers") - -#Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# 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. - -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -use_new_compilers() - -proto_library( - name = "types_proto", - srcs = ["types.proto"], - import_prefix = "github.com/openconfig/gnoi", - deps = ["@com_google_protobuf//:descriptor_proto"], -) - -cc_proto_library( - name = "types_cc_proto", - deps = [":types_proto"], -) - -go_proto_library( - name = "types_go_proto", - compilers = [ - "go_protoc_gen_go", - "go_protoc_gen_go_grpc", - ], - importpath = "github.com/openconfig/gnoi/types", - proto = ":types_proto", -) - -go_library( - name = "types", - embed = [":types_go_proto"], - importpath = "github.com/openconfig/gnoi/types", -) diff --git a/src/sonic-framework/gnoi/types/types.pb.go b/src/sonic-framework/gnoi/types/types.pb.go deleted file mode 100644 index ea9499b89098..000000000000 --- a/src/sonic-framework/gnoi/types/types.pb.go +++ /dev/null @@ -1,565 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v3.21.10 -// source: github.com/openconfig/gnoi/types/types.proto - -package types - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - descriptorpb "google.golang.org/protobuf/types/descriptorpb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type L3Protocol int32 - -const ( - L3Protocol_UNSPECIFIED L3Protocol = 0 - L3Protocol_IPV4 L3Protocol = 1 - L3Protocol_IPV6 L3Protocol = 2 -) - -// Enum value maps for L3Protocol. -var ( - L3Protocol_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "IPV4", - 2: "IPV6", - } - L3Protocol_value = map[string]int32{ - "UNSPECIFIED": 0, - "IPV4": 1, - "IPV6": 2, - } -) - -func (x L3Protocol) Enum() *L3Protocol { - p := new(L3Protocol) - *p = x - return p -} - -func (x L3Protocol) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (L3Protocol) Descriptor() protoreflect.EnumDescriptor { - return file_github_com_openconfig_gnoi_types_types_proto_enumTypes[0].Descriptor() -} - -func (L3Protocol) Type() protoreflect.EnumType { - return &file_github_com_openconfig_gnoi_types_types_proto_enumTypes[0] -} - -func (x L3Protocol) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use L3Protocol.Descriptor instead. -func (L3Protocol) EnumDescriptor() ([]byte, []int) { - return file_github_com_openconfig_gnoi_types_types_proto_rawDescGZIP(), []int{0} -} - -type HashType_HashMethod int32 - -const ( - HashType_UNSPECIFIED HashType_HashMethod = 0 - HashType_SHA256 HashType_HashMethod = 1 - HashType_SHA512 HashType_HashMethod = 2 - HashType_MD5 HashType_HashMethod = 3 -) - -// Enum value maps for HashType_HashMethod. -var ( - HashType_HashMethod_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "SHA256", - 2: "SHA512", - 3: "MD5", - } - HashType_HashMethod_value = map[string]int32{ - "UNSPECIFIED": 0, - "SHA256": 1, - "SHA512": 2, - "MD5": 3, - } -) - -func (x HashType_HashMethod) Enum() *HashType_HashMethod { - p := new(HashType_HashMethod) - *p = x - return p -} - -func (x HashType_HashMethod) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (HashType_HashMethod) Descriptor() protoreflect.EnumDescriptor { - return file_github_com_openconfig_gnoi_types_types_proto_enumTypes[1].Descriptor() -} - -func (HashType_HashMethod) Type() protoreflect.EnumType { - return &file_github_com_openconfig_gnoi_types_types_proto_enumTypes[1] -} - -func (x HashType_HashMethod) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use HashType_HashMethod.Descriptor instead. -func (HashType_HashMethod) EnumDescriptor() ([]byte, []int) { - return file_github_com_openconfig_gnoi_types_types_proto_rawDescGZIP(), []int{0, 0} -} - -type HashType struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Method HashType_HashMethod `protobuf:"varint,1,opt,name=method,proto3,enum=gnoi.types.HashType_HashMethod" json:"method,omitempty"` - Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` -} - -func (x *HashType) Reset() { - *x = HashType{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_openconfig_gnoi_types_types_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *HashType) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*HashType) ProtoMessage() {} - -func (x *HashType) ProtoReflect() protoreflect.Message { - mi := &file_github_com_openconfig_gnoi_types_types_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use HashType.ProtoReflect.Descriptor instead. -func (*HashType) Descriptor() ([]byte, []int) { - return file_github_com_openconfig_gnoi_types_types_proto_rawDescGZIP(), []int{0} -} - -func (x *HashType) GetMethod() HashType_HashMethod { - if x != nil { - return x.Method - } - return HashType_UNSPECIFIED -} - -func (x *HashType) GetHash() []byte { - if x != nil { - return x.Hash - } - return nil -} - -type Path struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Origin string `protobuf:"bytes,2,opt,name=origin,proto3" json:"origin,omitempty"` - Elem []*PathElem `protobuf:"bytes,3,rep,name=elem,proto3" json:"elem,omitempty"` -} - -func (x *Path) Reset() { - *x = Path{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_openconfig_gnoi_types_types_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Path) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Path) ProtoMessage() {} - -func (x *Path) ProtoReflect() protoreflect.Message { - mi := &file_github_com_openconfig_gnoi_types_types_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Path.ProtoReflect.Descriptor instead. -func (*Path) Descriptor() ([]byte, []int) { - return file_github_com_openconfig_gnoi_types_types_proto_rawDescGZIP(), []int{1} -} - -func (x *Path) GetOrigin() string { - if x != nil { - return x.Origin - } - return "" -} - -func (x *Path) GetElem() []*PathElem { - if x != nil { - return x.Elem - } - return nil -} - -type PathElem struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Key map[string]string `protobuf:"bytes,2,rep,name=key,proto3" json:"key,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *PathElem) Reset() { - *x = PathElem{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_openconfig_gnoi_types_types_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PathElem) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PathElem) ProtoMessage() {} - -func (x *PathElem) ProtoReflect() protoreflect.Message { - mi := &file_github_com_openconfig_gnoi_types_types_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PathElem.ProtoReflect.Descriptor instead. -func (*PathElem) Descriptor() ([]byte, []int) { - return file_github_com_openconfig_gnoi_types_types_proto_rawDescGZIP(), []int{2} -} - -func (x *PathElem) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *PathElem) GetKey() map[string]string { - if x != nil { - return x.Key - } - return nil -} - -type Credentials struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` - // Types that are assignable to Password: - // - // *Credentials_Cleartext - // *Credentials_Hashed - Password isCredentials_Password `protobuf_oneof:"password"` -} - -func (x *Credentials) Reset() { - *x = Credentials{} - if protoimpl.UnsafeEnabled { - mi := &file_github_com_openconfig_gnoi_types_types_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Credentials) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Credentials) ProtoMessage() {} - -func (x *Credentials) ProtoReflect() protoreflect.Message { - mi := &file_github_com_openconfig_gnoi_types_types_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Credentials.ProtoReflect.Descriptor instead. -func (*Credentials) Descriptor() ([]byte, []int) { - return file_github_com_openconfig_gnoi_types_types_proto_rawDescGZIP(), []int{3} -} - -func (x *Credentials) GetUsername() string { - if x != nil { - return x.Username - } - return "" -} - -func (m *Credentials) GetPassword() isCredentials_Password { - if m != nil { - return m.Password - } - return nil -} - -func (x *Credentials) GetCleartext() string { - if x, ok := x.GetPassword().(*Credentials_Cleartext); ok { - return x.Cleartext - } - return "" -} - -func (x *Credentials) GetHashed() *HashType { - if x, ok := x.GetPassword().(*Credentials_Hashed); ok { - return x.Hashed - } - return nil -} - -type isCredentials_Password interface { - isCredentials_Password() -} - -type Credentials_Cleartext struct { - Cleartext string `protobuf:"bytes,2,opt,name=cleartext,proto3,oneof"` -} - -type Credentials_Hashed struct { - Hashed *HashType `protobuf:"bytes,3,opt,name=hashed,proto3,oneof"` -} - -func (*Credentials_Cleartext) isCredentials_Password() {} - -func (*Credentials_Hashed) isCredentials_Password() {} - -var file_github_com_openconfig_gnoi_types_types_proto_extTypes = []protoimpl.ExtensionInfo{ - { - ExtendedType: (*descriptorpb.FileOptions)(nil), - ExtensionType: (*string)(nil), - Field: 1002, - Name: "gnoi.types.gnoi_version", - Tag: "bytes,1002,opt,name=gnoi_version", - Filename: "github.com/openconfig/gnoi/types/types.proto", - }, -} - -// Extension fields to descriptorpb.FileOptions. -var ( - // optional string gnoi_version = 1002; - E_GnoiVersion = &file_github_com_openconfig_gnoi_types_types_proto_extTypes[0] -) - -var File_github_com_openconfig_gnoi_types_types_proto protoreflect.FileDescriptor - -var file_github_com_openconfig_gnoi_types_types_proto_rawDesc = []byte{ - 0x0a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, - 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x97, 0x01, 0x0a, - 0x08, 0x48, 0x61, 0x73, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12, 0x37, 0x0a, 0x06, 0x6d, 0x65, 0x74, - 0x68, 0x6f, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x54, 0x79, 0x70, 0x65, 0x2e, - 0x48, 0x61, 0x73, 0x68, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, - 0x6f, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x22, 0x3e, 0x0a, 0x0a, 0x48, 0x61, 0x73, 0x68, 0x4d, 0x65, - 0x74, 0x68, 0x6f, 0x64, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, - 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x48, 0x41, 0x32, 0x35, 0x36, 0x10, - 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x48, 0x41, 0x35, 0x31, 0x32, 0x10, 0x02, 0x12, 0x07, 0x0a, - 0x03, 0x4d, 0x44, 0x35, 0x10, 0x03, 0x22, 0x48, 0x0a, 0x04, 0x50, 0x61, 0x74, 0x68, 0x12, 0x16, - 0x0a, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x12, 0x28, 0x0a, 0x04, 0x65, 0x6c, 0x65, 0x6d, 0x18, 0x03, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x45, 0x6c, 0x65, 0x6d, 0x52, 0x04, 0x65, 0x6c, 0x65, 0x6d, - 0x22, 0x87, 0x01, 0x0a, 0x08, 0x50, 0x61, 0x74, 0x68, 0x45, 0x6c, 0x65, 0x6d, 0x12, 0x12, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x2f, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, - 0x45, 0x6c, 0x65, 0x6d, 0x2e, 0x4b, 0x65, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x03, 0x6b, - 0x65, 0x79, 0x1a, 0x36, 0x0a, 0x08, 0x4b, 0x65, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, - 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, - 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x85, 0x01, 0x0a, 0x0b, 0x43, - 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, - 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, - 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x09, 0x63, 0x6c, 0x65, 0x61, 0x72, 0x74, - 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x09, 0x63, 0x6c, 0x65, - 0x61, 0x72, 0x74, 0x65, 0x78, 0x74, 0x12, 0x2e, 0x0a, 0x06, 0x68, 0x61, 0x73, 0x68, 0x65, 0x64, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x06, - 0x68, 0x61, 0x73, 0x68, 0x65, 0x64, 0x42, 0x0a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, - 0x72, 0x64, 0x2a, 0x31, 0x0a, 0x0a, 0x4c, 0x33, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, - 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, - 0x00, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x50, 0x56, 0x34, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x49, - 0x50, 0x56, 0x36, 0x10, 0x02, 0x3a, 0x40, 0x0a, 0x0c, 0x67, 0x6e, 0x6f, 0x69, 0x5f, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x18, 0xea, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x67, 0x6e, 0x6f, 0x69, - 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x22, 0x5a, 0x20, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, -} - -var ( - file_github_com_openconfig_gnoi_types_types_proto_rawDescOnce sync.Once - file_github_com_openconfig_gnoi_types_types_proto_rawDescData = file_github_com_openconfig_gnoi_types_types_proto_rawDesc -) - -func file_github_com_openconfig_gnoi_types_types_proto_rawDescGZIP() []byte { - file_github_com_openconfig_gnoi_types_types_proto_rawDescOnce.Do(func() { - file_github_com_openconfig_gnoi_types_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_openconfig_gnoi_types_types_proto_rawDescData) - }) - return file_github_com_openconfig_gnoi_types_types_proto_rawDescData -} - -var file_github_com_openconfig_gnoi_types_types_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_github_com_openconfig_gnoi_types_types_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_github_com_openconfig_gnoi_types_types_proto_goTypes = []interface{}{ - (L3Protocol)(0), // 0: gnoi.types.L3Protocol - (HashType_HashMethod)(0), // 1: gnoi.types.HashType.HashMethod - (*HashType)(nil), // 2: gnoi.types.HashType - (*Path)(nil), // 3: gnoi.types.Path - (*PathElem)(nil), // 4: gnoi.types.PathElem - (*Credentials)(nil), // 5: gnoi.types.Credentials - nil, // 6: gnoi.types.PathElem.KeyEntry - (*descriptorpb.FileOptions)(nil), // 7: google.protobuf.FileOptions -} -var file_github_com_openconfig_gnoi_types_types_proto_depIdxs = []int32{ - 1, // 0: gnoi.types.HashType.method:type_name -> gnoi.types.HashType.HashMethod - 4, // 1: gnoi.types.Path.elem:type_name -> gnoi.types.PathElem - 6, // 2: gnoi.types.PathElem.key:type_name -> gnoi.types.PathElem.KeyEntry - 2, // 3: gnoi.types.Credentials.hashed:type_name -> gnoi.types.HashType - 7, // 4: gnoi.types.gnoi_version:extendee -> google.protobuf.FileOptions - 5, // [5:5] is the sub-list for method output_type - 5, // [5:5] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 4, // [4:5] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name -} - -func init() { file_github_com_openconfig_gnoi_types_types_proto_init() } -func file_github_com_openconfig_gnoi_types_types_proto_init() { - if File_github_com_openconfig_gnoi_types_types_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_github_com_openconfig_gnoi_types_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HashType); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_openconfig_gnoi_types_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Path); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_openconfig_gnoi_types_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PathElem); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_github_com_openconfig_gnoi_types_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Credentials); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_github_com_openconfig_gnoi_types_types_proto_msgTypes[3].OneofWrappers = []interface{}{ - (*Credentials_Cleartext)(nil), - (*Credentials_Hashed)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_github_com_openconfig_gnoi_types_types_proto_rawDesc, - NumEnums: 2, - NumMessages: 5, - NumExtensions: 1, - NumServices: 0, - }, - GoTypes: file_github_com_openconfig_gnoi_types_types_proto_goTypes, - DependencyIndexes: file_github_com_openconfig_gnoi_types_types_proto_depIdxs, - EnumInfos: file_github_com_openconfig_gnoi_types_types_proto_enumTypes, - MessageInfos: file_github_com_openconfig_gnoi_types_types_proto_msgTypes, - ExtensionInfos: file_github_com_openconfig_gnoi_types_types_proto_extTypes, - }.Build() - File_github_com_openconfig_gnoi_types_types_proto = out.File - file_github_com_openconfig_gnoi_types_types_proto_rawDesc = nil - file_github_com_openconfig_gnoi_types_types_proto_goTypes = nil - file_github_com_openconfig_gnoi_types_types_proto_depIdxs = nil -} diff --git a/src/sonic-framework/gnoi/types/types.proto b/src/sonic-framework/gnoi/types/types.proto deleted file mode 100644 index 4926d3389944..000000000000 --- a/src/sonic-framework/gnoi/types/types.proto +++ /dev/null @@ -1,77 +0,0 @@ -// -// Copyright 2017 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.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 gnoi.types; - -import "google/protobuf/descriptor.proto"; - -option go_package = "github.com/openconfig/gnoi/types"; - -// Define a protobuf FileOption that defines the gNOI service version. -extend google.protobuf.FileOptions { - // The gNOI service semantic version. - string gnoi_version = 1002; -} - -// Generic Layer 3 Protocol enumeration. -enum L3Protocol { - UNSPECIFIED = 0; - IPV4 = 1; - IPV6 = 2; -} - -// HashType defines the valid hash methods for data verification. UNSPECIFIED -// should be treated an error. -message HashType { - enum HashMethod { - UNSPECIFIED = 0; - SHA256 = 1; - SHA512 = 2; - MD5 = 3; - } - HashMethod method = 1; - // hash is the raw byte string returned by the hash function. - // It is not an hex encoded string or other representation. - bytes hash = 2; -} - -// Path encodes a data tree path as a series of repeated strings, with -// each element of the path representing a data tree node name and the -// associated attributes. -// Reference: gNMI Specification Section 2.2.2. -message Path { - string origin = 2; // Label to disambiguate path. - repeated PathElem elem = 3; // Elements of the path. -} - -// PathElem encodes an element of a gNMI path, along with any attributes (keys) -// that may be associated with it. -// Reference: gNMI Specification Section 2.2.2. -message PathElem { - string name = 1; // The name of the element in the path. - map key = 2; // Map of key (attribute) name to value. -} - -// Credentials defines credentials needed to perform authentication on a device. -message Credentials { - string username = 1; - oneof password { - string cleartext = 2; - HashType hashed = 3; - } -} diff --git a/src/sonic-framework/gnoi/wavelength_router/BUILD.bazel b/src/sonic-framework/gnoi/wavelength_router/BUILD.bazel deleted file mode 100644 index da6b62a6dd2e..000000000000 --- a/src/sonic-framework/gnoi/wavelength_router/BUILD.bazel +++ /dev/null @@ -1,61 +0,0 @@ -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@io_bazel_rules_go//go:def.bzl", "go_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") -load("//:common.bzl", "use_new_compilers") - -#Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# 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. - -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -use_new_compilers() - -proto_library( - name = "wavelength_router_proto", - srcs = ["wavelength_router.proto"], - deps = ["//types:types_proto"], -) - -cc_proto_library( - name = "wavelength_router_cc_proto", - deps = [":wavelength_router_proto"], -) - -cc_grpc_library( - name = "wavelength_router_cc_grpc_proto", - srcs = [":wavelength_router_proto"], - grpc_only = True, - deps = [":wavelength_router_cc_proto"], -) - -go_proto_library( - name = "wavelength_router_go_proto", - compilers = [ - "go_protoc_gen_go", - "go_protoc_gen_go_grpc", - ], - importpath = "github.com/openconfig/gnoi/wavelength_router", - proto = ":wavelength_router_proto", - deps = ["//types"], -) - -go_library( - name = "wavelength_router", - embed = [":wavelength_router_go_proto"], - importpath = "github.com/openconfig/gnoi/wavelength_router", -) diff --git a/src/sonic-framework/gnoi/wavelength_router/wavelength_router.pb.go b/src/sonic-framework/gnoi/wavelength_router/wavelength_router.pb.go deleted file mode 100644 index 6121d84f7f6f..000000000000 --- a/src/sonic-framework/gnoi/wavelength_router/wavelength_router.pb.go +++ /dev/null @@ -1,1223 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v3.21.10 -// source: wavelength_router/wavelength_router.proto - -package wavelength_router - -import ( - types "github.com/openconfig/gnoi/types" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type AdjustPSDRequest_SignalDirection int32 - -const ( - AdjustPSDRequest_DIRECTION_UNKNOWN AdjustPSDRequest_SignalDirection = 0 - AdjustPSDRequest_DIRECTION_INPUT AdjustPSDRequest_SignalDirection = 1 - AdjustPSDRequest_DIRECTION_OUTPUT AdjustPSDRequest_SignalDirection = 2 -) - -// Enum value maps for AdjustPSDRequest_SignalDirection. -var ( - AdjustPSDRequest_SignalDirection_name = map[int32]string{ - 0: "DIRECTION_UNKNOWN", - 1: "DIRECTION_INPUT", - 2: "DIRECTION_OUTPUT", - } - AdjustPSDRequest_SignalDirection_value = map[string]int32{ - "DIRECTION_UNKNOWN": 0, - "DIRECTION_INPUT": 1, - "DIRECTION_OUTPUT": 2, - } -) - -func (x AdjustPSDRequest_SignalDirection) Enum() *AdjustPSDRequest_SignalDirection { - p := new(AdjustPSDRequest_SignalDirection) - *p = x - return p -} - -func (x AdjustPSDRequest_SignalDirection) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (AdjustPSDRequest_SignalDirection) Descriptor() protoreflect.EnumDescriptor { - return file_wavelength_router_wavelength_router_proto_enumTypes[0].Descriptor() -} - -func (AdjustPSDRequest_SignalDirection) Type() protoreflect.EnumType { - return &file_wavelength_router_wavelength_router_proto_enumTypes[0] -} - -func (x AdjustPSDRequest_SignalDirection) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use AdjustPSDRequest_SignalDirection.Descriptor instead. -func (AdjustPSDRequest_SignalDirection) EnumDescriptor() ([]byte, []int) { - return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{0, 0} -} - -type AdjustPSDProgress_State int32 - -const ( - AdjustPSDProgress_UNKNOWN AdjustPSDProgress_State = 0 - AdjustPSDProgress_RUNNING AdjustPSDProgress_State = 1 - AdjustPSDProgress_COMPLETE AdjustPSDProgress_State = 2 -) - -// Enum value maps for AdjustPSDProgress_State. -var ( - AdjustPSDProgress_State_name = map[int32]string{ - 0: "UNKNOWN", - 1: "RUNNING", - 2: "COMPLETE", - } - AdjustPSDProgress_State_value = map[string]int32{ - "UNKNOWN": 0, - "RUNNING": 1, - "COMPLETE": 2, - } -) - -func (x AdjustPSDProgress_State) Enum() *AdjustPSDProgress_State { - p := new(AdjustPSDProgress_State) - *p = x - return p -} - -func (x AdjustPSDProgress_State) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (AdjustPSDProgress_State) Descriptor() protoreflect.EnumDescriptor { - return file_wavelength_router_wavelength_router_proto_enumTypes[1].Descriptor() -} - -func (AdjustPSDProgress_State) Type() protoreflect.EnumType { - return &file_wavelength_router_wavelength_router_proto_enumTypes[1] -} - -func (x AdjustPSDProgress_State) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use AdjustPSDProgress_State.Descriptor instead. -func (AdjustPSDProgress_State) EnumDescriptor() ([]byte, []int) { - return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{1, 0} -} - -type AdjustPSDError_Type int32 - -const ( - AdjustPSDError_UNSPECIFIED AdjustPSDError_Type = 0 - AdjustPSDError_PORT_BUSY AdjustPSDError_Type = 1 - AdjustPSDError_HARDWARE_FAILURE AdjustPSDError_Type = 2 -) - -// Enum value maps for AdjustPSDError_Type. -var ( - AdjustPSDError_Type_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "PORT_BUSY", - 2: "HARDWARE_FAILURE", - } - AdjustPSDError_Type_value = map[string]int32{ - "UNSPECIFIED": 0, - "PORT_BUSY": 1, - "HARDWARE_FAILURE": 2, - } -) - -func (x AdjustPSDError_Type) Enum() *AdjustPSDError_Type { - p := new(AdjustPSDError_Type) - *p = x - return p -} - -func (x AdjustPSDError_Type) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (AdjustPSDError_Type) Descriptor() protoreflect.EnumDescriptor { - return file_wavelength_router_wavelength_router_proto_enumTypes[2].Descriptor() -} - -func (AdjustPSDError_Type) Type() protoreflect.EnumType { - return &file_wavelength_router_wavelength_router_proto_enumTypes[2] -} - -func (x AdjustPSDError_Type) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use AdjustPSDError_Type.Descriptor instead. -func (AdjustPSDError_Type) EnumDescriptor() ([]byte, []int) { - return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{2, 0} -} - -type AdjustSpectrumRequest_SignalDirection int32 - -const ( - AdjustSpectrumRequest_DIRECTION_UNKNOWN AdjustSpectrumRequest_SignalDirection = 0 - AdjustSpectrumRequest_DIRECTION_INPUT AdjustSpectrumRequest_SignalDirection = 1 - AdjustSpectrumRequest_DIRECTION_OUTPUT AdjustSpectrumRequest_SignalDirection = 2 -) - -// Enum value maps for AdjustSpectrumRequest_SignalDirection. -var ( - AdjustSpectrumRequest_SignalDirection_name = map[int32]string{ - 0: "DIRECTION_UNKNOWN", - 1: "DIRECTION_INPUT", - 2: "DIRECTION_OUTPUT", - } - AdjustSpectrumRequest_SignalDirection_value = map[string]int32{ - "DIRECTION_UNKNOWN": 0, - "DIRECTION_INPUT": 1, - "DIRECTION_OUTPUT": 2, - } -) - -func (x AdjustSpectrumRequest_SignalDirection) Enum() *AdjustSpectrumRequest_SignalDirection { - p := new(AdjustSpectrumRequest_SignalDirection) - *p = x - return p -} - -func (x AdjustSpectrumRequest_SignalDirection) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (AdjustSpectrumRequest_SignalDirection) Descriptor() protoreflect.EnumDescriptor { - return file_wavelength_router_wavelength_router_proto_enumTypes[3].Descriptor() -} - -func (AdjustSpectrumRequest_SignalDirection) Type() protoreflect.EnumType { - return &file_wavelength_router_wavelength_router_proto_enumTypes[3] -} - -func (x AdjustSpectrumRequest_SignalDirection) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use AdjustSpectrumRequest_SignalDirection.Descriptor instead. -func (AdjustSpectrumRequest_SignalDirection) EnumDescriptor() ([]byte, []int) { - return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{5, 0} -} - -type AdjustSpectrumProgress_State int32 - -const ( - AdjustSpectrumProgress_UNKNOWN AdjustSpectrumProgress_State = 0 - AdjustSpectrumProgress_RUNNING AdjustSpectrumProgress_State = 1 - AdjustSpectrumProgress_COMPLETE AdjustSpectrumProgress_State = 2 -) - -// Enum value maps for AdjustSpectrumProgress_State. -var ( - AdjustSpectrumProgress_State_name = map[int32]string{ - 0: "UNKNOWN", - 1: "RUNNING", - 2: "COMPLETE", - } - AdjustSpectrumProgress_State_value = map[string]int32{ - "UNKNOWN": 0, - "RUNNING": 1, - "COMPLETE": 2, - } -) - -func (x AdjustSpectrumProgress_State) Enum() *AdjustSpectrumProgress_State { - p := new(AdjustSpectrumProgress_State) - *p = x - return p -} - -func (x AdjustSpectrumProgress_State) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (AdjustSpectrumProgress_State) Descriptor() protoreflect.EnumDescriptor { - return file_wavelength_router_wavelength_router_proto_enumTypes[4].Descriptor() -} - -func (AdjustSpectrumProgress_State) Type() protoreflect.EnumType { - return &file_wavelength_router_wavelength_router_proto_enumTypes[4] -} - -func (x AdjustSpectrumProgress_State) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use AdjustSpectrumProgress_State.Descriptor instead. -func (AdjustSpectrumProgress_State) EnumDescriptor() ([]byte, []int) { - return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{6, 0} -} - -type AdjustSpectrumError_Type int32 - -const ( - AdjustSpectrumError_UNSPECIFIED AdjustSpectrumError_Type = 0 - AdjustSpectrumError_PORT_BUSY AdjustSpectrumError_Type = 1 - AdjustSpectrumError_HARDWARE_FAILURE AdjustSpectrumError_Type = 2 -) - -// Enum value maps for AdjustSpectrumError_Type. -var ( - AdjustSpectrumError_Type_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "PORT_BUSY", - 2: "HARDWARE_FAILURE", - } - AdjustSpectrumError_Type_value = map[string]int32{ - "UNSPECIFIED": 0, - "PORT_BUSY": 1, - "HARDWARE_FAILURE": 2, - } -) - -func (x AdjustSpectrumError_Type) Enum() *AdjustSpectrumError_Type { - p := new(AdjustSpectrumError_Type) - *p = x - return p -} - -func (x AdjustSpectrumError_Type) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (AdjustSpectrumError_Type) Descriptor() protoreflect.EnumDescriptor { - return file_wavelength_router_wavelength_router_proto_enumTypes[5].Descriptor() -} - -func (AdjustSpectrumError_Type) Type() protoreflect.EnumType { - return &file_wavelength_router_wavelength_router_proto_enumTypes[5] -} - -func (x AdjustSpectrumError_Type) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use AdjustSpectrumError_Type.Descriptor instead. -func (AdjustSpectrumError_Type) EnumDescriptor() ([]byte, []int) { - return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{7, 0} -} - -// Deprecated: Marked as deprecated in wavelength_router/wavelength_router.proto. -type AdjustPSDRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Component *types.Path `protobuf:"bytes,1,opt,name=component,proto3" json:"component,omitempty"` - Direction AdjustPSDRequest_SignalDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=gnoi.optical.AdjustPSDRequest_SignalDirection" json:"direction,omitempty"` -} - -func (x *AdjustPSDRequest) Reset() { - *x = AdjustPSDRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AdjustPSDRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AdjustPSDRequest) ProtoMessage() {} - -func (x *AdjustPSDRequest) ProtoReflect() protoreflect.Message { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AdjustPSDRequest.ProtoReflect.Descriptor instead. -func (*AdjustPSDRequest) Descriptor() ([]byte, []int) { - return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{0} -} - -func (x *AdjustPSDRequest) GetComponent() *types.Path { - if x != nil { - return x.Component - } - return nil -} - -func (x *AdjustPSDRequest) GetDirection() AdjustPSDRequest_SignalDirection { - if x != nil { - return x.Direction - } - return AdjustPSDRequest_DIRECTION_UNKNOWN -} - -// Deprecated: Marked as deprecated in wavelength_router/wavelength_router.proto. -type AdjustPSDProgress struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - State AdjustPSDProgress_State `protobuf:"varint,1,opt,name=state,proto3,enum=gnoi.optical.AdjustPSDProgress_State" json:"state,omitempty"` -} - -func (x *AdjustPSDProgress) Reset() { - *x = AdjustPSDProgress{} - if protoimpl.UnsafeEnabled { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AdjustPSDProgress) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AdjustPSDProgress) ProtoMessage() {} - -func (x *AdjustPSDProgress) ProtoReflect() protoreflect.Message { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AdjustPSDProgress.ProtoReflect.Descriptor instead. -func (*AdjustPSDProgress) Descriptor() ([]byte, []int) { - return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{1} -} - -func (x *AdjustPSDProgress) GetState() AdjustPSDProgress_State { - if x != nil { - return x.State - } - return AdjustPSDProgress_UNKNOWN -} - -// Deprecated: Marked as deprecated in wavelength_router/wavelength_router.proto. -type AdjustPSDError struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Type AdjustPSDError_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.optical.AdjustPSDError_Type" json:"type,omitempty"` - Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` -} - -func (x *AdjustPSDError) Reset() { - *x = AdjustPSDError{} - if protoimpl.UnsafeEnabled { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AdjustPSDError) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AdjustPSDError) ProtoMessage() {} - -func (x *AdjustPSDError) ProtoReflect() protoreflect.Message { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AdjustPSDError.ProtoReflect.Descriptor instead. -func (*AdjustPSDError) Descriptor() ([]byte, []int) { - return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{2} -} - -func (x *AdjustPSDError) GetType() AdjustPSDError_Type { - if x != nil { - return x.Type - } - return AdjustPSDError_UNSPECIFIED -} - -func (x *AdjustPSDError) GetDetail() string { - if x != nil { - return x.Detail - } - return "" -} - -// Deprecated: Marked as deprecated in wavelength_router/wavelength_router.proto. -type AdjustPSDResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Response: - // - // *AdjustPSDResponse_Progress - // *AdjustPSDResponse_Error - Response isAdjustPSDResponse_Response `protobuf_oneof:"response"` -} - -func (x *AdjustPSDResponse) Reset() { - *x = AdjustPSDResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AdjustPSDResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AdjustPSDResponse) ProtoMessage() {} - -func (x *AdjustPSDResponse) ProtoReflect() protoreflect.Message { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AdjustPSDResponse.ProtoReflect.Descriptor instead. -func (*AdjustPSDResponse) Descriptor() ([]byte, []int) { - return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{3} -} - -func (m *AdjustPSDResponse) GetResponse() isAdjustPSDResponse_Response { - if m != nil { - return m.Response - } - return nil -} - -func (x *AdjustPSDResponse) GetProgress() *AdjustPSDProgress { - if x, ok := x.GetResponse().(*AdjustPSDResponse_Progress); ok { - return x.Progress - } - return nil -} - -func (x *AdjustPSDResponse) GetError() *AdjustPSDError { - if x, ok := x.GetResponse().(*AdjustPSDResponse_Error); ok { - return x.Error - } - return nil -} - -type isAdjustPSDResponse_Response interface { - isAdjustPSDResponse_Response() -} - -type AdjustPSDResponse_Progress struct { - Progress *AdjustPSDProgress `protobuf:"bytes,1,opt,name=progress,proto3,oneof"` -} - -type AdjustPSDResponse_Error struct { - Error *AdjustPSDError `protobuf:"bytes,2,opt,name=error,proto3,oneof"` -} - -func (*AdjustPSDResponse_Progress) isAdjustPSDResponse_Response() {} - -func (*AdjustPSDResponse_Error) isAdjustPSDResponse_Response() {} - -// Deprecated: Marked as deprecated in wavelength_router/wavelength_router.proto. -type CancelAdjustPSDResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *CancelAdjustPSDResponse) Reset() { - *x = CancelAdjustPSDResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CancelAdjustPSDResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CancelAdjustPSDResponse) ProtoMessage() {} - -func (x *CancelAdjustPSDResponse) ProtoReflect() protoreflect.Message { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CancelAdjustPSDResponse.ProtoReflect.Descriptor instead. -func (*CancelAdjustPSDResponse) Descriptor() ([]byte, []int) { - return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{4} -} - -type AdjustSpectrumRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Component *types.Path `protobuf:"bytes,1,opt,name=component,proto3" json:"component,omitempty"` - Direction AdjustSpectrumRequest_SignalDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=gnoi.optical.AdjustSpectrumRequest_SignalDirection" json:"direction,omitempty"` -} - -func (x *AdjustSpectrumRequest) Reset() { - *x = AdjustSpectrumRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AdjustSpectrumRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AdjustSpectrumRequest) ProtoMessage() {} - -func (x *AdjustSpectrumRequest) ProtoReflect() protoreflect.Message { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AdjustSpectrumRequest.ProtoReflect.Descriptor instead. -func (*AdjustSpectrumRequest) Descriptor() ([]byte, []int) { - return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{5} -} - -func (x *AdjustSpectrumRequest) GetComponent() *types.Path { - if x != nil { - return x.Component - } - return nil -} - -func (x *AdjustSpectrumRequest) GetDirection() AdjustSpectrumRequest_SignalDirection { - if x != nil { - return x.Direction - } - return AdjustSpectrumRequest_DIRECTION_UNKNOWN -} - -type AdjustSpectrumProgress struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - State AdjustSpectrumProgress_State `protobuf:"varint,1,opt,name=state,proto3,enum=gnoi.optical.AdjustSpectrumProgress_State" json:"state,omitempty"` -} - -func (x *AdjustSpectrumProgress) Reset() { - *x = AdjustSpectrumProgress{} - if protoimpl.UnsafeEnabled { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AdjustSpectrumProgress) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AdjustSpectrumProgress) ProtoMessage() {} - -func (x *AdjustSpectrumProgress) ProtoReflect() protoreflect.Message { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AdjustSpectrumProgress.ProtoReflect.Descriptor instead. -func (*AdjustSpectrumProgress) Descriptor() ([]byte, []int) { - return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{6} -} - -func (x *AdjustSpectrumProgress) GetState() AdjustSpectrumProgress_State { - if x != nil { - return x.State - } - return AdjustSpectrumProgress_UNKNOWN -} - -type AdjustSpectrumError struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Type AdjustSpectrumError_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.optical.AdjustSpectrumError_Type" json:"type,omitempty"` - Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` -} - -func (x *AdjustSpectrumError) Reset() { - *x = AdjustSpectrumError{} - if protoimpl.UnsafeEnabled { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AdjustSpectrumError) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AdjustSpectrumError) ProtoMessage() {} - -func (x *AdjustSpectrumError) ProtoReflect() protoreflect.Message { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AdjustSpectrumError.ProtoReflect.Descriptor instead. -func (*AdjustSpectrumError) Descriptor() ([]byte, []int) { - return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{7} -} - -func (x *AdjustSpectrumError) GetType() AdjustSpectrumError_Type { - if x != nil { - return x.Type - } - return AdjustSpectrumError_UNSPECIFIED -} - -func (x *AdjustSpectrumError) GetDetail() string { - if x != nil { - return x.Detail - } - return "" -} - -type AdjustSpectrumResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Response: - // - // *AdjustSpectrumResponse_Progress - // *AdjustSpectrumResponse_Error - Response isAdjustSpectrumResponse_Response `protobuf_oneof:"response"` -} - -func (x *AdjustSpectrumResponse) Reset() { - *x = AdjustSpectrumResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AdjustSpectrumResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AdjustSpectrumResponse) ProtoMessage() {} - -func (x *AdjustSpectrumResponse) ProtoReflect() protoreflect.Message { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AdjustSpectrumResponse.ProtoReflect.Descriptor instead. -func (*AdjustSpectrumResponse) Descriptor() ([]byte, []int) { - return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{8} -} - -func (m *AdjustSpectrumResponse) GetResponse() isAdjustSpectrumResponse_Response { - if m != nil { - return m.Response - } - return nil -} - -func (x *AdjustSpectrumResponse) GetProgress() *AdjustSpectrumProgress { - if x, ok := x.GetResponse().(*AdjustSpectrumResponse_Progress); ok { - return x.Progress - } - return nil -} - -func (x *AdjustSpectrumResponse) GetError() *AdjustSpectrumError { - if x, ok := x.GetResponse().(*AdjustSpectrumResponse_Error); ok { - return x.Error - } - return nil -} - -type isAdjustSpectrumResponse_Response interface { - isAdjustSpectrumResponse_Response() -} - -type AdjustSpectrumResponse_Progress struct { - Progress *AdjustSpectrumProgress `protobuf:"bytes,1,opt,name=progress,proto3,oneof"` -} - -type AdjustSpectrumResponse_Error struct { - Error *AdjustSpectrumError `protobuf:"bytes,2,opt,name=error,proto3,oneof"` -} - -func (*AdjustSpectrumResponse_Progress) isAdjustSpectrumResponse_Response() {} - -func (*AdjustSpectrumResponse_Error) isAdjustSpectrumResponse_Response() {} - -type CancelAdjustSpectrumResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *CancelAdjustSpectrumResponse) Reset() { - *x = CancelAdjustSpectrumResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CancelAdjustSpectrumResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CancelAdjustSpectrumResponse) ProtoMessage() {} - -func (x *CancelAdjustSpectrumResponse) ProtoReflect() protoreflect.Message { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CancelAdjustSpectrumResponse.ProtoReflect.Descriptor instead. -func (*CancelAdjustSpectrumResponse) Descriptor() ([]byte, []int) { - return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{9} -} - -var File_wavelength_router_wavelength_router_proto protoreflect.FileDescriptor - -var file_wavelength_router_wavelength_router_proto_rawDesc = []byte{ - 0x0a, 0x29, 0x77, 0x61, 0x76, 0x65, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x5f, 0x72, 0x6f, 0x75, - 0x74, 0x65, 0x72, 0x2f, 0x77, 0x61, 0x76, 0x65, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x5f, 0x72, - 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe9, 0x01, 0x0a, 0x10, 0x41, 0x64, 0x6a, 0x75, - 0x73, 0x74, 0x50, 0x53, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x09, - 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, - 0x68, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x12, 0x4c, 0x0a, 0x09, - 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x2e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, - 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50, 0x53, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, - 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x53, 0x0a, 0x0f, 0x53, 0x69, - 0x67, 0x6e, 0x61, 0x6c, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x15, 0x0a, - 0x11, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, - 0x57, 0x4e, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x49, 0x4f, - 0x4e, 0x5f, 0x49, 0x4e, 0x50, 0x55, 0x54, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x44, 0x49, 0x52, - 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x10, 0x02, 0x3a, - 0x02, 0x18, 0x01, 0x22, 0x85, 0x01, 0x0a, 0x11, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50, 0x53, - 0x44, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3b, 0x0a, 0x05, 0x73, 0x74, 0x61, - 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50, 0x53, - 0x44, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, - 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x2f, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, - 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, - 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x4f, 0x4d, - 0x50, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x02, 0x3a, 0x02, 0x18, 0x01, 0x22, 0xa1, 0x01, 0x0a, 0x0e, - 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50, 0x53, 0x44, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x35, - 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, - 0x73, 0x74, 0x50, 0x53, 0x44, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, - 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x22, 0x3c, 0x0a, - 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, - 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x42, - 0x55, 0x53, 0x59, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x48, 0x41, 0x52, 0x44, 0x57, 0x41, 0x52, - 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x02, 0x3a, 0x02, 0x18, 0x01, 0x22, - 0x98, 0x01, 0x0a, 0x11, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50, 0x53, 0x44, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, - 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50, 0x53, 0x44, - 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x48, 0x00, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, - 0x72, 0x65, 0x73, 0x73, 0x12, 0x34, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, - 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50, 0x53, 0x44, 0x45, 0x72, 0x72, 0x6f, - 0x72, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x3a, 0x02, 0x18, 0x01, 0x42, 0x0a, - 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x0a, 0x17, 0x43, 0x61, - 0x6e, 0x63, 0x65, 0x6c, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50, 0x53, 0x44, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x3a, 0x02, 0x18, 0x01, 0x22, 0xef, 0x01, 0x0a, 0x15, 0x41, 0x64, - 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, - 0x65, 0x6e, 0x74, 0x12, 0x51, 0x0a, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, - 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, - 0x74, 0x72, 0x75, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x53, 0x69, 0x67, 0x6e, - 0x61, 0x6c, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x64, 0x69, 0x72, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x53, 0x0a, 0x0f, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, - 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x15, 0x0a, 0x11, 0x44, 0x49, 0x52, - 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, - 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x49, 0x4e, - 0x50, 0x55, 0x54, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x49, - 0x4f, 0x4e, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x10, 0x02, 0x22, 0x8b, 0x01, 0x0a, 0x16, - 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x50, 0x72, - 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x40, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, - 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, - 0x72, 0x75, 0x6d, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x2f, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, - 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x43, - 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x02, 0x22, 0xa7, 0x01, 0x0a, 0x13, 0x41, 0x64, - 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x45, 0x72, 0x72, 0x6f, - 0x72, 0x12, 0x3a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x26, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, - 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x45, 0x72, 0x72, - 0x6f, 0x72, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, - 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, - 0x65, 0x74, 0x61, 0x69, 0x6c, 0x22, 0x3c, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, - 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, - 0x0a, 0x09, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x42, 0x55, 0x53, 0x59, 0x10, 0x01, 0x12, 0x14, 0x0a, - 0x10, 0x48, 0x41, 0x52, 0x44, 0x57, 0x41, 0x52, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, - 0x45, 0x10, 0x02, 0x22, 0xa3, 0x01, 0x0a, 0x16, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, - 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, - 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x24, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, - 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x50, 0x72, - 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x48, 0x00, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, - 0x73, 0x73, 0x12, 0x39, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, - 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x45, - 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x0a, 0x0a, - 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x0a, 0x1c, 0x43, 0x61, 0x6e, - 0x63, 0x65, 0x6c, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, 0x72, 0x75, - 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x92, 0x03, 0x0a, 0x10, 0x57, 0x61, - 0x76, 0x65, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x12, 0x53, - 0x0a, 0x09, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50, 0x53, 0x44, 0x12, 0x1e, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, - 0x74, 0x50, 0x53, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, - 0x74, 0x50, 0x53, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, - 0x01, 0x30, 0x01, 0x12, 0x5d, 0x0a, 0x0f, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x41, 0x64, 0x6a, - 0x75, 0x73, 0x74, 0x50, 0x53, 0x44, 0x12, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, - 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50, 0x53, 0x44, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, - 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x41, 0x64, 0x6a, 0x75, - 0x73, 0x74, 0x50, 0x53, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, - 0x02, 0x01, 0x12, 0x5f, 0x0a, 0x0e, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, - 0x74, 0x72, 0x75, 0x6d, 0x12, 0x23, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, - 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, 0x72, - 0x75, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, - 0x70, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x30, 0x01, 0x12, 0x69, 0x0a, 0x14, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x41, 0x64, 0x6a, - 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x12, 0x23, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, - 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x2a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, - 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, - 0x74, 0x72, 0x75, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x36, - 0xd2, 0x3e, 0x05, 0x30, 0x2e, 0x32, 0x2e, 0x30, 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, - 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x77, 0x61, 0x76, 0x65, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x5f, - 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_wavelength_router_wavelength_router_proto_rawDescOnce sync.Once - file_wavelength_router_wavelength_router_proto_rawDescData = file_wavelength_router_wavelength_router_proto_rawDesc -) - -func file_wavelength_router_wavelength_router_proto_rawDescGZIP() []byte { - file_wavelength_router_wavelength_router_proto_rawDescOnce.Do(func() { - file_wavelength_router_wavelength_router_proto_rawDescData = protoimpl.X.CompressGZIP(file_wavelength_router_wavelength_router_proto_rawDescData) - }) - return file_wavelength_router_wavelength_router_proto_rawDescData -} - -var file_wavelength_router_wavelength_router_proto_enumTypes = make([]protoimpl.EnumInfo, 6) -var file_wavelength_router_wavelength_router_proto_msgTypes = make([]protoimpl.MessageInfo, 10) -var file_wavelength_router_wavelength_router_proto_goTypes = []interface{}{ - (AdjustPSDRequest_SignalDirection)(0), // 0: gnoi.optical.AdjustPSDRequest.SignalDirection - (AdjustPSDProgress_State)(0), // 1: gnoi.optical.AdjustPSDProgress.State - (AdjustPSDError_Type)(0), // 2: gnoi.optical.AdjustPSDError.Type - (AdjustSpectrumRequest_SignalDirection)(0), // 3: gnoi.optical.AdjustSpectrumRequest.SignalDirection - (AdjustSpectrumProgress_State)(0), // 4: gnoi.optical.AdjustSpectrumProgress.State - (AdjustSpectrumError_Type)(0), // 5: gnoi.optical.AdjustSpectrumError.Type - (*AdjustPSDRequest)(nil), // 6: gnoi.optical.AdjustPSDRequest - (*AdjustPSDProgress)(nil), // 7: gnoi.optical.AdjustPSDProgress - (*AdjustPSDError)(nil), // 8: gnoi.optical.AdjustPSDError - (*AdjustPSDResponse)(nil), // 9: gnoi.optical.AdjustPSDResponse - (*CancelAdjustPSDResponse)(nil), // 10: gnoi.optical.CancelAdjustPSDResponse - (*AdjustSpectrumRequest)(nil), // 11: gnoi.optical.AdjustSpectrumRequest - (*AdjustSpectrumProgress)(nil), // 12: gnoi.optical.AdjustSpectrumProgress - (*AdjustSpectrumError)(nil), // 13: gnoi.optical.AdjustSpectrumError - (*AdjustSpectrumResponse)(nil), // 14: gnoi.optical.AdjustSpectrumResponse - (*CancelAdjustSpectrumResponse)(nil), // 15: gnoi.optical.CancelAdjustSpectrumResponse - (*types.Path)(nil), // 16: gnoi.types.Path -} -var file_wavelength_router_wavelength_router_proto_depIdxs = []int32{ - 16, // 0: gnoi.optical.AdjustPSDRequest.component:type_name -> gnoi.types.Path - 0, // 1: gnoi.optical.AdjustPSDRequest.direction:type_name -> gnoi.optical.AdjustPSDRequest.SignalDirection - 1, // 2: gnoi.optical.AdjustPSDProgress.state:type_name -> gnoi.optical.AdjustPSDProgress.State - 2, // 3: gnoi.optical.AdjustPSDError.type:type_name -> gnoi.optical.AdjustPSDError.Type - 7, // 4: gnoi.optical.AdjustPSDResponse.progress:type_name -> gnoi.optical.AdjustPSDProgress - 8, // 5: gnoi.optical.AdjustPSDResponse.error:type_name -> gnoi.optical.AdjustPSDError - 16, // 6: gnoi.optical.AdjustSpectrumRequest.component:type_name -> gnoi.types.Path - 3, // 7: gnoi.optical.AdjustSpectrumRequest.direction:type_name -> gnoi.optical.AdjustSpectrumRequest.SignalDirection - 4, // 8: gnoi.optical.AdjustSpectrumProgress.state:type_name -> gnoi.optical.AdjustSpectrumProgress.State - 5, // 9: gnoi.optical.AdjustSpectrumError.type:type_name -> gnoi.optical.AdjustSpectrumError.Type - 12, // 10: gnoi.optical.AdjustSpectrumResponse.progress:type_name -> gnoi.optical.AdjustSpectrumProgress - 13, // 11: gnoi.optical.AdjustSpectrumResponse.error:type_name -> gnoi.optical.AdjustSpectrumError - 6, // 12: gnoi.optical.WavelengthRouter.AdjustPSD:input_type -> gnoi.optical.AdjustPSDRequest - 6, // 13: gnoi.optical.WavelengthRouter.CancelAdjustPSD:input_type -> gnoi.optical.AdjustPSDRequest - 11, // 14: gnoi.optical.WavelengthRouter.AdjustSpectrum:input_type -> gnoi.optical.AdjustSpectrumRequest - 11, // 15: gnoi.optical.WavelengthRouter.CancelAdjustSpectrum:input_type -> gnoi.optical.AdjustSpectrumRequest - 9, // 16: gnoi.optical.WavelengthRouter.AdjustPSD:output_type -> gnoi.optical.AdjustPSDResponse - 10, // 17: gnoi.optical.WavelengthRouter.CancelAdjustPSD:output_type -> gnoi.optical.CancelAdjustPSDResponse - 14, // 18: gnoi.optical.WavelengthRouter.AdjustSpectrum:output_type -> gnoi.optical.AdjustSpectrumResponse - 15, // 19: gnoi.optical.WavelengthRouter.CancelAdjustSpectrum:output_type -> gnoi.optical.CancelAdjustSpectrumResponse - 16, // [16:20] is the sub-list for method output_type - 12, // [12:16] is the sub-list for method input_type - 12, // [12:12] is the sub-list for extension type_name - 12, // [12:12] is the sub-list for extension extendee - 0, // [0:12] is the sub-list for field type_name -} - -func init() { file_wavelength_router_wavelength_router_proto_init() } -func file_wavelength_router_wavelength_router_proto_init() { - if File_wavelength_router_wavelength_router_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_wavelength_router_wavelength_router_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AdjustPSDRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wavelength_router_wavelength_router_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AdjustPSDProgress); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wavelength_router_wavelength_router_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AdjustPSDError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wavelength_router_wavelength_router_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AdjustPSDResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wavelength_router_wavelength_router_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CancelAdjustPSDResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wavelength_router_wavelength_router_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AdjustSpectrumRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wavelength_router_wavelength_router_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AdjustSpectrumProgress); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wavelength_router_wavelength_router_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AdjustSpectrumError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wavelength_router_wavelength_router_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AdjustSpectrumResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wavelength_router_wavelength_router_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CancelAdjustSpectrumResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_wavelength_router_wavelength_router_proto_msgTypes[3].OneofWrappers = []interface{}{ - (*AdjustPSDResponse_Progress)(nil), - (*AdjustPSDResponse_Error)(nil), - } - file_wavelength_router_wavelength_router_proto_msgTypes[8].OneofWrappers = []interface{}{ - (*AdjustSpectrumResponse_Progress)(nil), - (*AdjustSpectrumResponse_Error)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_wavelength_router_wavelength_router_proto_rawDesc, - NumEnums: 6, - NumMessages: 10, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_wavelength_router_wavelength_router_proto_goTypes, - DependencyIndexes: file_wavelength_router_wavelength_router_proto_depIdxs, - EnumInfos: file_wavelength_router_wavelength_router_proto_enumTypes, - MessageInfos: file_wavelength_router_wavelength_router_proto_msgTypes, - }.Build() - File_wavelength_router_wavelength_router_proto = out.File - file_wavelength_router_wavelength_router_proto_rawDesc = nil - file_wavelength_router_wavelength_router_proto_goTypes = nil - file_wavelength_router_wavelength_router_proto_depIdxs = nil -} diff --git a/src/sonic-framework/gnoi/wavelength_router/wavelength_router.proto b/src/sonic-framework/gnoi/wavelength_router/wavelength_router.proto deleted file mode 100644 index 17989aebb474..000000000000 --- a/src/sonic-framework/gnoi/wavelength_router/wavelength_router.proto +++ /dev/null @@ -1,197 +0,0 @@ -// -// Copyright 2019 Google LLC. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.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 gnoi.optical; - -import "github.com/openconfig/gnoi/types/types.proto"; - -option go_package = "github.com/openconfig/gnoi/wavelength_router"; - -option (types.gnoi_version) = "0.2.0"; - -service WavelengthRouter { - // AdjustPSD performs a power spectral density (PSD) adjustment on an optical - // DWDM line system port. - // - // This RPC's initial message triggers adjustments. The target should validate - // the request, and immediately begin the adjustment as long as another - // adjustment is not already running. As this RPC may take multiple minutes, - // the state should be regularly streamed to the client. The operation should - // be completed on the device regardless of the state of the RPC channel to - // the initiating client. A client that becomes disconnected during an - // operation can reconnect, requesting the same operation, and receive status - // updates this way. There is no means by which an adjustment that has been - // triggered by a client can be cancelled unless the CancelAdjustPSD RPC is - // used. - // DEPRECATED, use AdjustSpectrum. - rpc AdjustPSD(AdjustPSDRequest) returns (stream AdjustPSDResponse) { - option deprecated = true; - } - - // CancelAdjustPSD cancels an in-progress AdjustPSD request. If an - // adjustment is not being performed for the provided request, then the RPC - // should return successfully. - // DEPRECATED, use CancelAdjustSpectrum. - rpc CancelAdjustPSD(AdjustPSDRequest) returns (CancelAdjustPSDResponse) { - option deprecated = true; - } - - // AdjustSpectrum performs a spectrum power adjustment on an optical - // DWDM line system port. - // - // This RPC's initial message triggers adjustments. The target should validate - // the request, and immediately begin the adjustment as long as another - // adjustment is not already running. As this RPC may take multiple minutes, - // the state should be regularly streamed to the client. The operation should - // be completed on the device regardless of the state of the RPC channel to - // the initiating client. A client that becomes disconnected during an - // operation can reconnect, requesting the same operation, and receive status - // updates this way. There is no means by which an adjustment that has been - // triggered by a client can be cancelled unless the CancelAdjustSpectrum - // RPC is used. - rpc AdjustSpectrum(AdjustSpectrumRequest) - returns (stream AdjustSpectrumResponse) {} - - // CancelAdjustSpectrum cancels an in-progress AdjustSpectrum request. If an - // adjustment is not being performed for the provided request, then the RPC - // should return successfully. - rpc CancelAdjustSpectrum(AdjustSpectrumRequest) - returns (CancelAdjustSpectrumResponse) {} -} - -message AdjustPSDRequest { - option deprecated = true; - // Absolute path to the /components/component list member in the OpenConfig - // model corresponding to the port to perform the adjustment for. - // (e.g., /components/component[name=amp-1-1]) - types.Path component = 1; - - enum SignalDirection { - DIRECTION_UNKNOWN = 0; - DIRECTION_INPUT = 1; - DIRECTION_OUTPUT = 2; - } - // Describes the signal direction that should be adjusted relative to the - // device. For example, "input" would be the signal entering into the device - // from the far end device. - SignalDirection direction = 2; -} - -message AdjustPSDProgress { - option deprecated = true; - enum State { - UNKNOWN = 0; - RUNNING = 1; // The PSD adjustment is running. - COMPLETE = 2; // The PSD adjustment completed successfully. - } - // The state of the OTDR trace requested. Note that this does not include - // error states as these should be returned as a gRPC error. - State state = 1; -} - -message AdjustPSDError { - option deprecated = true; - enum Type { - // An unspecified error. Must use the detail value to describe the issue. - UNSPECIFIED = 0; - // An adjustment was requested for a port that is busy (e.g., requesting - // input adjustment for a port that is currently running an output - // adjustment) - PORT_BUSY = 1; - // The hardware has failed and cannot complete an adjustment. - HARDWARE_FAILURE = 2; - } - Type type = 1; - string detail = 2; -} - -// AdjustPSDResponse describes the possible response messages that will be -// streamed after the RPC is initiated. While the OTDR is running, -// "progress" messages should be sent at a regular interval. When the -// adjustment is completed, an "error" message should be streamed if an -// error is encountered or the RPC should be terminated on success. -message AdjustPSDResponse { - option deprecated = true; - oneof response { - AdjustPSDProgress progress = 1; - AdjustPSDError error = 2; - } -} - -message CancelAdjustPSDResponse { - option deprecated = true; -} - -message AdjustSpectrumRequest { - // Absolute path to the /components/component list member in the OpenConfig - // model corresponding to the port to perform the adjustment for. - // (e.g., /components/component[name=wavelength-router-1-1]) - types.Path component = 1; - - enum SignalDirection { - DIRECTION_UNKNOWN = 0; - DIRECTION_INPUT = 1; - DIRECTION_OUTPUT = 2; - } - // Describes the signal direction that should be adjusted relative to the - // device. For example, "input" would be the signal entering into the device - // from the far end device. - SignalDirection direction = 2; -} - -message AdjustSpectrumProgress { - enum State { - UNKNOWN = 0; - RUNNING = 1; // The spectrum adjustment is running. - COMPLETE = 2; // The spectrum adjustment completed successfully. - } - // The state of the OTDR trace requested. Note that this does not include - // error states as these should be returned as a gRPC error. - State state = 1; -} - -message AdjustSpectrumError { - enum Type { - // An unspecified error. Must use the detail value to describe the issue. - UNSPECIFIED = 0; - // An adjustment was requested for a port that is busy (e.g., requesting - // input adjustment for a port that is currently running an output - // adjustment) - PORT_BUSY = 1; - // The hardware has failed and cannot complete an adjustment. - HARDWARE_FAILURE = 2; - } - Type type = 1; - string detail = 2; -} - -// AdjustSpectrumResponse describes the possible response messages that will be -// streamed after the RPC is initiated. While the OTDR is running, -// "progress" messages should be sent at a regular interval. When the -// adjustment is completed, an "error" message should be streamed if an -// error is encountered or the RPC should be terminated on success. -message AdjustSpectrumResponse { - oneof response { - AdjustSpectrumProgress progress = 1; - AdjustSpectrumError error = 2; - } -} - -message CancelAdjustSpectrumResponse { -} - diff --git a/src/sonic-framework/gnoi/wavelength_router/wavelength_router_grpc.pb.go b/src/sonic-framework/gnoi/wavelength_router/wavelength_router_grpc.pb.go deleted file mode 100755 index 88dbc6bf5d42..000000000000 --- a/src/sonic-framework/gnoi/wavelength_router/wavelength_router_grpc.pb.go +++ /dev/null @@ -1,274 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.21.10 -// source: wavelength_router/wavelength_router.proto - -package wavelength_router - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// WavelengthRouterClient is the client API for WavelengthRouter service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type WavelengthRouterClient interface { - // Deprecated: Do not use. - AdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustPSDClient, error) - // Deprecated: Do not use. - CancelAdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (*CancelAdjustPSDResponse, error) - AdjustSpectrum(ctx context.Context, in *AdjustSpectrumRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustSpectrumClient, error) - CancelAdjustSpectrum(ctx context.Context, in *AdjustSpectrumRequest, opts ...grpc.CallOption) (*CancelAdjustSpectrumResponse, error) -} - -type wavelengthRouterClient struct { - cc grpc.ClientConnInterface -} - -func NewWavelengthRouterClient(cc grpc.ClientConnInterface) WavelengthRouterClient { - return &wavelengthRouterClient{cc} -} - -// Deprecated: Do not use. -func (c *wavelengthRouterClient) AdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustPSDClient, error) { - stream, err := c.cc.NewStream(ctx, &WavelengthRouter_ServiceDesc.Streams[0], "/gnoi.optical.WavelengthRouter/AdjustPSD", opts...) - if err != nil { - return nil, err - } - x := &wavelengthRouterAdjustPSDClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type WavelengthRouter_AdjustPSDClient interface { - Recv() (*AdjustPSDResponse, error) - grpc.ClientStream -} - -type wavelengthRouterAdjustPSDClient struct { - grpc.ClientStream -} - -func (x *wavelengthRouterAdjustPSDClient) Recv() (*AdjustPSDResponse, error) { - m := new(AdjustPSDResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// Deprecated: Do not use. -func (c *wavelengthRouterClient) CancelAdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (*CancelAdjustPSDResponse, error) { - out := new(CancelAdjustPSDResponse) - err := c.cc.Invoke(ctx, "/gnoi.optical.WavelengthRouter/CancelAdjustPSD", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *wavelengthRouterClient) AdjustSpectrum(ctx context.Context, in *AdjustSpectrumRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustSpectrumClient, error) { - stream, err := c.cc.NewStream(ctx, &WavelengthRouter_ServiceDesc.Streams[1], "/gnoi.optical.WavelengthRouter/AdjustSpectrum", opts...) - if err != nil { - return nil, err - } - x := &wavelengthRouterAdjustSpectrumClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type WavelengthRouter_AdjustSpectrumClient interface { - Recv() (*AdjustSpectrumResponse, error) - grpc.ClientStream -} - -type wavelengthRouterAdjustSpectrumClient struct { - grpc.ClientStream -} - -func (x *wavelengthRouterAdjustSpectrumClient) Recv() (*AdjustSpectrumResponse, error) { - m := new(AdjustSpectrumResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *wavelengthRouterClient) CancelAdjustSpectrum(ctx context.Context, in *AdjustSpectrumRequest, opts ...grpc.CallOption) (*CancelAdjustSpectrumResponse, error) { - out := new(CancelAdjustSpectrumResponse) - err := c.cc.Invoke(ctx, "/gnoi.optical.WavelengthRouter/CancelAdjustSpectrum", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// WavelengthRouterServer is the server API for WavelengthRouter service. -// All implementations must embed UnimplementedWavelengthRouterServer -// for forward compatibility -type WavelengthRouterServer interface { - // Deprecated: Do not use. - AdjustPSD(*AdjustPSDRequest, WavelengthRouter_AdjustPSDServer) error - // Deprecated: Do not use. - CancelAdjustPSD(context.Context, *AdjustPSDRequest) (*CancelAdjustPSDResponse, error) - AdjustSpectrum(*AdjustSpectrumRequest, WavelengthRouter_AdjustSpectrumServer) error - CancelAdjustSpectrum(context.Context, *AdjustSpectrumRequest) (*CancelAdjustSpectrumResponse, error) - mustEmbedUnimplementedWavelengthRouterServer() -} - -// UnimplementedWavelengthRouterServer must be embedded to have forward compatible implementations. -type UnimplementedWavelengthRouterServer struct { -} - -func (UnimplementedWavelengthRouterServer) AdjustPSD(*AdjustPSDRequest, WavelengthRouter_AdjustPSDServer) error { - return status.Errorf(codes.Unimplemented, "method AdjustPSD not implemented") -} -func (UnimplementedWavelengthRouterServer) CancelAdjustPSD(context.Context, *AdjustPSDRequest) (*CancelAdjustPSDResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CancelAdjustPSD not implemented") -} -func (UnimplementedWavelengthRouterServer) AdjustSpectrum(*AdjustSpectrumRequest, WavelengthRouter_AdjustSpectrumServer) error { - return status.Errorf(codes.Unimplemented, "method AdjustSpectrum not implemented") -} -func (UnimplementedWavelengthRouterServer) CancelAdjustSpectrum(context.Context, *AdjustSpectrumRequest) (*CancelAdjustSpectrumResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CancelAdjustSpectrum not implemented") -} -func (UnimplementedWavelengthRouterServer) mustEmbedUnimplementedWavelengthRouterServer() {} - -// UnsafeWavelengthRouterServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to WavelengthRouterServer will -// result in compilation errors. -type UnsafeWavelengthRouterServer interface { - mustEmbedUnimplementedWavelengthRouterServer() -} - -func RegisterWavelengthRouterServer(s grpc.ServiceRegistrar, srv WavelengthRouterServer) { - s.RegisterService(&WavelengthRouter_ServiceDesc, srv) -} - -func _WavelengthRouter_AdjustPSD_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(AdjustPSDRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(WavelengthRouterServer).AdjustPSD(m, &wavelengthRouterAdjustPSDServer{stream}) -} - -type WavelengthRouter_AdjustPSDServer interface { - Send(*AdjustPSDResponse) error - grpc.ServerStream -} - -type wavelengthRouterAdjustPSDServer struct { - grpc.ServerStream -} - -func (x *wavelengthRouterAdjustPSDServer) Send(m *AdjustPSDResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _WavelengthRouter_CancelAdjustPSD_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AdjustPSDRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WavelengthRouterServer).CancelAdjustPSD(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.optical.WavelengthRouter/CancelAdjustPSD", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WavelengthRouterServer).CancelAdjustPSD(ctx, req.(*AdjustPSDRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _WavelengthRouter_AdjustSpectrum_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(AdjustSpectrumRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(WavelengthRouterServer).AdjustSpectrum(m, &wavelengthRouterAdjustSpectrumServer{stream}) -} - -type WavelengthRouter_AdjustSpectrumServer interface { - Send(*AdjustSpectrumResponse) error - grpc.ServerStream -} - -type wavelengthRouterAdjustSpectrumServer struct { - grpc.ServerStream -} - -func (x *wavelengthRouterAdjustSpectrumServer) Send(m *AdjustSpectrumResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _WavelengthRouter_CancelAdjustSpectrum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AdjustSpectrumRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WavelengthRouterServer).CancelAdjustSpectrum(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.optical.WavelengthRouter/CancelAdjustSpectrum", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WavelengthRouterServer).CancelAdjustSpectrum(ctx, req.(*AdjustSpectrumRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// WavelengthRouter_ServiceDesc is the grpc.ServiceDesc for WavelengthRouter service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var WavelengthRouter_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.optical.WavelengthRouter", - HandlerType: (*WavelengthRouterServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CancelAdjustPSD", - Handler: _WavelengthRouter_CancelAdjustPSD_Handler, - }, - { - MethodName: "CancelAdjustSpectrum", - Handler: _WavelengthRouter_CancelAdjustSpectrum_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "AdjustPSD", - Handler: _WavelengthRouter_AdjustPSD_Handler, - ServerStreams: true, - }, - { - StreamName: "AdjustSpectrum", - Handler: _WavelengthRouter_AdjustSpectrum_Handler, - ServerStreams: true, - }, - }, - Metadata: "wavelength_router/wavelength_router.proto", -} diff --git a/src/sonic-framework/rebootbackend/Makefile.am b/src/sonic-framework/rebootbackend/Makefile.am index 7d6faf283c02..ec1827e719d6 100644 --- a/src/sonic-framework/rebootbackend/Makefile.am +++ b/src/sonic-framework/rebootbackend/Makefile.am @@ -1,5 +1,5 @@ AUTOMAKE_OPTIONS = subdir-objects -INCLUDES = -I $(top_srcdir) -I/usr/include/dbus-c++-1/ -I $(top_srcdir)/system -I ../../sonic-swss-common/common +INCLUDES = -I $(top_srcdir) -I/usr/include/dbus-c++-1/ -I$(top_srcdir)/build/gen -I$(top_srcdir)/build/gen/github.com/openconfig/gnoi -I ../../sonic-swss-common/common bin_PROGRAMS = rebootbackend @@ -10,10 +10,8 @@ DBGFLAGS = -g endif rebootbackend_SOURCES = rebootbackend.cpp rebootbe.cpp interfaces.cpp \ - reboot_thread.cpp \ - system/system.pb.cc types/types.pb.cc \ - common/common.pb.cc + reboot_thread.cpp rebootbackend_CFLAGS = $(DBGFLAGS) $(AM_CFLAGS) $(CFLAGS_COMMON) $(CFLAGS_ASAN) rebootbackend_CPPFLAGS = $(DBGFLAGS) $(AM_CFLAGS) $(CFLAGS_COMMON) $(CFLAGS_ASAN) -rebootbackend_LDADD = $(LDFLAGS_ASAN) -lswsscommon -ldbus-c++-1 -lpthread -lprotobuf +rebootbackend_LDADD = $(LDFLAGS_ASAN) -lswsscommon -ldbus-c++-1 -lpthread -lprotobuf $(top_srcdir)/build/gen/librebgnoi.la diff --git a/src/sonic-framework/tests/Makefile.am b/src/sonic-framework/tests/Makefile.am index 340cbace310c..0b1d4fa033c2 100644 --- a/src/sonic-framework/tests/Makefile.am +++ b/src/sonic-framework/tests/Makefile.am @@ -1,5 +1,5 @@ AUTOMAKE_OPTIONS = subdir-objects -INCLUDES = -I $(top_srcdir) -I $(top_srcdir)/rebootbackend -I $(top_srcdir)/rebootbackend/system -I ../../sonic-swss-common/common +INCLUDES = -I $(top_srcdir) -I $(top_srcdir)/rebootbackend -I$(top_srcdir)/build/gen -I$(top_srcdir)/build/gen/github.com/openconfig/gnoi -I ../../sonic-swss-common/common TESTS = tests tests_asan tests_tsan tests_usan @@ -27,29 +27,31 @@ tests_SOURCES = rebootbe_test.cpp \ $(top_srcdir)/rebootbackend/rebootbe.cpp \ reboot_thread_test.cpp \ $(top_srcdir)/rebootbackend/reboot_thread.cpp \ - $(top_srcdir)/rebootbackend/system/system.pb.cc \ - $(top_srcdir)/rebootbackend/types/types.pb.cc \ - $(top_srcdir)/rebootbackend/common/common.pb.cc \ test_main.cpp tests_CFLAGS = $(DBGFLAGS) $(AM_CFLAGS) $(CFLAGS_COMMON) $(CFLAGS_GTEST) $(CFLAGS_COVERAGE) $(CFLAGS_SAI) tests_CPPFLAGS = $(DBGFLAGS) $(AM_CFLAGS) $(CFLAGS_COMMON) $(CFLAGS_GTEST) $(CFLAGS_COVERAGE) $(CFLAGS_SAI) -tests_LDADD = $(LDADD_GTEST) $(LDADD_COVERAGE) -lswsscommon -lpthread -lprotobuf +tests_LDADD = $(LDADD_GTEST) $(LDADD_COVERAGE) -lswsscommon -lpthread \ + -lprotobuf $(top_srcdir)/build/gen/librebgnoi.la tests_asan_SOURCES = $(tests_SOURCES) tests_asan_CFLAGS = $(DBGFLAGS) $(AM_CFLAGS) $(CFLAGS_COMMON) $(CFLAGS_GTEST) $(CFLAGS_ASAN) $(CFLAGS_SAI) tests_asan_CPPFLAGS = $(DBGFLAGS) $(AM_CFLAGS) $(CFLAGS_COMMON) $(CFLAGS_GTEST) $(CFLAGS_ASAN) $(CFLAGS_SAI) tests_asan_LDFLAGS = $(CFLAGS_ASAN) -tests_asan_LDADD = $(LDADD_GTEST) -lswsscommon -lpthread -lprotobuf +tests_asan_LDADD = $(LDADD_GTEST) -lswsscommon -lpthread -lprotobuf \ + $(top_srcdir)/build/gen/librebgnoi.la + tests_tsan_SOURCES = $(tests_SOURCES) tests_tsan_CFLAGS = $(DBGFLAGS) $(AM_CFLAGS) $(CFLAGS_COMMON) $(CFLAGS_GTEST) $(CFLAGS_TSAN) $(CFLAGS_SAI) tests_tsan_CPPFLAGS = $(DBGFLAGS) $(AM_CFLAGS) $(CFLAGS_COMMON) $(CFLAGS_GTEST) $(CFLAGS_TSAN) $(CFLAGS_SAI) tests_tsan_LDFLAGS = $(CFLAGS_TSAN) -tests_tsan_LDADD = $(LDADD_GTEST) -lswsscommon -lpthread -lprotobuf +tests_tsan_LDADD = $(LDADD_GTEST) -lswsscommon -lpthread -lprotobuf \ + $(top_srcdir)/build/gen/librebgnoi.la tests_usan_SOURCES = $(tests_SOURCES) tests_usan_CFLAGS = $(DBGFLAGS) $(AM_CFLAGS) $(CFLAGS_COMMON) $(CFLAGS_GTEST) $(CFLAGS_USAN) $(CFLAGS_SAI) tests_usan_CPPFLAGS = $(DBGFLAGS) $(AM_CFLAGS) $(CFLAGS_COMMON) $(CFLAGS_GTEST) $(CFLAGS_USAN) $(CFLAGS_SAI) tests_usan_LDFLAGS = $(CFLAGS_USAN) -tests_usan_LDADD = $(LDADD_GTEST) -lswsscommon -lpthread -lprotobuf +tests_usan_LDADD = $(LDADD_GTEST) -lswsscommon -lpthread -lprotobuf \ + $(top_srcdir)/build/gen/librebgnoi.la