From 21ba8ae5203f8d239590b9127e24dfec2f8dbbad Mon Sep 17 00:00:00 2001 From: akarneliuk Date: Sat, 9 Mar 2024 21:39:37 +0000 Subject: [PATCH 1/2] 0.8.14 --- README.rst | 5 +- pygnmi/__init__.py | 3 +- pygnmi/arg_parser.py | 8 +- pygnmi/client.py | 126 ++++++++++++++++++++------------ pygnmi/create_gnmi_extension.py | 5 +- pygnmi/create_gnmi_path.py | 39 +++++----- pygnmi/tools.py | 69 ++++++++++------- scripts/pygnmicli | 19 ++++- setup.py | 2 +- 9 files changed, 174 insertions(+), 102 deletions(-) diff --git a/README.rst b/README.rst index e2e9294..f9b201a 100644 --- a/README.rst +++ b/README.rst @@ -86,6 +86,9 @@ Contributors Dev Log ======= +Release **0.8.14**: +- Number of minor bug fixes and improvements. + Release **0.8.13**: - Number of minor bug fixes and improvements. @@ -430,7 +433,7 @@ Release **0.1.0**: (c)2020-2022, karneliuk.com -.. |version| image:: https://img.shields.io/static/v1?label=latest&message=v0.8.13&color=success +.. |version| image:: https://img.shields.io/static/v1?label=latest&message=v0.8.14&color=success .. _version: https://pypi.org/project/pygnmi/ .. |tag| image:: https://img.shields.io/static/v1?label=status&message=stable&color=success .. _tag: https://pypi.org/project/pygnmi/ diff --git a/pygnmi/__init__.py b/pygnmi/__init__.py index fb7a267..646c041 100644 --- a/pygnmi/__init__.py +++ b/pygnmi/__init__.py @@ -2,4 +2,5 @@ pyGNMI module to manage network devices with gNMI (c)2020-2023, Karneliuk """ -__version__ = "0.8.12" + +__version__ = "0.8.14" diff --git a/pygnmi/arg_parser.py b/pygnmi/arg_parser.py index e9dba5f..de833e4 100644 --- a/pygnmi/arg_parser.py +++ b/pygnmi/arg_parser.py @@ -2,7 +2,6 @@ Module to process arguments used in pygnmi cli """ - # Modules import argparse import re @@ -122,6 +121,13 @@ def parse_args(msg): nargs="+", help="gNMI paths of interest in XPath format, space separated", ) + parser.add_argument( + "--gnmi-prefix", + type=str, + required=False, + default="", + help="gNMI prefix, which is shared across multiple paths of interest in XPath forma.", + ) parser.add_argument( "--gnmi-path-target", type=str, diff --git a/pygnmi/client.py b/pygnmi/client.py index b6fcec7..9aa992e 100644 --- a/pygnmi/client.py +++ b/pygnmi/client.py @@ -1,6 +1,6 @@ """ pyGNMI module to manage network devices with gNMI -(c)2020-2023, Karneliuk +(c)2020-2024, Karneliuk """ # Modules @@ -108,7 +108,7 @@ def __init__( if "keepalive_time_ms" in kwargs: self.configureKeepalive(**kwargs) - self.__grpc_proxy = os.getenv('grpc_proxy') + self.__grpc_proxy = os.getenv("grpc_proxy") def configureKeepalive( self, @@ -186,14 +186,14 @@ def connect(self, timeout: int = None): # create tunnel to target s.send(f"CONNECT {self.__target[0]}:{self.__target[1]} HTTP/1.0\r\n\r\n".encode()) buf = s.recv(8192) - if buf[9:12] != b'200': + if buf[9:12] != b"200": raise gNMIException(f"Didn't get a 200 from the proxy, instead: {buf})") # upgrade socket to ssl - ignore certifcate errors since we only want # to get the certificate and don't transfer sensitive data ctx = ssl.create_default_context() ctx.check_hostname = False ctx.verify_mode = ssl.CERT_NONE - cert = ctx.wrap_socket(s, server_hostname = self.__target[0]).getpeercert(True) + cert = ctx.wrap_socket(s, server_hostname=self.__target[0]).getpeercert(True) ssl_cert = ssl.DER_cert_to_PEM_cert(cert).encode("utf-8") else: ssl_cert = ssl.get_server_certificate((self.__target[0], self.__target[1])).encode("utf-8") @@ -209,9 +209,9 @@ def connect(self, timeout: int = None): # Collect Certificate's Comman Name ssl_cert_common_name = None try: - ssl_cert_common_name = ssl_cert_deserialized.subject.get_attributes_for_oid((x509.oid.NameOID.COMMON_NAME))[ - 0 - ].value + ssl_cert_common_name = ssl_cert_deserialized.subject.get_attributes_for_oid( + (x509.oid.NameOID.COMMON_NAME) + )[0].value except BaseException as err: logger.warning(f"Cannot get Common Name: {err}") @@ -256,7 +256,9 @@ def connect(self, timeout: int = None): # Set up SSL channel credentials if self.__path_key and self.__path_root: - cert = grpc.ssl_channel_credentials(root_certificates=root_cert, private_key=key, certificate_chain=ssl_cert) + cert = grpc.ssl_channel_credentials( + root_certificates=root_cert, private_key=key, certificate_chain=ssl_cert + ) else: cert = grpc.ssl_channel_credentials(ssl_cert) @@ -421,7 +423,9 @@ def get(self, prefix: str = "", path: list = None, target: str = None, datatype: try: pb_datatype = GetRequest.DataType.Value(datatype.upper()) except ValueError: - logger.error(f"The GetRequest data type \"{datatype}\" is not within the defined range. Using default type 'all'.") + logger.error( + f"The GetRequest data type \"{datatype}\" is not within the defined range. Using default type 'all'." + ) pb_datatype = 0 # Set Protobuf value for encoding @@ -448,7 +452,9 @@ def get(self, prefix: str = "", path: list = None, target: str = None, datatype: raise gNMIException("Conversion of gNMI paths to the Protobuf format failed", e) try: - gnmi_message_request = GetRequest(prefix=protobuf_prefix, path=protobuf_paths, type=pb_datatype, encoding=pb_encoding) + gnmi_message_request = GetRequest( + prefix=protobuf_prefix, path=protobuf_paths, type=pb_datatype, encoding=pb_encoding + ) debug_gnmi_msg(self.__debug, gnmi_message_request, "gNMI request") gnmi_message_response = self.__stub.Get(gnmi_message_request, metadata=self.__metadata) @@ -465,19 +471,25 @@ def get(self, prefix: str = "", path: list = None, target: str = None, datatype: notification_container = {} # Message Notification, Key timestamp - notification_container.update( - {"timestamp": notification.timestamp} - ) if notification.timestamp else notification_container.update({"timestamp": 0}) + ( + notification_container.update({"timestamp": notification.timestamp}) + if notification.timestamp + else notification_container.update({"timestamp": 0}) + ) # Message Notification, Key prefix - notification_container.update( - {"prefix": gnmi_path_degenerator(notification.prefix)} - ) if notification.prefix else notification_container.update({"prefix": None}) + ( + notification_container.update({"prefix": gnmi_path_degenerator(notification.prefix)}) + if notification.prefix + else notification_container.update({"prefix": None}) + ) # Message Notification, Key alias - notification_container.update( - {"alias": notification.alias} - ) if notification.alias else notification_container.update({"alias": None}) + ( + notification_container.update({"alias": notification.alias}) + if notification.alias + else notification_container.update({"alias": None}) + ) # Message Notification, Key atomic notification_container.update({"atomic": notification.atomic}) @@ -490,9 +502,11 @@ def get(self, prefix: str = "", path: list = None, target: str = None, datatype: update_container = {} # Message Update, Key path - update_container.update( - {"path": gnmi_path_degenerator(update_msg.path)} - ) if update_msg.path else update_container.update({"path": None}) + ( + update_container.update({"path": gnmi_path_degenerator(update_msg.path)}) + if update_msg.path + else update_container.update({"path": None}) + ) # Message Update, Key val if update_msg.HasField("val"): @@ -502,7 +516,9 @@ def get(self, prefix: str = "", path: list = None, target: str = None, datatype: ) elif update_msg.val.HasField("json_val"): - update_container.update({"val": process_potentially_json_value(update_msg.val.json_val)}) + update_container.update( + {"val": process_potentially_json_value(update_msg.val.json_val)} + ) elif update_msg.val.HasField("string_val"): update_container.update({"val": update_msg.val.string_val}) @@ -627,13 +643,18 @@ def set( if replace: paths_to_collect_list.extend([path_tuple[0] for path_tuple in replace]) - pre_change_dict = self.get(prefix=prefix, - path=paths_to_collect_list, - encoding=encoding, - datatype='config') + pre_change_dict = self.get( + prefix=prefix, path=paths_to_collect_list, encoding=encoding, datatype="config" + ) if gnmi_extension: - gnmi_message_request = SetRequest(prefix=protobuf_prefix, delete=del_protobuf_paths, update=update_msg, replace=replace_msg, extension=[gnmi_extension]) + gnmi_message_request = SetRequest( + prefix=protobuf_prefix, + delete=del_protobuf_paths, + update=update_msg, + replace=replace_msg, + extension=[gnmi_extension], + ) else: gnmi_message_request = SetRequest( prefix=protobuf_prefix, delete=del_protobuf_paths, update=update_msg, replace=replace_msg @@ -647,14 +668,18 @@ def set( response = {} # Message SetResponse, Key timestamp - response.update( - {"timestamp": gnmi_message_response.timestamp} - ) if gnmi_message_response.timestamp else response.update({"timestamp": 0}) + ( + response.update({"timestamp": gnmi_message_response.timestamp}) + if gnmi_message_response.timestamp + else response.update({"timestamp": 0}) + ) # Message SetResponse, Key prefix - response.update( - {"prefix": gnmi_path_degenerator(gnmi_message_response.prefix)} - ) if gnmi_message_response.prefix else response.update({"prefix": None}) + ( + response.update({"prefix": gnmi_path_degenerator(gnmi_message_response.prefix)}) + if gnmi_message_response.prefix + else response.update({"prefix": None}) + ) if gnmi_message_response.response: response.update({"response": []}) @@ -663,9 +688,11 @@ def set( response_container = {} # Message UpdateResult, Key path - response_container.update( - {"path": gnmi_path_degenerator(response_entry.path)} - ) if response_entry.path else response_container.update({"path": None}) + ( + response_container.update({"path": gnmi_path_degenerator(response_entry.path)}) + if response_entry.path + else response_container.update({"path": None}) + ) ## Message UpdateResult, Key op if response_entry.op: @@ -684,11 +711,13 @@ def set( ## Adding collection of data for diff before the change if self.__show_diff: - post_change_dict = self.get(path=paths_to_collect_list, encoding=encoding, datatype='config') + post_change_dict = self.get(path=paths_to_collect_list, encoding=encoding, datatype="config") is_printable = True if self.__show_diff == "print" else False - diff_list = diff_openconfig(pre_dict=pre_change_dict, post_dict=post_change_dict, is_printable=is_printable) + diff_list = diff_openconfig( + pre_dict=pre_change_dict, post_dict=post_change_dict, is_printable=is_printable + ) if diff_list and self.__show_diff == "get": return response, diff_list @@ -1084,8 +1113,7 @@ def next(self): Blocks until one is available.""" return self._next_update(timeout=None) - def _next_update(self, timeout=None): - ... + def _next_update(self, timeout=None): ... # Overridden by each concrete class, as they each have slightly different # behaviour around waiting (or not) for a sync_response flag @@ -1203,9 +1231,11 @@ def telemetryParser(in_message=None, debug: bool = False): if in_message.HasField("update"): response.update({"update": {"update": []}}) - response["update"].update( - {"timestamp": in_message.update.timestamp} - ) if in_message.update.timestamp else in_message.update({"timestamp": 0}) + ( + response["update"].update({"timestamp": in_message.update.timestamp}) + if in_message.update.timestamp + else in_message.update({"timestamp": 0}) + ) if in_message.update.HasField("prefix"): resource_prefix = [] @@ -1227,9 +1257,11 @@ def telemetryParser(in_message=None, debug: bool = False): update_container = {} # Message Update, Key path - update_container.update( - {"path": gnmi_path_degenerator(update_msg.path)} - ) if update_msg.path else update_container.update({"path": None}) + ( + update_container.update({"path": gnmi_path_degenerator(update_msg.path)}) + if update_msg.path + else update_container.update({"path": None}) + ) if update_msg.val: if update_msg.val.HasField("json_ietf_val"): diff --git a/pygnmi/create_gnmi_extension.py b/pygnmi/create_gnmi_extension.py index 09ed72c..8ec702c 100644 --- a/pygnmi/create_gnmi_extension.py +++ b/pygnmi/create_gnmi_extension.py @@ -1,5 +1,6 @@ """This module contains the converter of dict() to Extension() GRPC class -(c)2019-2022, karneliuk.com""" +(c)2019-2024, karneliuk.com""" + # Modules import datetime from pygnmi.spec.v080.gnmi_ext_pb2 import Extension @@ -59,7 +60,7 @@ def _get_time_ns_epoch(time_in_question) -> int: result = int(time_stamp.timestamp() * pow(10, 9)) except Exception as err: - err.args += (f"Time conversion error: cannot convert {time_in_question}, use 'yyyy-mm-ddTHH:MM:SSZ' format. Details: {err}") + err.args += f"Time conversion error: cannot convert {time_in_question}, use 'yyyy-mm-ddTHH:MM:SSZ' format. Details: {err}" raise return result diff --git a/pygnmi/create_gnmi_path.py b/pygnmi/create_gnmi_path.py index 6338003..dea59e1 100644 --- a/pygnmi/create_gnmi_path.py +++ b/pygnmi/create_gnmi_path.py @@ -1,14 +1,14 @@ """This module contains the converter of str() to GNMI Path class. -#(c)2019-2022, karneliuk.com +#(c)2019-202$, karneliuk.com """ + # Modules import re from pygnmi.spec.v080.gnmi_pb2 import Path # User-defined functions -def gnmi_path_generator(path_in_question: str, - target: str = None): +def gnmi_path_generator(path_in_question: str, target: str = None): """Parses an XPath expression into a gNMI Path Accepted syntaxes: @@ -27,36 +27,36 @@ def gnmi_path_generator(path_in_question: str, """ gnmi_path = Path() keys = [] - temp_path = '' - temp_non_modified = '' + temp_path = "" + temp_non_modified = "" if target: gnmi_path.target = target # Subtracting all the keys from the elements and storing them separately if path_in_question: - if re.match(r'.*?\[.+?=.*?\].*?', path_in_question): - split_list = re.findall(r'.*?\[.+?=.*?\].*?', path_in_question) + if re.match(r".*?\[.+?=.*?\].*?", path_in_question): + split_list = re.findall(r".*?\[.+?=.*?\].*?", path_in_question) for sle in split_list: temp_non_modified += sle - temp_key, temp_value = re.sub(r'.*?\[(.+?)\].*?', r'\g<1>', sle).split('=') + temp_key, temp_value = re.sub(r".*?\[(.+?)\].*?", r"\g<1>", sle).split("=") keys.append({temp_key: temp_value}) - sle = re.sub(r'(.*?\[).+?(\].*?)', fr'\g<1>{len(keys) - 1}\g<2>', sle) + sle = re.sub(r"(.*?\[).+?(\].*?)", rf"\g<1>{len(keys) - 1}\g<2>", sle) temp_path += sle if len(temp_non_modified) < len(path_in_question): - temp_path += path_in_question.replace(temp_non_modified, '') + temp_path += path_in_question.replace(temp_non_modified, "") path_in_question = temp_path - path_elements = path_in_question.split('/') + path_elements = path_in_question.split("/") path_elements = list(filter(None, path_elements)) # Check if first path element contains a colon, and use that to set origin - if path_elements and re.match('.+?:.*?', path_elements[0]): + if path_elements and re.match(".+?:.*?", path_elements[0]): pe_entry = path_elements[0] - parts = pe_entry.split(':', 1) + parts = pe_entry.split(":", 1) gnmi_path.origin = parts[0] if len(parts) > 1 and parts[1]: @@ -65,9 +65,9 @@ def gnmi_path_generator(path_in_question: str, del path_elements[0] for pe_entry in path_elements: - if re.match(r'.+?\[\d+?\]', pe_entry): + if re.match(r".+?\[\d+?\]", pe_entry): element_keys = {} - path_info = [re.sub(']', '', en) for en in pe_entry.split('[')] + path_info = [re.sub("]", "", en) for en in pe_entry.split("[")] element = path_info.pop(0) for elem_key in path_info: @@ -82,22 +82,21 @@ def gnmi_path_generator(path_in_question: str, def gnmi_path_degenerator(gnmi_path) -> str: - """Parses a gNMI Path into an XPath expression - """ + """Parses a gNMI Path into an XPath expression""" result = None if gnmi_path and gnmi_path.elem: resource_path = [] for path_elem in gnmi_path.elem: - temp_path = '' + temp_path = "" if path_elem.name: temp_path += path_elem.name if path_elem.key: for pk_name, pk_value in sorted(path_elem.key.items()): - temp_path += f'[{pk_name}={pk_value}]' + temp_path += f"[{pk_name}={pk_value}]" resource_path.append(temp_path) - result = '/'.join(resource_path) + result = "/".join(resource_path) return result diff --git a/pygnmi/tools.py b/pygnmi/tools.py index d318425..fe0cada 100644 --- a/pygnmi/tools.py +++ b/pygnmi/tools.py @@ -1,4 +1,4 @@ -#(c)2019-2021, karneliuk.com +# (c)2019-2024, karneliuk.com # Modules import re @@ -7,18 +7,16 @@ # User-defined functions -def _dict_to_xpath(input_dict: dict, - parent_type_class: type, - pre_parent_type_class: type = dict) -> list: +def _dict_to_xpath(input_dict: dict, parent_type_class: type, pre_parent_type_class: type = dict) -> list: result = [] unique_id = "" if isinstance(input_dict, dict): for k1, v1 in input_dict.items(): if isinstance(v1, dict): - next_level_list = _dict_to_xpath(input_dict=v1, - parent_type_class=type(v1), - pre_parent_type_class=type(input_dict)) + next_level_list = _dict_to_xpath( + input_dict=v1, parent_type_class=type(v1), pre_parent_type_class=type(input_dict) + ) for nested_list in next_level_list: result.append(["/" + k1 + nested_list[0], nested_list[1]]) @@ -26,10 +24,10 @@ def _dict_to_xpath(input_dict: dict, elif isinstance(v1, list): for v2 in v1: if isinstance(v2, dict): - next_level_list = _dict_to_xpath(input_dict=v2, - parent_type_class=type(v2), - pre_parent_type_class=type(v1)) - + next_level_list = _dict_to_xpath( + input_dict=v2, parent_type_class=type(v2), pre_parent_type_class=type(v1) + ) + for nested_list in next_level_list: result.append(["/" + k1 + nested_list[0], nested_list[1]]) @@ -37,7 +35,7 @@ def _dict_to_xpath(input_dict: dict, if pre_parent_type_class == list and parent_type_class == dict: unique_id = f"[{k1}={v1}]" - result.append(["/" + k1, v1]) + result.append(["/" + k1, v1]) if unique_id: result = [[unique_id + nl[0], nl[1]] for nl in result] @@ -47,7 +45,7 @@ def _dict_to_xpath(input_dict: dict, def _get_unique_id(path_list: list, temp_elem: dict) -> str: result = "" - + for path_item in path_list: temp_elem = temp_elem[path_item] @@ -104,7 +102,7 @@ def diff_openconfig(pre_dict: dict, post_dict: dict, is_printable: bool = True) pre_path_list.append(entry_tuple[1].pop(0)) pre_path_list.append(entry_tuple[1].pop(0)) - + for elem in entry_tuple[1]: pre_path_list.append(elem) @@ -121,16 +119,32 @@ def diff_openconfig(pre_dict: dict, post_dict: dict, is_printable: bool = True) pre_path_list.append(elem_list[0]) if entry_tuple[0] == "remove": - result_list = _dict_to_xpath(input_dict=elem_list[-1], - parent_type_class=type(elem_list[-1])) - result_list = [["-", xpath_str + _get_unique_id(path_list=pre_path_list, - temp_elem=pre_dict) + nl[0], nl[1]] for nl in result_list] + result_list = _dict_to_xpath( + input_dict=elem_list[-1], parent_type_class=type(elem_list[-1]) + ) + result_list = [ + [ + "-", + xpath_str + _get_unique_id(path_list=pre_path_list, temp_elem=pre_dict) + nl[0], + nl[1], + ] + for nl in result_list + ] elif entry_tuple[0] == "add": - result_list = _dict_to_xpath(input_dict=elem_list[-1], - parent_type_class=type(elem_list[-1])) - result_list = [["+", xpath_str + _get_unique_id(path_list=pre_path_list, - temp_elem=post_dict) + nl[0], nl[1]] for nl in result_list] + result_list = _dict_to_xpath( + input_dict=elem_list[-1], parent_type_class=type(elem_list[-1]) + ) + result_list = [ + [ + "+", + xpath_str + + _get_unique_id(path_list=pre_path_list, temp_elem=post_dict) + + nl[0], + nl[1], + ] + for nl in result_list + ] else: result_list.append(["-", xpath_str, entry_tuple[2][0]]) @@ -143,21 +157,24 @@ def diff_openconfig(pre_dict: dict, post_dict: dict, is_printable: bool = True) if update_msg_list[0] == "update": if len(update_msg_list) > 1 and isinstance(update_msg_list[1], list): for update_content_dict in update_msg_list[1]: - if "path" in update_content_dict: + if "path" in update_content_dict: xpath_str += "/" + update_content_dict["path"] if "val" in update_content_dict: - result_list = _dict_to_xpath(input_dict=update_content_dict["val"], parent_type_class=type(update_content_dict["val"])) + result_list = _dict_to_xpath( + input_dict=update_content_dict["val"], + parent_type_class=type(update_content_dict["val"]), + ) result_list = [["+", xpath_str + nl[0], nl[1]] for nl in result_list] if result_list: - result.extend(result_list) + result.extend(result_list) if is_printable: for result_nested_list in result: print_str = " ".join([str(tr) for tr in result_nested_list]) - if re.match(r'^\+', print_str): + if re.match(r"^\+", print_str): print("\33[92m" + print_str + "\33[0m") else: diff --git a/scripts/pygnmicli b/scripts/pygnmicli index 30ef40c..a630369 100644 --- a/scripts/pygnmicli +++ b/scripts/pygnmicli @@ -1,5 +1,5 @@ #!/usr/bin/env python -# (c)2019-2022, karneliuk.com +# (c)2019-2024, karneliuk.com # Modules @@ -8,11 +8,13 @@ import logging import os import sys + # Own modules from pygnmi.arg_parser import parse_args from pygnmi.client import gNMIclient from pygnmi.artefacts.messages import msg + # Variables path_log = "log/execution.log" @@ -62,7 +64,13 @@ def main(): elif args.operation == "get": print(f"Doing {args.operation} request to {args.target}...") - result = GC.get(path=args.gnmi_path, datatype=args.datastore, encoding=args.encoding, target=args.gnmi_path_target) + result = GC.get( + prefix=args.gnmi_prefix, + path=args.gnmi_path, + datatype=args.datastore, + encoding=args.encoding, + target=args.gnmi_path_target, + ) elif args.operation.startswith("set"): print(f"Doing {args.operation} request to {args.target}...") @@ -82,7 +90,12 @@ def main(): elif args.operation.startswith("subscribe"): mode = args.operation.split("-")[1] subscription_list = [{"path": xpath, "mode": "target_defined"} for xpath in args.gnmi_path] - subscribe = {"subscription": subscription_list, "use_aliases": False, "mode": mode, "encoding": args.encoding} + subscribe = { + "subscription": subscription_list, + "use_aliases": False, + "mode": mode, + "encoding": args.encoding, + } # Set up extensions if args.ext_history_snapshot_time: diff --git a/setup.py b/setup.py index 6d44286..d721ece 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setup( name="pygnmi", packages=["pygnmi", "pygnmi.spec.v080", "pygnmi.artefacts"], - version="0.8.13", + version="0.8.14", license="bsd-3-clause", description="Pure Python gNMI client to manage network functions and collect telemetry.", long_description=long_description, From ed5227f1d9424b9ef3424f3835b5f079c336e3e9 Mon Sep 17 00:00:00 2001 From: akarneliuk Date: Sat, 9 Mar 2024 22:01:08 +0000 Subject: [PATCH 2/2] 0.8.14 --- README.rst | 5 + pygnmi/artefacts/messages.py | 28 +- pygnmi/client.py | 76 +- pygnmi/spec/v070/gnmi_ext_pb2.py | 573 ++-- pygnmi/spec/v070/gnmi_pb2.py | 4374 ++++++++++++++++++----------- pygnmi/spec/v070/gnmi_pb2_grpc.py | 179 +- pygnmi/spec/v080/gnmi_ext_pb2.py | 157 +- pygnmi/spec/v080/gnmi_pb2.py | 613 ++-- pygnmi/spec/v080/gnmi_pb2_grpc.py | 237 +- pygnmi/tools.py | 14 +- 10 files changed, 3817 insertions(+), 2439 deletions(-) diff --git a/README.rst b/README.rst index f9b201a..a5670bc 100644 --- a/README.rst +++ b/README.rst @@ -88,6 +88,11 @@ Dev Log Release **0.8.14**: - Number of minor bug fixes and improvements. +- Adding support of `prefix` to `pygnmicli`. +- `Adding error propagation from child thread to main thread ` +- `Changes to u_val ` +- `Adding Master Arbitration support for Set ` +- `Adding bytes_val and leaflist_val with string_val parsing ` Release **0.8.13**: - Number of minor bug fixes and improvements. diff --git a/pygnmi/artefacts/messages.py b/pygnmi/artefacts/messages.py index e4e2d67..0827347 100644 --- a/pygnmi/artefacts/messages.py +++ b/pygnmi/artefacts/messages.py @@ -1,16 +1,16 @@ -#(c)2020, Anton Karneliuk +# (c)2020, Anton Karneliuk msg = { - 'unknown_arg': 'There is no such argument. Run \'--help\' for details.', - 'help': 'The following keys are availble:\n\n -u (--user): Provide the username to connect to the network element\n -p (--pass): Provide the password to connect to the network element\n -h (--help): Provide the help on the available keys\n -t (--target): Provide the list of endpoint in \'host:port\' format\n -o (--operation): Prvoide the type of gNMI request\n -c (--cert): Provide the path towards the certificate\n --insecure: Define whether gRPC channel is encrypted or not\n --gnmi-path: Provide path to the resource at the network function\n --print: Define whether Protobuf messages shall be printed in the STDOUT', - 'bad_host': 'The host address is malformed. It shall be provided in a format \'ip_address:grpc_port\'.', - 'not_defined_user': 'The username is not defined. The execution is terminated.', - 'not_defined_pass': 'The password is not defined.', - 'not_defined_target': 'There are no hosts provided. The execution is terminated.', - 'not_enough_arg': 'There are not enough arguments.', - 'wrong_data': 'The argument is provided in the wrong type (e.g. string instead of integer).', - 'not_allowed_op': 'The request gNMI operation type is now allowed.', - 'not_defined_op': 'The gNMI operation type is not defined.', - 'not_defined_path': 'The gNMI path is ot defined with Get or Set operation.', - 'not_defined_set': 'The gNMI path (for delete operation) or update messages (for update or replace operation) are not defined.' -} \ No newline at end of file + "unknown_arg": "There is no such argument. Run '--help' for details.", + "help": "The following keys are availble:\n\n -u (--user): Provide the username to connect to the network element\n -p (--pass): Provide the password to connect to the network element\n -h (--help): Provide the help on the available keys\n -t (--target): Provide the list of endpoint in 'host:port' format\n -o (--operation): Prvoide the type of gNMI request\n -c (--cert): Provide the path towards the certificate\n --insecure: Define whether gRPC channel is encrypted or not\n --gnmi-path: Provide path to the resource at the network function\n --print: Define whether Protobuf messages shall be printed in the STDOUT", + "bad_host": "The host address is malformed. It shall be provided in a format 'ip_address:grpc_port'.", + "not_defined_user": "The username is not defined. The execution is terminated.", + "not_defined_pass": "The password is not defined.", + "not_defined_target": "There are no hosts provided. The execution is terminated.", + "not_enough_arg": "There are not enough arguments.", + "wrong_data": "The argument is provided in the wrong type (e.g. string instead of integer).", + "not_allowed_op": "The request gNMI operation type is now allowed.", + "not_defined_op": "The gNMI operation type is not defined.", + "not_defined_path": "The gNMI path is ot defined with Get or Set operation.", + "not_defined_set": "The gNMI path (for delete operation) or update messages (for update or replace operation) are not defined.", +} diff --git a/pygnmi/client.py b/pygnmi/client.py index 117bca5..3a98111 100644 --- a/pygnmi/client.py +++ b/pygnmi/client.py @@ -128,7 +128,10 @@ def configureKeepalive( self.__options += [ ("grpc.keepalive_time_ms", keepalive_time_ms), ("grpc.keepalive_timeout_ms", keepalive_timeout_ms), - ("grpc.keepalive_permit_without_calls", 1 if keepalive_permit_without_calls else 0), + ( + "grpc.keepalive_permit_without_calls", + 1 if keepalive_permit_without_calls else 0, + ), ("grpc.http2.max_pings_without_data", max_pings_without_data), ] @@ -200,7 +203,10 @@ def connect(self, timeout: int = None): except Exception as e: logger.error(f"The SSL certificate cannot be retrieved from {self.__target}") - raise gNMIException(f"The SSL certificate cannot be retrieved from {self.__target}", e) + raise gNMIException( + f"The SSL certificate cannot be retrieved from {self.__target}", + e, + ) if self.__skip_verify: # Work with the certificate contents @@ -257,7 +263,9 @@ def connect(self, timeout: int = None): # Set up SSL channel credentials if self.__path_key and self.__path_root: cert = grpc.ssl_channel_credentials( - root_certificates=root_cert, private_key=key, certificate_chain=ssl_cert + root_certificates=root_cert, + private_key=key, + certificate_chain=ssl_cert, ) else: @@ -340,7 +348,11 @@ def capabilities(self): for ree in gnmi_message_response.supported_models: response["supported_models"].append( - {"name": ree.name, "organization": ree.organization, "version": ree.version} + { + "name": ree.name, + "organization": ree.organization, + "version": ree.version, + } ) if gnmi_message_response.supported_encodings: @@ -390,7 +402,14 @@ def convert_encoding(self, requested_encoding: str, is_encoding_explicitly_set: encoding = requested_encoding or self.__encoding return Encoding.Value(encoding.upper()) # may raise ValueError - def get(self, prefix: str = "", path: list = None, target: str = None, datatype: str = "all", encoding: str = None): + def get( + self, + prefix: str = "", + path: list = None, + target: str = None, + datatype: str = "all", + encoding: str = None, + ): """ Collecting the information about the resources from defined paths. @@ -453,7 +472,10 @@ def get(self, prefix: str = "", path: list = None, target: str = None, datatype: try: gnmi_message_request = GetRequest( - prefix=protobuf_prefix, path=protobuf_paths, type=pb_datatype, encoding=pb_encoding + prefix=protobuf_prefix, + path=protobuf_paths, + type=pb_datatype, + encoding=pb_encoding, ) debug_gnmi_msg(self.__debug, gnmi_message_request, "gNMI request") @@ -644,7 +666,10 @@ def set( paths_to_collect_list.extend([path_tuple[0] for path_tuple in replace]) pre_change_dict = self.get( - prefix=prefix, path=paths_to_collect_list, encoding=encoding, datatype="config" + prefix=prefix, + path=paths_to_collect_list, + encoding=encoding, + datatype="config", ) if gnmi_extension: @@ -657,7 +682,10 @@ def set( ) else: gnmi_message_request = SetRequest( - prefix=protobuf_prefix, delete=del_protobuf_paths, update=update_msg, replace=replace_msg + prefix=protobuf_prefix, + delete=del_protobuf_paths, + update=update_msg, + replace=replace_msg, ) debug_gnmi_msg(self.__debug, gnmi_message_request, "gNMI request") @@ -716,7 +744,9 @@ def set( is_printable = True if self.__show_diff == "print" else False diff_list = diff_openconfig( - pre_dict=pre_change_dict, post_dict=post_change_dict, is_printable=is_printable + pre_dict=pre_change_dict, + post_dict=post_change_dict, + is_printable=is_printable, ) if diff_list and self.__show_diff == "get": @@ -737,7 +767,12 @@ def set( raise gNMIException(f"Set failed: {e}", e) def set_with_retry( - self, delete: list = None, replace: list = None, update: list = None, encoding: str = None, retry_delay: int = 3 + self, + delete: list = None, + replace: list = None, + update: list = None, + encoding: str = None, + retry_delay: int = 3, ): """ Performs a set and retries (once) after a temporary failure with StatusCode.FAILED_PRECONDITION @@ -890,7 +925,13 @@ def _build_subscriptionrequest(self, subscribe: dict, target: str = None, extens else: return SubscribeRequest(subscribe=request) - def subscribe(self, subscribe: dict = None, poll: bool = False, aliases: list = None, timeout: float = 0.0): + def subscribe( + self, + subscribe: dict = None, + poll: bool = False, + aliases: list = None, + timeout: float = 0.0, + ): """ Implementation of the subscribe gNMI RPC to pool """ @@ -1113,7 +1154,8 @@ def next(self): Blocks until one is available.""" return self._next_update(timeout=None) - def _next_update(self, timeout=None): ... + def _next_update(self, timeout=None): + ... # Overridden by each concrete class, as they each have slightly different # behaviour around waiting (or not) for a sync_response flag @@ -1298,16 +1340,16 @@ def telemetryParser(in_message=None, debug: bool = False): update_container.update({"val": update_msg.val.proto_bytes}) elif update_msg.val.HasField("bytes_val"): - val_binary = ''.join(format(byte, '08b') for byte in update_msg.val.bytes_val) + val_binary = "".join(format(byte, "08b") for byte in update_msg.val.bytes_val) val_decimal = struct.unpack("f", struct.pack("I", int(val_binary, 2)))[0] - update_container.update({'val': val_decimal}) - - elif update_msg.val.HasField('leaflist_val'): + update_container.update({"val": val_decimal}) + + elif update_msg.val.HasField("leaflist_val"): val_leaflist = update_msg.val element_str = "" for element in val_leaflist.leaflist_val.element: element_str += element - update_container.update({'val': element_str}) + update_container.update({"val": element_str}) response["update"]["update"].append(update_container) diff --git a/pygnmi/spec/v070/gnmi_ext_pb2.py b/pygnmi/spec/v070/gnmi_ext_pb2.py index 0e8c835..7e4e861 100644 --- a/pygnmi/spec/v070/gnmi_ext_pb2.py +++ b/pygnmi/spec/v070/gnmi_ext_pb2.py @@ -7,40 +7,39 @@ from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() - - DESCRIPTOR = _descriptor.FileDescriptor( - name='gnmi_ext.proto', - package='gnmi_ext', - syntax='proto3', - serialized_options=b'Z)github.com/openconfig/gnmi/proto/gnmi_ext', - serialized_pb=b'\n\x0egnmi_ext.proto\x12\x08gnmi_ext\"\x86\x01\n\tExtension\x12\x37\n\x0eregistered_ext\x18\x01 \x01(\x0b\x32\x1d.gnmi_ext.RegisteredExtensionH\x00\x12\x39\n\x12master_arbitration\x18\x02 \x01(\x0b\x32\x1b.gnmi_ext.MasterArbitrationH\x00\x42\x05\n\x03\x65xt\"E\n\x13RegisteredExtension\x12!\n\x02id\x18\x01 \x01(\x0e\x32\x15.gnmi_ext.ExtensionID\x12\x0b\n\x03msg\x18\x02 \x01(\x0c\"Y\n\x11MasterArbitration\x12\x1c\n\x04role\x18\x01 \x01(\x0b\x32\x0e.gnmi_ext.Role\x12&\n\x0b\x65lection_id\x18\x02 \x01(\x0b\x32\x11.gnmi_ext.Uint128\"$\n\x07Uint128\x12\x0c\n\x04high\x18\x01 \x01(\x04\x12\x0b\n\x03low\x18\x02 \x01(\x04\"\x12\n\x04Role\x12\n\n\x02id\x18\x01 \x01(\t*3\n\x0b\x45xtensionID\x12\r\n\tEID_UNSET\x10\x00\x12\x15\n\x10\x45ID_EXPERIMENTAL\x10\xe7\x07\x42+Z)github.com/openconfig/gnmi/proto/gnmi_extb\x06proto3' + name="gnmi_ext.proto", + package="gnmi_ext", + syntax="proto3", + serialized_options=b"Z)github.com/openconfig/gnmi/proto/gnmi_ext", + serialized_pb=b'\n\x0egnmi_ext.proto\x12\x08gnmi_ext"\x86\x01\n\tExtension\x12\x37\n\x0eregistered_ext\x18\x01 \x01(\x0b\x32\x1d.gnmi_ext.RegisteredExtensionH\x00\x12\x39\n\x12master_arbitration\x18\x02 \x01(\x0b\x32\x1b.gnmi_ext.MasterArbitrationH\x00\x42\x05\n\x03\x65xt"E\n\x13RegisteredExtension\x12!\n\x02id\x18\x01 \x01(\x0e\x32\x15.gnmi_ext.ExtensionID\x12\x0b\n\x03msg\x18\x02 \x01(\x0c"Y\n\x11MasterArbitration\x12\x1c\n\x04role\x18\x01 \x01(\x0b\x32\x0e.gnmi_ext.Role\x12&\n\x0b\x65lection_id\x18\x02 \x01(\x0b\x32\x11.gnmi_ext.Uint128"$\n\x07Uint128\x12\x0c\n\x04high\x18\x01 \x01(\x04\x12\x0b\n\x03low\x18\x02 \x01(\x04"\x12\n\x04Role\x12\n\n\x02id\x18\x01 \x01(\t*3\n\x0b\x45xtensionID\x12\r\n\tEID_UNSET\x10\x00\x12\x15\n\x10\x45ID_EXPERIMENTAL\x10\xe7\x07\x42+Z)github.com/openconfig/gnmi/proto/gnmi_extb\x06proto3', ) _EXTENSIONID = _descriptor.EnumDescriptor( - name='ExtensionID', - full_name='gnmi_ext.ExtensionID', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='EID_UNSET', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='EID_EXPERIMENTAL', index=1, number=999, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=385, - serialized_end=436, + name="ExtensionID", + full_name="gnmi_ext.ExtensionID", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor(name="EID_UNSET", index=0, number=0, serialized_options=None, type=None), + _descriptor.EnumValueDescriptor( + name="EID_EXPERIMENTAL", + index=1, + number=999, + serialized_options=None, + type=None, + ), + ], + containing_type=None, + serialized_options=None, + serialized_start=385, + serialized_end=436, ) _sym_db.RegisterEnumDescriptor(_EXTENSIONID) @@ -49,244 +48,350 @@ EID_EXPERIMENTAL = 999 - _EXTENSION = _descriptor.Descriptor( - name='Extension', - full_name='gnmi_ext.Extension', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='registered_ext', full_name='gnmi_ext.Extension.registered_ext', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='master_arbitration', full_name='gnmi_ext.Extension.master_arbitration', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='ext', full_name='gnmi_ext.Extension.ext', - index=0, containing_type=None, fields=[]), - ], - serialized_start=29, - serialized_end=163, + name="Extension", + full_name="gnmi_ext.Extension", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="registered_ext", + full_name="gnmi_ext.Extension.registered_ext", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="master_arbitration", + full_name="gnmi_ext.Extension.master_arbitration", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="ext", + full_name="gnmi_ext.Extension.ext", + index=0, + containing_type=None, + fields=[], + ), + ], + serialized_start=29, + serialized_end=163, ) _REGISTEREDEXTENSION = _descriptor.Descriptor( - name='RegisteredExtension', - full_name='gnmi_ext.RegisteredExtension', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='gnmi_ext.RegisteredExtension.id', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='msg', full_name='gnmi_ext.RegisteredExtension.msg', index=1, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=165, - serialized_end=234, + name="RegisteredExtension", + full_name="gnmi_ext.RegisteredExtension", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="id", + full_name="gnmi_ext.RegisteredExtension.id", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="msg", + full_name="gnmi_ext.RegisteredExtension.msg", + index=1, + number=2, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"", + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=165, + serialized_end=234, ) _MASTERARBITRATION = _descriptor.Descriptor( - name='MasterArbitration', - full_name='gnmi_ext.MasterArbitration', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='role', full_name='gnmi_ext.MasterArbitration.role', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='election_id', full_name='gnmi_ext.MasterArbitration.election_id', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=236, - serialized_end=325, + name="MasterArbitration", + full_name="gnmi_ext.MasterArbitration", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="role", + full_name="gnmi_ext.MasterArbitration.role", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="election_id", + full_name="gnmi_ext.MasterArbitration.election_id", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=236, + serialized_end=325, ) _UINT128 = _descriptor.Descriptor( - name='Uint128', - full_name='gnmi_ext.Uint128', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='high', full_name='gnmi_ext.Uint128.high', index=0, - number=1, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='low', full_name='gnmi_ext.Uint128.low', index=1, - number=2, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=327, - serialized_end=363, + name="Uint128", + full_name="gnmi_ext.Uint128", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="high", + full_name="gnmi_ext.Uint128.high", + index=0, + number=1, + type=4, + cpp_type=4, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="low", + full_name="gnmi_ext.Uint128.low", + index=1, + number=2, + type=4, + cpp_type=4, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=327, + serialized_end=363, ) _ROLE = _descriptor.Descriptor( - name='Role', - full_name='gnmi_ext.Role', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='gnmi_ext.Role.id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=365, - serialized_end=383, + name="Role", + full_name="gnmi_ext.Role", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="id", + full_name="gnmi_ext.Role.id", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=365, + serialized_end=383, ) -_EXTENSION.fields_by_name['registered_ext'].message_type = _REGISTEREDEXTENSION -_EXTENSION.fields_by_name['master_arbitration'].message_type = _MASTERARBITRATION -_EXTENSION.oneofs_by_name['ext'].fields.append( - _EXTENSION.fields_by_name['registered_ext']) -_EXTENSION.fields_by_name['registered_ext'].containing_oneof = _EXTENSION.oneofs_by_name['ext'] -_EXTENSION.oneofs_by_name['ext'].fields.append( - _EXTENSION.fields_by_name['master_arbitration']) -_EXTENSION.fields_by_name['master_arbitration'].containing_oneof = _EXTENSION.oneofs_by_name['ext'] -_REGISTEREDEXTENSION.fields_by_name['id'].enum_type = _EXTENSIONID -_MASTERARBITRATION.fields_by_name['role'].message_type = _ROLE -_MASTERARBITRATION.fields_by_name['election_id'].message_type = _UINT128 -DESCRIPTOR.message_types_by_name['Extension'] = _EXTENSION -DESCRIPTOR.message_types_by_name['RegisteredExtension'] = _REGISTEREDEXTENSION -DESCRIPTOR.message_types_by_name['MasterArbitration'] = _MASTERARBITRATION -DESCRIPTOR.message_types_by_name['Uint128'] = _UINT128 -DESCRIPTOR.message_types_by_name['Role'] = _ROLE -DESCRIPTOR.enum_types_by_name['ExtensionID'] = _EXTENSIONID +_EXTENSION.fields_by_name["registered_ext"].message_type = _REGISTEREDEXTENSION +_EXTENSION.fields_by_name["master_arbitration"].message_type = _MASTERARBITRATION +_EXTENSION.oneofs_by_name["ext"].fields.append(_EXTENSION.fields_by_name["registered_ext"]) +_EXTENSION.fields_by_name["registered_ext"].containing_oneof = _EXTENSION.oneofs_by_name["ext"] +_EXTENSION.oneofs_by_name["ext"].fields.append(_EXTENSION.fields_by_name["master_arbitration"]) +_EXTENSION.fields_by_name["master_arbitration"].containing_oneof = _EXTENSION.oneofs_by_name["ext"] +_REGISTEREDEXTENSION.fields_by_name["id"].enum_type = _EXTENSIONID +_MASTERARBITRATION.fields_by_name["role"].message_type = _ROLE +_MASTERARBITRATION.fields_by_name["election_id"].message_type = _UINT128 +DESCRIPTOR.message_types_by_name["Extension"] = _EXTENSION +DESCRIPTOR.message_types_by_name["RegisteredExtension"] = _REGISTEREDEXTENSION +DESCRIPTOR.message_types_by_name["MasterArbitration"] = _MASTERARBITRATION +DESCRIPTOR.message_types_by_name["Uint128"] = _UINT128 +DESCRIPTOR.message_types_by_name["Role"] = _ROLE +DESCRIPTOR.enum_types_by_name["ExtensionID"] = _EXTENSIONID _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Extension = _reflection.GeneratedProtocolMessageType('Extension', (_message.Message,), { - 'DESCRIPTOR' : _EXTENSION, - '__module__' : 'gnmi_ext_pb2' - # @@protoc_insertion_point(class_scope:gnmi_ext.Extension) - }) +Extension = _reflection.GeneratedProtocolMessageType( + "Extension", + (_message.Message,), + { + "DESCRIPTOR": _EXTENSION, + "__module__": "gnmi_ext_pb2" + # @@protoc_insertion_point(class_scope:gnmi_ext.Extension) + }, +) _sym_db.RegisterMessage(Extension) -RegisteredExtension = _reflection.GeneratedProtocolMessageType('RegisteredExtension', (_message.Message,), { - 'DESCRIPTOR' : _REGISTEREDEXTENSION, - '__module__' : 'gnmi_ext_pb2' - # @@protoc_insertion_point(class_scope:gnmi_ext.RegisteredExtension) - }) +RegisteredExtension = _reflection.GeneratedProtocolMessageType( + "RegisteredExtension", + (_message.Message,), + { + "DESCRIPTOR": _REGISTEREDEXTENSION, + "__module__": "gnmi_ext_pb2" + # @@protoc_insertion_point(class_scope:gnmi_ext.RegisteredExtension) + }, +) _sym_db.RegisterMessage(RegisteredExtension) -MasterArbitration = _reflection.GeneratedProtocolMessageType('MasterArbitration', (_message.Message,), { - 'DESCRIPTOR' : _MASTERARBITRATION, - '__module__' : 'gnmi_ext_pb2' - # @@protoc_insertion_point(class_scope:gnmi_ext.MasterArbitration) - }) +MasterArbitration = _reflection.GeneratedProtocolMessageType( + "MasterArbitration", + (_message.Message,), + { + "DESCRIPTOR": _MASTERARBITRATION, + "__module__": "gnmi_ext_pb2" + # @@protoc_insertion_point(class_scope:gnmi_ext.MasterArbitration) + }, +) _sym_db.RegisterMessage(MasterArbitration) -Uint128 = _reflection.GeneratedProtocolMessageType('Uint128', (_message.Message,), { - 'DESCRIPTOR' : _UINT128, - '__module__' : 'gnmi_ext_pb2' - # @@protoc_insertion_point(class_scope:gnmi_ext.Uint128) - }) +Uint128 = _reflection.GeneratedProtocolMessageType( + "Uint128", + (_message.Message,), + { + "DESCRIPTOR": _UINT128, + "__module__": "gnmi_ext_pb2" + # @@protoc_insertion_point(class_scope:gnmi_ext.Uint128) + }, +) _sym_db.RegisterMessage(Uint128) -Role = _reflection.GeneratedProtocolMessageType('Role', (_message.Message,), { - 'DESCRIPTOR' : _ROLE, - '__module__' : 'gnmi_ext_pb2' - # @@protoc_insertion_point(class_scope:gnmi_ext.Role) - }) +Role = _reflection.GeneratedProtocolMessageType( + "Role", + (_message.Message,), + { + "DESCRIPTOR": _ROLE, + "__module__": "gnmi_ext_pb2" + # @@protoc_insertion_point(class_scope:gnmi_ext.Role) + }, +) _sym_db.RegisterMessage(Role) diff --git a/pygnmi/spec/v070/gnmi_pb2.py b/pygnmi/spec/v070/gnmi_pb2.py index f93417b..5a4da85 100644 --- a/pygnmi/spec/v070/gnmi_pb2.py +++ b/pygnmi/spec/v070/gnmi_pb2.py @@ -7,6 +7,7 @@ from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -18,72 +19,52 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='gnmi.proto', - package='gnmi', - syntax='proto3', - serialized_options=b'Z%github.com/openconfig/gnmi/proto/gnmi\312>\0050.7.0', - serialized_pb=b'\n\ngnmi.proto\x12\x04gnmi\x1a\x19google/protobuf/any.proto\x1a google/protobuf/descriptor.proto\x1a\x0egnmi_ext.proto\"\x96\x01\n\x0cNotification\x12\x11\n\ttimestamp\x18\x01 \x01(\x03\x12\x1a\n\x06prefix\x18\x02 \x01(\x0b\x32\n.gnmi.Path\x12\r\n\x05\x61lias\x18\x03 \x01(\t\x12\x1c\n\x06update\x18\x04 \x03(\x0b\x32\x0c.gnmi.Update\x12\x1a\n\x06\x64\x65lete\x18\x05 \x03(\x0b\x32\n.gnmi.Path\x12\x0e\n\x06\x61tomic\x18\x06 \x01(\x08\"u\n\x06Update\x12\x18\n\x04path\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12\x1e\n\x05value\x18\x02 \x01(\x0b\x32\x0b.gnmi.ValueB\x02\x18\x01\x12\x1d\n\x03val\x18\x03 \x01(\x0b\x32\x10.gnmi.TypedValue\x12\x12\n\nduplicates\x18\x04 \x01(\r\"\xe5\x02\n\nTypedValue\x12\x14\n\nstring_val\x18\x01 \x01(\tH\x00\x12\x11\n\x07int_val\x18\x02 \x01(\x03H\x00\x12\x12\n\x08uint_val\x18\x03 \x01(\x04H\x00\x12\x12\n\x08\x62ool_val\x18\x04 \x01(\x08H\x00\x12\x13\n\tbytes_val\x18\x05 \x01(\x0cH\x00\x12\x13\n\tfloat_val\x18\x06 \x01(\x02H\x00\x12&\n\x0b\x64\x65\x63imal_val\x18\x07 \x01(\x0b\x32\x0f.gnmi.Decimal64H\x00\x12)\n\x0cleaflist_val\x18\x08 \x01(\x0b\x32\x11.gnmi.ScalarArrayH\x00\x12\'\n\x07\x61ny_val\x18\t \x01(\x0b\x32\x14.google.protobuf.AnyH\x00\x12\x12\n\x08json_val\x18\n \x01(\x0cH\x00\x12\x17\n\rjson_ietf_val\x18\x0b \x01(\x0cH\x00\x12\x13\n\tascii_val\x18\x0c \x01(\tH\x00\x12\x15\n\x0bproto_bytes\x18\r \x01(\x0cH\x00\x42\x07\n\x05value\"Y\n\x04Path\x12\x13\n\x07\x65lement\x18\x01 \x03(\tB\x02\x18\x01\x12\x0e\n\x06origin\x18\x02 \x01(\t\x12\x1c\n\x04\x65lem\x18\x03 \x03(\x0b\x32\x0e.gnmi.PathElem\x12\x0e\n\x06target\x18\x04 \x01(\t\"j\n\x08PathElem\x12\x0c\n\x04name\x18\x01 \x01(\t\x12$\n\x03key\x18\x02 \x03(\x0b\x32\x17.gnmi.PathElem.KeyEntry\x1a*\n\x08KeyEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"8\n\x05Value\x12\r\n\x05value\x18\x01 \x01(\x0c\x12\x1c\n\x04type\x18\x02 \x01(\x0e\x32\x0e.gnmi.Encoding:\x02\x18\x01\"N\n\x05\x45rror\x12\x0c\n\x04\x63ode\x18\x01 \x01(\r\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\"\n\x04\x64\x61ta\x18\x03 \x01(\x0b\x32\x14.google.protobuf.Any:\x02\x18\x01\".\n\tDecimal64\x12\x0e\n\x06\x64igits\x18\x01 \x01(\x03\x12\x11\n\tprecision\x18\x02 \x01(\r\"0\n\x0bScalarArray\x12!\n\x07\x65lement\x18\x01 \x03(\x0b\x32\x10.gnmi.TypedValue\"\xb2\x01\n\x10SubscribeRequest\x12+\n\tsubscribe\x18\x01 \x01(\x0b\x32\x16.gnmi.SubscriptionListH\x00\x12\x1a\n\x04poll\x18\x03 \x01(\x0b\x32\n.gnmi.PollH\x00\x12\"\n\x07\x61liases\x18\x04 \x01(\x0b\x32\x0f.gnmi.AliasListH\x00\x12&\n\textension\x18\x05 \x03(\x0b\x32\x13.gnmi_ext.ExtensionB\t\n\x07request\"\x06\n\x04Poll\"\xa8\x01\n\x11SubscribeResponse\x12$\n\x06update\x18\x01 \x01(\x0b\x32\x12.gnmi.NotificationH\x00\x12\x17\n\rsync_response\x18\x03 \x01(\x08H\x00\x12 \n\x05\x65rror\x18\x04 \x01(\x0b\x32\x0b.gnmi.ErrorB\x02\x18\x01H\x00\x12&\n\textension\x18\x05 \x03(\x0b\x32\x13.gnmi_ext.ExtensionB\n\n\x08response\"\xd7\x02\n\x10SubscriptionList\x12\x1a\n\x06prefix\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12(\n\x0csubscription\x18\x02 \x03(\x0b\x32\x12.gnmi.Subscription\x12\x13\n\x0buse_aliases\x18\x03 \x01(\x08\x12\x1d\n\x03qos\x18\x04 \x01(\x0b\x32\x10.gnmi.QOSMarking\x12)\n\x04mode\x18\x05 \x01(\x0e\x32\x1b.gnmi.SubscriptionList.Mode\x12\x19\n\x11\x61llow_aggregation\x18\x06 \x01(\x08\x12#\n\nuse_models\x18\x07 \x03(\x0b\x32\x0f.gnmi.ModelData\x12 \n\x08\x65ncoding\x18\x08 \x01(\x0e\x32\x0e.gnmi.Encoding\x12\x14\n\x0cupdates_only\x18\t \x01(\x08\"&\n\x04Mode\x12\n\n\x06STREAM\x10\x00\x12\x08\n\x04ONCE\x10\x01\x12\x08\n\x04POLL\x10\x02\"\x9f\x01\n\x0cSubscription\x12\x18\n\x04path\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12$\n\x04mode\x18\x02 \x01(\x0e\x32\x16.gnmi.SubscriptionMode\x12\x17\n\x0fsample_interval\x18\x03 \x01(\x04\x12\x1a\n\x12suppress_redundant\x18\x04 \x01(\x08\x12\x1a\n\x12heartbeat_interval\x18\x05 \x01(\x04\"\x1d\n\nQOSMarking\x12\x0f\n\x07marking\x18\x01 \x01(\r\"0\n\x05\x41lias\x12\x18\n\x04path\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12\r\n\x05\x61lias\x18\x02 \x01(\t\"\'\n\tAliasList\x12\x1a\n\x05\x61lias\x18\x01 \x03(\x0b\x32\x0b.gnmi.Alias\"\xa9\x01\n\nSetRequest\x12\x1a\n\x06prefix\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12\x1a\n\x06\x64\x65lete\x18\x02 \x03(\x0b\x32\n.gnmi.Path\x12\x1d\n\x07replace\x18\x03 \x03(\x0b\x32\x0c.gnmi.Update\x12\x1c\n\x06update\x18\x04 \x03(\x0b\x32\x0c.gnmi.Update\x12&\n\textension\x18\x05 \x03(\x0b\x32\x13.gnmi_ext.Extension\"\xac\x01\n\x0bSetResponse\x12\x1a\n\x06prefix\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12$\n\x08response\x18\x02 \x03(\x0b\x32\x12.gnmi.UpdateResult\x12 \n\x07message\x18\x03 \x01(\x0b\x32\x0b.gnmi.ErrorB\x02\x18\x01\x12\x11\n\ttimestamp\x18\x04 \x01(\x03\x12&\n\textension\x18\x05 \x03(\x0b\x32\x13.gnmi_ext.Extension\"\xca\x01\n\x0cUpdateResult\x12\x15\n\ttimestamp\x18\x01 \x01(\x03\x42\x02\x18\x01\x12\x18\n\x04path\x18\x02 \x01(\x0b\x32\n.gnmi.Path\x12 \n\x07message\x18\x03 \x01(\x0b\x32\x0b.gnmi.ErrorB\x02\x18\x01\x12(\n\x02op\x18\x04 \x01(\x0e\x32\x1c.gnmi.UpdateResult.Operation\"=\n\tOperation\x12\x0b\n\x07INVALID\x10\x00\x12\n\n\x06\x44\x45LETE\x10\x01\x12\x0b\n\x07REPLACE\x10\x02\x12\n\n\x06UPDATE\x10\x03\"\x97\x02\n\nGetRequest\x12\x1a\n\x06prefix\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12\x18\n\x04path\x18\x02 \x03(\x0b\x32\n.gnmi.Path\x12\'\n\x04type\x18\x03 \x01(\x0e\x32\x19.gnmi.GetRequest.DataType\x12 \n\x08\x65ncoding\x18\x05 \x01(\x0e\x32\x0e.gnmi.Encoding\x12#\n\nuse_models\x18\x06 \x03(\x0b\x32\x0f.gnmi.ModelData\x12&\n\textension\x18\x07 \x03(\x0b\x32\x13.gnmi_ext.Extension\";\n\x08\x44\x61taType\x12\x07\n\x03\x41LL\x10\x00\x12\n\n\x06\x43ONFIG\x10\x01\x12\t\n\x05STATE\x10\x02\x12\x0f\n\x0bOPERATIONAL\x10\x03\"\x7f\n\x0bGetResponse\x12(\n\x0cnotification\x18\x01 \x03(\x0b\x32\x12.gnmi.Notification\x12\x1e\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x0b.gnmi.ErrorB\x02\x18\x01\x12&\n\textension\x18\x03 \x03(\x0b\x32\x13.gnmi_ext.Extension\";\n\x11\x43\x61pabilityRequest\x12&\n\textension\x18\x01 \x03(\x0b\x32\x13.gnmi_ext.Extension\"\xaa\x01\n\x12\x43\x61pabilityResponse\x12)\n\x10supported_models\x18\x01 \x03(\x0b\x32\x0f.gnmi.ModelData\x12+\n\x13supported_encodings\x18\x02 \x03(\x0e\x32\x0e.gnmi.Encoding\x12\x14\n\x0cgNMI_version\x18\x03 \x01(\t\x12&\n\textension\x18\x04 \x03(\x0b\x32\x13.gnmi_ext.Extension\"@\n\tModelData\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0corganization\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t*D\n\x08\x45ncoding\x12\x08\n\x04JSON\x10\x00\x12\t\n\x05\x42YTES\x10\x01\x12\t\n\x05PROTO\x10\x02\x12\t\n\x05\x41SCII\x10\x03\x12\r\n\tJSON_IETF\x10\x04*A\n\x10SubscriptionMode\x12\x12\n\x0eTARGET_DEFINED\x10\x00\x12\r\n\tON_CHANGE\x10\x01\x12\n\n\x06SAMPLE\x10\x02\x32\xe3\x01\n\x04gNMI\x12\x41\n\x0c\x43\x61pabilities\x12\x17.gnmi.CapabilityRequest\x1a\x18.gnmi.CapabilityResponse\x12*\n\x03Get\x12\x10.gnmi.GetRequest\x1a\x11.gnmi.GetResponse\x12*\n\x03Set\x12\x10.gnmi.SetRequest\x1a\x11.gnmi.SetResponse\x12@\n\tSubscribe\x12\x16.gnmi.SubscribeRequest\x1a\x17.gnmi.SubscribeResponse(\x01\x30\x01:3\n\x0cgnmi_service\x12\x1c.google.protobuf.FileOptions\x18\xe9\x07 \x01(\tB/Z%github.com/openconfig/gnmi/proto/gnmi\xca>\x05\x30.7.0b\x06proto3' - , - dependencies=[google_dot_protobuf_dot_any__pb2.DESCRIPTOR,google_dot_protobuf_dot_descriptor__pb2.DESCRIPTOR,gnmi__ext__pb2.DESCRIPTOR,]) + name="gnmi.proto", + package="gnmi", + syntax="proto3", + serialized_options=b"Z%github.com/openconfig/gnmi/proto/gnmi\312>\0050.7.0", + serialized_pb=b'\n\ngnmi.proto\x12\x04gnmi\x1a\x19google/protobuf/any.proto\x1a google/protobuf/descriptor.proto\x1a\x0egnmi_ext.proto"\x96\x01\n\x0cNotification\x12\x11\n\ttimestamp\x18\x01 \x01(\x03\x12\x1a\n\x06prefix\x18\x02 \x01(\x0b\x32\n.gnmi.Path\x12\r\n\x05\x61lias\x18\x03 \x01(\t\x12\x1c\n\x06update\x18\x04 \x03(\x0b\x32\x0c.gnmi.Update\x12\x1a\n\x06\x64\x65lete\x18\x05 \x03(\x0b\x32\n.gnmi.Path\x12\x0e\n\x06\x61tomic\x18\x06 \x01(\x08"u\n\x06Update\x12\x18\n\x04path\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12\x1e\n\x05value\x18\x02 \x01(\x0b\x32\x0b.gnmi.ValueB\x02\x18\x01\x12\x1d\n\x03val\x18\x03 \x01(\x0b\x32\x10.gnmi.TypedValue\x12\x12\n\nduplicates\x18\x04 \x01(\r"\xe5\x02\n\nTypedValue\x12\x14\n\nstring_val\x18\x01 \x01(\tH\x00\x12\x11\n\x07int_val\x18\x02 \x01(\x03H\x00\x12\x12\n\x08uint_val\x18\x03 \x01(\x04H\x00\x12\x12\n\x08\x62ool_val\x18\x04 \x01(\x08H\x00\x12\x13\n\tbytes_val\x18\x05 \x01(\x0cH\x00\x12\x13\n\tfloat_val\x18\x06 \x01(\x02H\x00\x12&\n\x0b\x64\x65\x63imal_val\x18\x07 \x01(\x0b\x32\x0f.gnmi.Decimal64H\x00\x12)\n\x0cleaflist_val\x18\x08 \x01(\x0b\x32\x11.gnmi.ScalarArrayH\x00\x12\'\n\x07\x61ny_val\x18\t \x01(\x0b\x32\x14.google.protobuf.AnyH\x00\x12\x12\n\x08json_val\x18\n \x01(\x0cH\x00\x12\x17\n\rjson_ietf_val\x18\x0b \x01(\x0cH\x00\x12\x13\n\tascii_val\x18\x0c \x01(\tH\x00\x12\x15\n\x0bproto_bytes\x18\r \x01(\x0cH\x00\x42\x07\n\x05value"Y\n\x04Path\x12\x13\n\x07\x65lement\x18\x01 \x03(\tB\x02\x18\x01\x12\x0e\n\x06origin\x18\x02 \x01(\t\x12\x1c\n\x04\x65lem\x18\x03 \x03(\x0b\x32\x0e.gnmi.PathElem\x12\x0e\n\x06target\x18\x04 \x01(\t"j\n\x08PathElem\x12\x0c\n\x04name\x18\x01 \x01(\t\x12$\n\x03key\x18\x02 \x03(\x0b\x32\x17.gnmi.PathElem.KeyEntry\x1a*\n\x08KeyEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"8\n\x05Value\x12\r\n\x05value\x18\x01 \x01(\x0c\x12\x1c\n\x04type\x18\x02 \x01(\x0e\x32\x0e.gnmi.Encoding:\x02\x18\x01"N\n\x05\x45rror\x12\x0c\n\x04\x63ode\x18\x01 \x01(\r\x12\x0f\n\x07message\x18\x02 \x01(\t\x12"\n\x04\x64\x61ta\x18\x03 \x01(\x0b\x32\x14.google.protobuf.Any:\x02\x18\x01".\n\tDecimal64\x12\x0e\n\x06\x64igits\x18\x01 \x01(\x03\x12\x11\n\tprecision\x18\x02 \x01(\r"0\n\x0bScalarArray\x12!\n\x07\x65lement\x18\x01 \x03(\x0b\x32\x10.gnmi.TypedValue"\xb2\x01\n\x10SubscribeRequest\x12+\n\tsubscribe\x18\x01 \x01(\x0b\x32\x16.gnmi.SubscriptionListH\x00\x12\x1a\n\x04poll\x18\x03 \x01(\x0b\x32\n.gnmi.PollH\x00\x12"\n\x07\x61liases\x18\x04 \x01(\x0b\x32\x0f.gnmi.AliasListH\x00\x12&\n\textension\x18\x05 \x03(\x0b\x32\x13.gnmi_ext.ExtensionB\t\n\x07request"\x06\n\x04Poll"\xa8\x01\n\x11SubscribeResponse\x12$\n\x06update\x18\x01 \x01(\x0b\x32\x12.gnmi.NotificationH\x00\x12\x17\n\rsync_response\x18\x03 \x01(\x08H\x00\x12 \n\x05\x65rror\x18\x04 \x01(\x0b\x32\x0b.gnmi.ErrorB\x02\x18\x01H\x00\x12&\n\textension\x18\x05 \x03(\x0b\x32\x13.gnmi_ext.ExtensionB\n\n\x08response"\xd7\x02\n\x10SubscriptionList\x12\x1a\n\x06prefix\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12(\n\x0csubscription\x18\x02 \x03(\x0b\x32\x12.gnmi.Subscription\x12\x13\n\x0buse_aliases\x18\x03 \x01(\x08\x12\x1d\n\x03qos\x18\x04 \x01(\x0b\x32\x10.gnmi.QOSMarking\x12)\n\x04mode\x18\x05 \x01(\x0e\x32\x1b.gnmi.SubscriptionList.Mode\x12\x19\n\x11\x61llow_aggregation\x18\x06 \x01(\x08\x12#\n\nuse_models\x18\x07 \x03(\x0b\x32\x0f.gnmi.ModelData\x12 \n\x08\x65ncoding\x18\x08 \x01(\x0e\x32\x0e.gnmi.Encoding\x12\x14\n\x0cupdates_only\x18\t \x01(\x08"&\n\x04Mode\x12\n\n\x06STREAM\x10\x00\x12\x08\n\x04ONCE\x10\x01\x12\x08\n\x04POLL\x10\x02"\x9f\x01\n\x0cSubscription\x12\x18\n\x04path\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12$\n\x04mode\x18\x02 \x01(\x0e\x32\x16.gnmi.SubscriptionMode\x12\x17\n\x0fsample_interval\x18\x03 \x01(\x04\x12\x1a\n\x12suppress_redundant\x18\x04 \x01(\x08\x12\x1a\n\x12heartbeat_interval\x18\x05 \x01(\x04"\x1d\n\nQOSMarking\x12\x0f\n\x07marking\x18\x01 \x01(\r"0\n\x05\x41lias\x12\x18\n\x04path\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12\r\n\x05\x61lias\x18\x02 \x01(\t"\'\n\tAliasList\x12\x1a\n\x05\x61lias\x18\x01 \x03(\x0b\x32\x0b.gnmi.Alias"\xa9\x01\n\nSetRequest\x12\x1a\n\x06prefix\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12\x1a\n\x06\x64\x65lete\x18\x02 \x03(\x0b\x32\n.gnmi.Path\x12\x1d\n\x07replace\x18\x03 \x03(\x0b\x32\x0c.gnmi.Update\x12\x1c\n\x06update\x18\x04 \x03(\x0b\x32\x0c.gnmi.Update\x12&\n\textension\x18\x05 \x03(\x0b\x32\x13.gnmi_ext.Extension"\xac\x01\n\x0bSetResponse\x12\x1a\n\x06prefix\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12$\n\x08response\x18\x02 \x03(\x0b\x32\x12.gnmi.UpdateResult\x12 \n\x07message\x18\x03 \x01(\x0b\x32\x0b.gnmi.ErrorB\x02\x18\x01\x12\x11\n\ttimestamp\x18\x04 \x01(\x03\x12&\n\textension\x18\x05 \x03(\x0b\x32\x13.gnmi_ext.Extension"\xca\x01\n\x0cUpdateResult\x12\x15\n\ttimestamp\x18\x01 \x01(\x03\x42\x02\x18\x01\x12\x18\n\x04path\x18\x02 \x01(\x0b\x32\n.gnmi.Path\x12 \n\x07message\x18\x03 \x01(\x0b\x32\x0b.gnmi.ErrorB\x02\x18\x01\x12(\n\x02op\x18\x04 \x01(\x0e\x32\x1c.gnmi.UpdateResult.Operation"=\n\tOperation\x12\x0b\n\x07INVALID\x10\x00\x12\n\n\x06\x44\x45LETE\x10\x01\x12\x0b\n\x07REPLACE\x10\x02\x12\n\n\x06UPDATE\x10\x03"\x97\x02\n\nGetRequest\x12\x1a\n\x06prefix\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12\x18\n\x04path\x18\x02 \x03(\x0b\x32\n.gnmi.Path\x12\'\n\x04type\x18\x03 \x01(\x0e\x32\x19.gnmi.GetRequest.DataType\x12 \n\x08\x65ncoding\x18\x05 \x01(\x0e\x32\x0e.gnmi.Encoding\x12#\n\nuse_models\x18\x06 \x03(\x0b\x32\x0f.gnmi.ModelData\x12&\n\textension\x18\x07 \x03(\x0b\x32\x13.gnmi_ext.Extension";\n\x08\x44\x61taType\x12\x07\n\x03\x41LL\x10\x00\x12\n\n\x06\x43ONFIG\x10\x01\x12\t\n\x05STATE\x10\x02\x12\x0f\n\x0bOPERATIONAL\x10\x03"\x7f\n\x0bGetResponse\x12(\n\x0cnotification\x18\x01 \x03(\x0b\x32\x12.gnmi.Notification\x12\x1e\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x0b.gnmi.ErrorB\x02\x18\x01\x12&\n\textension\x18\x03 \x03(\x0b\x32\x13.gnmi_ext.Extension";\n\x11\x43\x61pabilityRequest\x12&\n\textension\x18\x01 \x03(\x0b\x32\x13.gnmi_ext.Extension"\xaa\x01\n\x12\x43\x61pabilityResponse\x12)\n\x10supported_models\x18\x01 \x03(\x0b\x32\x0f.gnmi.ModelData\x12+\n\x13supported_encodings\x18\x02 \x03(\x0e\x32\x0e.gnmi.Encoding\x12\x14\n\x0cgNMI_version\x18\x03 \x01(\t\x12&\n\textension\x18\x04 \x03(\x0b\x32\x13.gnmi_ext.Extension"@\n\tModelData\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0corganization\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t*D\n\x08\x45ncoding\x12\x08\n\x04JSON\x10\x00\x12\t\n\x05\x42YTES\x10\x01\x12\t\n\x05PROTO\x10\x02\x12\t\n\x05\x41SCII\x10\x03\x12\r\n\tJSON_IETF\x10\x04*A\n\x10SubscriptionMode\x12\x12\n\x0eTARGET_DEFINED\x10\x00\x12\r\n\tON_CHANGE\x10\x01\x12\n\n\x06SAMPLE\x10\x02\x32\xe3\x01\n\x04gNMI\x12\x41\n\x0c\x43\x61pabilities\x12\x17.gnmi.CapabilityRequest\x1a\x18.gnmi.CapabilityResponse\x12*\n\x03Get\x12\x10.gnmi.GetRequest\x1a\x11.gnmi.GetResponse\x12*\n\x03Set\x12\x10.gnmi.SetRequest\x1a\x11.gnmi.SetResponse\x12@\n\tSubscribe\x12\x16.gnmi.SubscribeRequest\x1a\x17.gnmi.SubscribeResponse(\x01\x30\x01:3\n\x0cgnmi_service\x12\x1c.google.protobuf.FileOptions\x18\xe9\x07 \x01(\tB/Z%github.com/openconfig/gnmi/proto/gnmi\xca>\x05\x30.7.0b\x06proto3', + dependencies=[ + google_dot_protobuf_dot_any__pb2.DESCRIPTOR, + google_dot_protobuf_dot_descriptor__pb2.DESCRIPTOR, + gnmi__ext__pb2.DESCRIPTOR, + ], +) _ENCODING = _descriptor.EnumDescriptor( - name='Encoding', - full_name='gnmi.Encoding', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='JSON', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='BYTES', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PROTO', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ASCII', index=3, number=3, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='JSON_IETF', index=4, number=4, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=3417, - serialized_end=3485, + name="Encoding", + full_name="gnmi.Encoding", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor(name="JSON", index=0, number=0, serialized_options=None, type=None), + _descriptor.EnumValueDescriptor(name="BYTES", index=1, number=1, serialized_options=None, type=None), + _descriptor.EnumValueDescriptor(name="PROTO", index=2, number=2, serialized_options=None, type=None), + _descriptor.EnumValueDescriptor(name="ASCII", index=3, number=3, serialized_options=None, type=None), + _descriptor.EnumValueDescriptor(name="JSON_IETF", index=4, number=4, serialized_options=None, type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=3417, + serialized_end=3485, ) _sym_db.RegisterEnumDescriptor(_ENCODING) Encoding = enum_type_wrapper.EnumTypeWrapper(_ENCODING) _SUBSCRIPTIONMODE = _descriptor.EnumDescriptor( - name='SubscriptionMode', - full_name='gnmi.SubscriptionMode', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='TARGET_DEFINED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ON_CHANGE', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SAMPLE', index=2, number=2, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=3487, - serialized_end=3552, + name="SubscriptionMode", + full_name="gnmi.SubscriptionMode", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor(name="TARGET_DEFINED", index=0, number=0, serialized_options=None, type=None), + _descriptor.EnumValueDescriptor(name="ON_CHANGE", index=1, number=1, serialized_options=None, type=None), + _descriptor.EnumValueDescriptor(name="SAMPLE", index=2, number=2, serialized_options=None, type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=3487, + serialized_end=3552, ) _sym_db.RegisterEnumDescriptor(_SUBSCRIPTIONMODE) @@ -99,1798 +80,2857 @@ GNMI_SERVICE_FIELD_NUMBER = 1001 gnmi_service = _descriptor.FieldDescriptor( - name='gnmi_service', full_name='gnmi.gnmi_service', index=0, - number=1001, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=True, extension_scope=None, - serialized_options=None, file=DESCRIPTOR) + name="gnmi_service", + full_name="gnmi.gnmi_service", + index=0, + number=1001, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=True, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, +) _SUBSCRIPTIONLIST_MODE = _descriptor.EnumDescriptor( - name='Mode', - full_name='gnmi.SubscriptionList.Mode', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='STREAM', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ONCE', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='POLL', index=2, number=2, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=1830, - serialized_end=1868, + name="Mode", + full_name="gnmi.SubscriptionList.Mode", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor(name="STREAM", index=0, number=0, serialized_options=None, type=None), + _descriptor.EnumValueDescriptor(name="ONCE", index=1, number=1, serialized_options=None, type=None), + _descriptor.EnumValueDescriptor(name="POLL", index=2, number=2, serialized_options=None, type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=1830, + serialized_end=1868, ) _sym_db.RegisterEnumDescriptor(_SUBSCRIPTIONLIST_MODE) _UPDATERESULT_OPERATION = _descriptor.EnumDescriptor( - name='Operation', - full_name='gnmi.UpdateResult.Operation', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='INVALID', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DELETE', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REPLACE', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UPDATE', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=2643, - serialized_end=2704, + name="Operation", + full_name="gnmi.UpdateResult.Operation", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor(name="INVALID", index=0, number=0, serialized_options=None, type=None), + _descriptor.EnumValueDescriptor(name="DELETE", index=1, number=1, serialized_options=None, type=None), + _descriptor.EnumValueDescriptor(name="REPLACE", index=2, number=2, serialized_options=None, type=None), + _descriptor.EnumValueDescriptor(name="UPDATE", index=3, number=3, serialized_options=None, type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=2643, + serialized_end=2704, ) _sym_db.RegisterEnumDescriptor(_UPDATERESULT_OPERATION) _GETREQUEST_DATATYPE = _descriptor.EnumDescriptor( - name='DataType', - full_name='gnmi.GetRequest.DataType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='ALL', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CONFIG', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='STATE', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='OPERATIONAL', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=2927, - serialized_end=2986, + name="DataType", + full_name="gnmi.GetRequest.DataType", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor(name="ALL", index=0, number=0, serialized_options=None, type=None), + _descriptor.EnumValueDescriptor(name="CONFIG", index=1, number=1, serialized_options=None, type=None), + _descriptor.EnumValueDescriptor(name="STATE", index=2, number=2, serialized_options=None, type=None), + _descriptor.EnumValueDescriptor(name="OPERATIONAL", index=3, number=3, serialized_options=None, type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=2927, + serialized_end=2986, ) _sym_db.RegisterEnumDescriptor(_GETREQUEST_DATATYPE) _NOTIFICATION = _descriptor.Descriptor( - name='Notification', - full_name='gnmi.Notification', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='timestamp', full_name='gnmi.Notification.timestamp', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='prefix', full_name='gnmi.Notification.prefix', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='alias', full_name='gnmi.Notification.alias', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='gnmi.Notification.update', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='delete', full_name='gnmi.Notification.delete', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='atomic', full_name='gnmi.Notification.atomic', index=5, - number=6, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=98, - serialized_end=248, + name="Notification", + full_name="gnmi.Notification", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="timestamp", + full_name="gnmi.Notification.timestamp", + index=0, + number=1, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="prefix", + full_name="gnmi.Notification.prefix", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="alias", + full_name="gnmi.Notification.alias", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update", + full_name="gnmi.Notification.update", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="delete", + full_name="gnmi.Notification.delete", + index=4, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="atomic", + full_name="gnmi.Notification.atomic", + index=5, + number=6, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=98, + serialized_end=248, ) _UPDATE = _descriptor.Descriptor( - name='Update', - full_name='gnmi.Update', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='path', full_name='gnmi.Update.path', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='gnmi.Update.value', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\030\001', file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='val', full_name='gnmi.Update.val', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='duplicates', full_name='gnmi.Update.duplicates', index=3, - number=4, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=250, - serialized_end=367, + name="Update", + full_name="gnmi.Update", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="path", + full_name="gnmi.Update.path", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="gnmi.Update.value", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=b"\030\001", + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="val", + full_name="gnmi.Update.val", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="duplicates", + full_name="gnmi.Update.duplicates", + index=3, + number=4, + type=13, + cpp_type=3, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=250, + serialized_end=367, ) _TYPEDVALUE = _descriptor.Descriptor( - name='TypedValue', - full_name='gnmi.TypedValue', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='string_val', full_name='gnmi.TypedValue.string_val', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='int_val', full_name='gnmi.TypedValue.int_val', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='uint_val', full_name='gnmi.TypedValue.uint_val', index=2, - number=3, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bool_val', full_name='gnmi.TypedValue.bool_val', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bytes_val', full_name='gnmi.TypedValue.bytes_val', index=4, - number=5, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='float_val', full_name='gnmi.TypedValue.float_val', index=5, - number=6, type=2, cpp_type=6, label=1, - has_default_value=False, default_value=float(0), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='decimal_val', full_name='gnmi.TypedValue.decimal_val', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='leaflist_val', full_name='gnmi.TypedValue.leaflist_val', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='any_val', full_name='gnmi.TypedValue.any_val', index=8, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='json_val', full_name='gnmi.TypedValue.json_val', index=9, - number=10, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='json_ietf_val', full_name='gnmi.TypedValue.json_ietf_val', index=10, - number=11, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ascii_val', full_name='gnmi.TypedValue.ascii_val', index=11, - number=12, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='proto_bytes', full_name='gnmi.TypedValue.proto_bytes', index=12, - number=13, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='value', full_name='gnmi.TypedValue.value', - index=0, containing_type=None, fields=[]), - ], - serialized_start=370, - serialized_end=727, + name="TypedValue", + full_name="gnmi.TypedValue", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="string_val", + full_name="gnmi.TypedValue.string_val", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="int_val", + full_name="gnmi.TypedValue.int_val", + index=1, + number=2, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="uint_val", + full_name="gnmi.TypedValue.uint_val", + index=2, + number=3, + type=4, + cpp_type=4, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bool_val", + full_name="gnmi.TypedValue.bool_val", + index=3, + number=4, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="bytes_val", + full_name="gnmi.TypedValue.bytes_val", + index=4, + number=5, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"", + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="float_val", + full_name="gnmi.TypedValue.float_val", + index=5, + number=6, + type=2, + cpp_type=6, + label=1, + has_default_value=False, + default_value=float(0), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="decimal_val", + full_name="gnmi.TypedValue.decimal_val", + index=6, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="leaflist_val", + full_name="gnmi.TypedValue.leaflist_val", + index=7, + number=8, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="any_val", + full_name="gnmi.TypedValue.any_val", + index=8, + number=9, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="json_val", + full_name="gnmi.TypedValue.json_val", + index=9, + number=10, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"", + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="json_ietf_val", + full_name="gnmi.TypedValue.json_ietf_val", + index=10, + number=11, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"", + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="ascii_val", + full_name="gnmi.TypedValue.ascii_val", + index=11, + number=12, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="proto_bytes", + full_name="gnmi.TypedValue.proto_bytes", + index=12, + number=13, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"", + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="value", + full_name="gnmi.TypedValue.value", + index=0, + containing_type=None, + fields=[], + ), + ], + serialized_start=370, + serialized_end=727, ) _PATH = _descriptor.Descriptor( - name='Path', - full_name='gnmi.Path', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='element', full_name='gnmi.Path.element', index=0, - number=1, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\030\001', file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='origin', full_name='gnmi.Path.origin', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='elem', full_name='gnmi.Path.elem', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='target', full_name='gnmi.Path.target', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=729, - serialized_end=818, + name="Path", + full_name="gnmi.Path", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="element", + full_name="gnmi.Path.element", + index=0, + number=1, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=b"\030\001", + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="origin", + full_name="gnmi.Path.origin", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="elem", + full_name="gnmi.Path.elem", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="target", + full_name="gnmi.Path.target", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=729, + serialized_end=818, ) _PATHELEM_KEYENTRY = _descriptor.Descriptor( - name='KeyEntry', - full_name='gnmi.PathElem.KeyEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='gnmi.PathElem.KeyEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='gnmi.PathElem.KeyEntry.value', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=884, - serialized_end=926, + name="KeyEntry", + full_name="gnmi.PathElem.KeyEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="gnmi.PathElem.KeyEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="gnmi.PathElem.KeyEntry.value", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=b"8\001", + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=884, + serialized_end=926, ) _PATHELEM = _descriptor.Descriptor( - name='PathElem', - full_name='gnmi.PathElem', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='gnmi.PathElem.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='key', full_name='gnmi.PathElem.key', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_PATHELEM_KEYENTRY, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=820, - serialized_end=926, + name="PathElem", + full_name="gnmi.PathElem", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="gnmi.PathElem.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="key", + full_name="gnmi.PathElem.key", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[ + _PATHELEM_KEYENTRY, + ], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=820, + serialized_end=926, ) _VALUE = _descriptor.Descriptor( - name='Value', - full_name='gnmi.Value', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='value', full_name='gnmi.Value.value', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='gnmi.Value.type', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=b'\030\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=928, - serialized_end=984, + name="Value", + full_name="gnmi.Value", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="value", + full_name="gnmi.Value.value", + index=0, + number=1, + type=12, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"", + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="type", + full_name="gnmi.Value.type", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=b"\030\001", + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=928, + serialized_end=984, ) _ERROR = _descriptor.Descriptor( - name='Error', - full_name='gnmi.Error', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='code', full_name='gnmi.Error.code', index=0, - number=1, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='message', full_name='gnmi.Error.message', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='data', full_name='gnmi.Error.data', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=b'\030\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=986, - serialized_end=1064, + name="Error", + full_name="gnmi.Error", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="code", + full_name="gnmi.Error.code", + index=0, + number=1, + type=13, + cpp_type=3, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="message", + full_name="gnmi.Error.message", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="data", + full_name="gnmi.Error.data", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=b"\030\001", + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=986, + serialized_end=1064, ) _DECIMAL64 = _descriptor.Descriptor( - name='Decimal64', - full_name='gnmi.Decimal64', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='digits', full_name='gnmi.Decimal64.digits', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='precision', full_name='gnmi.Decimal64.precision', index=1, - number=2, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1066, - serialized_end=1112, + name="Decimal64", + full_name="gnmi.Decimal64", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="digits", + full_name="gnmi.Decimal64.digits", + index=0, + number=1, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="precision", + full_name="gnmi.Decimal64.precision", + index=1, + number=2, + type=13, + cpp_type=3, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1066, + serialized_end=1112, ) _SCALARARRAY = _descriptor.Descriptor( - name='ScalarArray', - full_name='gnmi.ScalarArray', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='element', full_name='gnmi.ScalarArray.element', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1114, - serialized_end=1162, + name="ScalarArray", + full_name="gnmi.ScalarArray", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="element", + full_name="gnmi.ScalarArray.element", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1114, + serialized_end=1162, ) _SUBSCRIBEREQUEST = _descriptor.Descriptor( - name='SubscribeRequest', - full_name='gnmi.SubscribeRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='subscribe', full_name='gnmi.SubscribeRequest.subscribe', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='poll', full_name='gnmi.SubscribeRequest.poll', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='aliases', full_name='gnmi.SubscribeRequest.aliases', index=2, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='extension', full_name='gnmi.SubscribeRequest.extension', index=3, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='request', full_name='gnmi.SubscribeRequest.request', - index=0, containing_type=None, fields=[]), - ], - serialized_start=1165, - serialized_end=1343, + name="SubscribeRequest", + full_name="gnmi.SubscribeRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="subscribe", + full_name="gnmi.SubscribeRequest.subscribe", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="poll", + full_name="gnmi.SubscribeRequest.poll", + index=1, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="aliases", + full_name="gnmi.SubscribeRequest.aliases", + index=2, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="extension", + full_name="gnmi.SubscribeRequest.extension", + index=3, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="request", + full_name="gnmi.SubscribeRequest.request", + index=0, + containing_type=None, + fields=[], + ), + ], + serialized_start=1165, + serialized_end=1343, ) _POLL = _descriptor.Descriptor( - name='Poll', - full_name='gnmi.Poll', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1345, - serialized_end=1351, + name="Poll", + full_name="gnmi.Poll", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1345, + serialized_end=1351, ) _SUBSCRIBERESPONSE = _descriptor.Descriptor( - name='SubscribeResponse', - full_name='gnmi.SubscribeResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update', full_name='gnmi.SubscribeResponse.update', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sync_response', full_name='gnmi.SubscribeResponse.sync_response', index=1, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='error', full_name='gnmi.SubscribeResponse.error', index=2, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\030\001', file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='extension', full_name='gnmi.SubscribeResponse.extension', index=3, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='response', full_name='gnmi.SubscribeResponse.response', - index=0, containing_type=None, fields=[]), - ], - serialized_start=1354, - serialized_end=1522, + name="SubscribeResponse", + full_name="gnmi.SubscribeResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="update", + full_name="gnmi.SubscribeResponse.update", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="sync_response", + full_name="gnmi.SubscribeResponse.sync_response", + index=1, + number=3, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="error", + full_name="gnmi.SubscribeResponse.error", + index=2, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=b"\030\001", + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="extension", + full_name="gnmi.SubscribeResponse.extension", + index=3, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name="response", + full_name="gnmi.SubscribeResponse.response", + index=0, + containing_type=None, + fields=[], + ), + ], + serialized_start=1354, + serialized_end=1522, ) _SUBSCRIPTIONLIST = _descriptor.Descriptor( - name='SubscriptionList', - full_name='gnmi.SubscriptionList', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='prefix', full_name='gnmi.SubscriptionList.prefix', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='subscription', full_name='gnmi.SubscriptionList.subscription', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='use_aliases', full_name='gnmi.SubscriptionList.use_aliases', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='qos', full_name='gnmi.SubscriptionList.qos', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mode', full_name='gnmi.SubscriptionList.mode', index=4, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='allow_aggregation', full_name='gnmi.SubscriptionList.allow_aggregation', index=5, - number=6, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='use_models', full_name='gnmi.SubscriptionList.use_models', index=6, - number=7, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='encoding', full_name='gnmi.SubscriptionList.encoding', index=7, - number=8, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='updates_only', full_name='gnmi.SubscriptionList.updates_only', index=8, - number=9, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _SUBSCRIPTIONLIST_MODE, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1525, - serialized_end=1868, + name="SubscriptionList", + full_name="gnmi.SubscriptionList", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="prefix", + full_name="gnmi.SubscriptionList.prefix", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="subscription", + full_name="gnmi.SubscriptionList.subscription", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="use_aliases", + full_name="gnmi.SubscriptionList.use_aliases", + index=2, + number=3, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="qos", + full_name="gnmi.SubscriptionList.qos", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="mode", + full_name="gnmi.SubscriptionList.mode", + index=4, + number=5, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="allow_aggregation", + full_name="gnmi.SubscriptionList.allow_aggregation", + index=5, + number=6, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="use_models", + full_name="gnmi.SubscriptionList.use_models", + index=6, + number=7, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="encoding", + full_name="gnmi.SubscriptionList.encoding", + index=7, + number=8, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="updates_only", + full_name="gnmi.SubscriptionList.updates_only", + index=8, + number=9, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[ + _SUBSCRIPTIONLIST_MODE, + ], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1525, + serialized_end=1868, ) _SUBSCRIPTION = _descriptor.Descriptor( - name='Subscription', - full_name='gnmi.Subscription', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='path', full_name='gnmi.Subscription.path', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mode', full_name='gnmi.Subscription.mode', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sample_interval', full_name='gnmi.Subscription.sample_interval', index=2, - number=3, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='suppress_redundant', full_name='gnmi.Subscription.suppress_redundant', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='heartbeat_interval', full_name='gnmi.Subscription.heartbeat_interval', index=4, - number=5, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1871, - serialized_end=2030, + name="Subscription", + full_name="gnmi.Subscription", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="path", + full_name="gnmi.Subscription.path", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="mode", + full_name="gnmi.Subscription.mode", + index=1, + number=2, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="sample_interval", + full_name="gnmi.Subscription.sample_interval", + index=2, + number=3, + type=4, + cpp_type=4, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="suppress_redundant", + full_name="gnmi.Subscription.suppress_redundant", + index=3, + number=4, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="heartbeat_interval", + full_name="gnmi.Subscription.heartbeat_interval", + index=4, + number=5, + type=4, + cpp_type=4, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1871, + serialized_end=2030, ) _QOSMARKING = _descriptor.Descriptor( - name='QOSMarking', - full_name='gnmi.QOSMarking', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='marking', full_name='gnmi.QOSMarking.marking', index=0, - number=1, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2032, - serialized_end=2061, + name="QOSMarking", + full_name="gnmi.QOSMarking", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="marking", + full_name="gnmi.QOSMarking.marking", + index=0, + number=1, + type=13, + cpp_type=3, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2032, + serialized_end=2061, ) _ALIAS = _descriptor.Descriptor( - name='Alias', - full_name='gnmi.Alias', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='path', full_name='gnmi.Alias.path', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='alias', full_name='gnmi.Alias.alias', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2063, - serialized_end=2111, + name="Alias", + full_name="gnmi.Alias", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="path", + full_name="gnmi.Alias.path", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="alias", + full_name="gnmi.Alias.alias", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2063, + serialized_end=2111, ) _ALIASLIST = _descriptor.Descriptor( - name='AliasList', - full_name='gnmi.AliasList', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='alias', full_name='gnmi.AliasList.alias', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2113, - serialized_end=2152, + name="AliasList", + full_name="gnmi.AliasList", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="alias", + full_name="gnmi.AliasList.alias", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2113, + serialized_end=2152, ) _SETREQUEST = _descriptor.Descriptor( - name='SetRequest', - full_name='gnmi.SetRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='prefix', full_name='gnmi.SetRequest.prefix', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='delete', full_name='gnmi.SetRequest.delete', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='replace', full_name='gnmi.SetRequest.replace', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='gnmi.SetRequest.update', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='extension', full_name='gnmi.SetRequest.extension', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2155, - serialized_end=2324, + name="SetRequest", + full_name="gnmi.SetRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="prefix", + full_name="gnmi.SetRequest.prefix", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="delete", + full_name="gnmi.SetRequest.delete", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="replace", + full_name="gnmi.SetRequest.replace", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update", + full_name="gnmi.SetRequest.update", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="extension", + full_name="gnmi.SetRequest.extension", + index=4, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2155, + serialized_end=2324, ) _SETRESPONSE = _descriptor.Descriptor( - name='SetResponse', - full_name='gnmi.SetResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='prefix', full_name='gnmi.SetResponse.prefix', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='response', full_name='gnmi.SetResponse.response', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='message', full_name='gnmi.SetResponse.message', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\030\001', file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='timestamp', full_name='gnmi.SetResponse.timestamp', index=3, - number=4, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='extension', full_name='gnmi.SetResponse.extension', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2327, - serialized_end=2499, + name="SetResponse", + full_name="gnmi.SetResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="prefix", + full_name="gnmi.SetResponse.prefix", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="response", + full_name="gnmi.SetResponse.response", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="message", + full_name="gnmi.SetResponse.message", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=b"\030\001", + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="timestamp", + full_name="gnmi.SetResponse.timestamp", + index=3, + number=4, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="extension", + full_name="gnmi.SetResponse.extension", + index=4, + number=5, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2327, + serialized_end=2499, ) _UPDATERESULT = _descriptor.Descriptor( - name='UpdateResult', - full_name='gnmi.UpdateResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='timestamp', full_name='gnmi.UpdateResult.timestamp', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\030\001', file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='path', full_name='gnmi.UpdateResult.path', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='message', full_name='gnmi.UpdateResult.message', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\030\001', file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='op', full_name='gnmi.UpdateResult.op', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _UPDATERESULT_OPERATION, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2502, - serialized_end=2704, + name="UpdateResult", + full_name="gnmi.UpdateResult", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="timestamp", + full_name="gnmi.UpdateResult.timestamp", + index=0, + number=1, + type=3, + cpp_type=2, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=b"\030\001", + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="path", + full_name="gnmi.UpdateResult.path", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="message", + full_name="gnmi.UpdateResult.message", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=b"\030\001", + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="op", + full_name="gnmi.UpdateResult.op", + index=3, + number=4, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[ + _UPDATERESULT_OPERATION, + ], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2502, + serialized_end=2704, ) _GETREQUEST = _descriptor.Descriptor( - name='GetRequest', - full_name='gnmi.GetRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='prefix', full_name='gnmi.GetRequest.prefix', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='path', full_name='gnmi.GetRequest.path', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='gnmi.GetRequest.type', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='encoding', full_name='gnmi.GetRequest.encoding', index=3, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='use_models', full_name='gnmi.GetRequest.use_models', index=4, - number=6, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='extension', full_name='gnmi.GetRequest.extension', index=5, - number=7, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _GETREQUEST_DATATYPE, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2707, - serialized_end=2986, + name="GetRequest", + full_name="gnmi.GetRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="prefix", + full_name="gnmi.GetRequest.prefix", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="path", + full_name="gnmi.GetRequest.path", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="type", + full_name="gnmi.GetRequest.type", + index=2, + number=3, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="encoding", + full_name="gnmi.GetRequest.encoding", + index=3, + number=5, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="use_models", + full_name="gnmi.GetRequest.use_models", + index=4, + number=6, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="extension", + full_name="gnmi.GetRequest.extension", + index=5, + number=7, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[ + _GETREQUEST_DATATYPE, + ], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2707, + serialized_end=2986, ) _GETRESPONSE = _descriptor.Descriptor( - name='GetResponse', - full_name='gnmi.GetResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='notification', full_name='gnmi.GetResponse.notification', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='error', full_name='gnmi.GetResponse.error', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'\030\001', file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='extension', full_name='gnmi.GetResponse.extension', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2988, - serialized_end=3115, + name="GetResponse", + full_name="gnmi.GetResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="notification", + full_name="gnmi.GetResponse.notification", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="error", + full_name="gnmi.GetResponse.error", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=b"\030\001", + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="extension", + full_name="gnmi.GetResponse.extension", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2988, + serialized_end=3115, ) _CAPABILITYREQUEST = _descriptor.Descriptor( - name='CapabilityRequest', - full_name='gnmi.CapabilityRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='extension', full_name='gnmi.CapabilityRequest.extension', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3117, - serialized_end=3176, + name="CapabilityRequest", + full_name="gnmi.CapabilityRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="extension", + full_name="gnmi.CapabilityRequest.extension", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3117, + serialized_end=3176, ) _CAPABILITYRESPONSE = _descriptor.Descriptor( - name='CapabilityResponse', - full_name='gnmi.CapabilityResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='supported_models', full_name='gnmi.CapabilityResponse.supported_models', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='supported_encodings', full_name='gnmi.CapabilityResponse.supported_encodings', index=1, - number=2, type=14, cpp_type=8, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='gNMI_version', full_name='gnmi.CapabilityResponse.gNMI_version', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='extension', full_name='gnmi.CapabilityResponse.extension', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3179, - serialized_end=3349, + name="CapabilityResponse", + full_name="gnmi.CapabilityResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="supported_models", + full_name="gnmi.CapabilityResponse.supported_models", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="supported_encodings", + full_name="gnmi.CapabilityResponse.supported_encodings", + index=1, + number=2, + type=14, + cpp_type=8, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="gNMI_version", + full_name="gnmi.CapabilityResponse.gNMI_version", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="extension", + full_name="gnmi.CapabilityResponse.extension", + index=3, + number=4, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3179, + serialized_end=3349, ) _MODELDATA = _descriptor.Descriptor( - name='ModelData', - full_name='gnmi.ModelData', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='gnmi.ModelData.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='organization', full_name='gnmi.ModelData.organization', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='version', full_name='gnmi.ModelData.version', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3351, - serialized_end=3415, + name="ModelData", + full_name="gnmi.ModelData", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="gnmi.ModelData.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="organization", + full_name="gnmi.ModelData.organization", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="version", + full_name="gnmi.ModelData.version", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=3351, + serialized_end=3415, ) -_NOTIFICATION.fields_by_name['prefix'].message_type = _PATH -_NOTIFICATION.fields_by_name['update'].message_type = _UPDATE -_NOTIFICATION.fields_by_name['delete'].message_type = _PATH -_UPDATE.fields_by_name['path'].message_type = _PATH -_UPDATE.fields_by_name['value'].message_type = _VALUE -_UPDATE.fields_by_name['val'].message_type = _TYPEDVALUE -_TYPEDVALUE.fields_by_name['decimal_val'].message_type = _DECIMAL64 -_TYPEDVALUE.fields_by_name['leaflist_val'].message_type = _SCALARARRAY -_TYPEDVALUE.fields_by_name['any_val'].message_type = google_dot_protobuf_dot_any__pb2._ANY -_TYPEDVALUE.oneofs_by_name['value'].fields.append( - _TYPEDVALUE.fields_by_name['string_val']) -_TYPEDVALUE.fields_by_name['string_val'].containing_oneof = _TYPEDVALUE.oneofs_by_name['value'] -_TYPEDVALUE.oneofs_by_name['value'].fields.append( - _TYPEDVALUE.fields_by_name['int_val']) -_TYPEDVALUE.fields_by_name['int_val'].containing_oneof = _TYPEDVALUE.oneofs_by_name['value'] -_TYPEDVALUE.oneofs_by_name['value'].fields.append( - _TYPEDVALUE.fields_by_name['uint_val']) -_TYPEDVALUE.fields_by_name['uint_val'].containing_oneof = _TYPEDVALUE.oneofs_by_name['value'] -_TYPEDVALUE.oneofs_by_name['value'].fields.append( - _TYPEDVALUE.fields_by_name['bool_val']) -_TYPEDVALUE.fields_by_name['bool_val'].containing_oneof = _TYPEDVALUE.oneofs_by_name['value'] -_TYPEDVALUE.oneofs_by_name['value'].fields.append( - _TYPEDVALUE.fields_by_name['bytes_val']) -_TYPEDVALUE.fields_by_name['bytes_val'].containing_oneof = _TYPEDVALUE.oneofs_by_name['value'] -_TYPEDVALUE.oneofs_by_name['value'].fields.append( - _TYPEDVALUE.fields_by_name['float_val']) -_TYPEDVALUE.fields_by_name['float_val'].containing_oneof = _TYPEDVALUE.oneofs_by_name['value'] -_TYPEDVALUE.oneofs_by_name['value'].fields.append( - _TYPEDVALUE.fields_by_name['decimal_val']) -_TYPEDVALUE.fields_by_name['decimal_val'].containing_oneof = _TYPEDVALUE.oneofs_by_name['value'] -_TYPEDVALUE.oneofs_by_name['value'].fields.append( - _TYPEDVALUE.fields_by_name['leaflist_val']) -_TYPEDVALUE.fields_by_name['leaflist_val'].containing_oneof = _TYPEDVALUE.oneofs_by_name['value'] -_TYPEDVALUE.oneofs_by_name['value'].fields.append( - _TYPEDVALUE.fields_by_name['any_val']) -_TYPEDVALUE.fields_by_name['any_val'].containing_oneof = _TYPEDVALUE.oneofs_by_name['value'] -_TYPEDVALUE.oneofs_by_name['value'].fields.append( - _TYPEDVALUE.fields_by_name['json_val']) -_TYPEDVALUE.fields_by_name['json_val'].containing_oneof = _TYPEDVALUE.oneofs_by_name['value'] -_TYPEDVALUE.oneofs_by_name['value'].fields.append( - _TYPEDVALUE.fields_by_name['json_ietf_val']) -_TYPEDVALUE.fields_by_name['json_ietf_val'].containing_oneof = _TYPEDVALUE.oneofs_by_name['value'] -_TYPEDVALUE.oneofs_by_name['value'].fields.append( - _TYPEDVALUE.fields_by_name['ascii_val']) -_TYPEDVALUE.fields_by_name['ascii_val'].containing_oneof = _TYPEDVALUE.oneofs_by_name['value'] -_TYPEDVALUE.oneofs_by_name['value'].fields.append( - _TYPEDVALUE.fields_by_name['proto_bytes']) -_TYPEDVALUE.fields_by_name['proto_bytes'].containing_oneof = _TYPEDVALUE.oneofs_by_name['value'] -_PATH.fields_by_name['elem'].message_type = _PATHELEM +_NOTIFICATION.fields_by_name["prefix"].message_type = _PATH +_NOTIFICATION.fields_by_name["update"].message_type = _UPDATE +_NOTIFICATION.fields_by_name["delete"].message_type = _PATH +_UPDATE.fields_by_name["path"].message_type = _PATH +_UPDATE.fields_by_name["value"].message_type = _VALUE +_UPDATE.fields_by_name["val"].message_type = _TYPEDVALUE +_TYPEDVALUE.fields_by_name["decimal_val"].message_type = _DECIMAL64 +_TYPEDVALUE.fields_by_name["leaflist_val"].message_type = _SCALARARRAY +_TYPEDVALUE.fields_by_name["any_val"].message_type = google_dot_protobuf_dot_any__pb2._ANY +_TYPEDVALUE.oneofs_by_name["value"].fields.append(_TYPEDVALUE.fields_by_name["string_val"]) +_TYPEDVALUE.fields_by_name["string_val"].containing_oneof = _TYPEDVALUE.oneofs_by_name["value"] +_TYPEDVALUE.oneofs_by_name["value"].fields.append(_TYPEDVALUE.fields_by_name["int_val"]) +_TYPEDVALUE.fields_by_name["int_val"].containing_oneof = _TYPEDVALUE.oneofs_by_name["value"] +_TYPEDVALUE.oneofs_by_name["value"].fields.append(_TYPEDVALUE.fields_by_name["uint_val"]) +_TYPEDVALUE.fields_by_name["uint_val"].containing_oneof = _TYPEDVALUE.oneofs_by_name["value"] +_TYPEDVALUE.oneofs_by_name["value"].fields.append(_TYPEDVALUE.fields_by_name["bool_val"]) +_TYPEDVALUE.fields_by_name["bool_val"].containing_oneof = _TYPEDVALUE.oneofs_by_name["value"] +_TYPEDVALUE.oneofs_by_name["value"].fields.append(_TYPEDVALUE.fields_by_name["bytes_val"]) +_TYPEDVALUE.fields_by_name["bytes_val"].containing_oneof = _TYPEDVALUE.oneofs_by_name["value"] +_TYPEDVALUE.oneofs_by_name["value"].fields.append(_TYPEDVALUE.fields_by_name["float_val"]) +_TYPEDVALUE.fields_by_name["float_val"].containing_oneof = _TYPEDVALUE.oneofs_by_name["value"] +_TYPEDVALUE.oneofs_by_name["value"].fields.append(_TYPEDVALUE.fields_by_name["decimal_val"]) +_TYPEDVALUE.fields_by_name["decimal_val"].containing_oneof = _TYPEDVALUE.oneofs_by_name["value"] +_TYPEDVALUE.oneofs_by_name["value"].fields.append(_TYPEDVALUE.fields_by_name["leaflist_val"]) +_TYPEDVALUE.fields_by_name["leaflist_val"].containing_oneof = _TYPEDVALUE.oneofs_by_name["value"] +_TYPEDVALUE.oneofs_by_name["value"].fields.append(_TYPEDVALUE.fields_by_name["any_val"]) +_TYPEDVALUE.fields_by_name["any_val"].containing_oneof = _TYPEDVALUE.oneofs_by_name["value"] +_TYPEDVALUE.oneofs_by_name["value"].fields.append(_TYPEDVALUE.fields_by_name["json_val"]) +_TYPEDVALUE.fields_by_name["json_val"].containing_oneof = _TYPEDVALUE.oneofs_by_name["value"] +_TYPEDVALUE.oneofs_by_name["value"].fields.append(_TYPEDVALUE.fields_by_name["json_ietf_val"]) +_TYPEDVALUE.fields_by_name["json_ietf_val"].containing_oneof = _TYPEDVALUE.oneofs_by_name["value"] +_TYPEDVALUE.oneofs_by_name["value"].fields.append(_TYPEDVALUE.fields_by_name["ascii_val"]) +_TYPEDVALUE.fields_by_name["ascii_val"].containing_oneof = _TYPEDVALUE.oneofs_by_name["value"] +_TYPEDVALUE.oneofs_by_name["value"].fields.append(_TYPEDVALUE.fields_by_name["proto_bytes"]) +_TYPEDVALUE.fields_by_name["proto_bytes"].containing_oneof = _TYPEDVALUE.oneofs_by_name["value"] +_PATH.fields_by_name["elem"].message_type = _PATHELEM _PATHELEM_KEYENTRY.containing_type = _PATHELEM -_PATHELEM.fields_by_name['key'].message_type = _PATHELEM_KEYENTRY -_VALUE.fields_by_name['type'].enum_type = _ENCODING -_ERROR.fields_by_name['data'].message_type = google_dot_protobuf_dot_any__pb2._ANY -_SCALARARRAY.fields_by_name['element'].message_type = _TYPEDVALUE -_SUBSCRIBEREQUEST.fields_by_name['subscribe'].message_type = _SUBSCRIPTIONLIST -_SUBSCRIBEREQUEST.fields_by_name['poll'].message_type = _POLL -_SUBSCRIBEREQUEST.fields_by_name['aliases'].message_type = _ALIASLIST -_SUBSCRIBEREQUEST.fields_by_name['extension'].message_type = gnmi__ext__pb2._EXTENSION -_SUBSCRIBEREQUEST.oneofs_by_name['request'].fields.append( - _SUBSCRIBEREQUEST.fields_by_name['subscribe']) -_SUBSCRIBEREQUEST.fields_by_name['subscribe'].containing_oneof = _SUBSCRIBEREQUEST.oneofs_by_name['request'] -_SUBSCRIBEREQUEST.oneofs_by_name['request'].fields.append( - _SUBSCRIBEREQUEST.fields_by_name['poll']) -_SUBSCRIBEREQUEST.fields_by_name['poll'].containing_oneof = _SUBSCRIBEREQUEST.oneofs_by_name['request'] -_SUBSCRIBEREQUEST.oneofs_by_name['request'].fields.append( - _SUBSCRIBEREQUEST.fields_by_name['aliases']) -_SUBSCRIBEREQUEST.fields_by_name['aliases'].containing_oneof = _SUBSCRIBEREQUEST.oneofs_by_name['request'] -_SUBSCRIBERESPONSE.fields_by_name['update'].message_type = _NOTIFICATION -_SUBSCRIBERESPONSE.fields_by_name['error'].message_type = _ERROR -_SUBSCRIBERESPONSE.fields_by_name['extension'].message_type = gnmi__ext__pb2._EXTENSION -_SUBSCRIBERESPONSE.oneofs_by_name['response'].fields.append( - _SUBSCRIBERESPONSE.fields_by_name['update']) -_SUBSCRIBERESPONSE.fields_by_name['update'].containing_oneof = _SUBSCRIBERESPONSE.oneofs_by_name['response'] -_SUBSCRIBERESPONSE.oneofs_by_name['response'].fields.append( - _SUBSCRIBERESPONSE.fields_by_name['sync_response']) -_SUBSCRIBERESPONSE.fields_by_name['sync_response'].containing_oneof = _SUBSCRIBERESPONSE.oneofs_by_name['response'] -_SUBSCRIBERESPONSE.oneofs_by_name['response'].fields.append( - _SUBSCRIBERESPONSE.fields_by_name['error']) -_SUBSCRIBERESPONSE.fields_by_name['error'].containing_oneof = _SUBSCRIBERESPONSE.oneofs_by_name['response'] -_SUBSCRIPTIONLIST.fields_by_name['prefix'].message_type = _PATH -_SUBSCRIPTIONLIST.fields_by_name['subscription'].message_type = _SUBSCRIPTION -_SUBSCRIPTIONLIST.fields_by_name['qos'].message_type = _QOSMARKING -_SUBSCRIPTIONLIST.fields_by_name['mode'].enum_type = _SUBSCRIPTIONLIST_MODE -_SUBSCRIPTIONLIST.fields_by_name['use_models'].message_type = _MODELDATA -_SUBSCRIPTIONLIST.fields_by_name['encoding'].enum_type = _ENCODING +_PATHELEM.fields_by_name["key"].message_type = _PATHELEM_KEYENTRY +_VALUE.fields_by_name["type"].enum_type = _ENCODING +_ERROR.fields_by_name["data"].message_type = google_dot_protobuf_dot_any__pb2._ANY +_SCALARARRAY.fields_by_name["element"].message_type = _TYPEDVALUE +_SUBSCRIBEREQUEST.fields_by_name["subscribe"].message_type = _SUBSCRIPTIONLIST +_SUBSCRIBEREQUEST.fields_by_name["poll"].message_type = _POLL +_SUBSCRIBEREQUEST.fields_by_name["aliases"].message_type = _ALIASLIST +_SUBSCRIBEREQUEST.fields_by_name["extension"].message_type = gnmi__ext__pb2._EXTENSION +_SUBSCRIBEREQUEST.oneofs_by_name["request"].fields.append(_SUBSCRIBEREQUEST.fields_by_name["subscribe"]) +_SUBSCRIBEREQUEST.fields_by_name["subscribe"].containing_oneof = _SUBSCRIBEREQUEST.oneofs_by_name["request"] +_SUBSCRIBEREQUEST.oneofs_by_name["request"].fields.append(_SUBSCRIBEREQUEST.fields_by_name["poll"]) +_SUBSCRIBEREQUEST.fields_by_name["poll"].containing_oneof = _SUBSCRIBEREQUEST.oneofs_by_name["request"] +_SUBSCRIBEREQUEST.oneofs_by_name["request"].fields.append(_SUBSCRIBEREQUEST.fields_by_name["aliases"]) +_SUBSCRIBEREQUEST.fields_by_name["aliases"].containing_oneof = _SUBSCRIBEREQUEST.oneofs_by_name["request"] +_SUBSCRIBERESPONSE.fields_by_name["update"].message_type = _NOTIFICATION +_SUBSCRIBERESPONSE.fields_by_name["error"].message_type = _ERROR +_SUBSCRIBERESPONSE.fields_by_name["extension"].message_type = gnmi__ext__pb2._EXTENSION +_SUBSCRIBERESPONSE.oneofs_by_name["response"].fields.append(_SUBSCRIBERESPONSE.fields_by_name["update"]) +_SUBSCRIBERESPONSE.fields_by_name["update"].containing_oneof = _SUBSCRIBERESPONSE.oneofs_by_name["response"] +_SUBSCRIBERESPONSE.oneofs_by_name["response"].fields.append(_SUBSCRIBERESPONSE.fields_by_name["sync_response"]) +_SUBSCRIBERESPONSE.fields_by_name["sync_response"].containing_oneof = _SUBSCRIBERESPONSE.oneofs_by_name["response"] +_SUBSCRIBERESPONSE.oneofs_by_name["response"].fields.append(_SUBSCRIBERESPONSE.fields_by_name["error"]) +_SUBSCRIBERESPONSE.fields_by_name["error"].containing_oneof = _SUBSCRIBERESPONSE.oneofs_by_name["response"] +_SUBSCRIPTIONLIST.fields_by_name["prefix"].message_type = _PATH +_SUBSCRIPTIONLIST.fields_by_name["subscription"].message_type = _SUBSCRIPTION +_SUBSCRIPTIONLIST.fields_by_name["qos"].message_type = _QOSMARKING +_SUBSCRIPTIONLIST.fields_by_name["mode"].enum_type = _SUBSCRIPTIONLIST_MODE +_SUBSCRIPTIONLIST.fields_by_name["use_models"].message_type = _MODELDATA +_SUBSCRIPTIONLIST.fields_by_name["encoding"].enum_type = _ENCODING _SUBSCRIPTIONLIST_MODE.containing_type = _SUBSCRIPTIONLIST -_SUBSCRIPTION.fields_by_name['path'].message_type = _PATH -_SUBSCRIPTION.fields_by_name['mode'].enum_type = _SUBSCRIPTIONMODE -_ALIAS.fields_by_name['path'].message_type = _PATH -_ALIASLIST.fields_by_name['alias'].message_type = _ALIAS -_SETREQUEST.fields_by_name['prefix'].message_type = _PATH -_SETREQUEST.fields_by_name['delete'].message_type = _PATH -_SETREQUEST.fields_by_name['replace'].message_type = _UPDATE -_SETREQUEST.fields_by_name['update'].message_type = _UPDATE -_SETREQUEST.fields_by_name['extension'].message_type = gnmi__ext__pb2._EXTENSION -_SETRESPONSE.fields_by_name['prefix'].message_type = _PATH -_SETRESPONSE.fields_by_name['response'].message_type = _UPDATERESULT -_SETRESPONSE.fields_by_name['message'].message_type = _ERROR -_SETRESPONSE.fields_by_name['extension'].message_type = gnmi__ext__pb2._EXTENSION -_UPDATERESULT.fields_by_name['path'].message_type = _PATH -_UPDATERESULT.fields_by_name['message'].message_type = _ERROR -_UPDATERESULT.fields_by_name['op'].enum_type = _UPDATERESULT_OPERATION +_SUBSCRIPTION.fields_by_name["path"].message_type = _PATH +_SUBSCRIPTION.fields_by_name["mode"].enum_type = _SUBSCRIPTIONMODE +_ALIAS.fields_by_name["path"].message_type = _PATH +_ALIASLIST.fields_by_name["alias"].message_type = _ALIAS +_SETREQUEST.fields_by_name["prefix"].message_type = _PATH +_SETREQUEST.fields_by_name["delete"].message_type = _PATH +_SETREQUEST.fields_by_name["replace"].message_type = _UPDATE +_SETREQUEST.fields_by_name["update"].message_type = _UPDATE +_SETREQUEST.fields_by_name["extension"].message_type = gnmi__ext__pb2._EXTENSION +_SETRESPONSE.fields_by_name["prefix"].message_type = _PATH +_SETRESPONSE.fields_by_name["response"].message_type = _UPDATERESULT +_SETRESPONSE.fields_by_name["message"].message_type = _ERROR +_SETRESPONSE.fields_by_name["extension"].message_type = gnmi__ext__pb2._EXTENSION +_UPDATERESULT.fields_by_name["path"].message_type = _PATH +_UPDATERESULT.fields_by_name["message"].message_type = _ERROR +_UPDATERESULT.fields_by_name["op"].enum_type = _UPDATERESULT_OPERATION _UPDATERESULT_OPERATION.containing_type = _UPDATERESULT -_GETREQUEST.fields_by_name['prefix'].message_type = _PATH -_GETREQUEST.fields_by_name['path'].message_type = _PATH -_GETREQUEST.fields_by_name['type'].enum_type = _GETREQUEST_DATATYPE -_GETREQUEST.fields_by_name['encoding'].enum_type = _ENCODING -_GETREQUEST.fields_by_name['use_models'].message_type = _MODELDATA -_GETREQUEST.fields_by_name['extension'].message_type = gnmi__ext__pb2._EXTENSION +_GETREQUEST.fields_by_name["prefix"].message_type = _PATH +_GETREQUEST.fields_by_name["path"].message_type = _PATH +_GETREQUEST.fields_by_name["type"].enum_type = _GETREQUEST_DATATYPE +_GETREQUEST.fields_by_name["encoding"].enum_type = _ENCODING +_GETREQUEST.fields_by_name["use_models"].message_type = _MODELDATA +_GETREQUEST.fields_by_name["extension"].message_type = gnmi__ext__pb2._EXTENSION _GETREQUEST_DATATYPE.containing_type = _GETREQUEST -_GETRESPONSE.fields_by_name['notification'].message_type = _NOTIFICATION -_GETRESPONSE.fields_by_name['error'].message_type = _ERROR -_GETRESPONSE.fields_by_name['extension'].message_type = gnmi__ext__pb2._EXTENSION -_CAPABILITYREQUEST.fields_by_name['extension'].message_type = gnmi__ext__pb2._EXTENSION -_CAPABILITYRESPONSE.fields_by_name['supported_models'].message_type = _MODELDATA -_CAPABILITYRESPONSE.fields_by_name['supported_encodings'].enum_type = _ENCODING -_CAPABILITYRESPONSE.fields_by_name['extension'].message_type = gnmi__ext__pb2._EXTENSION -DESCRIPTOR.message_types_by_name['Notification'] = _NOTIFICATION -DESCRIPTOR.message_types_by_name['Update'] = _UPDATE -DESCRIPTOR.message_types_by_name['TypedValue'] = _TYPEDVALUE -DESCRIPTOR.message_types_by_name['Path'] = _PATH -DESCRIPTOR.message_types_by_name['PathElem'] = _PATHELEM -DESCRIPTOR.message_types_by_name['Value'] = _VALUE -DESCRIPTOR.message_types_by_name['Error'] = _ERROR -DESCRIPTOR.message_types_by_name['Decimal64'] = _DECIMAL64 -DESCRIPTOR.message_types_by_name['ScalarArray'] = _SCALARARRAY -DESCRIPTOR.message_types_by_name['SubscribeRequest'] = _SUBSCRIBEREQUEST -DESCRIPTOR.message_types_by_name['Poll'] = _POLL -DESCRIPTOR.message_types_by_name['SubscribeResponse'] = _SUBSCRIBERESPONSE -DESCRIPTOR.message_types_by_name['SubscriptionList'] = _SUBSCRIPTIONLIST -DESCRIPTOR.message_types_by_name['Subscription'] = _SUBSCRIPTION -DESCRIPTOR.message_types_by_name['QOSMarking'] = _QOSMARKING -DESCRIPTOR.message_types_by_name['Alias'] = _ALIAS -DESCRIPTOR.message_types_by_name['AliasList'] = _ALIASLIST -DESCRIPTOR.message_types_by_name['SetRequest'] = _SETREQUEST -DESCRIPTOR.message_types_by_name['SetResponse'] = _SETRESPONSE -DESCRIPTOR.message_types_by_name['UpdateResult'] = _UPDATERESULT -DESCRIPTOR.message_types_by_name['GetRequest'] = _GETREQUEST -DESCRIPTOR.message_types_by_name['GetResponse'] = _GETRESPONSE -DESCRIPTOR.message_types_by_name['CapabilityRequest'] = _CAPABILITYREQUEST -DESCRIPTOR.message_types_by_name['CapabilityResponse'] = _CAPABILITYRESPONSE -DESCRIPTOR.message_types_by_name['ModelData'] = _MODELDATA -DESCRIPTOR.enum_types_by_name['Encoding'] = _ENCODING -DESCRIPTOR.enum_types_by_name['SubscriptionMode'] = _SUBSCRIPTIONMODE -DESCRIPTOR.extensions_by_name['gnmi_service'] = gnmi_service +_GETRESPONSE.fields_by_name["notification"].message_type = _NOTIFICATION +_GETRESPONSE.fields_by_name["error"].message_type = _ERROR +_GETRESPONSE.fields_by_name["extension"].message_type = gnmi__ext__pb2._EXTENSION +_CAPABILITYREQUEST.fields_by_name["extension"].message_type = gnmi__ext__pb2._EXTENSION +_CAPABILITYRESPONSE.fields_by_name["supported_models"].message_type = _MODELDATA +_CAPABILITYRESPONSE.fields_by_name["supported_encodings"].enum_type = _ENCODING +_CAPABILITYRESPONSE.fields_by_name["extension"].message_type = gnmi__ext__pb2._EXTENSION +DESCRIPTOR.message_types_by_name["Notification"] = _NOTIFICATION +DESCRIPTOR.message_types_by_name["Update"] = _UPDATE +DESCRIPTOR.message_types_by_name["TypedValue"] = _TYPEDVALUE +DESCRIPTOR.message_types_by_name["Path"] = _PATH +DESCRIPTOR.message_types_by_name["PathElem"] = _PATHELEM +DESCRIPTOR.message_types_by_name["Value"] = _VALUE +DESCRIPTOR.message_types_by_name["Error"] = _ERROR +DESCRIPTOR.message_types_by_name["Decimal64"] = _DECIMAL64 +DESCRIPTOR.message_types_by_name["ScalarArray"] = _SCALARARRAY +DESCRIPTOR.message_types_by_name["SubscribeRequest"] = _SUBSCRIBEREQUEST +DESCRIPTOR.message_types_by_name["Poll"] = _POLL +DESCRIPTOR.message_types_by_name["SubscribeResponse"] = _SUBSCRIBERESPONSE +DESCRIPTOR.message_types_by_name["SubscriptionList"] = _SUBSCRIPTIONLIST +DESCRIPTOR.message_types_by_name["Subscription"] = _SUBSCRIPTION +DESCRIPTOR.message_types_by_name["QOSMarking"] = _QOSMARKING +DESCRIPTOR.message_types_by_name["Alias"] = _ALIAS +DESCRIPTOR.message_types_by_name["AliasList"] = _ALIASLIST +DESCRIPTOR.message_types_by_name["SetRequest"] = _SETREQUEST +DESCRIPTOR.message_types_by_name["SetResponse"] = _SETRESPONSE +DESCRIPTOR.message_types_by_name["UpdateResult"] = _UPDATERESULT +DESCRIPTOR.message_types_by_name["GetRequest"] = _GETREQUEST +DESCRIPTOR.message_types_by_name["GetResponse"] = _GETRESPONSE +DESCRIPTOR.message_types_by_name["CapabilityRequest"] = _CAPABILITYREQUEST +DESCRIPTOR.message_types_by_name["CapabilityResponse"] = _CAPABILITYRESPONSE +DESCRIPTOR.message_types_by_name["ModelData"] = _MODELDATA +DESCRIPTOR.enum_types_by_name["Encoding"] = _ENCODING +DESCRIPTOR.enum_types_by_name["SubscriptionMode"] = _SUBSCRIPTIONMODE +DESCRIPTOR.extensions_by_name["gnmi_service"] = gnmi_service _sym_db.RegisterFileDescriptor(DESCRIPTOR) -Notification = _reflection.GeneratedProtocolMessageType('Notification', (_message.Message,), { - 'DESCRIPTOR' : _NOTIFICATION, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.Notification) - }) +Notification = _reflection.GeneratedProtocolMessageType( + "Notification", + (_message.Message,), + { + "DESCRIPTOR": _NOTIFICATION, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.Notification) + }, +) _sym_db.RegisterMessage(Notification) -Update = _reflection.GeneratedProtocolMessageType('Update', (_message.Message,), { - 'DESCRIPTOR' : _UPDATE, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.Update) - }) +Update = _reflection.GeneratedProtocolMessageType( + "Update", + (_message.Message,), + { + "DESCRIPTOR": _UPDATE, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.Update) + }, +) _sym_db.RegisterMessage(Update) -TypedValue = _reflection.GeneratedProtocolMessageType('TypedValue', (_message.Message,), { - 'DESCRIPTOR' : _TYPEDVALUE, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.TypedValue) - }) +TypedValue = _reflection.GeneratedProtocolMessageType( + "TypedValue", + (_message.Message,), + { + "DESCRIPTOR": _TYPEDVALUE, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.TypedValue) + }, +) _sym_db.RegisterMessage(TypedValue) -Path = _reflection.GeneratedProtocolMessageType('Path', (_message.Message,), { - 'DESCRIPTOR' : _PATH, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.Path) - }) +Path = _reflection.GeneratedProtocolMessageType( + "Path", + (_message.Message,), + { + "DESCRIPTOR": _PATH, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.Path) + }, +) _sym_db.RegisterMessage(Path) -PathElem = _reflection.GeneratedProtocolMessageType('PathElem', (_message.Message,), { - - 'KeyEntry' : _reflection.GeneratedProtocolMessageType('KeyEntry', (_message.Message,), { - 'DESCRIPTOR' : _PATHELEM_KEYENTRY, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.PathElem.KeyEntry) - }) - , - 'DESCRIPTOR' : _PATHELEM, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.PathElem) - }) +PathElem = _reflection.GeneratedProtocolMessageType( + "PathElem", + (_message.Message,), + { + "KeyEntry": _reflection.GeneratedProtocolMessageType( + "KeyEntry", + (_message.Message,), + { + "DESCRIPTOR": _PATHELEM_KEYENTRY, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.PathElem.KeyEntry) + }, + ), + "DESCRIPTOR": _PATHELEM, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.PathElem) + }, +) _sym_db.RegisterMessage(PathElem) _sym_db.RegisterMessage(PathElem.KeyEntry) -Value = _reflection.GeneratedProtocolMessageType('Value', (_message.Message,), { - 'DESCRIPTOR' : _VALUE, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.Value) - }) +Value = _reflection.GeneratedProtocolMessageType( + "Value", + (_message.Message,), + { + "DESCRIPTOR": _VALUE, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.Value) + }, +) _sym_db.RegisterMessage(Value) -Error = _reflection.GeneratedProtocolMessageType('Error', (_message.Message,), { - 'DESCRIPTOR' : _ERROR, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.Error) - }) +Error = _reflection.GeneratedProtocolMessageType( + "Error", + (_message.Message,), + { + "DESCRIPTOR": _ERROR, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.Error) + }, +) _sym_db.RegisterMessage(Error) -Decimal64 = _reflection.GeneratedProtocolMessageType('Decimal64', (_message.Message,), { - 'DESCRIPTOR' : _DECIMAL64, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.Decimal64) - }) +Decimal64 = _reflection.GeneratedProtocolMessageType( + "Decimal64", + (_message.Message,), + { + "DESCRIPTOR": _DECIMAL64, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.Decimal64) + }, +) _sym_db.RegisterMessage(Decimal64) -ScalarArray = _reflection.GeneratedProtocolMessageType('ScalarArray', (_message.Message,), { - 'DESCRIPTOR' : _SCALARARRAY, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.ScalarArray) - }) +ScalarArray = _reflection.GeneratedProtocolMessageType( + "ScalarArray", + (_message.Message,), + { + "DESCRIPTOR": _SCALARARRAY, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.ScalarArray) + }, +) _sym_db.RegisterMessage(ScalarArray) -SubscribeRequest = _reflection.GeneratedProtocolMessageType('SubscribeRequest', (_message.Message,), { - 'DESCRIPTOR' : _SUBSCRIBEREQUEST, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.SubscribeRequest) - }) +SubscribeRequest = _reflection.GeneratedProtocolMessageType( + "SubscribeRequest", + (_message.Message,), + { + "DESCRIPTOR": _SUBSCRIBEREQUEST, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.SubscribeRequest) + }, +) _sym_db.RegisterMessage(SubscribeRequest) -Poll = _reflection.GeneratedProtocolMessageType('Poll', (_message.Message,), { - 'DESCRIPTOR' : _POLL, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.Poll) - }) +Poll = _reflection.GeneratedProtocolMessageType( + "Poll", + (_message.Message,), + { + "DESCRIPTOR": _POLL, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.Poll) + }, +) _sym_db.RegisterMessage(Poll) -SubscribeResponse = _reflection.GeneratedProtocolMessageType('SubscribeResponse', (_message.Message,), { - 'DESCRIPTOR' : _SUBSCRIBERESPONSE, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.SubscribeResponse) - }) +SubscribeResponse = _reflection.GeneratedProtocolMessageType( + "SubscribeResponse", + (_message.Message,), + { + "DESCRIPTOR": _SUBSCRIBERESPONSE, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.SubscribeResponse) + }, +) _sym_db.RegisterMessage(SubscribeResponse) -SubscriptionList = _reflection.GeneratedProtocolMessageType('SubscriptionList', (_message.Message,), { - 'DESCRIPTOR' : _SUBSCRIPTIONLIST, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.SubscriptionList) - }) +SubscriptionList = _reflection.GeneratedProtocolMessageType( + "SubscriptionList", + (_message.Message,), + { + "DESCRIPTOR": _SUBSCRIPTIONLIST, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.SubscriptionList) + }, +) _sym_db.RegisterMessage(SubscriptionList) -Subscription = _reflection.GeneratedProtocolMessageType('Subscription', (_message.Message,), { - 'DESCRIPTOR' : _SUBSCRIPTION, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.Subscription) - }) +Subscription = _reflection.GeneratedProtocolMessageType( + "Subscription", + (_message.Message,), + { + "DESCRIPTOR": _SUBSCRIPTION, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.Subscription) + }, +) _sym_db.RegisterMessage(Subscription) -QOSMarking = _reflection.GeneratedProtocolMessageType('QOSMarking', (_message.Message,), { - 'DESCRIPTOR' : _QOSMARKING, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.QOSMarking) - }) +QOSMarking = _reflection.GeneratedProtocolMessageType( + "QOSMarking", + (_message.Message,), + { + "DESCRIPTOR": _QOSMARKING, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.QOSMarking) + }, +) _sym_db.RegisterMessage(QOSMarking) -Alias = _reflection.GeneratedProtocolMessageType('Alias', (_message.Message,), { - 'DESCRIPTOR' : _ALIAS, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.Alias) - }) +Alias = _reflection.GeneratedProtocolMessageType( + "Alias", + (_message.Message,), + { + "DESCRIPTOR": _ALIAS, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.Alias) + }, +) _sym_db.RegisterMessage(Alias) -AliasList = _reflection.GeneratedProtocolMessageType('AliasList', (_message.Message,), { - 'DESCRIPTOR' : _ALIASLIST, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.AliasList) - }) +AliasList = _reflection.GeneratedProtocolMessageType( + "AliasList", + (_message.Message,), + { + "DESCRIPTOR": _ALIASLIST, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.AliasList) + }, +) _sym_db.RegisterMessage(AliasList) -SetRequest = _reflection.GeneratedProtocolMessageType('SetRequest', (_message.Message,), { - 'DESCRIPTOR' : _SETREQUEST, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.SetRequest) - }) +SetRequest = _reflection.GeneratedProtocolMessageType( + "SetRequest", + (_message.Message,), + { + "DESCRIPTOR": _SETREQUEST, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.SetRequest) + }, +) _sym_db.RegisterMessage(SetRequest) -SetResponse = _reflection.GeneratedProtocolMessageType('SetResponse', (_message.Message,), { - 'DESCRIPTOR' : _SETRESPONSE, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.SetResponse) - }) +SetResponse = _reflection.GeneratedProtocolMessageType( + "SetResponse", + (_message.Message,), + { + "DESCRIPTOR": _SETRESPONSE, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.SetResponse) + }, +) _sym_db.RegisterMessage(SetResponse) -UpdateResult = _reflection.GeneratedProtocolMessageType('UpdateResult', (_message.Message,), { - 'DESCRIPTOR' : _UPDATERESULT, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.UpdateResult) - }) +UpdateResult = _reflection.GeneratedProtocolMessageType( + "UpdateResult", + (_message.Message,), + { + "DESCRIPTOR": _UPDATERESULT, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.UpdateResult) + }, +) _sym_db.RegisterMessage(UpdateResult) -GetRequest = _reflection.GeneratedProtocolMessageType('GetRequest', (_message.Message,), { - 'DESCRIPTOR' : _GETREQUEST, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.GetRequest) - }) +GetRequest = _reflection.GeneratedProtocolMessageType( + "GetRequest", + (_message.Message,), + { + "DESCRIPTOR": _GETREQUEST, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.GetRequest) + }, +) _sym_db.RegisterMessage(GetRequest) -GetResponse = _reflection.GeneratedProtocolMessageType('GetResponse', (_message.Message,), { - 'DESCRIPTOR' : _GETRESPONSE, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.GetResponse) - }) +GetResponse = _reflection.GeneratedProtocolMessageType( + "GetResponse", + (_message.Message,), + { + "DESCRIPTOR": _GETRESPONSE, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.GetResponse) + }, +) _sym_db.RegisterMessage(GetResponse) -CapabilityRequest = _reflection.GeneratedProtocolMessageType('CapabilityRequest', (_message.Message,), { - 'DESCRIPTOR' : _CAPABILITYREQUEST, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.CapabilityRequest) - }) +CapabilityRequest = _reflection.GeneratedProtocolMessageType( + "CapabilityRequest", + (_message.Message,), + { + "DESCRIPTOR": _CAPABILITYREQUEST, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.CapabilityRequest) + }, +) _sym_db.RegisterMessage(CapabilityRequest) -CapabilityResponse = _reflection.GeneratedProtocolMessageType('CapabilityResponse', (_message.Message,), { - 'DESCRIPTOR' : _CAPABILITYRESPONSE, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.CapabilityResponse) - }) +CapabilityResponse = _reflection.GeneratedProtocolMessageType( + "CapabilityResponse", + (_message.Message,), + { + "DESCRIPTOR": _CAPABILITYRESPONSE, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.CapabilityResponse) + }, +) _sym_db.RegisterMessage(CapabilityResponse) -ModelData = _reflection.GeneratedProtocolMessageType('ModelData', (_message.Message,), { - 'DESCRIPTOR' : _MODELDATA, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.ModelData) - }) +ModelData = _reflection.GeneratedProtocolMessageType( + "ModelData", + (_message.Message,), + { + "DESCRIPTOR": _MODELDATA, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.ModelData) + }, +) _sym_db.RegisterMessage(ModelData) google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(gnmi_service) DESCRIPTOR._options = None -_UPDATE.fields_by_name['value']._options = None -_PATH.fields_by_name['element']._options = None +_UPDATE.fields_by_name["value"]._options = None +_PATH.fields_by_name["element"]._options = None _PATHELEM_KEYENTRY._options = None _VALUE._options = None _ERROR._options = None -_SUBSCRIBERESPONSE.fields_by_name['error']._options = None -_SETRESPONSE.fields_by_name['message']._options = None -_UPDATERESULT.fields_by_name['timestamp']._options = None -_UPDATERESULT.fields_by_name['message']._options = None -_GETRESPONSE.fields_by_name['error']._options = None +_SUBSCRIBERESPONSE.fields_by_name["error"]._options = None +_SETRESPONSE.fields_by_name["message"]._options = None +_UPDATERESULT.fields_by_name["timestamp"]._options = None +_UPDATERESULT.fields_by_name["message"]._options = None +_GETRESPONSE.fields_by_name["error"]._options = None _GNMI = _descriptor.ServiceDescriptor( - name='gNMI', - full_name='gnmi.gNMI', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=3555, - serialized_end=3782, - methods=[ - _descriptor.MethodDescriptor( - name='Capabilities', - full_name='gnmi.gNMI.Capabilities', + name="gNMI", + full_name="gnmi.gNMI", + file=DESCRIPTOR, index=0, - containing_service=None, - input_type=_CAPABILITYREQUEST, - output_type=_CAPABILITYRESPONSE, - serialized_options=None, - ), - _descriptor.MethodDescriptor( - name='Get', - full_name='gnmi.gNMI.Get', - index=1, - containing_service=None, - input_type=_GETREQUEST, - output_type=_GETRESPONSE, serialized_options=None, - ), - _descriptor.MethodDescriptor( - name='Set', - full_name='gnmi.gNMI.Set', - index=2, - containing_service=None, - input_type=_SETREQUEST, - output_type=_SETRESPONSE, - serialized_options=None, - ), - _descriptor.MethodDescriptor( - name='Subscribe', - full_name='gnmi.gNMI.Subscribe', - index=3, - containing_service=None, - input_type=_SUBSCRIBEREQUEST, - output_type=_SUBSCRIBERESPONSE, - serialized_options=None, - ), -]) + serialized_start=3555, + serialized_end=3782, + methods=[ + _descriptor.MethodDescriptor( + name="Capabilities", + full_name="gnmi.gNMI.Capabilities", + index=0, + containing_service=None, + input_type=_CAPABILITYREQUEST, + output_type=_CAPABILITYRESPONSE, + serialized_options=None, + ), + _descriptor.MethodDescriptor( + name="Get", + full_name="gnmi.gNMI.Get", + index=1, + containing_service=None, + input_type=_GETREQUEST, + output_type=_GETRESPONSE, + serialized_options=None, + ), + _descriptor.MethodDescriptor( + name="Set", + full_name="gnmi.gNMI.Set", + index=2, + containing_service=None, + input_type=_SETREQUEST, + output_type=_SETRESPONSE, + serialized_options=None, + ), + _descriptor.MethodDescriptor( + name="Subscribe", + full_name="gnmi.gNMI.Subscribe", + index=3, + containing_service=None, + input_type=_SUBSCRIBEREQUEST, + output_type=_SUBSCRIBERESPONSE, + serialized_options=None, + ), + ], +) _sym_db.RegisterServiceDescriptor(_GNMI) -DESCRIPTOR.services_by_name['gNMI'] = _GNMI +DESCRIPTOR.services_by_name["gNMI"] = _GNMI # @@protoc_insertion_point(module_scope) diff --git a/pygnmi/spec/v070/gnmi_pb2_grpc.py b/pygnmi/spec/v070/gnmi_pb2_grpc.py index 81869d7..06cf9c9 100644 --- a/pygnmi/spec/v070/gnmi_pb2_grpc.py +++ b/pygnmi/spec/v070/gnmi_pb2_grpc.py @@ -6,109 +6,108 @@ class gNMIStub(object): - # missing associated documentation comment in .proto file - pass + # missing associated documentation comment in .proto file + pass - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. - Args: - channel: A grpc.Channel. - """ - self.Capabilities = channel.unary_unary( - '/gnmi.gNMI/Capabilities', - request_serializer=proto_dot_gnmi_dot_gnmi__pb2.CapabilityRequest.SerializeToString, - response_deserializer=proto_dot_gnmi_dot_gnmi__pb2.CapabilityResponse.FromString, + Args: + channel: A grpc.Channel. + """ + self.Capabilities = channel.unary_unary( + "/gnmi.gNMI/Capabilities", + request_serializer=proto_dot_gnmi_dot_gnmi__pb2.CapabilityRequest.SerializeToString, + response_deserializer=proto_dot_gnmi_dot_gnmi__pb2.CapabilityResponse.FromString, ) - self.Get = channel.unary_unary( - '/gnmi.gNMI/Get', - request_serializer=proto_dot_gnmi_dot_gnmi__pb2.GetRequest.SerializeToString, - response_deserializer=proto_dot_gnmi_dot_gnmi__pb2.GetResponse.FromString, + self.Get = channel.unary_unary( + "/gnmi.gNMI/Get", + request_serializer=proto_dot_gnmi_dot_gnmi__pb2.GetRequest.SerializeToString, + response_deserializer=proto_dot_gnmi_dot_gnmi__pb2.GetResponse.FromString, ) - self.Set = channel.unary_unary( - '/gnmi.gNMI/Set', - request_serializer=proto_dot_gnmi_dot_gnmi__pb2.SetRequest.SerializeToString, - response_deserializer=proto_dot_gnmi_dot_gnmi__pb2.SetResponse.FromString, + self.Set = channel.unary_unary( + "/gnmi.gNMI/Set", + request_serializer=proto_dot_gnmi_dot_gnmi__pb2.SetRequest.SerializeToString, + response_deserializer=proto_dot_gnmi_dot_gnmi__pb2.SetResponse.FromString, ) - self.Subscribe = channel.stream_stream( - '/gnmi.gNMI/Subscribe', - request_serializer=proto_dot_gnmi_dot_gnmi__pb2.SubscribeRequest.SerializeToString, - response_deserializer=proto_dot_gnmi_dot_gnmi__pb2.SubscribeResponse.FromString, + self.Subscribe = channel.stream_stream( + "/gnmi.gNMI/Subscribe", + request_serializer=proto_dot_gnmi_dot_gnmi__pb2.SubscribeRequest.SerializeToString, + response_deserializer=proto_dot_gnmi_dot_gnmi__pb2.SubscribeResponse.FromString, ) class gNMIServicer(object): - # missing associated documentation comment in .proto file - pass + # missing associated documentation comment in .proto file + pass - def Capabilities(self, request, context): - """Capabilities allows the client to retrieve the set of capabilities that - is supported by the target. This allows the target to validate the - service version that is implemented and retrieve the set of models that - the target supports. The models can then be specified in subsequent RPCs - to restrict the set of data that is utilized. - Reference: gNMI Specification Section 3.2 - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + def Capabilities(self, request, context): + """Capabilities allows the client to retrieve the set of capabilities that + is supported by the target. This allows the target to validate the + service version that is implemented and retrieve the set of models that + the target supports. The models can then be specified in subsequent RPCs + to restrict the set of data that is utilized. + Reference: gNMI Specification Section 3.2 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def Get(self, request, context): - """Retrieve a snapshot of data from the target. A Get RPC requests that the - target snapshots a subset of the data tree as specified by the paths - included in the message and serializes this to be returned to the - client using the specified encoding. - Reference: gNMI Specification Section 3.3 - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + def Get(self, request, context): + """Retrieve a snapshot of data from the target. A Get RPC requests that the + target snapshots a subset of the data tree as specified by the paths + included in the message and serializes this to be returned to the + client using the specified encoding. + Reference: gNMI Specification Section 3.3 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def Set(self, request, context): - """Set allows the client to modify the state of data on the target. The - paths to modified along with the new values that the client wishes - to set the value to. - Reference: gNMI Specification Section 3.4 - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + def Set(self, request, context): + """Set allows the client to modify the state of data on the target. The + paths to modified along with the new values that the client wishes + to set the value to. + Reference: gNMI Specification Section 3.4 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") - def Subscribe(self, request_iterator, context): - """Subscribe allows a client to request the target to send it values - of particular paths within the data tree. These values may be streamed - at a particular cadence (STREAM), sent one off on a long-lived channel - (POLL), or sent as a one-off retrieval (ONCE). - Reference: gNMI Specification Section 3.5 - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + def Subscribe(self, request_iterator, context): + """Subscribe allows a client to request the target to send it values + of particular paths within the data tree. These values may be streamed + at a particular cadence (STREAM), sent one off on a long-lived channel + (POLL), or sent as a one-off retrieval (ONCE). + Reference: gNMI Specification Section 3.5 + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_gNMIServicer_to_server(servicer, server): - rpc_method_handlers = { - 'Capabilities': grpc.unary_unary_rpc_method_handler( - servicer.Capabilities, - request_deserializer=proto_dot_gnmi_dot_gnmi__pb2.CapabilityRequest.FromString, - response_serializer=proto_dot_gnmi_dot_gnmi__pb2.CapabilityResponse.SerializeToString, - ), - 'Get': grpc.unary_unary_rpc_method_handler( - servicer.Get, - request_deserializer=proto_dot_gnmi_dot_gnmi__pb2.GetRequest.FromString, - response_serializer=proto_dot_gnmi_dot_gnmi__pb2.GetResponse.SerializeToString, - ), - 'Set': grpc.unary_unary_rpc_method_handler( - servicer.Set, - request_deserializer=proto_dot_gnmi_dot_gnmi__pb2.SetRequest.FromString, - response_serializer=proto_dot_gnmi_dot_gnmi__pb2.SetResponse.SerializeToString, - ), - 'Subscribe': grpc.stream_stream_rpc_method_handler( - servicer.Subscribe, - request_deserializer=proto_dot_gnmi_dot_gnmi__pb2.SubscribeRequest.FromString, - response_serializer=proto_dot_gnmi_dot_gnmi__pb2.SubscribeResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'gnmi.gNMI', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + "Capabilities": grpc.unary_unary_rpc_method_handler( + servicer.Capabilities, + request_deserializer=proto_dot_gnmi_dot_gnmi__pb2.CapabilityRequest.FromString, + response_serializer=proto_dot_gnmi_dot_gnmi__pb2.CapabilityResponse.SerializeToString, + ), + "Get": grpc.unary_unary_rpc_method_handler( + servicer.Get, + request_deserializer=proto_dot_gnmi_dot_gnmi__pb2.GetRequest.FromString, + response_serializer=proto_dot_gnmi_dot_gnmi__pb2.GetResponse.SerializeToString, + ), + "Set": grpc.unary_unary_rpc_method_handler( + servicer.Set, + request_deserializer=proto_dot_gnmi_dot_gnmi__pb2.SetRequest.FromString, + response_serializer=proto_dot_gnmi_dot_gnmi__pb2.SetResponse.SerializeToString, + ), + "Subscribe": grpc.stream_stream_rpc_method_handler( + servicer.Subscribe, + request_deserializer=proto_dot_gnmi_dot_gnmi__pb2.SubscribeRequest.FromString, + response_serializer=proto_dot_gnmi_dot_gnmi__pb2.SubscribeResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler("gnmi.gNMI", rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/pygnmi/spec/v080/gnmi_ext_pb2.py b/pygnmi/spec/v080/gnmi_ext_pb2.py index 2c39107..9ae2651 100644 --- a/pygnmi/spec/v080/gnmi_ext_pb2.py +++ b/pygnmi/spec/v080/gnmi_ext_pb2.py @@ -8,95 +8,124 @@ from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( + b'\n\x0egnmi_ext.proto\x12\x08gnmi_ext"\xac\x01\n\tExtension\x12\x37\n\x0eregistered_ext\x18\x01 \x01(\x0b\x32\x1d.gnmi_ext.RegisteredExtensionH\x00\x12\x39\n\x12master_arbitration\x18\x02 \x01(\x0b\x32\x1b.gnmi_ext.MasterArbitrationH\x00\x12$\n\x07history\x18\x03 \x01(\x0b\x32\x11.gnmi_ext.HistoryH\x00\x42\x05\n\x03\x65xt"E\n\x13RegisteredExtension\x12!\n\x02id\x18\x01 \x01(\x0e\x32\x15.gnmi_ext.ExtensionID\x12\x0b\n\x03msg\x18\x02 \x01(\x0c"Y\n\x11MasterArbitration\x12\x1c\n\x04role\x18\x01 \x01(\x0b\x32\x0e.gnmi_ext.Role\x12&\n\x0b\x65lection_id\x18\x02 \x01(\x0b\x32\x11.gnmi_ext.Uint128"$\n\x07Uint128\x12\x0c\n\x04high\x18\x01 \x01(\x04\x12\x0b\n\x03low\x18\x02 \x01(\x04"\x12\n\x04Role\x12\n\n\x02id\x18\x01 \x01(\t"S\n\x07History\x12\x17\n\rsnapshot_time\x18\x01 \x01(\x03H\x00\x12$\n\x05range\x18\x02 \x01(\x0b\x32\x13.gnmi_ext.TimeRangeH\x00\x42\t\n\x07request"\'\n\tTimeRange\x12\r\n\x05start\x18\x01 \x01(\x03\x12\x0b\n\x03\x65nd\x18\x02 \x01(\x03*3\n\x0b\x45xtensionID\x12\r\n\tEID_UNSET\x10\x00\x12\x15\n\x10\x45ID_EXPERIMENTAL\x10\xe7\x07\x42+Z)github.com/openconfig/gnmi/proto/gnmi_extb\x06proto3' +) - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0egnmi_ext.proto\x12\x08gnmi_ext\"\xac\x01\n\tExtension\x12\x37\n\x0eregistered_ext\x18\x01 \x01(\x0b\x32\x1d.gnmi_ext.RegisteredExtensionH\x00\x12\x39\n\x12master_arbitration\x18\x02 \x01(\x0b\x32\x1b.gnmi_ext.MasterArbitrationH\x00\x12$\n\x07history\x18\x03 \x01(\x0b\x32\x11.gnmi_ext.HistoryH\x00\x42\x05\n\x03\x65xt\"E\n\x13RegisteredExtension\x12!\n\x02id\x18\x01 \x01(\x0e\x32\x15.gnmi_ext.ExtensionID\x12\x0b\n\x03msg\x18\x02 \x01(\x0c\"Y\n\x11MasterArbitration\x12\x1c\n\x04role\x18\x01 \x01(\x0b\x32\x0e.gnmi_ext.Role\x12&\n\x0b\x65lection_id\x18\x02 \x01(\x0b\x32\x11.gnmi_ext.Uint128\"$\n\x07Uint128\x12\x0c\n\x04high\x18\x01 \x01(\x04\x12\x0b\n\x03low\x18\x02 \x01(\x04\"\x12\n\x04Role\x12\n\n\x02id\x18\x01 \x01(\t\"S\n\x07History\x12\x17\n\rsnapshot_time\x18\x01 \x01(\x03H\x00\x12$\n\x05range\x18\x02 \x01(\x0b\x32\x13.gnmi_ext.TimeRangeH\x00\x42\t\n\x07request\"\'\n\tTimeRange\x12\r\n\x05start\x18\x01 \x01(\x03\x12\x0b\n\x03\x65nd\x18\x02 \x01(\x03*3\n\x0b\x45xtensionID\x12\r\n\tEID_UNSET\x10\x00\x12\x15\n\x10\x45ID_EXPERIMENTAL\x10\xe7\x07\x42+Z)github.com/openconfig/gnmi/proto/gnmi_extb\x06proto3') - -_EXTENSIONID = DESCRIPTOR.enum_types_by_name['ExtensionID'] +_EXTENSIONID = DESCRIPTOR.enum_types_by_name["ExtensionID"] ExtensionID = enum_type_wrapper.EnumTypeWrapper(_EXTENSIONID) EID_UNSET = 0 EID_EXPERIMENTAL = 999 -_EXTENSION = DESCRIPTOR.message_types_by_name['Extension'] -_REGISTEREDEXTENSION = DESCRIPTOR.message_types_by_name['RegisteredExtension'] -_MASTERARBITRATION = DESCRIPTOR.message_types_by_name['MasterArbitration'] -_UINT128 = DESCRIPTOR.message_types_by_name['Uint128'] -_ROLE = DESCRIPTOR.message_types_by_name['Role'] -_HISTORY = DESCRIPTOR.message_types_by_name['History'] -_TIMERANGE = DESCRIPTOR.message_types_by_name['TimeRange'] -Extension = _reflection.GeneratedProtocolMessageType('Extension', (_message.Message,), { - 'DESCRIPTOR' : _EXTENSION, - '__module__' : 'gnmi_ext_pb2' - # @@protoc_insertion_point(class_scope:gnmi_ext.Extension) - }) +_EXTENSION = DESCRIPTOR.message_types_by_name["Extension"] +_REGISTEREDEXTENSION = DESCRIPTOR.message_types_by_name["RegisteredExtension"] +_MASTERARBITRATION = DESCRIPTOR.message_types_by_name["MasterArbitration"] +_UINT128 = DESCRIPTOR.message_types_by_name["Uint128"] +_ROLE = DESCRIPTOR.message_types_by_name["Role"] +_HISTORY = DESCRIPTOR.message_types_by_name["History"] +_TIMERANGE = DESCRIPTOR.message_types_by_name["TimeRange"] +Extension = _reflection.GeneratedProtocolMessageType( + "Extension", + (_message.Message,), + { + "DESCRIPTOR": _EXTENSION, + "__module__": "gnmi_ext_pb2" + # @@protoc_insertion_point(class_scope:gnmi_ext.Extension) + }, +) _sym_db.RegisterMessage(Extension) -RegisteredExtension = _reflection.GeneratedProtocolMessageType('RegisteredExtension', (_message.Message,), { - 'DESCRIPTOR' : _REGISTEREDEXTENSION, - '__module__' : 'gnmi_ext_pb2' - # @@protoc_insertion_point(class_scope:gnmi_ext.RegisteredExtension) - }) +RegisteredExtension = _reflection.GeneratedProtocolMessageType( + "RegisteredExtension", + (_message.Message,), + { + "DESCRIPTOR": _REGISTEREDEXTENSION, + "__module__": "gnmi_ext_pb2" + # @@protoc_insertion_point(class_scope:gnmi_ext.RegisteredExtension) + }, +) _sym_db.RegisterMessage(RegisteredExtension) -MasterArbitration = _reflection.GeneratedProtocolMessageType('MasterArbitration', (_message.Message,), { - 'DESCRIPTOR' : _MASTERARBITRATION, - '__module__' : 'gnmi_ext_pb2' - # @@protoc_insertion_point(class_scope:gnmi_ext.MasterArbitration) - }) +MasterArbitration = _reflection.GeneratedProtocolMessageType( + "MasterArbitration", + (_message.Message,), + { + "DESCRIPTOR": _MASTERARBITRATION, + "__module__": "gnmi_ext_pb2" + # @@protoc_insertion_point(class_scope:gnmi_ext.MasterArbitration) + }, +) _sym_db.RegisterMessage(MasterArbitration) -Uint128 = _reflection.GeneratedProtocolMessageType('Uint128', (_message.Message,), { - 'DESCRIPTOR' : _UINT128, - '__module__' : 'gnmi_ext_pb2' - # @@protoc_insertion_point(class_scope:gnmi_ext.Uint128) - }) +Uint128 = _reflection.GeneratedProtocolMessageType( + "Uint128", + (_message.Message,), + { + "DESCRIPTOR": _UINT128, + "__module__": "gnmi_ext_pb2" + # @@protoc_insertion_point(class_scope:gnmi_ext.Uint128) + }, +) _sym_db.RegisterMessage(Uint128) -Role = _reflection.GeneratedProtocolMessageType('Role', (_message.Message,), { - 'DESCRIPTOR' : _ROLE, - '__module__' : 'gnmi_ext_pb2' - # @@protoc_insertion_point(class_scope:gnmi_ext.Role) - }) +Role = _reflection.GeneratedProtocolMessageType( + "Role", + (_message.Message,), + { + "DESCRIPTOR": _ROLE, + "__module__": "gnmi_ext_pb2" + # @@protoc_insertion_point(class_scope:gnmi_ext.Role) + }, +) _sym_db.RegisterMessage(Role) -History = _reflection.GeneratedProtocolMessageType('History', (_message.Message,), { - 'DESCRIPTOR' : _HISTORY, - '__module__' : 'gnmi_ext_pb2' - # @@protoc_insertion_point(class_scope:gnmi_ext.History) - }) +History = _reflection.GeneratedProtocolMessageType( + "History", + (_message.Message,), + { + "DESCRIPTOR": _HISTORY, + "__module__": "gnmi_ext_pb2" + # @@protoc_insertion_point(class_scope:gnmi_ext.History) + }, +) _sym_db.RegisterMessage(History) -TimeRange = _reflection.GeneratedProtocolMessageType('TimeRange', (_message.Message,), { - 'DESCRIPTOR' : _TIMERANGE, - '__module__' : 'gnmi_ext_pb2' - # @@protoc_insertion_point(class_scope:gnmi_ext.TimeRange) - }) +TimeRange = _reflection.GeneratedProtocolMessageType( + "TimeRange", + (_message.Message,), + { + "DESCRIPTOR": _TIMERANGE, + "__module__": "gnmi_ext_pb2" + # @@protoc_insertion_point(class_scope:gnmi_ext.TimeRange) + }, +) _sym_db.RegisterMessage(TimeRange) if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'Z)github.com/openconfig/gnmi/proto/gnmi_ext' - _EXTENSIONID._serialized_start=549 - _EXTENSIONID._serialized_end=600 - _EXTENSION._serialized_start=29 - _EXTENSION._serialized_end=201 - _REGISTEREDEXTENSION._serialized_start=203 - _REGISTEREDEXTENSION._serialized_end=272 - _MASTERARBITRATION._serialized_start=274 - _MASTERARBITRATION._serialized_end=363 - _UINT128._serialized_start=365 - _UINT128._serialized_end=401 - _ROLE._serialized_start=403 - _ROLE._serialized_end=421 - _HISTORY._serialized_start=423 - _HISTORY._serialized_end=506 - _TIMERANGE._serialized_start=508 - _TIMERANGE._serialized_end=547 + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b"Z)github.com/openconfig/gnmi/proto/gnmi_ext" + _EXTENSIONID._serialized_start = 549 + _EXTENSIONID._serialized_end = 600 + _EXTENSION._serialized_start = 29 + _EXTENSION._serialized_end = 201 + _REGISTEREDEXTENSION._serialized_start = 203 + _REGISTEREDEXTENSION._serialized_end = 272 + _MASTERARBITRATION._serialized_start = 274 + _MASTERARBITRATION._serialized_end = 363 + _UINT128._serialized_start = 365 + _UINT128._serialized_end = 401 + _ROLE._serialized_start = 403 + _ROLE._serialized_end = 421 + _HISTORY._serialized_start = 423 + _HISTORY._serialized_end = 506 + _TIMERANGE._serialized_start = 508 + _TIMERANGE._serialized_end = 547 # @@protoc_insertion_point(module_scope) diff --git a/pygnmi/spec/v080/gnmi_pb2.py b/pygnmi/spec/v080/gnmi_pb2.py index 6843968..470898a 100644 --- a/pygnmi/spec/v080/gnmi_pb2.py +++ b/pygnmi/spec/v080/gnmi_pb2.py @@ -8,6 +8,7 @@ from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -18,11 +19,13 @@ import pygnmi.spec.v080.gnmi_ext_pb2 as gnmi__ext__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\ngnmi.proto\x12\x04gnmi\x1a\x19google/protobuf/any.proto\x1a google/protobuf/descriptor.proto\x1a\x0egnmi_ext.proto\"\x96\x01\n\x0cNotification\x12\x11\n\ttimestamp\x18\x01 \x01(\x03\x12\x1a\n\x06prefix\x18\x02 \x01(\x0b\x32\n.gnmi.Path\x12\r\n\x05\x61lias\x18\x03 \x01(\t\x12\x1c\n\x06update\x18\x04 \x03(\x0b\x32\x0c.gnmi.Update\x12\x1a\n\x06\x64\x65lete\x18\x05 \x03(\x0b\x32\n.gnmi.Path\x12\x0e\n\x06\x61tomic\x18\x06 \x01(\x08\"u\n\x06Update\x12\x18\n\x04path\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12\x1e\n\x05value\x18\x02 \x01(\x0b\x32\x0b.gnmi.ValueB\x02\x18\x01\x12\x1d\n\x03val\x18\x03 \x01(\x0b\x32\x10.gnmi.TypedValue\x12\x12\n\nduplicates\x18\x04 \x01(\r\"\x83\x03\n\nTypedValue\x12\x14\n\nstring_val\x18\x01 \x01(\tH\x00\x12\x11\n\x07int_val\x18\x02 \x01(\x03H\x00\x12\x12\n\x08uint_val\x18\x03 \x01(\x04H\x00\x12\x12\n\x08\x62ool_val\x18\x04 \x01(\x08H\x00\x12\x13\n\tbytes_val\x18\x05 \x01(\x0cH\x00\x12\x17\n\tfloat_val\x18\x06 \x01(\x02\x42\x02\x18\x01H\x00\x12\x14\n\ndouble_val\x18\x0e \x01(\x01H\x00\x12*\n\x0b\x64\x65\x63imal_val\x18\x07 \x01(\x0b\x32\x0f.gnmi.Decimal64B\x02\x18\x01H\x00\x12)\n\x0cleaflist_val\x18\x08 \x01(\x0b\x32\x11.gnmi.ScalarArrayH\x00\x12\'\n\x07\x61ny_val\x18\t \x01(\x0b\x32\x14.google.protobuf.AnyH\x00\x12\x12\n\x08json_val\x18\n \x01(\x0cH\x00\x12\x17\n\rjson_ietf_val\x18\x0b \x01(\x0cH\x00\x12\x13\n\tascii_val\x18\x0c \x01(\tH\x00\x12\x15\n\x0bproto_bytes\x18\r \x01(\x0cH\x00\x42\x07\n\x05value\"Y\n\x04Path\x12\x13\n\x07\x65lement\x18\x01 \x03(\tB\x02\x18\x01\x12\x0e\n\x06origin\x18\x02 \x01(\t\x12\x1c\n\x04\x65lem\x18\x03 \x03(\x0b\x32\x0e.gnmi.PathElem\x12\x0e\n\x06target\x18\x04 \x01(\t\"j\n\x08PathElem\x12\x0c\n\x04name\x18\x01 \x01(\t\x12$\n\x03key\x18\x02 \x03(\x0b\x32\x17.gnmi.PathElem.KeyEntry\x1a*\n\x08KeyEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"8\n\x05Value\x12\r\n\x05value\x18\x01 \x01(\x0c\x12\x1c\n\x04type\x18\x02 \x01(\x0e\x32\x0e.gnmi.Encoding:\x02\x18\x01\"N\n\x05\x45rror\x12\x0c\n\x04\x63ode\x18\x01 \x01(\r\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\"\n\x04\x64\x61ta\x18\x03 \x01(\x0b\x32\x14.google.protobuf.Any:\x02\x18\x01\".\n\tDecimal64\x12\x0e\n\x06\x64igits\x18\x01 \x01(\x03\x12\x11\n\tprecision\x18\x02 \x01(\r\"0\n\x0bScalarArray\x12!\n\x07\x65lement\x18\x01 \x03(\x0b\x32\x10.gnmi.TypedValue\"\xb2\x01\n\x10SubscribeRequest\x12+\n\tsubscribe\x18\x01 \x01(\x0b\x32\x16.gnmi.SubscriptionListH\x00\x12\x1a\n\x04poll\x18\x03 \x01(\x0b\x32\n.gnmi.PollH\x00\x12\"\n\x07\x61liases\x18\x04 \x01(\x0b\x32\x0f.gnmi.AliasListH\x00\x12&\n\textension\x18\x05 \x03(\x0b\x32\x13.gnmi_ext.ExtensionB\t\n\x07request\"\x06\n\x04Poll\"\xa8\x01\n\x11SubscribeResponse\x12$\n\x06update\x18\x01 \x01(\x0b\x32\x12.gnmi.NotificationH\x00\x12\x17\n\rsync_response\x18\x03 \x01(\x08H\x00\x12 \n\x05\x65rror\x18\x04 \x01(\x0b\x32\x0b.gnmi.ErrorB\x02\x18\x01H\x00\x12&\n\textension\x18\x05 \x03(\x0b\x32\x13.gnmi_ext.ExtensionB\n\n\x08response\"\xd7\x02\n\x10SubscriptionList\x12\x1a\n\x06prefix\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12(\n\x0csubscription\x18\x02 \x03(\x0b\x32\x12.gnmi.Subscription\x12\x13\n\x0buse_aliases\x18\x03 \x01(\x08\x12\x1d\n\x03qos\x18\x04 \x01(\x0b\x32\x10.gnmi.QOSMarking\x12)\n\x04mode\x18\x05 \x01(\x0e\x32\x1b.gnmi.SubscriptionList.Mode\x12\x19\n\x11\x61llow_aggregation\x18\x06 \x01(\x08\x12#\n\nuse_models\x18\x07 \x03(\x0b\x32\x0f.gnmi.ModelData\x12 \n\x08\x65ncoding\x18\x08 \x01(\x0e\x32\x0e.gnmi.Encoding\x12\x14\n\x0cupdates_only\x18\t \x01(\x08\"&\n\x04Mode\x12\n\n\x06STREAM\x10\x00\x12\x08\n\x04ONCE\x10\x01\x12\x08\n\x04POLL\x10\x02\"\x9f\x01\n\x0cSubscription\x12\x18\n\x04path\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12$\n\x04mode\x18\x02 \x01(\x0e\x32\x16.gnmi.SubscriptionMode\x12\x17\n\x0fsample_interval\x18\x03 \x01(\x04\x12\x1a\n\x12suppress_redundant\x18\x04 \x01(\x08\x12\x1a\n\x12heartbeat_interval\x18\x05 \x01(\x04\"\x1d\n\nQOSMarking\x12\x0f\n\x07marking\x18\x01 \x01(\r\"0\n\x05\x41lias\x12\x18\n\x04path\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12\r\n\x05\x61lias\x18\x02 \x01(\t\"\'\n\tAliasList\x12\x1a\n\x05\x61lias\x18\x01 \x03(\x0b\x32\x0b.gnmi.Alias\"\xa9\x01\n\nSetRequest\x12\x1a\n\x06prefix\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12\x1a\n\x06\x64\x65lete\x18\x02 \x03(\x0b\x32\n.gnmi.Path\x12\x1d\n\x07replace\x18\x03 \x03(\x0b\x32\x0c.gnmi.Update\x12\x1c\n\x06update\x18\x04 \x03(\x0b\x32\x0c.gnmi.Update\x12&\n\textension\x18\x05 \x03(\x0b\x32\x13.gnmi_ext.Extension\"\xac\x01\n\x0bSetResponse\x12\x1a\n\x06prefix\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12$\n\x08response\x18\x02 \x03(\x0b\x32\x12.gnmi.UpdateResult\x12 \n\x07message\x18\x03 \x01(\x0b\x32\x0b.gnmi.ErrorB\x02\x18\x01\x12\x11\n\ttimestamp\x18\x04 \x01(\x03\x12&\n\textension\x18\x05 \x03(\x0b\x32\x13.gnmi_ext.Extension\"\xca\x01\n\x0cUpdateResult\x12\x15\n\ttimestamp\x18\x01 \x01(\x03\x42\x02\x18\x01\x12\x18\n\x04path\x18\x02 \x01(\x0b\x32\n.gnmi.Path\x12 \n\x07message\x18\x03 \x01(\x0b\x32\x0b.gnmi.ErrorB\x02\x18\x01\x12(\n\x02op\x18\x04 \x01(\x0e\x32\x1c.gnmi.UpdateResult.Operation\"=\n\tOperation\x12\x0b\n\x07INVALID\x10\x00\x12\n\n\x06\x44\x45LETE\x10\x01\x12\x0b\n\x07REPLACE\x10\x02\x12\n\n\x06UPDATE\x10\x03\"\x97\x02\n\nGetRequest\x12\x1a\n\x06prefix\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12\x18\n\x04path\x18\x02 \x03(\x0b\x32\n.gnmi.Path\x12\'\n\x04type\x18\x03 \x01(\x0e\x32\x19.gnmi.GetRequest.DataType\x12 \n\x08\x65ncoding\x18\x05 \x01(\x0e\x32\x0e.gnmi.Encoding\x12#\n\nuse_models\x18\x06 \x03(\x0b\x32\x0f.gnmi.ModelData\x12&\n\textension\x18\x07 \x03(\x0b\x32\x13.gnmi_ext.Extension\";\n\x08\x44\x61taType\x12\x07\n\x03\x41LL\x10\x00\x12\n\n\x06\x43ONFIG\x10\x01\x12\t\n\x05STATE\x10\x02\x12\x0f\n\x0bOPERATIONAL\x10\x03\"\x7f\n\x0bGetResponse\x12(\n\x0cnotification\x18\x01 \x03(\x0b\x32\x12.gnmi.Notification\x12\x1e\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x0b.gnmi.ErrorB\x02\x18\x01\x12&\n\textension\x18\x03 \x03(\x0b\x32\x13.gnmi_ext.Extension\";\n\x11\x43\x61pabilityRequest\x12&\n\textension\x18\x01 \x03(\x0b\x32\x13.gnmi_ext.Extension\"\xaa\x01\n\x12\x43\x61pabilityResponse\x12)\n\x10supported_models\x18\x01 \x03(\x0b\x32\x0f.gnmi.ModelData\x12+\n\x13supported_encodings\x18\x02 \x03(\x0e\x32\x0e.gnmi.Encoding\x12\x14\n\x0cgNMI_version\x18\x03 \x01(\t\x12&\n\textension\x18\x04 \x03(\x0b\x32\x13.gnmi_ext.Extension\"@\n\tModelData\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0corganization\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t*D\n\x08\x45ncoding\x12\x08\n\x04JSON\x10\x00\x12\t\n\x05\x42YTES\x10\x01\x12\t\n\x05PROTO\x10\x02\x12\t\n\x05\x41SCII\x10\x03\x12\r\n\tJSON_IETF\x10\x04*A\n\x10SubscriptionMode\x12\x12\n\x0eTARGET_DEFINED\x10\x00\x12\r\n\tON_CHANGE\x10\x01\x12\n\n\x06SAMPLE\x10\x02\x32\xe3\x01\n\x04gNMI\x12\x41\n\x0c\x43\x61pabilities\x12\x17.gnmi.CapabilityRequest\x1a\x18.gnmi.CapabilityResponse\x12*\n\x03Get\x12\x10.gnmi.GetRequest\x1a\x11.gnmi.GetResponse\x12*\n\x03Set\x12\x10.gnmi.SetRequest\x1a\x11.gnmi.SetResponse\x12@\n\tSubscribe\x12\x16.gnmi.SubscribeRequest\x1a\x17.gnmi.SubscribeResponse(\x01\x30\x01\x62\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( + b'\n\ngnmi.proto\x12\x04gnmi\x1a\x19google/protobuf/any.proto\x1a google/protobuf/descriptor.proto\x1a\x0egnmi_ext.proto"\x96\x01\n\x0cNotification\x12\x11\n\ttimestamp\x18\x01 \x01(\x03\x12\x1a\n\x06prefix\x18\x02 \x01(\x0b\x32\n.gnmi.Path\x12\r\n\x05\x61lias\x18\x03 \x01(\t\x12\x1c\n\x06update\x18\x04 \x03(\x0b\x32\x0c.gnmi.Update\x12\x1a\n\x06\x64\x65lete\x18\x05 \x03(\x0b\x32\n.gnmi.Path\x12\x0e\n\x06\x61tomic\x18\x06 \x01(\x08"u\n\x06Update\x12\x18\n\x04path\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12\x1e\n\x05value\x18\x02 \x01(\x0b\x32\x0b.gnmi.ValueB\x02\x18\x01\x12\x1d\n\x03val\x18\x03 \x01(\x0b\x32\x10.gnmi.TypedValue\x12\x12\n\nduplicates\x18\x04 \x01(\r"\x83\x03\n\nTypedValue\x12\x14\n\nstring_val\x18\x01 \x01(\tH\x00\x12\x11\n\x07int_val\x18\x02 \x01(\x03H\x00\x12\x12\n\x08uint_val\x18\x03 \x01(\x04H\x00\x12\x12\n\x08\x62ool_val\x18\x04 \x01(\x08H\x00\x12\x13\n\tbytes_val\x18\x05 \x01(\x0cH\x00\x12\x17\n\tfloat_val\x18\x06 \x01(\x02\x42\x02\x18\x01H\x00\x12\x14\n\ndouble_val\x18\x0e \x01(\x01H\x00\x12*\n\x0b\x64\x65\x63imal_val\x18\x07 \x01(\x0b\x32\x0f.gnmi.Decimal64B\x02\x18\x01H\x00\x12)\n\x0cleaflist_val\x18\x08 \x01(\x0b\x32\x11.gnmi.ScalarArrayH\x00\x12\'\n\x07\x61ny_val\x18\t \x01(\x0b\x32\x14.google.protobuf.AnyH\x00\x12\x12\n\x08json_val\x18\n \x01(\x0cH\x00\x12\x17\n\rjson_ietf_val\x18\x0b \x01(\x0cH\x00\x12\x13\n\tascii_val\x18\x0c \x01(\tH\x00\x12\x15\n\x0bproto_bytes\x18\r \x01(\x0cH\x00\x42\x07\n\x05value"Y\n\x04Path\x12\x13\n\x07\x65lement\x18\x01 \x03(\tB\x02\x18\x01\x12\x0e\n\x06origin\x18\x02 \x01(\t\x12\x1c\n\x04\x65lem\x18\x03 \x03(\x0b\x32\x0e.gnmi.PathElem\x12\x0e\n\x06target\x18\x04 \x01(\t"j\n\x08PathElem\x12\x0c\n\x04name\x18\x01 \x01(\t\x12$\n\x03key\x18\x02 \x03(\x0b\x32\x17.gnmi.PathElem.KeyEntry\x1a*\n\x08KeyEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"8\n\x05Value\x12\r\n\x05value\x18\x01 \x01(\x0c\x12\x1c\n\x04type\x18\x02 \x01(\x0e\x32\x0e.gnmi.Encoding:\x02\x18\x01"N\n\x05\x45rror\x12\x0c\n\x04\x63ode\x18\x01 \x01(\r\x12\x0f\n\x07message\x18\x02 \x01(\t\x12"\n\x04\x64\x61ta\x18\x03 \x01(\x0b\x32\x14.google.protobuf.Any:\x02\x18\x01".\n\tDecimal64\x12\x0e\n\x06\x64igits\x18\x01 \x01(\x03\x12\x11\n\tprecision\x18\x02 \x01(\r"0\n\x0bScalarArray\x12!\n\x07\x65lement\x18\x01 \x03(\x0b\x32\x10.gnmi.TypedValue"\xb2\x01\n\x10SubscribeRequest\x12+\n\tsubscribe\x18\x01 \x01(\x0b\x32\x16.gnmi.SubscriptionListH\x00\x12\x1a\n\x04poll\x18\x03 \x01(\x0b\x32\n.gnmi.PollH\x00\x12"\n\x07\x61liases\x18\x04 \x01(\x0b\x32\x0f.gnmi.AliasListH\x00\x12&\n\textension\x18\x05 \x03(\x0b\x32\x13.gnmi_ext.ExtensionB\t\n\x07request"\x06\n\x04Poll"\xa8\x01\n\x11SubscribeResponse\x12$\n\x06update\x18\x01 \x01(\x0b\x32\x12.gnmi.NotificationH\x00\x12\x17\n\rsync_response\x18\x03 \x01(\x08H\x00\x12 \n\x05\x65rror\x18\x04 \x01(\x0b\x32\x0b.gnmi.ErrorB\x02\x18\x01H\x00\x12&\n\textension\x18\x05 \x03(\x0b\x32\x13.gnmi_ext.ExtensionB\n\n\x08response"\xd7\x02\n\x10SubscriptionList\x12\x1a\n\x06prefix\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12(\n\x0csubscription\x18\x02 \x03(\x0b\x32\x12.gnmi.Subscription\x12\x13\n\x0buse_aliases\x18\x03 \x01(\x08\x12\x1d\n\x03qos\x18\x04 \x01(\x0b\x32\x10.gnmi.QOSMarking\x12)\n\x04mode\x18\x05 \x01(\x0e\x32\x1b.gnmi.SubscriptionList.Mode\x12\x19\n\x11\x61llow_aggregation\x18\x06 \x01(\x08\x12#\n\nuse_models\x18\x07 \x03(\x0b\x32\x0f.gnmi.ModelData\x12 \n\x08\x65ncoding\x18\x08 \x01(\x0e\x32\x0e.gnmi.Encoding\x12\x14\n\x0cupdates_only\x18\t \x01(\x08"&\n\x04Mode\x12\n\n\x06STREAM\x10\x00\x12\x08\n\x04ONCE\x10\x01\x12\x08\n\x04POLL\x10\x02"\x9f\x01\n\x0cSubscription\x12\x18\n\x04path\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12$\n\x04mode\x18\x02 \x01(\x0e\x32\x16.gnmi.SubscriptionMode\x12\x17\n\x0fsample_interval\x18\x03 \x01(\x04\x12\x1a\n\x12suppress_redundant\x18\x04 \x01(\x08\x12\x1a\n\x12heartbeat_interval\x18\x05 \x01(\x04"\x1d\n\nQOSMarking\x12\x0f\n\x07marking\x18\x01 \x01(\r"0\n\x05\x41lias\x12\x18\n\x04path\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12\r\n\x05\x61lias\x18\x02 \x01(\t"\'\n\tAliasList\x12\x1a\n\x05\x61lias\x18\x01 \x03(\x0b\x32\x0b.gnmi.Alias"\xa9\x01\n\nSetRequest\x12\x1a\n\x06prefix\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12\x1a\n\x06\x64\x65lete\x18\x02 \x03(\x0b\x32\n.gnmi.Path\x12\x1d\n\x07replace\x18\x03 \x03(\x0b\x32\x0c.gnmi.Update\x12\x1c\n\x06update\x18\x04 \x03(\x0b\x32\x0c.gnmi.Update\x12&\n\textension\x18\x05 \x03(\x0b\x32\x13.gnmi_ext.Extension"\xac\x01\n\x0bSetResponse\x12\x1a\n\x06prefix\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12$\n\x08response\x18\x02 \x03(\x0b\x32\x12.gnmi.UpdateResult\x12 \n\x07message\x18\x03 \x01(\x0b\x32\x0b.gnmi.ErrorB\x02\x18\x01\x12\x11\n\ttimestamp\x18\x04 \x01(\x03\x12&\n\textension\x18\x05 \x03(\x0b\x32\x13.gnmi_ext.Extension"\xca\x01\n\x0cUpdateResult\x12\x15\n\ttimestamp\x18\x01 \x01(\x03\x42\x02\x18\x01\x12\x18\n\x04path\x18\x02 \x01(\x0b\x32\n.gnmi.Path\x12 \n\x07message\x18\x03 \x01(\x0b\x32\x0b.gnmi.ErrorB\x02\x18\x01\x12(\n\x02op\x18\x04 \x01(\x0e\x32\x1c.gnmi.UpdateResult.Operation"=\n\tOperation\x12\x0b\n\x07INVALID\x10\x00\x12\n\n\x06\x44\x45LETE\x10\x01\x12\x0b\n\x07REPLACE\x10\x02\x12\n\n\x06UPDATE\x10\x03"\x97\x02\n\nGetRequest\x12\x1a\n\x06prefix\x18\x01 \x01(\x0b\x32\n.gnmi.Path\x12\x18\n\x04path\x18\x02 \x03(\x0b\x32\n.gnmi.Path\x12\'\n\x04type\x18\x03 \x01(\x0e\x32\x19.gnmi.GetRequest.DataType\x12 \n\x08\x65ncoding\x18\x05 \x01(\x0e\x32\x0e.gnmi.Encoding\x12#\n\nuse_models\x18\x06 \x03(\x0b\x32\x0f.gnmi.ModelData\x12&\n\textension\x18\x07 \x03(\x0b\x32\x13.gnmi_ext.Extension";\n\x08\x44\x61taType\x12\x07\n\x03\x41LL\x10\x00\x12\n\n\x06\x43ONFIG\x10\x01\x12\t\n\x05STATE\x10\x02\x12\x0f\n\x0bOPERATIONAL\x10\x03"\x7f\n\x0bGetResponse\x12(\n\x0cnotification\x18\x01 \x03(\x0b\x32\x12.gnmi.Notification\x12\x1e\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x0b.gnmi.ErrorB\x02\x18\x01\x12&\n\textension\x18\x03 \x03(\x0b\x32\x13.gnmi_ext.Extension";\n\x11\x43\x61pabilityRequest\x12&\n\textension\x18\x01 \x03(\x0b\x32\x13.gnmi_ext.Extension"\xaa\x01\n\x12\x43\x61pabilityResponse\x12)\n\x10supported_models\x18\x01 \x03(\x0b\x32\x0f.gnmi.ModelData\x12+\n\x13supported_encodings\x18\x02 \x03(\x0e\x32\x0e.gnmi.Encoding\x12\x14\n\x0cgNMI_version\x18\x03 \x01(\t\x12&\n\textension\x18\x04 \x03(\x0b\x32\x13.gnmi_ext.Extension"@\n\tModelData\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0corganization\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t*D\n\x08\x45ncoding\x12\x08\n\x04JSON\x10\x00\x12\t\n\x05\x42YTES\x10\x01\x12\t\n\x05PROTO\x10\x02\x12\t\n\x05\x41SCII\x10\x03\x12\r\n\tJSON_IETF\x10\x04*A\n\x10SubscriptionMode\x12\x12\n\x0eTARGET_DEFINED\x10\x00\x12\r\n\tON_CHANGE\x10\x01\x12\n\n\x06SAMPLE\x10\x02\x32\xe3\x01\n\x04gNMI\x12\x41\n\x0c\x43\x61pabilities\x12\x17.gnmi.CapabilityRequest\x1a\x18.gnmi.CapabilityResponse\x12*\n\x03Get\x12\x10.gnmi.GetRequest\x1a\x11.gnmi.GetResponse\x12*\n\x03Set\x12\x10.gnmi.SetRequest\x1a\x11.gnmi.SetResponse\x12@\n\tSubscribe\x12\x16.gnmi.SubscribeRequest\x1a\x17.gnmi.SubscribeResponse(\x01\x30\x01\x62\x06proto3' +) -_ENCODING = DESCRIPTOR.enum_types_by_name['Encoding'] +_ENCODING = DESCRIPTOR.enum_types_by_name["Encoding"] Encoding = enum_type_wrapper.EnumTypeWrapper(_ENCODING) -_SUBSCRIPTIONMODE = DESCRIPTOR.enum_types_by_name['SubscriptionMode'] +_SUBSCRIPTIONMODE = DESCRIPTOR.enum_types_by_name["SubscriptionMode"] SubscriptionMode = enum_type_wrapper.EnumTypeWrapper(_SUBSCRIPTIONMODE) JSON = 0 BYTES = 1 @@ -34,308 +37,410 @@ SAMPLE = 2 -_NOTIFICATION = DESCRIPTOR.message_types_by_name['Notification'] -_UPDATE = DESCRIPTOR.message_types_by_name['Update'] -_TYPEDVALUE = DESCRIPTOR.message_types_by_name['TypedValue'] -_PATH = DESCRIPTOR.message_types_by_name['Path'] -_PATHELEM = DESCRIPTOR.message_types_by_name['PathElem'] -_PATHELEM_KEYENTRY = _PATHELEM.nested_types_by_name['KeyEntry'] -_VALUE = DESCRIPTOR.message_types_by_name['Value'] -_ERROR = DESCRIPTOR.message_types_by_name['Error'] -_DECIMAL64 = DESCRIPTOR.message_types_by_name['Decimal64'] -_SCALARARRAY = DESCRIPTOR.message_types_by_name['ScalarArray'] -_SUBSCRIBEREQUEST = DESCRIPTOR.message_types_by_name['SubscribeRequest'] -_POLL = DESCRIPTOR.message_types_by_name['Poll'] -_SUBSCRIBERESPONSE = DESCRIPTOR.message_types_by_name['SubscribeResponse'] -_SUBSCRIPTIONLIST = DESCRIPTOR.message_types_by_name['SubscriptionList'] -_SUBSCRIPTION = DESCRIPTOR.message_types_by_name['Subscription'] -_QOSMARKING = DESCRIPTOR.message_types_by_name['QOSMarking'] -_ALIAS = DESCRIPTOR.message_types_by_name['Alias'] -_ALIASLIST = DESCRIPTOR.message_types_by_name['AliasList'] -_SETREQUEST = DESCRIPTOR.message_types_by_name['SetRequest'] -_SETRESPONSE = DESCRIPTOR.message_types_by_name['SetResponse'] -_UPDATERESULT = DESCRIPTOR.message_types_by_name['UpdateResult'] -_GETREQUEST = DESCRIPTOR.message_types_by_name['GetRequest'] -_GETRESPONSE = DESCRIPTOR.message_types_by_name['GetResponse'] -_CAPABILITYREQUEST = DESCRIPTOR.message_types_by_name['CapabilityRequest'] -_CAPABILITYRESPONSE = DESCRIPTOR.message_types_by_name['CapabilityResponse'] -_MODELDATA = DESCRIPTOR.message_types_by_name['ModelData'] -_SUBSCRIPTIONLIST_MODE = _SUBSCRIPTIONLIST.enum_types_by_name['Mode'] -_UPDATERESULT_OPERATION = _UPDATERESULT.enum_types_by_name['Operation'] -_GETREQUEST_DATATYPE = _GETREQUEST.enum_types_by_name['DataType'] -Notification = _reflection.GeneratedProtocolMessageType('Notification', (_message.Message,), { - 'DESCRIPTOR' : _NOTIFICATION, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.Notification) - }) +_NOTIFICATION = DESCRIPTOR.message_types_by_name["Notification"] +_UPDATE = DESCRIPTOR.message_types_by_name["Update"] +_TYPEDVALUE = DESCRIPTOR.message_types_by_name["TypedValue"] +_PATH = DESCRIPTOR.message_types_by_name["Path"] +_PATHELEM = DESCRIPTOR.message_types_by_name["PathElem"] +_PATHELEM_KEYENTRY = _PATHELEM.nested_types_by_name["KeyEntry"] +_VALUE = DESCRIPTOR.message_types_by_name["Value"] +_ERROR = DESCRIPTOR.message_types_by_name["Error"] +_DECIMAL64 = DESCRIPTOR.message_types_by_name["Decimal64"] +_SCALARARRAY = DESCRIPTOR.message_types_by_name["ScalarArray"] +_SUBSCRIBEREQUEST = DESCRIPTOR.message_types_by_name["SubscribeRequest"] +_POLL = DESCRIPTOR.message_types_by_name["Poll"] +_SUBSCRIBERESPONSE = DESCRIPTOR.message_types_by_name["SubscribeResponse"] +_SUBSCRIPTIONLIST = DESCRIPTOR.message_types_by_name["SubscriptionList"] +_SUBSCRIPTION = DESCRIPTOR.message_types_by_name["Subscription"] +_QOSMARKING = DESCRIPTOR.message_types_by_name["QOSMarking"] +_ALIAS = DESCRIPTOR.message_types_by_name["Alias"] +_ALIASLIST = DESCRIPTOR.message_types_by_name["AliasList"] +_SETREQUEST = DESCRIPTOR.message_types_by_name["SetRequest"] +_SETRESPONSE = DESCRIPTOR.message_types_by_name["SetResponse"] +_UPDATERESULT = DESCRIPTOR.message_types_by_name["UpdateResult"] +_GETREQUEST = DESCRIPTOR.message_types_by_name["GetRequest"] +_GETRESPONSE = DESCRIPTOR.message_types_by_name["GetResponse"] +_CAPABILITYREQUEST = DESCRIPTOR.message_types_by_name["CapabilityRequest"] +_CAPABILITYRESPONSE = DESCRIPTOR.message_types_by_name["CapabilityResponse"] +_MODELDATA = DESCRIPTOR.message_types_by_name["ModelData"] +_SUBSCRIPTIONLIST_MODE = _SUBSCRIPTIONLIST.enum_types_by_name["Mode"] +_UPDATERESULT_OPERATION = _UPDATERESULT.enum_types_by_name["Operation"] +_GETREQUEST_DATATYPE = _GETREQUEST.enum_types_by_name["DataType"] +Notification = _reflection.GeneratedProtocolMessageType( + "Notification", + (_message.Message,), + { + "DESCRIPTOR": _NOTIFICATION, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.Notification) + }, +) _sym_db.RegisterMessage(Notification) -Update = _reflection.GeneratedProtocolMessageType('Update', (_message.Message,), { - 'DESCRIPTOR' : _UPDATE, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.Update) - }) +Update = _reflection.GeneratedProtocolMessageType( + "Update", + (_message.Message,), + { + "DESCRIPTOR": _UPDATE, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.Update) + }, +) _sym_db.RegisterMessage(Update) -TypedValue = _reflection.GeneratedProtocolMessageType('TypedValue', (_message.Message,), { - 'DESCRIPTOR' : _TYPEDVALUE, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.TypedValue) - }) +TypedValue = _reflection.GeneratedProtocolMessageType( + "TypedValue", + (_message.Message,), + { + "DESCRIPTOR": _TYPEDVALUE, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.TypedValue) + }, +) _sym_db.RegisterMessage(TypedValue) -Path = _reflection.GeneratedProtocolMessageType('Path', (_message.Message,), { - 'DESCRIPTOR' : _PATH, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.Path) - }) +Path = _reflection.GeneratedProtocolMessageType( + "Path", + (_message.Message,), + { + "DESCRIPTOR": _PATH, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.Path) + }, +) _sym_db.RegisterMessage(Path) -PathElem = _reflection.GeneratedProtocolMessageType('PathElem', (_message.Message,), { - - 'KeyEntry' : _reflection.GeneratedProtocolMessageType('KeyEntry', (_message.Message,), { - 'DESCRIPTOR' : _PATHELEM_KEYENTRY, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.PathElem.KeyEntry) - }) - , - 'DESCRIPTOR' : _PATHELEM, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.PathElem) - }) +PathElem = _reflection.GeneratedProtocolMessageType( + "PathElem", + (_message.Message,), + { + "KeyEntry": _reflection.GeneratedProtocolMessageType( + "KeyEntry", + (_message.Message,), + { + "DESCRIPTOR": _PATHELEM_KEYENTRY, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.PathElem.KeyEntry) + }, + ), + "DESCRIPTOR": _PATHELEM, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.PathElem) + }, +) _sym_db.RegisterMessage(PathElem) _sym_db.RegisterMessage(PathElem.KeyEntry) -Value = _reflection.GeneratedProtocolMessageType('Value', (_message.Message,), { - 'DESCRIPTOR' : _VALUE, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.Value) - }) +Value = _reflection.GeneratedProtocolMessageType( + "Value", + (_message.Message,), + { + "DESCRIPTOR": _VALUE, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.Value) + }, +) _sym_db.RegisterMessage(Value) -Error = _reflection.GeneratedProtocolMessageType('Error', (_message.Message,), { - 'DESCRIPTOR' : _ERROR, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.Error) - }) +Error = _reflection.GeneratedProtocolMessageType( + "Error", + (_message.Message,), + { + "DESCRIPTOR": _ERROR, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.Error) + }, +) _sym_db.RegisterMessage(Error) -Decimal64 = _reflection.GeneratedProtocolMessageType('Decimal64', (_message.Message,), { - 'DESCRIPTOR' : _DECIMAL64, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.Decimal64) - }) +Decimal64 = _reflection.GeneratedProtocolMessageType( + "Decimal64", + (_message.Message,), + { + "DESCRIPTOR": _DECIMAL64, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.Decimal64) + }, +) _sym_db.RegisterMessage(Decimal64) -ScalarArray = _reflection.GeneratedProtocolMessageType('ScalarArray', (_message.Message,), { - 'DESCRIPTOR' : _SCALARARRAY, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.ScalarArray) - }) +ScalarArray = _reflection.GeneratedProtocolMessageType( + "ScalarArray", + (_message.Message,), + { + "DESCRIPTOR": _SCALARARRAY, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.ScalarArray) + }, +) _sym_db.RegisterMessage(ScalarArray) -SubscribeRequest = _reflection.GeneratedProtocolMessageType('SubscribeRequest', (_message.Message,), { - 'DESCRIPTOR' : _SUBSCRIBEREQUEST, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.SubscribeRequest) - }) +SubscribeRequest = _reflection.GeneratedProtocolMessageType( + "SubscribeRequest", + (_message.Message,), + { + "DESCRIPTOR": _SUBSCRIBEREQUEST, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.SubscribeRequest) + }, +) _sym_db.RegisterMessage(SubscribeRequest) -Poll = _reflection.GeneratedProtocolMessageType('Poll', (_message.Message,), { - 'DESCRIPTOR' : _POLL, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.Poll) - }) +Poll = _reflection.GeneratedProtocolMessageType( + "Poll", + (_message.Message,), + { + "DESCRIPTOR": _POLL, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.Poll) + }, +) _sym_db.RegisterMessage(Poll) -SubscribeResponse = _reflection.GeneratedProtocolMessageType('SubscribeResponse', (_message.Message,), { - 'DESCRIPTOR' : _SUBSCRIBERESPONSE, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.SubscribeResponse) - }) +SubscribeResponse = _reflection.GeneratedProtocolMessageType( + "SubscribeResponse", + (_message.Message,), + { + "DESCRIPTOR": _SUBSCRIBERESPONSE, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.SubscribeResponse) + }, +) _sym_db.RegisterMessage(SubscribeResponse) -SubscriptionList = _reflection.GeneratedProtocolMessageType('SubscriptionList', (_message.Message,), { - 'DESCRIPTOR' : _SUBSCRIPTIONLIST, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.SubscriptionList) - }) +SubscriptionList = _reflection.GeneratedProtocolMessageType( + "SubscriptionList", + (_message.Message,), + { + "DESCRIPTOR": _SUBSCRIPTIONLIST, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.SubscriptionList) + }, +) _sym_db.RegisterMessage(SubscriptionList) -Subscription = _reflection.GeneratedProtocolMessageType('Subscription', (_message.Message,), { - 'DESCRIPTOR' : _SUBSCRIPTION, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.Subscription) - }) +Subscription = _reflection.GeneratedProtocolMessageType( + "Subscription", + (_message.Message,), + { + "DESCRIPTOR": _SUBSCRIPTION, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.Subscription) + }, +) _sym_db.RegisterMessage(Subscription) -QOSMarking = _reflection.GeneratedProtocolMessageType('QOSMarking', (_message.Message,), { - 'DESCRIPTOR' : _QOSMARKING, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.QOSMarking) - }) +QOSMarking = _reflection.GeneratedProtocolMessageType( + "QOSMarking", + (_message.Message,), + { + "DESCRIPTOR": _QOSMARKING, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.QOSMarking) + }, +) _sym_db.RegisterMessage(QOSMarking) -Alias = _reflection.GeneratedProtocolMessageType('Alias', (_message.Message,), { - 'DESCRIPTOR' : _ALIAS, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.Alias) - }) +Alias = _reflection.GeneratedProtocolMessageType( + "Alias", + (_message.Message,), + { + "DESCRIPTOR": _ALIAS, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.Alias) + }, +) _sym_db.RegisterMessage(Alias) -AliasList = _reflection.GeneratedProtocolMessageType('AliasList', (_message.Message,), { - 'DESCRIPTOR' : _ALIASLIST, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.AliasList) - }) +AliasList = _reflection.GeneratedProtocolMessageType( + "AliasList", + (_message.Message,), + { + "DESCRIPTOR": _ALIASLIST, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.AliasList) + }, +) _sym_db.RegisterMessage(AliasList) -SetRequest = _reflection.GeneratedProtocolMessageType('SetRequest', (_message.Message,), { - 'DESCRIPTOR' : _SETREQUEST, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.SetRequest) - }) +SetRequest = _reflection.GeneratedProtocolMessageType( + "SetRequest", + (_message.Message,), + { + "DESCRIPTOR": _SETREQUEST, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.SetRequest) + }, +) _sym_db.RegisterMessage(SetRequest) -SetResponse = _reflection.GeneratedProtocolMessageType('SetResponse', (_message.Message,), { - 'DESCRIPTOR' : _SETRESPONSE, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.SetResponse) - }) +SetResponse = _reflection.GeneratedProtocolMessageType( + "SetResponse", + (_message.Message,), + { + "DESCRIPTOR": _SETRESPONSE, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.SetResponse) + }, +) _sym_db.RegisterMessage(SetResponse) -UpdateResult = _reflection.GeneratedProtocolMessageType('UpdateResult', (_message.Message,), { - 'DESCRIPTOR' : _UPDATERESULT, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.UpdateResult) - }) +UpdateResult = _reflection.GeneratedProtocolMessageType( + "UpdateResult", + (_message.Message,), + { + "DESCRIPTOR": _UPDATERESULT, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.UpdateResult) + }, +) _sym_db.RegisterMessage(UpdateResult) -GetRequest = _reflection.GeneratedProtocolMessageType('GetRequest', (_message.Message,), { - 'DESCRIPTOR' : _GETREQUEST, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.GetRequest) - }) +GetRequest = _reflection.GeneratedProtocolMessageType( + "GetRequest", + (_message.Message,), + { + "DESCRIPTOR": _GETREQUEST, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.GetRequest) + }, +) _sym_db.RegisterMessage(GetRequest) -GetResponse = _reflection.GeneratedProtocolMessageType('GetResponse', (_message.Message,), { - 'DESCRIPTOR' : _GETRESPONSE, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.GetResponse) - }) +GetResponse = _reflection.GeneratedProtocolMessageType( + "GetResponse", + (_message.Message,), + { + "DESCRIPTOR": _GETRESPONSE, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.GetResponse) + }, +) _sym_db.RegisterMessage(GetResponse) -CapabilityRequest = _reflection.GeneratedProtocolMessageType('CapabilityRequest', (_message.Message,), { - 'DESCRIPTOR' : _CAPABILITYREQUEST, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.CapabilityRequest) - }) +CapabilityRequest = _reflection.GeneratedProtocolMessageType( + "CapabilityRequest", + (_message.Message,), + { + "DESCRIPTOR": _CAPABILITYREQUEST, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.CapabilityRequest) + }, +) _sym_db.RegisterMessage(CapabilityRequest) -CapabilityResponse = _reflection.GeneratedProtocolMessageType('CapabilityResponse', (_message.Message,), { - 'DESCRIPTOR' : _CAPABILITYRESPONSE, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.CapabilityResponse) - }) +CapabilityResponse = _reflection.GeneratedProtocolMessageType( + "CapabilityResponse", + (_message.Message,), + { + "DESCRIPTOR": _CAPABILITYRESPONSE, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.CapabilityResponse) + }, +) _sym_db.RegisterMessage(CapabilityResponse) -ModelData = _reflection.GeneratedProtocolMessageType('ModelData', (_message.Message,), { - 'DESCRIPTOR' : _MODELDATA, - '__module__' : 'gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.ModelData) - }) +ModelData = _reflection.GeneratedProtocolMessageType( + "ModelData", + (_message.Message,), + { + "DESCRIPTOR": _MODELDATA, + "__module__": "gnmi_pb2" + # @@protoc_insertion_point(class_scope:gnmi.ModelData) + }, +) _sym_db.RegisterMessage(ModelData) -_GNMI = DESCRIPTOR.services_by_name['gNMI'] +_GNMI = DESCRIPTOR.services_by_name["gNMI"] if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - _UPDATE.fields_by_name['value']._options = None - _UPDATE.fields_by_name['value']._serialized_options = b'\030\001' - _TYPEDVALUE.fields_by_name['float_val']._options = None - _TYPEDVALUE.fields_by_name['float_val']._serialized_options = b'\030\001' - _TYPEDVALUE.fields_by_name['decimal_val']._options = None - _TYPEDVALUE.fields_by_name['decimal_val']._serialized_options = b'\030\001' - _PATH.fields_by_name['element']._options = None - _PATH.fields_by_name['element']._serialized_options = b'\030\001' - _PATHELEM_KEYENTRY._options = None - _PATHELEM_KEYENTRY._serialized_options = b'8\001' - _VALUE._options = None - _VALUE._serialized_options = b'\030\001' - _ERROR._options = None - _ERROR._serialized_options = b'\030\001' - _SUBSCRIBERESPONSE.fields_by_name['error']._options = None - _SUBSCRIBERESPONSE.fields_by_name['error']._serialized_options = b'\030\001' - _SETRESPONSE.fields_by_name['message']._options = None - _SETRESPONSE.fields_by_name['message']._serialized_options = b'\030\001' - _UPDATERESULT.fields_by_name['timestamp']._options = None - _UPDATERESULT.fields_by_name['timestamp']._serialized_options = b'\030\001' - _UPDATERESULT.fields_by_name['message']._options = None - _UPDATERESULT.fields_by_name['message']._serialized_options = b'\030\001' - _GETRESPONSE.fields_by_name['error']._options = None - _GETRESPONSE.fields_by_name['error']._serialized_options = b'\030\001' - _ENCODING._serialized_start=3447 - _ENCODING._serialized_end=3515 - _SUBSCRIPTIONMODE._serialized_start=3517 - _SUBSCRIPTIONMODE._serialized_end=3582 - _NOTIFICATION._serialized_start=98 - _NOTIFICATION._serialized_end=248 - _UPDATE._serialized_start=250 - _UPDATE._serialized_end=367 - _TYPEDVALUE._serialized_start=370 - _TYPEDVALUE._serialized_end=757 - _PATH._serialized_start=759 - _PATH._serialized_end=848 - _PATHELEM._serialized_start=850 - _PATHELEM._serialized_end=956 - _PATHELEM_KEYENTRY._serialized_start=914 - _PATHELEM_KEYENTRY._serialized_end=956 - _VALUE._serialized_start=958 - _VALUE._serialized_end=1014 - _ERROR._serialized_start=1016 - _ERROR._serialized_end=1094 - _DECIMAL64._serialized_start=1096 - _DECIMAL64._serialized_end=1142 - _SCALARARRAY._serialized_start=1144 - _SCALARARRAY._serialized_end=1192 - _SUBSCRIBEREQUEST._serialized_start=1195 - _SUBSCRIBEREQUEST._serialized_end=1373 - _POLL._serialized_start=1375 - _POLL._serialized_end=1381 - _SUBSCRIBERESPONSE._serialized_start=1384 - _SUBSCRIBERESPONSE._serialized_end=1552 - _SUBSCRIPTIONLIST._serialized_start=1555 - _SUBSCRIPTIONLIST._serialized_end=1898 - _SUBSCRIPTIONLIST_MODE._serialized_start=1860 - _SUBSCRIPTIONLIST_MODE._serialized_end=1898 - _SUBSCRIPTION._serialized_start=1901 - _SUBSCRIPTION._serialized_end=2060 - _QOSMARKING._serialized_start=2062 - _QOSMARKING._serialized_end=2091 - _ALIAS._serialized_start=2093 - _ALIAS._serialized_end=2141 - _ALIASLIST._serialized_start=2143 - _ALIASLIST._serialized_end=2182 - _SETREQUEST._serialized_start=2185 - _SETREQUEST._serialized_end=2354 - _SETRESPONSE._serialized_start=2357 - _SETRESPONSE._serialized_end=2529 - _UPDATERESULT._serialized_start=2532 - _UPDATERESULT._serialized_end=2734 - _UPDATERESULT_OPERATION._serialized_start=2673 - _UPDATERESULT_OPERATION._serialized_end=2734 - _GETREQUEST._serialized_start=2737 - _GETREQUEST._serialized_end=3016 - _GETREQUEST_DATATYPE._serialized_start=2957 - _GETREQUEST_DATATYPE._serialized_end=3016 - _GETRESPONSE._serialized_start=3018 - _GETRESPONSE._serialized_end=3145 - _CAPABILITYREQUEST._serialized_start=3147 - _CAPABILITYREQUEST._serialized_end=3206 - _CAPABILITYRESPONSE._serialized_start=3209 - _CAPABILITYRESPONSE._serialized_end=3379 - _MODELDATA._serialized_start=3381 - _MODELDATA._serialized_end=3445 - _GNMI._serialized_start=3585 - _GNMI._serialized_end=3812 + DESCRIPTOR._options = None + _UPDATE.fields_by_name["value"]._options = None + _UPDATE.fields_by_name["value"]._serialized_options = b"\030\001" + _TYPEDVALUE.fields_by_name["float_val"]._options = None + _TYPEDVALUE.fields_by_name["float_val"]._serialized_options = b"\030\001" + _TYPEDVALUE.fields_by_name["decimal_val"]._options = None + _TYPEDVALUE.fields_by_name["decimal_val"]._serialized_options = b"\030\001" + _PATH.fields_by_name["element"]._options = None + _PATH.fields_by_name["element"]._serialized_options = b"\030\001" + _PATHELEM_KEYENTRY._options = None + _PATHELEM_KEYENTRY._serialized_options = b"8\001" + _VALUE._options = None + _VALUE._serialized_options = b"\030\001" + _ERROR._options = None + _ERROR._serialized_options = b"\030\001" + _SUBSCRIBERESPONSE.fields_by_name["error"]._options = None + _SUBSCRIBERESPONSE.fields_by_name["error"]._serialized_options = b"\030\001" + _SETRESPONSE.fields_by_name["message"]._options = None + _SETRESPONSE.fields_by_name["message"]._serialized_options = b"\030\001" + _UPDATERESULT.fields_by_name["timestamp"]._options = None + _UPDATERESULT.fields_by_name["timestamp"]._serialized_options = b"\030\001" + _UPDATERESULT.fields_by_name["message"]._options = None + _UPDATERESULT.fields_by_name["message"]._serialized_options = b"\030\001" + _GETRESPONSE.fields_by_name["error"]._options = None + _GETRESPONSE.fields_by_name["error"]._serialized_options = b"\030\001" + _ENCODING._serialized_start = 3447 + _ENCODING._serialized_end = 3515 + _SUBSCRIPTIONMODE._serialized_start = 3517 + _SUBSCRIPTIONMODE._serialized_end = 3582 + _NOTIFICATION._serialized_start = 98 + _NOTIFICATION._serialized_end = 248 + _UPDATE._serialized_start = 250 + _UPDATE._serialized_end = 367 + _TYPEDVALUE._serialized_start = 370 + _TYPEDVALUE._serialized_end = 757 + _PATH._serialized_start = 759 + _PATH._serialized_end = 848 + _PATHELEM._serialized_start = 850 + _PATHELEM._serialized_end = 956 + _PATHELEM_KEYENTRY._serialized_start = 914 + _PATHELEM_KEYENTRY._serialized_end = 956 + _VALUE._serialized_start = 958 + _VALUE._serialized_end = 1014 + _ERROR._serialized_start = 1016 + _ERROR._serialized_end = 1094 + _DECIMAL64._serialized_start = 1096 + _DECIMAL64._serialized_end = 1142 + _SCALARARRAY._serialized_start = 1144 + _SCALARARRAY._serialized_end = 1192 + _SUBSCRIBEREQUEST._serialized_start = 1195 + _SUBSCRIBEREQUEST._serialized_end = 1373 + _POLL._serialized_start = 1375 + _POLL._serialized_end = 1381 + _SUBSCRIBERESPONSE._serialized_start = 1384 + _SUBSCRIBERESPONSE._serialized_end = 1552 + _SUBSCRIPTIONLIST._serialized_start = 1555 + _SUBSCRIPTIONLIST._serialized_end = 1898 + _SUBSCRIPTIONLIST_MODE._serialized_start = 1860 + _SUBSCRIPTIONLIST_MODE._serialized_end = 1898 + _SUBSCRIPTION._serialized_start = 1901 + _SUBSCRIPTION._serialized_end = 2060 + _QOSMARKING._serialized_start = 2062 + _QOSMARKING._serialized_end = 2091 + _ALIAS._serialized_start = 2093 + _ALIAS._serialized_end = 2141 + _ALIASLIST._serialized_start = 2143 + _ALIASLIST._serialized_end = 2182 + _SETREQUEST._serialized_start = 2185 + _SETREQUEST._serialized_end = 2354 + _SETRESPONSE._serialized_start = 2357 + _SETRESPONSE._serialized_end = 2529 + _UPDATERESULT._serialized_start = 2532 + _UPDATERESULT._serialized_end = 2734 + _UPDATERESULT_OPERATION._serialized_start = 2673 + _UPDATERESULT_OPERATION._serialized_end = 2734 + _GETREQUEST._serialized_start = 2737 + _GETREQUEST._serialized_end = 3016 + _GETREQUEST_DATATYPE._serialized_start = 2957 + _GETREQUEST_DATATYPE._serialized_end = 3016 + _GETRESPONSE._serialized_start = 3018 + _GETRESPONSE._serialized_end = 3145 + _CAPABILITYREQUEST._serialized_start = 3147 + _CAPABILITYREQUEST._serialized_end = 3206 + _CAPABILITYRESPONSE._serialized_start = 3209 + _CAPABILITYRESPONSE._serialized_end = 3379 + _MODELDATA._serialized_start = 3381 + _MODELDATA._serialized_end = 3445 + _GNMI._serialized_start = 3585 + _GNMI._serialized_end = 3812 # @@protoc_insertion_point(module_scope) diff --git a/pygnmi/spec/v080/gnmi_pb2_grpc.py b/pygnmi/spec/v080/gnmi_pb2_grpc.py index c4135f0..1bafd9e 100644 --- a/pygnmi/spec/v080/gnmi_pb2_grpc.py +++ b/pygnmi/spec/v080/gnmi_pb2_grpc.py @@ -25,25 +25,25 @@ def __init__(self, channel): channel: A grpc.Channel. """ self.Capabilities = channel.unary_unary( - '/gnmi.gNMI/Capabilities', - request_serializer=gnmi__pb2.CapabilityRequest.SerializeToString, - response_deserializer=gnmi__pb2.CapabilityResponse.FromString, - ) + "/gnmi.gNMI/Capabilities", + request_serializer=gnmi__pb2.CapabilityRequest.SerializeToString, + response_deserializer=gnmi__pb2.CapabilityResponse.FromString, + ) self.Get = channel.unary_unary( - '/gnmi.gNMI/Get', - request_serializer=gnmi__pb2.GetRequest.SerializeToString, - response_deserializer=gnmi__pb2.GetResponse.FromString, - ) + "/gnmi.gNMI/Get", + request_serializer=gnmi__pb2.GetRequest.SerializeToString, + response_deserializer=gnmi__pb2.GetResponse.FromString, + ) self.Set = channel.unary_unary( - '/gnmi.gNMI/Set', - request_serializer=gnmi__pb2.SetRequest.SerializeToString, - response_deserializer=gnmi__pb2.SetResponse.FromString, - ) + "/gnmi.gNMI/Set", + request_serializer=gnmi__pb2.SetRequest.SerializeToString, + response_deserializer=gnmi__pb2.SetResponse.FromString, + ) self.Subscribe = channel.stream_stream( - '/gnmi.gNMI/Subscribe', - request_serializer=gnmi__pb2.SubscribeRequest.SerializeToString, - response_deserializer=gnmi__pb2.SubscribeResponse.FromString, - ) + "/gnmi.gNMI/Subscribe", + request_serializer=gnmi__pb2.SubscribeRequest.SerializeToString, + response_deserializer=gnmi__pb2.SubscribeResponse.FromString, + ) class gNMIServicer(object): @@ -68,8 +68,8 @@ def Capabilities(self, request, context): Reference: gNMI Specification Section 3.2 """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def Get(self, request, context): """Retrieve a snapshot of data from the target. A Get RPC requests that the @@ -79,8 +79,8 @@ def Get(self, request, context): Reference: gNMI Specification Section 3.3 """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def Set(self, request, context): """Set allows the client to modify the state of data on the target. The @@ -89,8 +89,8 @@ def Set(self, request, context): Reference: gNMI Specification Section 3.4 """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def Subscribe(self, request_iterator, context): """Subscribe allows a client to request the target to send it values @@ -100,39 +100,38 @@ def Subscribe(self, request_iterator, context): Reference: gNMI Specification Section 3.5 """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_gNMIServicer_to_server(servicer, server): rpc_method_handlers = { - 'Capabilities': grpc.unary_unary_rpc_method_handler( - servicer.Capabilities, - request_deserializer=gnmi__pb2.CapabilityRequest.FromString, - response_serializer=gnmi__pb2.CapabilityResponse.SerializeToString, - ), - 'Get': grpc.unary_unary_rpc_method_handler( - servicer.Get, - request_deserializer=gnmi__pb2.GetRequest.FromString, - response_serializer=gnmi__pb2.GetResponse.SerializeToString, - ), - 'Set': grpc.unary_unary_rpc_method_handler( - servicer.Set, - request_deserializer=gnmi__pb2.SetRequest.FromString, - response_serializer=gnmi__pb2.SetResponse.SerializeToString, - ), - 'Subscribe': grpc.stream_stream_rpc_method_handler( - servicer.Subscribe, - request_deserializer=gnmi__pb2.SubscribeRequest.FromString, - response_serializer=gnmi__pb2.SubscribeResponse.SerializeToString, - ), + "Capabilities": grpc.unary_unary_rpc_method_handler( + servicer.Capabilities, + request_deserializer=gnmi__pb2.CapabilityRequest.FromString, + response_serializer=gnmi__pb2.CapabilityResponse.SerializeToString, + ), + "Get": grpc.unary_unary_rpc_method_handler( + servicer.Get, + request_deserializer=gnmi__pb2.GetRequest.FromString, + response_serializer=gnmi__pb2.GetResponse.SerializeToString, + ), + "Set": grpc.unary_unary_rpc_method_handler( + servicer.Set, + request_deserializer=gnmi__pb2.SetRequest.FromString, + response_serializer=gnmi__pb2.SetResponse.SerializeToString, + ), + "Subscribe": grpc.stream_stream_rpc_method_handler( + servicer.Subscribe, + request_deserializer=gnmi__pb2.SubscribeRequest.FromString, + response_serializer=gnmi__pb2.SubscribeResponse.SerializeToString, + ), } - generic_handler = grpc.method_handlers_generic_handler( - 'gnmi.gNMI', rpc_method_handlers) + generic_handler = grpc.method_handlers_generic_handler("gnmi.gNMI", rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) - # This class is part of an EXPERIMENTAL API. +# This class is part of an EXPERIMENTAL API. class gNMI(object): """Define a protobuf FileOption that defines the gNMI service version. extend google.protobuf.FileOptions { @@ -147,69 +146,117 @@ class gNMI(object): """ @staticmethod - def Capabilities(request, + def Capabilities( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/gnmi.gNMI/Capabilities', + "/gnmi.gNMI/Capabilities", gnmi__pb2.CapabilityRequest.SerializeToString, gnmi__pb2.CapabilityResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) @staticmethod - def Get(request, + def Get( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/gnmi.gNMI/Get', + "/gnmi.gNMI/Get", gnmi__pb2.GetRequest.SerializeToString, gnmi__pb2.GetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) @staticmethod - def Set(request, + def Set( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/gnmi.gNMI/Set', + "/gnmi.gNMI/Set", gnmi__pb2.SetRequest.SerializeToString, gnmi__pb2.SetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) @staticmethod - def Subscribe(request_iterator, + def Subscribe( + request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.stream_stream( + request_iterator, target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.stream_stream(request_iterator, target, '/gnmi.gNMI/Subscribe', + "/gnmi.gNMI/Subscribe", gnmi__pb2.SubscribeRequest.SerializeToString, gnmi__pb2.SubscribeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) diff --git a/pygnmi/tools.py b/pygnmi/tools.py index fe0cada..e4da1ee 100644 --- a/pygnmi/tools.py +++ b/pygnmi/tools.py @@ -15,7 +15,9 @@ def _dict_to_xpath(input_dict: dict, parent_type_class: type, pre_parent_type_cl for k1, v1 in input_dict.items(): if isinstance(v1, dict): next_level_list = _dict_to_xpath( - input_dict=v1, parent_type_class=type(v1), pre_parent_type_class=type(input_dict) + input_dict=v1, + parent_type_class=type(v1), + pre_parent_type_class=type(input_dict), ) for nested_list in next_level_list: @@ -25,7 +27,9 @@ def _dict_to_xpath(input_dict: dict, parent_type_class: type, pre_parent_type_cl for v2 in v1: if isinstance(v2, dict): next_level_list = _dict_to_xpath( - input_dict=v2, parent_type_class=type(v2), pre_parent_type_class=type(v1) + input_dict=v2, + parent_type_class=type(v2), + pre_parent_type_class=type(v1), ) for nested_list in next_level_list: @@ -120,7 +124,8 @@ def diff_openconfig(pre_dict: dict, post_dict: dict, is_printable: bool = True) if entry_tuple[0] == "remove": result_list = _dict_to_xpath( - input_dict=elem_list[-1], parent_type_class=type(elem_list[-1]) + input_dict=elem_list[-1], + parent_type_class=type(elem_list[-1]), ) result_list = [ [ @@ -133,7 +138,8 @@ def diff_openconfig(pre_dict: dict, post_dict: dict, is_printable: bool = True) elif entry_tuple[0] == "add": result_list = _dict_to_xpath( - input_dict=elem_list[-1], parent_type_class=type(elem_list[-1]) + input_dict=elem_list[-1], + parent_type_class=type(elem_list[-1]), ) result_list = [ [