From 49c04c984b801a4f883ded492181acf4cf7ac14a Mon Sep 17 00:00:00 2001 From: n0shut <25195414+n0shut@users.noreply.github.com> Date: Sat, 18 Feb 2023 11:19:54 +0100 Subject: [PATCH] updated protos with container --- proto/collector/collector.pb.go | 4 +- proto/collector/collector_grpc.pb.go | 4 + proto/collector/collector_pb2.py | 24 +-- proto/gnmi/gnmi.pb.go | 4 +- proto/gnmi/gnmi_grpc.pb.go | 4 + proto/gnmi/gnmi_pb2.py | 219 +-------------------------- proto/gnmi_ext/gnmi_ext.pb.go | 4 +- proto/gnmi_ext/gnmi_ext_pb2.py | 68 +-------- proto/target/target.pb.go | 4 +- proto/target/target_pb2.py | 67 +------- testing/fake/proto/fake.pb.go | 4 +- testing/fake/proto/fake_grpc.pb.go | 4 + testing/fake/proto/fake_pb2.py | 191 +---------------------- 13 files changed, 37 insertions(+), 564 deletions(-) diff --git a/proto/collector/collector.pb.go b/proto/collector/collector.pb.go index 77f2345..439397e 100644 --- a/proto/collector/collector.pb.go +++ b/proto/collector/collector.pb.go @@ -16,8 +16,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v3.21.1 +// protoc-gen-go v1.28.1 +// protoc v3.21.12 // source: proto/collector/collector.proto package gnmi diff --git a/proto/collector/collector_grpc.pb.go b/proto/collector/collector_grpc.pb.go index 806013f..a986347 100644 --- a/proto/collector/collector_grpc.pb.go +++ b/proto/collector/collector_grpc.pb.go @@ -1,4 +1,8 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.2.0 +// - protoc v3.21.12 +// source: proto/collector/collector.proto package gnmi diff --git a/proto/collector/collector_pb2.py b/proto/collector/collector_pb2.py index 49f8166..de0dbf0 100644 --- a/proto/collector/collector_pb2.py +++ b/proto/collector/collector_pb2.py @@ -2,10 +2,9 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: proto/collector/collector.proto """Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -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) @@ -16,25 +15,8 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fproto/collector/collector.proto\x12\x04gnmi\"\"\n\x10ReconnectRequest\x12\x0e\n\x06target\x18\x01 \x03(\t\"\x05\n\x03Nil2=\n\tCollector\x12\x30\n\tReconnect\x12\x16.gnmi.ReconnectRequest\x1a\t.gnmi.Nil\"\x00\x42\x31Z/github.com/openconfig/gnmi/proto/collector;gnmib\x06proto3') - - -_RECONNECTREQUEST = DESCRIPTOR.message_types_by_name['ReconnectRequest'] -_NIL = DESCRIPTOR.message_types_by_name['Nil'] -ReconnectRequest = _reflection.GeneratedProtocolMessageType('ReconnectRequest', (_message.Message,), { - 'DESCRIPTOR' : _RECONNECTREQUEST, - '__module__' : 'proto.collector.collector_pb2' - # @@protoc_insertion_point(class_scope:gnmi.ReconnectRequest) - }) -_sym_db.RegisterMessage(ReconnectRequest) - -Nil = _reflection.GeneratedProtocolMessageType('Nil', (_message.Message,), { - 'DESCRIPTOR' : _NIL, - '__module__' : 'proto.collector.collector_pb2' - # @@protoc_insertion_point(class_scope:gnmi.Nil) - }) -_sym_db.RegisterMessage(Nil) - -_COLLECTOR = DESCRIPTOR.services_by_name['Collector'] +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'proto.collector.collector_pb2', globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None diff --git a/proto/gnmi/gnmi.pb.go b/proto/gnmi/gnmi.pb.go index 12f42d3..c613acb 100644 --- a/proto/gnmi/gnmi.pb.go +++ b/proto/gnmi/gnmi.pb.go @@ -16,8 +16,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v3.21.1 +// protoc-gen-go v1.28.1 +// protoc v3.21.12 // source: proto/gnmi/gnmi.proto // Package gNMI defines a service specification for the gRPC Network Management diff --git a/proto/gnmi/gnmi_grpc.pb.go b/proto/gnmi/gnmi_grpc.pb.go index b597cad..4a651d6 100644 --- a/proto/gnmi/gnmi_grpc.pb.go +++ b/proto/gnmi/gnmi_grpc.pb.go @@ -1,4 +1,8 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.2.0 +// - protoc v3.21.12 +// source: proto/gnmi/gnmi.proto package gnmi diff --git a/proto/gnmi/gnmi_pb2.py b/proto/gnmi/gnmi_pb2.py index 8d165c9..31a0f3c 100644 --- a/proto/gnmi/gnmi_pb2.py +++ b/proto/gnmi/gnmi_pb2.py @@ -2,11 +2,9 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: proto/gnmi/gnmi.proto """Generated protocol buffer code.""" -from google.protobuf.internal import enum_type_wrapper +from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -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) @@ -20,219 +18,8 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15proto/gnmi/gnmi.proto\x12\x04gnmi\x1a\x19google/protobuf/any.proto\x1a google/protobuf/descriptor.proto\x1a\x38github.com/openconfig/gnmi/proto/gnmi_ext/gnmi_ext.proto\"\x94\x01\n\x0cNotification\x12\x11\n\ttimestamp\x18\x01 \x01(\x03\x12\x1a\n\x06prefix\x18\x02 \x01(\x0b\x32\n.gnmi.Path\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(\x08J\x04\x08\x03\x10\x04R\x05\x61lias\"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\"2\n\tDecimal64\x12\x0e\n\x06\x64igits\x18\x01 \x01(\x03\x12\x11\n\tprecision\x18\x02 \x01(\r:\x02\x18\x01\"0\n\x0bScalarArray\x12!\n\x07\x65lement\x18\x01 \x03(\x0b\x32\x10.gnmi.TypedValue\"\x9d\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\textension\x18\x05 \x03(\x0b\x32\x13.gnmi_ext.ExtensionB\t\n\x07requestJ\x04\x08\x04\x10\x05R\x07\x61liases\"\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\"\xd5\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\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\x02J\x04\x08\x03\x10\x04R\x0buse_aliases\"\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\"\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(\tBS\n\x15\x63om.github.gnmi.protoB\tGnmiProtoP\x01Z%github.com/openconfig/gnmi/proto/gnmi\xca>\x05\x30.9.0b\x06proto3') -_ENCODING = DESCRIPTOR.enum_types_by_name['Encoding'] -Encoding = enum_type_wrapper.EnumTypeWrapper(_ENCODING) -_SUBSCRIPTIONMODE = DESCRIPTOR.enum_types_by_name['SubscriptionMode'] -SubscriptionMode = enum_type_wrapper.EnumTypeWrapper(_SUBSCRIPTIONMODE) -JSON = 0 -BYTES = 1 -PROTO = 2 -ASCII = 3 -JSON_IETF = 4 -TARGET_DEFINED = 0 -ON_CHANGE = 1 -SAMPLE = 2 - -GNMI_SERVICE_FIELD_NUMBER = 1001 -gnmi_service = DESCRIPTOR.extensions_by_name['gnmi_service'] - -_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'] -_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__' : 'proto.gnmi.gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.Notification) - }) -_sym_db.RegisterMessage(Notification) - -Update = _reflection.GeneratedProtocolMessageType('Update', (_message.Message,), { - 'DESCRIPTOR' : _UPDATE, - '__module__' : 'proto.gnmi.gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.Update) - }) -_sym_db.RegisterMessage(Update) - -TypedValue = _reflection.GeneratedProtocolMessageType('TypedValue', (_message.Message,), { - 'DESCRIPTOR' : _TYPEDVALUE, - '__module__' : 'proto.gnmi.gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.TypedValue) - }) -_sym_db.RegisterMessage(TypedValue) - -Path = _reflection.GeneratedProtocolMessageType('Path', (_message.Message,), { - 'DESCRIPTOR' : _PATH, - '__module__' : 'proto.gnmi.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__' : 'proto.gnmi.gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.PathElem.KeyEntry) - }) - , - 'DESCRIPTOR' : _PATHELEM, - '__module__' : 'proto.gnmi.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__' : 'proto.gnmi.gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.Value) - }) -_sym_db.RegisterMessage(Value) - -Error = _reflection.GeneratedProtocolMessageType('Error', (_message.Message,), { - 'DESCRIPTOR' : _ERROR, - '__module__' : 'proto.gnmi.gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.Error) - }) -_sym_db.RegisterMessage(Error) - -Decimal64 = _reflection.GeneratedProtocolMessageType('Decimal64', (_message.Message,), { - 'DESCRIPTOR' : _DECIMAL64, - '__module__' : 'proto.gnmi.gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.Decimal64) - }) -_sym_db.RegisterMessage(Decimal64) - -ScalarArray = _reflection.GeneratedProtocolMessageType('ScalarArray', (_message.Message,), { - 'DESCRIPTOR' : _SCALARARRAY, - '__module__' : 'proto.gnmi.gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.ScalarArray) - }) -_sym_db.RegisterMessage(ScalarArray) - -SubscribeRequest = _reflection.GeneratedProtocolMessageType('SubscribeRequest', (_message.Message,), { - 'DESCRIPTOR' : _SUBSCRIBEREQUEST, - '__module__' : 'proto.gnmi.gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.SubscribeRequest) - }) -_sym_db.RegisterMessage(SubscribeRequest) - -Poll = _reflection.GeneratedProtocolMessageType('Poll', (_message.Message,), { - 'DESCRIPTOR' : _POLL, - '__module__' : 'proto.gnmi.gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.Poll) - }) -_sym_db.RegisterMessage(Poll) - -SubscribeResponse = _reflection.GeneratedProtocolMessageType('SubscribeResponse', (_message.Message,), { - 'DESCRIPTOR' : _SUBSCRIBERESPONSE, - '__module__' : 'proto.gnmi.gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.SubscribeResponse) - }) -_sym_db.RegisterMessage(SubscribeResponse) - -SubscriptionList = _reflection.GeneratedProtocolMessageType('SubscriptionList', (_message.Message,), { - 'DESCRIPTOR' : _SUBSCRIPTIONLIST, - '__module__' : 'proto.gnmi.gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.SubscriptionList) - }) -_sym_db.RegisterMessage(SubscriptionList) - -Subscription = _reflection.GeneratedProtocolMessageType('Subscription', (_message.Message,), { - 'DESCRIPTOR' : _SUBSCRIPTION, - '__module__' : 'proto.gnmi.gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.Subscription) - }) -_sym_db.RegisterMessage(Subscription) - -QOSMarking = _reflection.GeneratedProtocolMessageType('QOSMarking', (_message.Message,), { - 'DESCRIPTOR' : _QOSMARKING, - '__module__' : 'proto.gnmi.gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.QOSMarking) - }) -_sym_db.RegisterMessage(QOSMarking) - -SetRequest = _reflection.GeneratedProtocolMessageType('SetRequest', (_message.Message,), { - 'DESCRIPTOR' : _SETREQUEST, - '__module__' : 'proto.gnmi.gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.SetRequest) - }) -_sym_db.RegisterMessage(SetRequest) - -SetResponse = _reflection.GeneratedProtocolMessageType('SetResponse', (_message.Message,), { - 'DESCRIPTOR' : _SETRESPONSE, - '__module__' : 'proto.gnmi.gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.SetResponse) - }) -_sym_db.RegisterMessage(SetResponse) - -UpdateResult = _reflection.GeneratedProtocolMessageType('UpdateResult', (_message.Message,), { - 'DESCRIPTOR' : _UPDATERESULT, - '__module__' : 'proto.gnmi.gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.UpdateResult) - }) -_sym_db.RegisterMessage(UpdateResult) - -GetRequest = _reflection.GeneratedProtocolMessageType('GetRequest', (_message.Message,), { - 'DESCRIPTOR' : _GETREQUEST, - '__module__' : 'proto.gnmi.gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.GetRequest) - }) -_sym_db.RegisterMessage(GetRequest) - -GetResponse = _reflection.GeneratedProtocolMessageType('GetResponse', (_message.Message,), { - 'DESCRIPTOR' : _GETRESPONSE, - '__module__' : 'proto.gnmi.gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.GetResponse) - }) -_sym_db.RegisterMessage(GetResponse) - -CapabilityRequest = _reflection.GeneratedProtocolMessageType('CapabilityRequest', (_message.Message,), { - 'DESCRIPTOR' : _CAPABILITYREQUEST, - '__module__' : 'proto.gnmi.gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.CapabilityRequest) - }) -_sym_db.RegisterMessage(CapabilityRequest) - -CapabilityResponse = _reflection.GeneratedProtocolMessageType('CapabilityResponse', (_message.Message,), { - 'DESCRIPTOR' : _CAPABILITYRESPONSE, - '__module__' : 'proto.gnmi.gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.CapabilityResponse) - }) -_sym_db.RegisterMessage(CapabilityResponse) - -ModelData = _reflection.GeneratedProtocolMessageType('ModelData', (_message.Message,), { - 'DESCRIPTOR' : _MODELDATA, - '__module__' : 'proto.gnmi.gnmi_pb2' - # @@protoc_insertion_point(class_scope:gnmi.ModelData) - }) -_sym_db.RegisterMessage(ModelData) - -_GNMI = DESCRIPTOR.services_by_name['gNMI'] +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'proto.gnmi.gnmi_pb2', globals()) if _descriptor._USE_C_DESCRIPTORS == False: google_dot_protobuf_dot_descriptor__pb2.FileOptions.RegisterExtension(gnmi_service) diff --git a/proto/gnmi_ext/gnmi_ext.pb.go b/proto/gnmi_ext/gnmi_ext.pb.go index ec6fc4d..f259ef3 100644 --- a/proto/gnmi_ext/gnmi_ext.pb.go +++ b/proto/gnmi_ext/gnmi_ext.pb.go @@ -16,8 +16,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v3.21.1 +// protoc-gen-go v1.28.1 +// protoc v3.21.12 // source: proto/gnmi_ext/gnmi_ext.proto // Package gnmi_ext defines a set of extensions messages which can be optionally diff --git a/proto/gnmi_ext/gnmi_ext_pb2.py b/proto/gnmi_ext/gnmi_ext_pb2.py index 83c64dc..5d0fd9a 100644 --- a/proto/gnmi_ext/gnmi_ext_pb2.py +++ b/proto/gnmi_ext/gnmi_ext_pb2.py @@ -2,11 +2,9 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: proto/gnmi_ext/gnmi_ext.proto """Generated protocol buffer code.""" -from google.protobuf.internal import enum_type_wrapper +from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -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) @@ -17,68 +15,8 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dproto/gnmi_ext/gnmi_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 = 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__' : 'proto.gnmi_ext.gnmi_ext_pb2' - # @@protoc_insertion_point(class_scope:gnmi_ext.Extension) - }) -_sym_db.RegisterMessage(Extension) - -RegisteredExtension = _reflection.GeneratedProtocolMessageType('RegisteredExtension', (_message.Message,), { - 'DESCRIPTOR' : _REGISTEREDEXTENSION, - '__module__' : 'proto.gnmi_ext.gnmi_ext_pb2' - # @@protoc_insertion_point(class_scope:gnmi_ext.RegisteredExtension) - }) -_sym_db.RegisterMessage(RegisteredExtension) - -MasterArbitration = _reflection.GeneratedProtocolMessageType('MasterArbitration', (_message.Message,), { - 'DESCRIPTOR' : _MASTERARBITRATION, - '__module__' : 'proto.gnmi_ext.gnmi_ext_pb2' - # @@protoc_insertion_point(class_scope:gnmi_ext.MasterArbitration) - }) -_sym_db.RegisterMessage(MasterArbitration) - -Uint128 = _reflection.GeneratedProtocolMessageType('Uint128', (_message.Message,), { - 'DESCRIPTOR' : _UINT128, - '__module__' : 'proto.gnmi_ext.gnmi_ext_pb2' - # @@protoc_insertion_point(class_scope:gnmi_ext.Uint128) - }) -_sym_db.RegisterMessage(Uint128) - -Role = _reflection.GeneratedProtocolMessageType('Role', (_message.Message,), { - 'DESCRIPTOR' : _ROLE, - '__module__' : 'proto.gnmi_ext.gnmi_ext_pb2' - # @@protoc_insertion_point(class_scope:gnmi_ext.Role) - }) -_sym_db.RegisterMessage(Role) - -History = _reflection.GeneratedProtocolMessageType('History', (_message.Message,), { - 'DESCRIPTOR' : _HISTORY, - '__module__' : 'proto.gnmi_ext.gnmi_ext_pb2' - # @@protoc_insertion_point(class_scope:gnmi_ext.History) - }) -_sym_db.RegisterMessage(History) - -TimeRange = _reflection.GeneratedProtocolMessageType('TimeRange', (_message.Message,), { - 'DESCRIPTOR' : _TIMERANGE, - '__module__' : 'proto.gnmi_ext.gnmi_ext_pb2' - # @@protoc_insertion_point(class_scope:gnmi_ext.TimeRange) - }) -_sym_db.RegisterMessage(TimeRange) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'proto.gnmi_ext.gnmi_ext_pb2', globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None diff --git a/proto/target/target.pb.go b/proto/target/target.pb.go index 94cffbf..af59a15 100644 --- a/proto/target/target.pb.go +++ b/proto/target/target.pb.go @@ -16,8 +16,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v3.21.1 +// protoc-gen-go v1.28.1 +// protoc v3.21.12 // source: proto/target/target.proto // Package target contains messages for defining a configuration of a caching diff --git a/proto/target/target_pb2.py b/proto/target/target_pb2.py index 50541e7..33adf4a 100644 --- a/proto/target/target_pb2.py +++ b/proto/target/target_pb2.py @@ -2,10 +2,9 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: proto/target/target.proto """Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -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) @@ -17,68 +16,8 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19proto/target/target.proto\x12\x06target\x1a\x30github.com/openconfig/gnmi/proto/gnmi/gnmi.proto\"\x85\x03\n\rConfiguration\x12\x33\n\x07request\x18\x01 \x03(\x0b\x32\".target.Configuration.RequestEntry\x12\x31\n\x06target\x18\x02 \x03(\x0b\x32!.target.Configuration.TargetEntry\x12\x13\n\x0binstance_id\x18\x03 \x01(\t\x12-\n\x04meta\x18\x04 \x03(\x0b\x32\x1f.target.Configuration.MetaEntry\x12\x14\n\x08revision\x18\xff\xff\xff\xff\x01 \x01(\x03\x1a\x46\n\x0cRequestEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.gnmi.SubscribeRequest:\x02\x38\x01\x1a=\n\x0bTargetEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1d\n\x05value\x18\x02 \x01(\x0b\x32\x0e.target.Target:\x02\x38\x01\x1a+\n\tMetaEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xbb\x01\n\x06Target\x12\x11\n\taddresses\x18\x01 \x03(\t\x12(\n\x0b\x63redentials\x18\x02 \x01(\x0b\x32\x13.target.Credentials\x12\x0f\n\x07request\x18\x03 \x01(\t\x12&\n\x04meta\x18\x04 \x03(\x0b\x32\x18.target.Target.MetaEntry\x12\x0e\n\x06\x64ialer\x18\x05 \x01(\t\x1a+\n\tMetaEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"F\n\x0b\x43redentials\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\x12\x13\n\x0bpassword_id\x18\x03 \x01(\tB)Z\'github.com/openconfig/gnmi/proto/targetb\x06proto3') - - -_CONFIGURATION = DESCRIPTOR.message_types_by_name['Configuration'] -_CONFIGURATION_REQUESTENTRY = _CONFIGURATION.nested_types_by_name['RequestEntry'] -_CONFIGURATION_TARGETENTRY = _CONFIGURATION.nested_types_by_name['TargetEntry'] -_CONFIGURATION_METAENTRY = _CONFIGURATION.nested_types_by_name['MetaEntry'] -_TARGET = DESCRIPTOR.message_types_by_name['Target'] -_TARGET_METAENTRY = _TARGET.nested_types_by_name['MetaEntry'] -_CREDENTIALS = DESCRIPTOR.message_types_by_name['Credentials'] -Configuration = _reflection.GeneratedProtocolMessageType('Configuration', (_message.Message,), { - - 'RequestEntry' : _reflection.GeneratedProtocolMessageType('RequestEntry', (_message.Message,), { - 'DESCRIPTOR' : _CONFIGURATION_REQUESTENTRY, - '__module__' : 'proto.target.target_pb2' - # @@protoc_insertion_point(class_scope:target.Configuration.RequestEntry) - }) - , - - 'TargetEntry' : _reflection.GeneratedProtocolMessageType('TargetEntry', (_message.Message,), { - 'DESCRIPTOR' : _CONFIGURATION_TARGETENTRY, - '__module__' : 'proto.target.target_pb2' - # @@protoc_insertion_point(class_scope:target.Configuration.TargetEntry) - }) - , - - 'MetaEntry' : _reflection.GeneratedProtocolMessageType('MetaEntry', (_message.Message,), { - 'DESCRIPTOR' : _CONFIGURATION_METAENTRY, - '__module__' : 'proto.target.target_pb2' - # @@protoc_insertion_point(class_scope:target.Configuration.MetaEntry) - }) - , - 'DESCRIPTOR' : _CONFIGURATION, - '__module__' : 'proto.target.target_pb2' - # @@protoc_insertion_point(class_scope:target.Configuration) - }) -_sym_db.RegisterMessage(Configuration) -_sym_db.RegisterMessage(Configuration.RequestEntry) -_sym_db.RegisterMessage(Configuration.TargetEntry) -_sym_db.RegisterMessage(Configuration.MetaEntry) - -Target = _reflection.GeneratedProtocolMessageType('Target', (_message.Message,), { - - 'MetaEntry' : _reflection.GeneratedProtocolMessageType('MetaEntry', (_message.Message,), { - 'DESCRIPTOR' : _TARGET_METAENTRY, - '__module__' : 'proto.target.target_pb2' - # @@protoc_insertion_point(class_scope:target.Target.MetaEntry) - }) - , - 'DESCRIPTOR' : _TARGET, - '__module__' : 'proto.target.target_pb2' - # @@protoc_insertion_point(class_scope:target.Target) - }) -_sym_db.RegisterMessage(Target) -_sym_db.RegisterMessage(Target.MetaEntry) - -Credentials = _reflection.GeneratedProtocolMessageType('Credentials', (_message.Message,), { - 'DESCRIPTOR' : _CREDENTIALS, - '__module__' : 'proto.target.target_pb2' - # @@protoc_insertion_point(class_scope:target.Credentials) - }) -_sym_db.RegisterMessage(Credentials) - +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'proto.target.target_pb2', globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None diff --git a/testing/fake/proto/fake.pb.go b/testing/fake/proto/fake.pb.go index b7dae25..fbdb6f5 100644 --- a/testing/fake/proto/fake.pb.go +++ b/testing/fake/proto/fake.pb.go @@ -19,8 +19,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v3.21.1 +// protoc-gen-go v1.28.1 +// protoc v3.21.12 // source: testing/fake/proto/fake.proto package gnmi_fake diff --git a/testing/fake/proto/fake_grpc.pb.go b/testing/fake/proto/fake_grpc.pb.go index 63c433b..3220aa7 100644 --- a/testing/fake/proto/fake_grpc.pb.go +++ b/testing/fake/proto/fake_grpc.pb.go @@ -1,4 +1,8 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.2.0 +// - protoc v3.21.12 +// source: testing/fake/proto/fake.proto package gnmi_fake diff --git a/testing/fake/proto/fake_pb2.py b/testing/fake/proto/fake_pb2.py index 444cc5c..a119557 100644 --- a/testing/fake/proto/fake_pb2.py +++ b/testing/fake/proto/fake_pb2.py @@ -2,11 +2,9 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: testing/fake/proto/fake.proto """Generated protocol buffer code.""" -from google.protobuf.internal import enum_type_wrapper +from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool -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) @@ -19,191 +17,8 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dtesting/fake/proto/fake.proto\x12\tgnmi.fake\x1a\x19google/protobuf/any.proto\x1a\x30github.com/openconfig/gnmi/proto/gnmi/gnmi.proto\"2\n\rConfiguration\x12!\n\x06\x63onfig\x18\x01 \x03(\x0b\x32\x11.gnmi.fake.Config\"1\n\x0b\x43redentials\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\"\x8c\x04\n\x06\x43onfig\x12\x0e\n\x06target\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\x05\x12\x10\n\x04seed\x18\x06 \x01(\x03\x42\x02\x18\x01\x12$\n\x06values\x18\x03 \x03(\x0b\x32\x10.gnmi.fake.ValueB\x02\x18\x01\x12\x14\n\x0c\x64isable_sync\x18\x04 \x01(\x08\x12\x31\n\x0b\x63lient_type\x18\x05 \x01(\x0e\x32\x1c.gnmi.fake.Config.ClientType\x12\x13\n\x0b\x64isable_eof\x18\x07 \x01(\x08\x12+\n\x0b\x63redentials\x18\x08 \x01(\x0b\x32\x16.gnmi.fake.Credentials\x12\x0c\n\x04\x63\x65rt\x18\t \x01(\x0c\x12\x14\n\x0c\x65nable_delay\x18\n \x01(\x08\x12&\n\x06\x63ustom\x18\x64 \x01(\x0b\x32\x14.google.protobuf.AnyH\x00\x12,\n\x06random\x18\x65 \x01(\x0b\x32\x1a.gnmi.fake.RandomGeneratorH\x00\x12*\n\x05\x66ixed\x18\x66 \x01(\x0b\x32\x19.gnmi.fake.FixedGeneratorH\x00\x12\x13\n\x0btunnel_addr\x18\x0b \x01(\t\x12\x12\n\ntunnel_crt\x18\x0c \x01(\t\"E\n\nClientType\x12\x08\n\x04GRPC\x10\x00\x12\n\n\x06STUBBY\x10\x01\x12\r\n\tGRPC_GNMI\x10\x02\x12\x12\n\x0eGRPC_GNMI_PROD\x10\x03\x42\x0b\n\tgenerator\"<\n\x0e\x46ixedGenerator\x12*\n\tresponses\x18\x01 \x03(\x0b\x32\x17.gnmi.SubscribeResponse\"A\n\x0fRandomGenerator\x12\x0c\n\x04seed\x18\x01 \x01(\x03\x12 \n\x06values\x18\x02 \x03(\x0b\x32\x10.gnmi.fake.Value\"\r\n\x0b\x44\x65leteValue\"\xba\x03\n\x05Value\x12\x0c\n\x04path\x18\x01 \x03(\t\x12\'\n\ttimestamp\x18\x02 \x01(\x0b\x32\x14.gnmi.fake.Timestamp\x12\x0e\n\x06repeat\x18\x06 \x01(\x05\x12\x0c\n\x04seed\x18\x07 \x01(\x03\x12(\n\tint_value\x18\x64 \x01(\x0b\x32\x13.gnmi.fake.IntValueH\x00\x12.\n\x0c\x64ouble_value\x18\x65 \x01(\x0b\x32\x16.gnmi.fake.DoubleValueH\x00\x12.\n\x0cstring_value\x18\x66 \x01(\x0b\x32\x16.gnmi.fake.StringValueH\x00\x12\x0e\n\x04sync\x18g \x01(\x04H\x00\x12(\n\x06\x64\x65lete\x18h \x01(\x0b\x32\x16.gnmi.fake.DeleteValueH\x00\x12*\n\nbool_value\x18i \x01(\x0b\x32\x14.gnmi.fake.BoolValueH\x00\x12*\n\nuint_value\x18j \x01(\x0b\x32\x14.gnmi.fake.UintValueH\x00\x12\x37\n\x11string_list_value\x18k \x01(\x0b\x32\x1a.gnmi.fake.StringListValueH\x00\x42\x07\n\x05value\"D\n\tTimestamp\x12\x11\n\ttimestamp\x18\x01 \x01(\x03\x12\x11\n\tdelta_min\x18\x02 \x01(\x03\x12\x11\n\tdelta_max\x18\x03 \x01(\x03\"s\n\x08IntValue\x12\r\n\x05value\x18\x01 \x01(\x03\x12$\n\x05range\x18\x02 \x01(\x0b\x32\x13.gnmi.fake.IntRangeH\x00\x12\"\n\x04list\x18\x03 \x01(\x0b\x32\x12.gnmi.fake.IntListH\x00\x42\x0e\n\x0c\x64istribution\"R\n\x08IntRange\x12\x0f\n\x07minimum\x18\x01 \x01(\x03\x12\x0f\n\x07maximum\x18\x02 \x01(\x03\x12\x11\n\tdelta_min\x18\x03 \x01(\x03\x12\x11\n\tdelta_max\x18\x04 \x01(\x03\"*\n\x07IntList\x12\x0f\n\x07options\x18\x01 \x03(\x03\x12\x0e\n\x06random\x18\x02 \x01(\x08\"|\n\x0b\x44oubleValue\x12\r\n\x05value\x18\x01 \x01(\x01\x12\'\n\x05range\x18\x02 \x01(\x0b\x32\x16.gnmi.fake.DoubleRangeH\x00\x12%\n\x04list\x18\x03 \x01(\x0b\x32\x15.gnmi.fake.DoubleListH\x00\x42\x0e\n\x0c\x64istribution\"U\n\x0b\x44oubleRange\x12\x0f\n\x07minimum\x18\x01 \x01(\x01\x12\x0f\n\x07maximum\x18\x02 \x01(\x01\x12\x11\n\tdelta_min\x18\x03 \x01(\x01\x12\x11\n\tdelta_max\x18\x04 \x01(\x01\"-\n\nDoubleList\x12\x0f\n\x07options\x18\x01 \x03(\x01\x12\x0e\n\x06random\x18\x02 \x01(\x08\"S\n\x0bStringValue\x12\r\n\x05value\x18\x01 \x01(\t\x12%\n\x04list\x18\x02 \x01(\x0b\x32\x15.gnmi.fake.StringListH\x00\x42\x0e\n\x0c\x64istribution\"-\n\nStringList\x12\x0f\n\x07options\x18\x01 \x03(\t\x12\x0e\n\x06random\x18\x02 \x01(\x08\"W\n\x0fStringListValue\x12\r\n\x05value\x18\x01 \x03(\t\x12%\n\x04list\x18\x02 \x01(\x0b\x32\x15.gnmi.fake.StringListH\x00\x42\x0e\n\x0c\x64istribution\"O\n\tBoolValue\x12\r\n\x05value\x18\x01 \x01(\x08\x12#\n\x04list\x18\x02 \x01(\x0b\x32\x13.gnmi.fake.BoolListH\x00\x42\x0e\n\x0c\x64istribution\"+\n\x08\x42oolList\x12\x0f\n\x07options\x18\x01 \x03(\x08\x12\x0e\n\x06random\x18\x02 \x01(\x08\"v\n\tUintValue\x12\r\n\x05value\x18\x01 \x01(\x04\x12%\n\x05range\x18\x02 \x01(\x0b\x32\x14.gnmi.fake.UintRangeH\x00\x12#\n\x04list\x18\x03 \x01(\x0b\x32\x13.gnmi.fake.UintListH\x00\x42\x0e\n\x0c\x64istribution\"S\n\tUintRange\x12\x0f\n\x07minimum\x18\x01 \x01(\x04\x12\x0f\n\x07maximum\x18\x02 \x01(\x04\x12\x11\n\tdelta_min\x18\x03 \x01(\x03\x12\x11\n\tdelta_max\x18\x04 \x01(\x03\"+\n\x08UintList\x12\x0f\n\x07options\x18\x01 \x03(\x04\x12\x0e\n\x06random\x18\x02 \x01(\x08*+\n\x05State\x12\x0b\n\x07STOPPED\x10\x00\x12\x08\n\x04INIT\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x32\x9b\x01\n\x0c\x41gentManager\x12+\n\x03\x41\x64\x64\x12\x11.gnmi.fake.Config\x1a\x11.gnmi.fake.Config\x12.\n\x06Remove\x12\x11.gnmi.fake.Config\x1a\x11.gnmi.fake.Config\x12.\n\x06Status\x12\x11.gnmi.fake.Config\x1a\x11.gnmi.fake.ConfigB9Z7github.com/openconfig/gnmi/testing/fake/proto;gnmi_fakeb\x06proto3') -_STATE = DESCRIPTOR.enum_types_by_name['State'] -State = enum_type_wrapper.EnumTypeWrapper(_STATE) -STOPPED = 0 -INIT = 1 -RUNNING = 2 - - -_CONFIGURATION = DESCRIPTOR.message_types_by_name['Configuration'] -_CREDENTIALS = DESCRIPTOR.message_types_by_name['Credentials'] -_CONFIG = DESCRIPTOR.message_types_by_name['Config'] -_FIXEDGENERATOR = DESCRIPTOR.message_types_by_name['FixedGenerator'] -_RANDOMGENERATOR = DESCRIPTOR.message_types_by_name['RandomGenerator'] -_DELETEVALUE = DESCRIPTOR.message_types_by_name['DeleteValue'] -_VALUE = DESCRIPTOR.message_types_by_name['Value'] -_TIMESTAMP = DESCRIPTOR.message_types_by_name['Timestamp'] -_INTVALUE = DESCRIPTOR.message_types_by_name['IntValue'] -_INTRANGE = DESCRIPTOR.message_types_by_name['IntRange'] -_INTLIST = DESCRIPTOR.message_types_by_name['IntList'] -_DOUBLEVALUE = DESCRIPTOR.message_types_by_name['DoubleValue'] -_DOUBLERANGE = DESCRIPTOR.message_types_by_name['DoubleRange'] -_DOUBLELIST = DESCRIPTOR.message_types_by_name['DoubleList'] -_STRINGVALUE = DESCRIPTOR.message_types_by_name['StringValue'] -_STRINGLIST = DESCRIPTOR.message_types_by_name['StringList'] -_STRINGLISTVALUE = DESCRIPTOR.message_types_by_name['StringListValue'] -_BOOLVALUE = DESCRIPTOR.message_types_by_name['BoolValue'] -_BOOLLIST = DESCRIPTOR.message_types_by_name['BoolList'] -_UINTVALUE = DESCRIPTOR.message_types_by_name['UintValue'] -_UINTRANGE = DESCRIPTOR.message_types_by_name['UintRange'] -_UINTLIST = DESCRIPTOR.message_types_by_name['UintList'] -_CONFIG_CLIENTTYPE = _CONFIG.enum_types_by_name['ClientType'] -Configuration = _reflection.GeneratedProtocolMessageType('Configuration', (_message.Message,), { - 'DESCRIPTOR' : _CONFIGURATION, - '__module__' : 'testing.fake.proto.fake_pb2' - # @@protoc_insertion_point(class_scope:gnmi.fake.Configuration) - }) -_sym_db.RegisterMessage(Configuration) - -Credentials = _reflection.GeneratedProtocolMessageType('Credentials', (_message.Message,), { - 'DESCRIPTOR' : _CREDENTIALS, - '__module__' : 'testing.fake.proto.fake_pb2' - # @@protoc_insertion_point(class_scope:gnmi.fake.Credentials) - }) -_sym_db.RegisterMessage(Credentials) - -Config = _reflection.GeneratedProtocolMessageType('Config', (_message.Message,), { - 'DESCRIPTOR' : _CONFIG, - '__module__' : 'testing.fake.proto.fake_pb2' - # @@protoc_insertion_point(class_scope:gnmi.fake.Config) - }) -_sym_db.RegisterMessage(Config) - -FixedGenerator = _reflection.GeneratedProtocolMessageType('FixedGenerator', (_message.Message,), { - 'DESCRIPTOR' : _FIXEDGENERATOR, - '__module__' : 'testing.fake.proto.fake_pb2' - # @@protoc_insertion_point(class_scope:gnmi.fake.FixedGenerator) - }) -_sym_db.RegisterMessage(FixedGenerator) - -RandomGenerator = _reflection.GeneratedProtocolMessageType('RandomGenerator', (_message.Message,), { - 'DESCRIPTOR' : _RANDOMGENERATOR, - '__module__' : 'testing.fake.proto.fake_pb2' - # @@protoc_insertion_point(class_scope:gnmi.fake.RandomGenerator) - }) -_sym_db.RegisterMessage(RandomGenerator) - -DeleteValue = _reflection.GeneratedProtocolMessageType('DeleteValue', (_message.Message,), { - 'DESCRIPTOR' : _DELETEVALUE, - '__module__' : 'testing.fake.proto.fake_pb2' - # @@protoc_insertion_point(class_scope:gnmi.fake.DeleteValue) - }) -_sym_db.RegisterMessage(DeleteValue) - -Value = _reflection.GeneratedProtocolMessageType('Value', (_message.Message,), { - 'DESCRIPTOR' : _VALUE, - '__module__' : 'testing.fake.proto.fake_pb2' - # @@protoc_insertion_point(class_scope:gnmi.fake.Value) - }) -_sym_db.RegisterMessage(Value) - -Timestamp = _reflection.GeneratedProtocolMessageType('Timestamp', (_message.Message,), { - 'DESCRIPTOR' : _TIMESTAMP, - '__module__' : 'testing.fake.proto.fake_pb2' - # @@protoc_insertion_point(class_scope:gnmi.fake.Timestamp) - }) -_sym_db.RegisterMessage(Timestamp) - -IntValue = _reflection.GeneratedProtocolMessageType('IntValue', (_message.Message,), { - 'DESCRIPTOR' : _INTVALUE, - '__module__' : 'testing.fake.proto.fake_pb2' - # @@protoc_insertion_point(class_scope:gnmi.fake.IntValue) - }) -_sym_db.RegisterMessage(IntValue) - -IntRange = _reflection.GeneratedProtocolMessageType('IntRange', (_message.Message,), { - 'DESCRIPTOR' : _INTRANGE, - '__module__' : 'testing.fake.proto.fake_pb2' - # @@protoc_insertion_point(class_scope:gnmi.fake.IntRange) - }) -_sym_db.RegisterMessage(IntRange) - -IntList = _reflection.GeneratedProtocolMessageType('IntList', (_message.Message,), { - 'DESCRIPTOR' : _INTLIST, - '__module__' : 'testing.fake.proto.fake_pb2' - # @@protoc_insertion_point(class_scope:gnmi.fake.IntList) - }) -_sym_db.RegisterMessage(IntList) - -DoubleValue = _reflection.GeneratedProtocolMessageType('DoubleValue', (_message.Message,), { - 'DESCRIPTOR' : _DOUBLEVALUE, - '__module__' : 'testing.fake.proto.fake_pb2' - # @@protoc_insertion_point(class_scope:gnmi.fake.DoubleValue) - }) -_sym_db.RegisterMessage(DoubleValue) - -DoubleRange = _reflection.GeneratedProtocolMessageType('DoubleRange', (_message.Message,), { - 'DESCRIPTOR' : _DOUBLERANGE, - '__module__' : 'testing.fake.proto.fake_pb2' - # @@protoc_insertion_point(class_scope:gnmi.fake.DoubleRange) - }) -_sym_db.RegisterMessage(DoubleRange) - -DoubleList = _reflection.GeneratedProtocolMessageType('DoubleList', (_message.Message,), { - 'DESCRIPTOR' : _DOUBLELIST, - '__module__' : 'testing.fake.proto.fake_pb2' - # @@protoc_insertion_point(class_scope:gnmi.fake.DoubleList) - }) -_sym_db.RegisterMessage(DoubleList) - -StringValue = _reflection.GeneratedProtocolMessageType('StringValue', (_message.Message,), { - 'DESCRIPTOR' : _STRINGVALUE, - '__module__' : 'testing.fake.proto.fake_pb2' - # @@protoc_insertion_point(class_scope:gnmi.fake.StringValue) - }) -_sym_db.RegisterMessage(StringValue) - -StringList = _reflection.GeneratedProtocolMessageType('StringList', (_message.Message,), { - 'DESCRIPTOR' : _STRINGLIST, - '__module__' : 'testing.fake.proto.fake_pb2' - # @@protoc_insertion_point(class_scope:gnmi.fake.StringList) - }) -_sym_db.RegisterMessage(StringList) - -StringListValue = _reflection.GeneratedProtocolMessageType('StringListValue', (_message.Message,), { - 'DESCRIPTOR' : _STRINGLISTVALUE, - '__module__' : 'testing.fake.proto.fake_pb2' - # @@protoc_insertion_point(class_scope:gnmi.fake.StringListValue) - }) -_sym_db.RegisterMessage(StringListValue) - -BoolValue = _reflection.GeneratedProtocolMessageType('BoolValue', (_message.Message,), { - 'DESCRIPTOR' : _BOOLVALUE, - '__module__' : 'testing.fake.proto.fake_pb2' - # @@protoc_insertion_point(class_scope:gnmi.fake.BoolValue) - }) -_sym_db.RegisterMessage(BoolValue) - -BoolList = _reflection.GeneratedProtocolMessageType('BoolList', (_message.Message,), { - 'DESCRIPTOR' : _BOOLLIST, - '__module__' : 'testing.fake.proto.fake_pb2' - # @@protoc_insertion_point(class_scope:gnmi.fake.BoolList) - }) -_sym_db.RegisterMessage(BoolList) - -UintValue = _reflection.GeneratedProtocolMessageType('UintValue', (_message.Message,), { - 'DESCRIPTOR' : _UINTVALUE, - '__module__' : 'testing.fake.proto.fake_pb2' - # @@protoc_insertion_point(class_scope:gnmi.fake.UintValue) - }) -_sym_db.RegisterMessage(UintValue) - -UintRange = _reflection.GeneratedProtocolMessageType('UintRange', (_message.Message,), { - 'DESCRIPTOR' : _UINTRANGE, - '__module__' : 'testing.fake.proto.fake_pb2' - # @@protoc_insertion_point(class_scope:gnmi.fake.UintRange) - }) -_sym_db.RegisterMessage(UintRange) - -UintList = _reflection.GeneratedProtocolMessageType('UintList', (_message.Message,), { - 'DESCRIPTOR' : _UINTLIST, - '__module__' : 'testing.fake.proto.fake_pb2' - # @@protoc_insertion_point(class_scope:gnmi.fake.UintList) - }) -_sym_db.RegisterMessage(UintList) - -_AGENTMANAGER = DESCRIPTOR.services_by_name['AgentManager'] +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'testing.fake.proto.fake_pb2', globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None