From d39a9c35034d043c2b415fe9ebaac49ac184bce2 Mon Sep 17 00:00:00 2001 From: Tamir David Date: Tue, 3 Sep 2024 13:37:54 +0300 Subject: [PATCH 1/3] feat: dynamically import dependencies from path --- initializer/lib_handling.py | 19 +++++++++++++++++ opamp/anyvalue_pb2.py | 40 ++++++++++++++++++++++++++--------- opamp/opamp_pb2.py | 42 ++++++++++++++++++++++++++++--------- 3 files changed, 81 insertions(+), 20 deletions(-) diff --git a/initializer/lib_handling.py b/initializer/lib_handling.py index 97cfdd4..08a552e 100644 --- a/initializer/lib_handling.py +++ b/initializer/lib_handling.py @@ -1,4 +1,9 @@ import sys +import os +import importlib.util + +# Constants +ODIGOS_PROTOBUF_PATH = '/var/odigos/python/google/protobuf' def reorder_python_path(): paths_to_move = [path for path in sys.path if path.startswith('/var/odigos/')] @@ -39,3 +44,17 @@ def reload_distro_modules() -> None: if any(module.startswith(prefix) for prefix in needed_module_prefixes): del sys.modules[module] + + +def import_module_from_path(unique_name, path): + ''' Import a module from a file path and return it ''' + if not os.path.isfile(path): + raise ImportError(f"Module '{unique_name}' not found at path '{path}'") + + spec = importlib.util.spec_from_file_location(unique_name, path) + + module = importlib.util.module_from_spec(spec) + + spec.loader.exec_module(module) + + return module \ No newline at end of file diff --git a/opamp/anyvalue_pb2.py b/opamp/anyvalue_pb2.py index 5ec977e..3a6702a 100644 --- a/opamp/anyvalue_pb2.py +++ b/opamp/anyvalue_pb2.py @@ -3,23 +3,43 @@ # source: anyvalue.proto # Protobuf Python Version: 4.25.0 """Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) +from initializer.lib_handling import import_module_from_path, ODIGOS_PROTOBUF_PATH + +# Import descriptor as _descriptor_odigos +_descriptor_odigos= import_module_from_path( + unique_name="_descriptor_odigos", + path=f"{ODIGOS_PROTOBUF_PATH}/descriptor.py" +) + +# Import descriptor_pool as _descriptor_pool_odigos +_descriptor_pool_odigos = import_module_from_path( + unique_name="_descriptor_pool_odigos", + path=f"{ODIGOS_PROTOBUF_PATH}/descriptor_pool.py" +) -_sym_db = _symbol_database.Default() +# Import symbol_database as _symbol_database_odigos +_symbol_database_odigos = import_module_from_path( + unique_name="_symbol_database_odigos", + path=f"{ODIGOS_PROTOBUF_PATH}/symbol_database.py" +) +# Import builder as _builder_odigos +_builder_odigos = import_module_from_path( + unique_name="_builder_odigos", + path=f"{ODIGOS_PROTOBUF_PATH}/internal/builder.py" +) + +# @@protoc_insertion_point(imports) +_sym_db = _symbol_database_odigos.Default() -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0e\x61nyvalue.proto\x12\x0bopamp.proto\"\xbc\x02\n\x08\x41nyValue\x12#\n\x0cstring_value\x18\x01 \x01(\tH\x00R\x0bstringValue\x12\x1f\n\nbool_value\x18\x02 \x01(\x08H\x00R\tboolValue\x12\x1d\n\tint_value\x18\x03 \x01(\x03H\x00R\x08intValue\x12#\n\x0c\x64ouble_value\x18\x04 \x01(\x01H\x00R\x0b\x64oubleValue\x12:\n\x0b\x61rray_value\x18\x05 \x01(\x0b\x32\x17.opamp.proto.ArrayValueH\x00R\narrayValue\x12>\n\x0ckvlist_value\x18\x06 \x01(\x0b\x32\x19.opamp.proto.KeyValueListH\x00R\x0bkvlistValue\x12!\n\x0b\x62ytes_value\x18\x07 \x01(\x0cH\x00R\nbytesValueB\x07\n\x05value\";\n\nArrayValue\x12-\n\x06values\x18\x01 \x03(\x0b\x32\x15.opamp.proto.AnyValueR\x06values\"=\n\x0cKeyValueList\x12-\n\x06values\x18\x01 \x03(\x0b\x32\x15.opamp.proto.KeyValueR\x06values\"I\n\x08KeyValue\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x15.opamp.proto.AnyValueR\x05valueB\xa0\x01\n\x0f\x63om.opamp.protoB\rAnyvalueProtoP\x01Z1github.com/odigos-io/odigos/opampserver/protobufs\xa2\x02\x03OPX\xaa\x02\x0bOpamp.Proto\xca\x02\x0bOpamp\\Proto\xe2\x02\x17Opamp\\Proto\\GPBMetadata\xea\x02\x0cOpamp::Protob\x06proto3') +DESCRIPTOR = _descriptor_pool_odigos.Default().AddSerializedFile(b'\n\x0e\x61nyvalue.proto\x12\x0bopamp.proto\"\xbc\x02\n\x08\x41nyValue\x12#\n\x0cstring_value\x18\x01 \x01(\tH\x00R\x0bstringValue\x12\x1f\n\nbool_value\x18\x02 \x01(\x08H\x00R\tboolValue\x12\x1d\n\tint_value\x18\x03 \x01(\x03H\x00R\x08intValue\x12#\n\x0c\x64ouble_value\x18\x04 \x01(\x01H\x00R\x0b\x64oubleValue\x12:\n\x0b\x61rray_value\x18\x05 \x01(\x0b\x32\x17.opamp.proto.ArrayValueH\x00R\narrayValue\x12>\n\x0ckvlist_value\x18\x06 \x01(\x0b\x32\x19.opamp.proto.KeyValueListH\x00R\x0bkvlistValue\x12!\n\x0b\x62ytes_value\x18\x07 \x01(\x0cH\x00R\nbytesValueB\x07\n\x05value\";\n\nArrayValue\x12-\n\x06values\x18\x01 \x03(\x0b\x32\x15.opamp.proto.AnyValueR\x06values\"=\n\x0cKeyValueList\x12-\n\x06values\x18\x01 \x03(\x0b\x32\x15.opamp.proto.KeyValueR\x06values\"I\n\x08KeyValue\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x15.opamp.proto.AnyValueR\x05valueB\xa0\x01\n\x0f\x63om.opamp.protoB\rAnyvalueProtoP\x01Z1github.com/odigos-io/odigos/opampserver/protobufs\xa2\x02\x03OPX\xaa\x02\x0bOpamp.Proto\xca\x02\x0bOpamp\\Proto\xe2\x02\x17Opamp\\Proto\\GPBMetadata\xea\x02\x0cOpamp::Protob\x06proto3') _globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'anyvalue_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: +_builder_odigos.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder_odigos.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'anyvalue_pb2', _globals) +if _descriptor_odigos._USE_C_DESCRIPTORS == False: _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'\n\017com.opamp.protoB\rAnyvalueProtoP\001Z1github.com/odigos-io/odigos/opampserver/protobufs\242\002\003OPX\252\002\013Opamp.Proto\312\002\013Opamp\\Proto\342\002\027Opamp\\Proto\\GPBMetadata\352\002\014Opamp::Proto' _globals['_ANYVALUE']._serialized_start=32 diff --git a/opamp/opamp_pb2.py b/opamp/opamp_pb2.py index ee65527..0885d49 100644 --- a/opamp/opamp_pb2.py +++ b/opamp/opamp_pb2.py @@ -3,23 +3,45 @@ # source: opamp.proto # Protobuf Python Version: 4.25.0 """Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder +from initializer.lib_handling import import_module_from_path, ODIGOS_PROTOBUF_PATH + +# Import descriptor as _descriptor_odigos +_descriptor_odigos= import_module_from_path( + unique_name="_descriptor_odigos", + path=f"/{ODIGOS_PROTOBUF_PATH}/descriptor.py" +) + +# Import descriptor_pool as _descriptor_pool_odigos +_descriptor_pool_odigos = import_module_from_path( + unique_name="_descriptor_pool_odigos", + path=f"{ODIGOS_PROTOBUF_PATH}/descriptor_pool.py" +) + +# Import symbol_database as _symbol_database_odigos +_symbol_database_odigos = import_module_from_path( + unique_name="_symbol_database_odigos", + path=f"{ODIGOS_PROTOBUF_PATH}/symbol_database.py" +) + +# Import builder as _builder_odigos +_builder_odigos = import_module_from_path( + unique_name="_builder_odigos", + path=f"{ODIGOS_PROTOBUF_PATH}/internal/builder.py" +) + # @@protoc_insertion_point(imports) -_sym_db = _symbol_database.Default() +_sym_db = _symbol_database_odigos.Default() from opamp import anyvalue_pb2 - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0bopamp.proto\x12\x0bopamp.proto\x1a\x0e\x61nyvalue.proto\"\xbc\x06\n\rAgentToServer\x12!\n\x0cinstance_uid\x18\x01 \x01(\x0cR\x0binstanceUid\x12!\n\x0csequence_num\x18\x02 \x01(\x04R\x0bsequenceNum\x12J\n\x11\x61gent_description\x18\x03 \x01(\x0b\x32\x1d.opamp.proto.AgentDescriptionR\x10\x61gentDescription\x12\"\n\x0c\x63\x61pabilities\x18\x04 \x01(\x04R\x0c\x63\x61pabilities\x12\x34\n\x06health\x18\x05 \x01(\x0b\x32\x1c.opamp.proto.ComponentHealthR\x06health\x12G\n\x10\x65\x66\x66\x65\x63tive_config\x18\x06 \x01(\x0b\x32\x1c.opamp.proto.EffectiveConfigR\x0f\x65\x66\x66\x65\x63tiveConfig\x12Q\n\x14remote_config_status\x18\x07 \x01(\x0b\x32\x1f.opamp.proto.RemoteConfigStatusR\x12remoteConfigStatus\x12G\n\x10package_statuses\x18\x08 \x01(\x0b\x32\x1c.opamp.proto.PackageStatusesR\x0fpackageStatuses\x12G\n\x10\x61gent_disconnect\x18\t \x01(\x0b\x32\x1c.opamp.proto.AgentDisconnectR\x0f\x61gentDisconnect\x12\x14\n\x05\x66lags\x18\n \x01(\x04R\x05\x66lags\x12\x66\n\x1b\x63onnection_settings_request\x18\x0b \x01(\x0b\x32&.opamp.proto.ConnectionSettingsRequestR\x19\x63onnectionSettingsRequest\x12P\n\x13\x63ustom_capabilities\x18\x0c \x01(\x0b\x32\x1f.opamp.proto.CustomCapabilitiesR\x12\x63ustomCapabilities\x12\x41\n\x0e\x63ustom_message\x18\r \x01(\x0b\x32\x1a.opamp.proto.CustomMessageR\rcustomMessage\"\x11\n\x0f\x41gentDisconnect\"^\n\x19\x43onnectionSettingsRequest\x12\x41\n\x05opamp\x18\x01 \x01(\x0b\x32+.opamp.proto.OpAMPConnectionSettingsRequestR\x05opamp\"r\n\x1eOpAMPConnectionSettingsRequest\x12P\n\x13\x63\x65rtificate_request\x18\x01 \x01(\x0b\x32\x1f.opamp.proto.CertificateRequestR\x12\x63\x65rtificateRequest\"&\n\x12\x43\x65rtificateRequest\x12\x10\n\x03\x63sr\x18\x01 \x01(\x0cR\x03\x63sr\"\xc8\x05\n\rServerToAgent\x12!\n\x0cinstance_uid\x18\x01 \x01(\x0cR\x0binstanceUid\x12G\n\x0e\x65rror_response\x18\x02 \x01(\x0b\x32 .opamp.proto.ServerErrorResponseR\rerrorResponse\x12\x43\n\rremote_config\x18\x03 \x01(\x0b\x32\x1e.opamp.proto.AgentRemoteConfigR\x0cremoteConfig\x12V\n\x13\x63onnection_settings\x18\x04 \x01(\x0b\x32%.opamp.proto.ConnectionSettingsOffersR\x12\x63onnectionSettings\x12M\n\x12packages_available\x18\x05 \x01(\x0b\x32\x1e.opamp.proto.PackagesAvailableR\x11packagesAvailable\x12\x14\n\x05\x66lags\x18\x06 \x01(\x04R\x05\x66lags\x12\"\n\x0c\x63\x61pabilities\x18\x07 \x01(\x04R\x0c\x63\x61pabilities\x12S\n\x14\x61gent_identification\x18\x08 \x01(\x0b\x32 .opamp.proto.AgentIdentificationR\x13\x61gentIdentification\x12;\n\x07\x63ommand\x18\t \x01(\x0b\x32!.opamp.proto.ServerToAgentCommandR\x07\x63ommand\x12P\n\x13\x63ustom_capabilities\x18\n \x01(\x0b\x32\x1f.opamp.proto.CustomCapabilitiesR\x12\x63ustomCapabilities\x12\x41\n\x0e\x63ustom_message\x18\x0b \x01(\x0b\x32\x1a.opamp.proto.CustomMessageR\rcustomMessage\"\xbb\x01\n\x17OpAMPConnectionSettings\x12\x31\n\x14\x64\x65stination_endpoint\x18\x01 \x01(\tR\x13\x64\x65stinationEndpoint\x12.\n\x07headers\x18\x02 \x01(\x0b\x32\x14.opamp.proto.HeadersR\x07headers\x12=\n\x0b\x63\x65rtificate\x18\x03 \x01(\x0b\x32\x1b.opamp.proto.TLSCertificateR\x0b\x63\x65rtificate\"\xbf\x01\n\x1bTelemetryConnectionSettings\x12\x31\n\x14\x64\x65stination_endpoint\x18\x01 \x01(\tR\x13\x64\x65stinationEndpoint\x12.\n\x07headers\x18\x02 \x01(\x0b\x32\x14.opamp.proto.HeadersR\x07headers\x12=\n\x0b\x63\x65rtificate\x18\x03 \x01(\x0b\x32\x1b.opamp.proto.TLSCertificateR\x0b\x63\x65rtificate\"\xdd\x02\n\x17OtherConnectionSettings\x12\x31\n\x14\x64\x65stination_endpoint\x18\x01 \x01(\tR\x13\x64\x65stinationEndpoint\x12.\n\x07headers\x18\x02 \x01(\x0b\x32\x14.opamp.proto.HeadersR\x07headers\x12=\n\x0b\x63\x65rtificate\x18\x03 \x01(\x0b\x32\x1b.opamp.proto.TLSCertificateR\x0b\x63\x65rtificate\x12^\n\x0eother_settings\x18\x04 \x03(\x0b\x32\x37.opamp.proto.OtherConnectionSettings.OtherSettingsEntryR\rotherSettings\x1a@\n\x12OtherSettingsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"8\n\x07Headers\x12-\n\x07headers\x18\x01 \x03(\x0b\x32\x13.opamp.proto.HeaderR\x07headers\"0\n\x06Header\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\"t\n\x0eTLSCertificate\x12\x1d\n\npublic_key\x18\x01 \x01(\x0cR\tpublicKey\x12\x1f\n\x0bprivate_key\x18\x02 \x01(\x0cR\nprivateKey\x12\"\n\rca_public_key\x18\x03 \x01(\x0cR\x0b\x63\x61PublicKey\"\x98\x04\n\x18\x43onnectionSettingsOffers\x12\x12\n\x04hash\x18\x01 \x01(\x0cR\x04hash\x12:\n\x05opamp\x18\x02 \x01(\x0b\x32$.opamp.proto.OpAMPConnectionSettingsR\x05opamp\x12I\n\x0bown_metrics\x18\x03 \x01(\x0b\x32(.opamp.proto.TelemetryConnectionSettingsR\nownMetrics\x12G\n\nown_traces\x18\x04 \x01(\x0b\x32(.opamp.proto.TelemetryConnectionSettingsR\townTraces\x12\x43\n\x08own_logs\x18\x05 \x01(\x0b\x32(.opamp.proto.TelemetryConnectionSettingsR\x07ownLogs\x12h\n\x11other_connections\x18\x06 \x03(\x0b\x32;.opamp.proto.ConnectionSettingsOffers.OtherConnectionsEntryR\x10otherConnections\x1ai\n\x15OtherConnectionsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12:\n\x05value\x18\x02 \x01(\x0b\x32$.opamp.proto.OtherConnectionSettingsR\x05value:\x02\x38\x01\"\xe5\x01\n\x11PackagesAvailable\x12H\n\x08packages\x18\x01 \x03(\x0b\x32,.opamp.proto.PackagesAvailable.PackagesEntryR\x08packages\x12*\n\x11\x61ll_packages_hash\x18\x02 \x01(\x0cR\x0f\x61llPackagesHash\x1aZ\n\rPackagesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x33\n\x05value\x18\x02 \x01(\x0b\x32\x1d.opamp.proto.PackageAvailableR\x05value:\x02\x38\x01\"\xa1\x01\n\x10PackageAvailable\x12,\n\x04type\x18\x01 \x01(\x0e\x32\x18.opamp.proto.PackageTypeR\x04type\x12\x18\n\x07version\x18\x02 \x01(\tR\x07version\x12\x31\n\x04\x66ile\x18\x03 \x01(\x0b\x32\x1d.opamp.proto.DownloadableFileR\x04\x66ile\x12\x12\n\x04hash\x18\x04 \x01(\x0cR\x04hash\"v\n\x10\x44ownloadableFile\x12!\n\x0c\x64ownload_url\x18\x01 \x01(\tR\x0b\x64ownloadUrl\x12!\n\x0c\x63ontent_hash\x18\x02 \x01(\x0cR\x0b\x63ontentHash\x12\x1c\n\tsignature\x18\x03 \x01(\x0cR\tsignature\"\xb8\x01\n\x13ServerErrorResponse\x12\x38\n\x04type\x18\x01 \x01(\x0e\x32$.opamp.proto.ServerErrorResponseTypeR\x04type\x12#\n\rerror_message\x18\x02 \x01(\tR\x0c\x65rrorMessage\x12\x37\n\nretry_info\x18\x03 \x01(\x0b\x32\x16.opamp.proto.RetryInfoH\x00R\tretryInfoB\t\n\x07\x44\x65tails\"C\n\tRetryInfo\x12\x36\n\x17retry_after_nanoseconds\x18\x01 \x01(\x04R\x15retryAfterNanoseconds\"D\n\x14ServerToAgentCommand\x12,\n\x04type\x18\x01 \x01(\x0e\x32\x18.opamp.proto.CommandTypeR\x04type\"\xb5\x01\n\x10\x41gentDescription\x12L\n\x16identifying_attributes\x18\x01 \x03(\x0b\x32\x15.opamp.proto.KeyValueR\x15identifyingAttributes\x12S\n\x1anon_identifying_attributes\x18\x02 \x03(\x0b\x32\x15.opamp.proto.KeyValueR\x18nonIdentifyingAttributes\"\x93\x03\n\x0f\x43omponentHealth\x12\x18\n\x07healthy\x18\x01 \x01(\x08R\x07healthy\x12/\n\x14start_time_unix_nano\x18\x02 \x01(\x06R\x11startTimeUnixNano\x12\x1d\n\nlast_error\x18\x03 \x01(\tR\tlastError\x12\x16\n\x06status\x18\x04 \x01(\tR\x06status\x12\x31\n\x15status_time_unix_nano\x18\x05 \x01(\x06R\x12statusTimeUnixNano\x12\x66\n\x14\x63omponent_health_map\x18\x06 \x03(\x0b\x32\x34.opamp.proto.ComponentHealth.ComponentHealthMapEntryR\x12\x63omponentHealthMap\x1a\x63\n\x17\x43omponentHealthMapEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x32\n\x05value\x18\x02 \x01(\x0b\x32\x1c.opamp.proto.ComponentHealthR\x05value:\x02\x38\x01\"M\n\x0f\x45\x66\x66\x65\x63tiveConfig\x12:\n\nconfig_map\x18\x01 \x01(\x0b\x32\x1b.opamp.proto.AgentConfigMapR\tconfigMap\"\xab\x01\n\x12RemoteConfigStatus\x12\x35\n\x17last_remote_config_hash\x18\x01 \x01(\x0cR\x14lastRemoteConfigHash\x12\x39\n\x06status\x18\x02 \x01(\x0e\x32!.opamp.proto.RemoteConfigStatusesR\x06status\x12#\n\rerror_message\x18\x03 \x01(\tR\x0c\x65rrorMessage\"\xa1\x02\n\x0fPackageStatuses\x12\x46\n\x08packages\x18\x01 \x03(\x0b\x32*.opamp.proto.PackageStatuses.PackagesEntryR\x08packages\x12H\n!server_provided_all_packages_hash\x18\x02 \x01(\x0cR\x1dserverProvidedAllPackagesHash\x12#\n\rerror_message\x18\x03 \x01(\tR\x0c\x65rrorMessage\x1aW\n\rPackagesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x30\n\x05value\x18\x02 \x01(\x0b\x32\x1a.opamp.proto.PackageStatusR\x05value:\x02\x38\x01\"\xb8\x02\n\rPackageStatus\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12*\n\x11\x61gent_has_version\x18\x02 \x01(\tR\x0f\x61gentHasVersion\x12$\n\x0e\x61gent_has_hash\x18\x03 \x01(\x0cR\x0c\x61gentHasHash\x12\x34\n\x16server_offered_version\x18\x04 \x01(\tR\x14serverOfferedVersion\x12.\n\x13server_offered_hash\x18\x05 \x01(\x0cR\x11serverOfferedHash\x12\x36\n\x06status\x18\x06 \x01(\x0e\x32\x1e.opamp.proto.PackageStatusEnumR\x06status\x12#\n\rerror_message\x18\x07 \x01(\tR\x0c\x65rrorMessage\"?\n\x13\x41gentIdentification\x12(\n\x10new_instance_uid\x18\x01 \x01(\x0cR\x0enewInstanceUid\"i\n\x11\x41gentRemoteConfig\x12\x33\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x1b.opamp.proto.AgentConfigMapR\x06\x63onfig\x12\x1f\n\x0b\x63onfig_hash\x18\x02 \x01(\x0cR\nconfigHash\"\xb7\x01\n\x0e\x41gentConfigMap\x12I\n\nconfig_map\x18\x01 \x03(\x0b\x32*.opamp.proto.AgentConfigMap.ConfigMapEntryR\tconfigMap\x1aZ\n\x0e\x43onfigMapEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x32\n\x05value\x18\x02 \x01(\x0b\x32\x1c.opamp.proto.AgentConfigFileR\x05value:\x02\x38\x01\"H\n\x0f\x41gentConfigFile\x12\x12\n\x04\x62ody\x18\x01 \x01(\x0cR\x04\x62ody\x12!\n\x0c\x63ontent_type\x18\x02 \x01(\tR\x0b\x63ontentType\"8\n\x12\x43ustomCapabilities\x12\"\n\x0c\x63\x61pabilities\x18\x01 \x03(\tR\x0c\x63\x61pabilities\"W\n\rCustomMessage\x12\x1e\n\ncapability\x18\x01 \x01(\tR\ncapability\x12\x12\n\x04type\x18\x02 \x01(\tR\x04type\x12\x12\n\x04\x64\x61ta\x18\x03 \x01(\x0cR\x04\x64\x61ta*c\n\x12\x41gentToServerFlags\x12\"\n\x1e\x41gentToServerFlags_Unspecified\x10\x00\x12)\n%AgentToServerFlags_RequestInstanceUid\x10\x01*`\n\x12ServerToAgentFlags\x12\"\n\x1eServerToAgentFlags_Unspecified\x10\x00\x12&\n\"ServerToAgentFlags_ReportFullState\x10\x01*\xf7\x02\n\x12ServerCapabilities\x12\"\n\x1eServerCapabilities_Unspecified\x10\x00\x12$\n ServerCapabilities_AcceptsStatus\x10\x01\x12)\n%ServerCapabilities_OffersRemoteConfig\x10\x02\x12-\n)ServerCapabilities_AcceptsEffectiveConfig\x10\x04\x12%\n!ServerCapabilities_OffersPackages\x10\x08\x12,\n(ServerCapabilities_AcceptsPackagesStatus\x10\x10\x12/\n+ServerCapabilities_OffersConnectionSettings\x10 \x12\x37\n3ServerCapabilities_AcceptsConnectionSettingsRequest\x10@*>\n\x0bPackageType\x12\x18\n\x14PackageType_TopLevel\x10\x00\x12\x15\n\x11PackageType_Addon\x10\x01*\x8f\x01\n\x17ServerErrorResponseType\x12#\n\x1fServerErrorResponseType_Unknown\x10\x00\x12&\n\"ServerErrorResponseType_BadRequest\x10\x01\x12\'\n#ServerErrorResponseType_Unavailable\x10\x02*&\n\x0b\x43ommandType\x12\x17\n\x13\x43ommandType_Restart\x10\x00*\xef\x04\n\x11\x41gentCapabilities\x12!\n\x1d\x41gentCapabilities_Unspecified\x10\x00\x12#\n\x1f\x41gentCapabilities_ReportsStatus\x10\x01\x12)\n%AgentCapabilities_AcceptsRemoteConfig\x10\x02\x12,\n(AgentCapabilities_ReportsEffectiveConfig\x10\x04\x12%\n!AgentCapabilities_AcceptsPackages\x10\x08\x12,\n(AgentCapabilities_ReportsPackageStatuses\x10\x10\x12&\n\"AgentCapabilities_ReportsOwnTraces\x10 \x12\'\n#AgentCapabilities_ReportsOwnMetrics\x10@\x12%\n AgentCapabilities_ReportsOwnLogs\x10\x80\x01\x12\x35\n0AgentCapabilities_AcceptsOpAMPConnectionSettings\x10\x80\x02\x12\x35\n0AgentCapabilities_AcceptsOtherConnectionSettings\x10\x80\x04\x12,\n\'AgentCapabilities_AcceptsRestartCommand\x10\x80\x08\x12$\n\x1f\x41gentCapabilities_ReportsHealth\x10\x80\x10\x12*\n%AgentCapabilities_ReportsRemoteConfig\x10\x80 *\x9c\x01\n\x14RemoteConfigStatuses\x12\x1e\n\x1aRemoteConfigStatuses_UNSET\x10\x00\x12 \n\x1cRemoteConfigStatuses_APPLIED\x10\x01\x12!\n\x1dRemoteConfigStatuses_APPLYING\x10\x02\x12\x1f\n\x1bRemoteConfigStatuses_FAILED\x10\x03*\xa1\x01\n\x11PackageStatusEnum\x12\x1f\n\x1bPackageStatusEnum_Installed\x10\x00\x12$\n PackageStatusEnum_InstallPending\x10\x01\x12 \n\x1cPackageStatusEnum_Installing\x10\x02\x12#\n\x1fPackageStatusEnum_InstallFailed\x10\x03\x42\x9d\x01\n\x0f\x63om.opamp.protoB\nOpampProtoP\x01Z1github.com/odigos-io/odigos/opampserver/protobufs\xa2\x02\x03OPX\xaa\x02\x0bOpamp.Proto\xca\x02\x0bOpamp\\Proto\xe2\x02\x17Opamp\\Proto\\GPBMetadata\xea\x02\x0cOpamp::Protob\x06proto3') +DESCRIPTOR = _descriptor_pool_odigos.Default().AddSerializedFile(b'\n\x0bopamp.proto\x12\x0bopamp.proto\x1a\x0e\x61nyvalue.proto\"\xbc\x06\n\rAgentToServer\x12!\n\x0cinstance_uid\x18\x01 \x01(\x0cR\x0binstanceUid\x12!\n\x0csequence_num\x18\x02 \x01(\x04R\x0bsequenceNum\x12J\n\x11\x61gent_description\x18\x03 \x01(\x0b\x32\x1d.opamp.proto.AgentDescriptionR\x10\x61gentDescription\x12\"\n\x0c\x63\x61pabilities\x18\x04 \x01(\x04R\x0c\x63\x61pabilities\x12\x34\n\x06health\x18\x05 \x01(\x0b\x32\x1c.opamp.proto.ComponentHealthR\x06health\x12G\n\x10\x65\x66\x66\x65\x63tive_config\x18\x06 \x01(\x0b\x32\x1c.opamp.proto.EffectiveConfigR\x0f\x65\x66\x66\x65\x63tiveConfig\x12Q\n\x14remote_config_status\x18\x07 \x01(\x0b\x32\x1f.opamp.proto.RemoteConfigStatusR\x12remoteConfigStatus\x12G\n\x10package_statuses\x18\x08 \x01(\x0b\x32\x1c.opamp.proto.PackageStatusesR\x0fpackageStatuses\x12G\n\x10\x61gent_disconnect\x18\t \x01(\x0b\x32\x1c.opamp.proto.AgentDisconnectR\x0f\x61gentDisconnect\x12\x14\n\x05\x66lags\x18\n \x01(\x04R\x05\x66lags\x12\x66\n\x1b\x63onnection_settings_request\x18\x0b \x01(\x0b\x32&.opamp.proto.ConnectionSettingsRequestR\x19\x63onnectionSettingsRequest\x12P\n\x13\x63ustom_capabilities\x18\x0c \x01(\x0b\x32\x1f.opamp.proto.CustomCapabilitiesR\x12\x63ustomCapabilities\x12\x41\n\x0e\x63ustom_message\x18\r \x01(\x0b\x32\x1a.opamp.proto.CustomMessageR\rcustomMessage\"\x11\n\x0f\x41gentDisconnect\"^\n\x19\x43onnectionSettingsRequest\x12\x41\n\x05opamp\x18\x01 \x01(\x0b\x32+.opamp.proto.OpAMPConnectionSettingsRequestR\x05opamp\"r\n\x1eOpAMPConnectionSettingsRequest\x12P\n\x13\x63\x65rtificate_request\x18\x01 \x01(\x0b\x32\x1f.opamp.proto.CertificateRequestR\x12\x63\x65rtificateRequest\"&\n\x12\x43\x65rtificateRequest\x12\x10\n\x03\x63sr\x18\x01 \x01(\x0cR\x03\x63sr\"\xc8\x05\n\rServerToAgent\x12!\n\x0cinstance_uid\x18\x01 \x01(\x0cR\x0binstanceUid\x12G\n\x0e\x65rror_response\x18\x02 \x01(\x0b\x32 .opamp.proto.ServerErrorResponseR\rerrorResponse\x12\x43\n\rremote_config\x18\x03 \x01(\x0b\x32\x1e.opamp.proto.AgentRemoteConfigR\x0cremoteConfig\x12V\n\x13\x63onnection_settings\x18\x04 \x01(\x0b\x32%.opamp.proto.ConnectionSettingsOffersR\x12\x63onnectionSettings\x12M\n\x12packages_available\x18\x05 \x01(\x0b\x32\x1e.opamp.proto.PackagesAvailableR\x11packagesAvailable\x12\x14\n\x05\x66lags\x18\x06 \x01(\x04R\x05\x66lags\x12\"\n\x0c\x63\x61pabilities\x18\x07 \x01(\x04R\x0c\x63\x61pabilities\x12S\n\x14\x61gent_identification\x18\x08 \x01(\x0b\x32 .opamp.proto.AgentIdentificationR\x13\x61gentIdentification\x12;\n\x07\x63ommand\x18\t \x01(\x0b\x32!.opamp.proto.ServerToAgentCommandR\x07\x63ommand\x12P\n\x13\x63ustom_capabilities\x18\n \x01(\x0b\x32\x1f.opamp.proto.CustomCapabilitiesR\x12\x63ustomCapabilities\x12\x41\n\x0e\x63ustom_message\x18\x0b \x01(\x0b\x32\x1a.opamp.proto.CustomMessageR\rcustomMessage\"\xbb\x01\n\x17OpAMPConnectionSettings\x12\x31\n\x14\x64\x65stination_endpoint\x18\x01 \x01(\tR\x13\x64\x65stinationEndpoint\x12.\n\x07headers\x18\x02 \x01(\x0b\x32\x14.opamp.proto.HeadersR\x07headers\x12=\n\x0b\x63\x65rtificate\x18\x03 \x01(\x0b\x32\x1b.opamp.proto.TLSCertificateR\x0b\x63\x65rtificate\"\xbf\x01\n\x1bTelemetryConnectionSettings\x12\x31\n\x14\x64\x65stination_endpoint\x18\x01 \x01(\tR\x13\x64\x65stinationEndpoint\x12.\n\x07headers\x18\x02 \x01(\x0b\x32\x14.opamp.proto.HeadersR\x07headers\x12=\n\x0b\x63\x65rtificate\x18\x03 \x01(\x0b\x32\x1b.opamp.proto.TLSCertificateR\x0b\x63\x65rtificate\"\xdd\x02\n\x17OtherConnectionSettings\x12\x31\n\x14\x64\x65stination_endpoint\x18\x01 \x01(\tR\x13\x64\x65stinationEndpoint\x12.\n\x07headers\x18\x02 \x01(\x0b\x32\x14.opamp.proto.HeadersR\x07headers\x12=\n\x0b\x63\x65rtificate\x18\x03 \x01(\x0b\x32\x1b.opamp.proto.TLSCertificateR\x0b\x63\x65rtificate\x12^\n\x0eother_settings\x18\x04 \x03(\x0b\x32\x37.opamp.proto.OtherConnectionSettings.OtherSettingsEntryR\rotherSettings\x1a@\n\x12OtherSettingsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"8\n\x07Headers\x12-\n\x07headers\x18\x01 \x03(\x0b\x32\x13.opamp.proto.HeaderR\x07headers\"0\n\x06Header\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\"t\n\x0eTLSCertificate\x12\x1d\n\npublic_key\x18\x01 \x01(\x0cR\tpublicKey\x12\x1f\n\x0bprivate_key\x18\x02 \x01(\x0cR\nprivateKey\x12\"\n\rca_public_key\x18\x03 \x01(\x0cR\x0b\x63\x61PublicKey\"\x98\x04\n\x18\x43onnectionSettingsOffers\x12\x12\n\x04hash\x18\x01 \x01(\x0cR\x04hash\x12:\n\x05opamp\x18\x02 \x01(\x0b\x32$.opamp.proto.OpAMPConnectionSettingsR\x05opamp\x12I\n\x0bown_metrics\x18\x03 \x01(\x0b\x32(.opamp.proto.TelemetryConnectionSettingsR\nownMetrics\x12G\n\nown_traces\x18\x04 \x01(\x0b\x32(.opamp.proto.TelemetryConnectionSettingsR\townTraces\x12\x43\n\x08own_logs\x18\x05 \x01(\x0b\x32(.opamp.proto.TelemetryConnectionSettingsR\x07ownLogs\x12h\n\x11other_connections\x18\x06 \x03(\x0b\x32;.opamp.proto.ConnectionSettingsOffers.OtherConnectionsEntryR\x10otherConnections\x1ai\n\x15OtherConnectionsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12:\n\x05value\x18\x02 \x01(\x0b\x32$.opamp.proto.OtherConnectionSettingsR\x05value:\x02\x38\x01\"\xe5\x01\n\x11PackagesAvailable\x12H\n\x08packages\x18\x01 \x03(\x0b\x32,.opamp.proto.PackagesAvailable.PackagesEntryR\x08packages\x12*\n\x11\x61ll_packages_hash\x18\x02 \x01(\x0cR\x0f\x61llPackagesHash\x1aZ\n\rPackagesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x33\n\x05value\x18\x02 \x01(\x0b\x32\x1d.opamp.proto.PackageAvailableR\x05value:\x02\x38\x01\"\xa1\x01\n\x10PackageAvailable\x12,\n\x04type\x18\x01 \x01(\x0e\x32\x18.opamp.proto.PackageTypeR\x04type\x12\x18\n\x07version\x18\x02 \x01(\tR\x07version\x12\x31\n\x04\x66ile\x18\x03 \x01(\x0b\x32\x1d.opamp.proto.DownloadableFileR\x04\x66ile\x12\x12\n\x04hash\x18\x04 \x01(\x0cR\x04hash\"v\n\x10\x44ownloadableFile\x12!\n\x0c\x64ownload_url\x18\x01 \x01(\tR\x0b\x64ownloadUrl\x12!\n\x0c\x63ontent_hash\x18\x02 \x01(\x0cR\x0b\x63ontentHash\x12\x1c\n\tsignature\x18\x03 \x01(\x0cR\tsignature\"\xb8\x01\n\x13ServerErrorResponse\x12\x38\n\x04type\x18\x01 \x01(\x0e\x32$.opamp.proto.ServerErrorResponseTypeR\x04type\x12#\n\rerror_message\x18\x02 \x01(\tR\x0c\x65rrorMessage\x12\x37\n\nretry_info\x18\x03 \x01(\x0b\x32\x16.opamp.proto.RetryInfoH\x00R\tretryInfoB\t\n\x07\x44\x65tails\"C\n\tRetryInfo\x12\x36\n\x17retry_after_nanoseconds\x18\x01 \x01(\x04R\x15retryAfterNanoseconds\"D\n\x14ServerToAgentCommand\x12,\n\x04type\x18\x01 \x01(\x0e\x32\x18.opamp.proto.CommandTypeR\x04type\"\xb5\x01\n\x10\x41gentDescription\x12L\n\x16identifying_attributes\x18\x01 \x03(\x0b\x32\x15.opamp.proto.KeyValueR\x15identifyingAttributes\x12S\n\x1anon_identifying_attributes\x18\x02 \x03(\x0b\x32\x15.opamp.proto.KeyValueR\x18nonIdentifyingAttributes\"\x93\x03\n\x0f\x43omponentHealth\x12\x18\n\x07healthy\x18\x01 \x01(\x08R\x07healthy\x12/\n\x14start_time_unix_nano\x18\x02 \x01(\x06R\x11startTimeUnixNano\x12\x1d\n\nlast_error\x18\x03 \x01(\tR\tlastError\x12\x16\n\x06status\x18\x04 \x01(\tR\x06status\x12\x31\n\x15status_time_unix_nano\x18\x05 \x01(\x06R\x12statusTimeUnixNano\x12\x66\n\x14\x63omponent_health_map\x18\x06 \x03(\x0b\x32\x34.opamp.proto.ComponentHealth.ComponentHealthMapEntryR\x12\x63omponentHealthMap\x1a\x63\n\x17\x43omponentHealthMapEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x32\n\x05value\x18\x02 \x01(\x0b\x32\x1c.opamp.proto.ComponentHealthR\x05value:\x02\x38\x01\"M\n\x0f\x45\x66\x66\x65\x63tiveConfig\x12:\n\nconfig_map\x18\x01 \x01(\x0b\x32\x1b.opamp.proto.AgentConfigMapR\tconfigMap\"\xab\x01\n\x12RemoteConfigStatus\x12\x35\n\x17last_remote_config_hash\x18\x01 \x01(\x0cR\x14lastRemoteConfigHash\x12\x39\n\x06status\x18\x02 \x01(\x0e\x32!.opamp.proto.RemoteConfigStatusesR\x06status\x12#\n\rerror_message\x18\x03 \x01(\tR\x0c\x65rrorMessage\"\xa1\x02\n\x0fPackageStatuses\x12\x46\n\x08packages\x18\x01 \x03(\x0b\x32*.opamp.proto.PackageStatuses.PackagesEntryR\x08packages\x12H\n!server_provided_all_packages_hash\x18\x02 \x01(\x0cR\x1dserverProvidedAllPackagesHash\x12#\n\rerror_message\x18\x03 \x01(\tR\x0c\x65rrorMessage\x1aW\n\rPackagesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x30\n\x05value\x18\x02 \x01(\x0b\x32\x1a.opamp.proto.PackageStatusR\x05value:\x02\x38\x01\"\xb8\x02\n\rPackageStatus\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12*\n\x11\x61gent_has_version\x18\x02 \x01(\tR\x0f\x61gentHasVersion\x12$\n\x0e\x61gent_has_hash\x18\x03 \x01(\x0cR\x0c\x61gentHasHash\x12\x34\n\x16server_offered_version\x18\x04 \x01(\tR\x14serverOfferedVersion\x12.\n\x13server_offered_hash\x18\x05 \x01(\x0cR\x11serverOfferedHash\x12\x36\n\x06status\x18\x06 \x01(\x0e\x32\x1e.opamp.proto.PackageStatusEnumR\x06status\x12#\n\rerror_message\x18\x07 \x01(\tR\x0c\x65rrorMessage\"?\n\x13\x41gentIdentification\x12(\n\x10new_instance_uid\x18\x01 \x01(\x0cR\x0enewInstanceUid\"i\n\x11\x41gentRemoteConfig\x12\x33\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x1b.opamp.proto.AgentConfigMapR\x06\x63onfig\x12\x1f\n\x0b\x63onfig_hash\x18\x02 \x01(\x0cR\nconfigHash\"\xb7\x01\n\x0e\x41gentConfigMap\x12I\n\nconfig_map\x18\x01 \x03(\x0b\x32*.opamp.proto.AgentConfigMap.ConfigMapEntryR\tconfigMap\x1aZ\n\x0e\x43onfigMapEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x32\n\x05value\x18\x02 \x01(\x0b\x32\x1c.opamp.proto.AgentConfigFileR\x05value:\x02\x38\x01\"H\n\x0f\x41gentConfigFile\x12\x12\n\x04\x62ody\x18\x01 \x01(\x0cR\x04\x62ody\x12!\n\x0c\x63ontent_type\x18\x02 \x01(\tR\x0b\x63ontentType\"8\n\x12\x43ustomCapabilities\x12\"\n\x0c\x63\x61pabilities\x18\x01 \x03(\tR\x0c\x63\x61pabilities\"W\n\rCustomMessage\x12\x1e\n\ncapability\x18\x01 \x01(\tR\ncapability\x12\x12\n\x04type\x18\x02 \x01(\tR\x04type\x12\x12\n\x04\x64\x61ta\x18\x03 \x01(\x0cR\x04\x64\x61ta*c\n\x12\x41gentToServerFlags\x12\"\n\x1e\x41gentToServerFlags_Unspecified\x10\x00\x12)\n%AgentToServerFlags_RequestInstanceUid\x10\x01*`\n\x12ServerToAgentFlags\x12\"\n\x1eServerToAgentFlags_Unspecified\x10\x00\x12&\n\"ServerToAgentFlags_ReportFullState\x10\x01*\xf7\x02\n\x12ServerCapabilities\x12\"\n\x1eServerCapabilities_Unspecified\x10\x00\x12$\n ServerCapabilities_AcceptsStatus\x10\x01\x12)\n%ServerCapabilities_OffersRemoteConfig\x10\x02\x12-\n)ServerCapabilities_AcceptsEffectiveConfig\x10\x04\x12%\n!ServerCapabilities_OffersPackages\x10\x08\x12,\n(ServerCapabilities_AcceptsPackagesStatus\x10\x10\x12/\n+ServerCapabilities_OffersConnectionSettings\x10 \x12\x37\n3ServerCapabilities_AcceptsConnectionSettingsRequest\x10@*>\n\x0bPackageType\x12\x18\n\x14PackageType_TopLevel\x10\x00\x12\x15\n\x11PackageType_Addon\x10\x01*\x8f\x01\n\x17ServerErrorResponseType\x12#\n\x1fServerErrorResponseType_Unknown\x10\x00\x12&\n\"ServerErrorResponseType_BadRequest\x10\x01\x12\'\n#ServerErrorResponseType_Unavailable\x10\x02*&\n\x0b\x43ommandType\x12\x17\n\x13\x43ommandType_Restart\x10\x00*\xef\x04\n\x11\x41gentCapabilities\x12!\n\x1d\x41gentCapabilities_Unspecified\x10\x00\x12#\n\x1f\x41gentCapabilities_ReportsStatus\x10\x01\x12)\n%AgentCapabilities_AcceptsRemoteConfig\x10\x02\x12,\n(AgentCapabilities_ReportsEffectiveConfig\x10\x04\x12%\n!AgentCapabilities_AcceptsPackages\x10\x08\x12,\n(AgentCapabilities_ReportsPackageStatuses\x10\x10\x12&\n\"AgentCapabilities_ReportsOwnTraces\x10 \x12\'\n#AgentCapabilities_ReportsOwnMetrics\x10@\x12%\n AgentCapabilities_ReportsOwnLogs\x10\x80\x01\x12\x35\n0AgentCapabilities_AcceptsOpAMPConnectionSettings\x10\x80\x02\x12\x35\n0AgentCapabilities_AcceptsOtherConnectionSettings\x10\x80\x04\x12,\n\'AgentCapabilities_AcceptsRestartCommand\x10\x80\x08\x12$\n\x1f\x41gentCapabilities_ReportsHealth\x10\x80\x10\x12*\n%AgentCapabilities_ReportsRemoteConfig\x10\x80 *\x9c\x01\n\x14RemoteConfigStatuses\x12\x1e\n\x1aRemoteConfigStatuses_UNSET\x10\x00\x12 \n\x1cRemoteConfigStatuses_APPLIED\x10\x01\x12!\n\x1dRemoteConfigStatuses_APPLYING\x10\x02\x12\x1f\n\x1bRemoteConfigStatuses_FAILED\x10\x03*\xa1\x01\n\x11PackageStatusEnum\x12\x1f\n\x1bPackageStatusEnum_Installed\x10\x00\x12$\n PackageStatusEnum_InstallPending\x10\x01\x12 \n\x1cPackageStatusEnum_Installing\x10\x02\x12#\n\x1fPackageStatusEnum_InstallFailed\x10\x03\x42\x9d\x01\n\x0f\x63om.opamp.protoB\nOpampProtoP\x01Z1github.com/odigos-io/odigos/opampserver/protobufs\xa2\x02\x03OPX\xaa\x02\x0bOpamp.Proto\xca\x02\x0bOpamp\\Proto\xe2\x02\x17Opamp\\Proto\\GPBMetadata\xea\x02\x0cOpamp::Protob\x06proto3') _globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'opamp_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: +_builder_odigos.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder_odigos.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'opamp_pb2', _globals) + +if _descriptor_odigos._USE_C_DESCRIPTORS == False: _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'\n\017com.opamp.protoB\nOpampProtoP\001Z1github.com/odigos-io/odigos/opampserver/protobufs\242\002\003OPX\252\002\013Opamp.Proto\312\002\013Opamp\\Proto\342\002\027Opamp\\Proto\\GPBMetadata\352\002\014Opamp::Proto' _globals['_OTHERCONNECTIONSETTINGS_OTHERSETTINGSENTRY']._options = None From 60e68d9f83a3d19b1cf4c1081e5c43c28bea15dc Mon Sep 17 00:00:00 2001 From: Tamir David Date: Tue, 10 Sep 2024 17:07:18 +0300 Subject: [PATCH 2/3] fix: downgrade protobuf to the minimum supported --- .gitignore | 2 +- opamp/anyvalue_pb2.py | 104 +++---- opamp/http_client.py | 12 +- opamp/opamp_pb2.py | 628 ++++++++++++++++++++++++++++++++---------- requirements.txt | 17 +- setup.py | 1 + 6 files changed, 559 insertions(+), 205 deletions(-) diff --git a/.gitignore b/.gitignore index d40a4eb..cef964e 100644 --- a/.gitignore +++ b/.gitignore @@ -62,4 +62,4 @@ ipython_config.py # Virtual environment -venv/ \ No newline at end of file +*venv/ \ No newline at end of file diff --git a/opamp/anyvalue_pb2.py b/opamp/anyvalue_pb2.py index 3a6702a..b3f0819 100644 --- a/opamp/anyvalue_pb2.py +++ b/opamp/anyvalue_pb2.py @@ -1,53 +1,65 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: anyvalue.proto -# Protobuf Python Version: 4.25.0 """Generated protocol buffer code.""" -from initializer.lib_handling import import_module_from_path, ODIGOS_PROTOBUF_PATH - -# Import descriptor as _descriptor_odigos -_descriptor_odigos= import_module_from_path( - unique_name="_descriptor_odigos", - path=f"{ODIGOS_PROTOBUF_PATH}/descriptor.py" -) - -# Import descriptor_pool as _descriptor_pool_odigos -_descriptor_pool_odigos = import_module_from_path( - unique_name="_descriptor_pool_odigos", - path=f"{ODIGOS_PROTOBUF_PATH}/descriptor_pool.py" -) - -# Import symbol_database as _symbol_database_odigos -_symbol_database_odigos = import_module_from_path( - unique_name="_symbol_database_odigos", - path=f"{ODIGOS_PROTOBUF_PATH}/symbol_database.py" -) - -# Import builder as _builder_odigos -_builder_odigos = import_module_from_path( - unique_name="_builder_odigos", - path=f"{ODIGOS_PROTOBUF_PATH}/internal/builder.py" -) - +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) -_sym_db = _symbol_database_odigos.Default() - - -DESCRIPTOR = _descriptor_pool_odigos.Default().AddSerializedFile(b'\n\x0e\x61nyvalue.proto\x12\x0bopamp.proto\"\xbc\x02\n\x08\x41nyValue\x12#\n\x0cstring_value\x18\x01 \x01(\tH\x00R\x0bstringValue\x12\x1f\n\nbool_value\x18\x02 \x01(\x08H\x00R\tboolValue\x12\x1d\n\tint_value\x18\x03 \x01(\x03H\x00R\x08intValue\x12#\n\x0c\x64ouble_value\x18\x04 \x01(\x01H\x00R\x0b\x64oubleValue\x12:\n\x0b\x61rray_value\x18\x05 \x01(\x0b\x32\x17.opamp.proto.ArrayValueH\x00R\narrayValue\x12>\n\x0ckvlist_value\x18\x06 \x01(\x0b\x32\x19.opamp.proto.KeyValueListH\x00R\x0bkvlistValue\x12!\n\x0b\x62ytes_value\x18\x07 \x01(\x0cH\x00R\nbytesValueB\x07\n\x05value\";\n\nArrayValue\x12-\n\x06values\x18\x01 \x03(\x0b\x32\x15.opamp.proto.AnyValueR\x06values\"=\n\x0cKeyValueList\x12-\n\x06values\x18\x01 \x03(\x0b\x32\x15.opamp.proto.KeyValueR\x06values\"I\n\x08KeyValue\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x15.opamp.proto.AnyValueR\x05valueB\xa0\x01\n\x0f\x63om.opamp.protoB\rAnyvalueProtoP\x01Z1github.com/odigos-io/odigos/opampserver/protobufs\xa2\x02\x03OPX\xaa\x02\x0bOpamp.Proto\xca\x02\x0bOpamp\\Proto\xe2\x02\x17Opamp\\Proto\\GPBMetadata\xea\x02\x0cOpamp::Protob\x06proto3') - -_globals = globals() -_builder_odigos.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder_odigos.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'anyvalue_pb2', _globals) -if _descriptor_odigos._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\017com.opamp.protoB\rAnyvalueProtoP\001Z1github.com/odigos-io/odigos/opampserver/protobufs\242\002\003OPX\252\002\013Opamp.Proto\312\002\013Opamp\\Proto\342\002\027Opamp\\Proto\\GPBMetadata\352\002\014Opamp::Proto' - _globals['_ANYVALUE']._serialized_start=32 - _globals['_ANYVALUE']._serialized_end=348 - _globals['_ARRAYVALUE']._serialized_start=350 - _globals['_ARRAYVALUE']._serialized_end=409 - _globals['_KEYVALUELIST']._serialized_start=411 - _globals['_KEYVALUELIST']._serialized_end=472 - _globals['_KEYVALUE']._serialized_start=474 - _globals['_KEYVALUE']._serialized_end=547 +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0e\x61nyvalue.proto\x12\x0bopamp.proto\"\xe8\x01\n\x08\x41nyValue\x12\x16\n\x0cstring_value\x18\x01 \x01(\tH\x00\x12\x14\n\nbool_value\x18\x02 \x01(\x08H\x00\x12\x13\n\tint_value\x18\x03 \x01(\x03H\x00\x12\x16\n\x0c\x64ouble_value\x18\x04 \x01(\x01H\x00\x12.\n\x0b\x61rray_value\x18\x05 \x01(\x0b\x32\x17.opamp.proto.ArrayValueH\x00\x12\x31\n\x0ckvlist_value\x18\x06 \x01(\x0b\x32\x19.opamp.proto.KeyValueListH\x00\x12\x15\n\x0b\x62ytes_value\x18\x07 \x01(\x0cH\x00\x42\x07\n\x05value\"3\n\nArrayValue\x12%\n\x06values\x18\x01 \x03(\x0b\x32\x15.opamp.proto.AnyValue\"5\n\x0cKeyValueList\x12%\n\x06values\x18\x01 \x03(\x0b\x32\x15.opamp.proto.KeyValue\"=\n\x08KeyValue\x12\x0b\n\x03key\x18\x01 \x01(\t\x12$\n\x05value\x18\x02 \x01(\x0b\x32\x15.opamp.proto.AnyValueB.Z,github.com/open-telemetry/opamp-go/protobufsb\x06proto3') + + + +_ANYVALUE = DESCRIPTOR.message_types_by_name['AnyValue'] +_ARRAYVALUE = DESCRIPTOR.message_types_by_name['ArrayValue'] +_KEYVALUELIST = DESCRIPTOR.message_types_by_name['KeyValueList'] +_KEYVALUE = DESCRIPTOR.message_types_by_name['KeyValue'] +AnyValue = _reflection.GeneratedProtocolMessageType('AnyValue', (_message.Message,), { + 'DESCRIPTOR' : _ANYVALUE, + '__module__' : 'anyvalue_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.AnyValue) + }) +_sym_db.RegisterMessage(AnyValue) + +ArrayValue = _reflection.GeneratedProtocolMessageType('ArrayValue', (_message.Message,), { + 'DESCRIPTOR' : _ARRAYVALUE, + '__module__' : 'anyvalue_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.ArrayValue) + }) +_sym_db.RegisterMessage(ArrayValue) + +KeyValueList = _reflection.GeneratedProtocolMessageType('KeyValueList', (_message.Message,), { + 'DESCRIPTOR' : _KEYVALUELIST, + '__module__' : 'anyvalue_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.KeyValueList) + }) +_sym_db.RegisterMessage(KeyValueList) + +KeyValue = _reflection.GeneratedProtocolMessageType('KeyValue', (_message.Message,), { + 'DESCRIPTOR' : _KEYVALUE, + '__module__' : 'anyvalue_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.KeyValue) + }) +_sym_db.RegisterMessage(KeyValue) + +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z,github.com/open-telemetry/opamp-go/protobufs' + _ANYVALUE._serialized_start=32 + _ANYVALUE._serialized_end=264 + _ARRAYVALUE._serialized_start=266 + _ARRAYVALUE._serialized_end=317 + _KEYVALUELIST._serialized_start=319 + _KEYVALUELIST._serialized_end=372 + _KEYVALUE._serialized_start=374 + _KEYVALUE._serialized_end=435 # @@protoc_insertion_point(module_scope) diff --git a/opamp/http_client.py b/opamp/http_client.py index 9656627..77d9557 100644 --- a/opamp/http_client.py +++ b/opamp/http_client.py @@ -146,7 +146,7 @@ def worker(self): opamp_logger.error(f"Error fetching data: {e}") self.condition.wait(30) - def send_heartbeat(self) -> opamp_pb2.ServerToAgent: + def send_heartbeat(self) -> opamp_pb2.ServerToAgent: # type: ignore opamp_logger.debug("Sending heartbeat to OpAMP server...") try: agent_to_server = opamp_pb2.AgentToServer(remote_config_status=self.remote_config_status) @@ -154,7 +154,7 @@ def send_heartbeat(self) -> opamp_pb2.ServerToAgent: except requests_odigos.RequestException as e: opamp_logger.error(f"Error sending heartbeat to OpAMP server: {e}") - def get_agent_description(self) -> opamp_pb2.AgentDescription: + def get_agent_description(self) -> opamp_pb2.AgentDescription: # type: ignore identifying_attributes = [ anyvalue_pb2.KeyValue( key=ResourceAttributes.SERVICE_INSTANCE_ID, @@ -175,10 +175,10 @@ def get_agent_description(self) -> opamp_pb2.AgentDescription: non_identifying_attributes=[] ) - def get_agent_disconnect(self) -> opamp_pb2.AgentDisconnect: + def get_agent_disconnect(self) -> opamp_pb2.AgentDisconnect: # type: ignore return opamp_pb2.AgentDisconnect() - def get_agent_health(self, component_health: bool = None, last_error : str = None, status: str = None) -> opamp_pb2.ComponentHealth: + def get_agent_health(self, component_health: bool = None, last_error : str = None, status: str = None) -> opamp_pb2.ComponentHealth: # type: ignore health = opamp_pb2.ComponentHealth( ) if component_health is not None: @@ -191,7 +191,7 @@ def get_agent_health(self, component_health: bool = None, last_error : str = Non return health - def send_agent_to_server_message(self, message: opamp_pb2.AgentToServer) -> opamp_pb2.ServerToAgent: + def send_agent_to_server_message(self, message: opamp_pb2.AgentToServer) -> opamp_pb2.ServerToAgent: # type: ignore message.instance_uid = self.instance_uid.encode('utf-8') message.sequence_num = self.next_sequence_num @@ -255,7 +255,7 @@ def shutdown(self, custom_failure_message: str = None): self.send_agent_to_server_message(disconnect_message) - def update_remote_config_status(self, server_to_agent: opamp_pb2.ServerToAgent) -> bool: + def update_remote_config_status(self, server_to_agent: opamp_pb2.ServerToAgent) -> bool: # type: ignore if server_to_agent.HasField("remote_config"): remote_config_hash = server_to_agent.remote_config.config_hash remote_config_status = opamp_pb2.RemoteConfigStatus(last_remote_config_hash=remote_config_hash) diff --git a/opamp/opamp_pb2.py b/opamp/opamp_pb2.py index 0885d49..23630fb 100644 --- a/opamp/opamp_pb2.py +++ b/opamp/opamp_pb2.py @@ -1,151 +1,491 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: opamp.proto -# Protobuf Python Version: 4.25.0 """Generated protocol buffer code.""" -from initializer.lib_handling import import_module_from_path, ODIGOS_PROTOBUF_PATH - -# Import descriptor as _descriptor_odigos -_descriptor_odigos= import_module_from_path( - unique_name="_descriptor_odigos", - path=f"/{ODIGOS_PROTOBUF_PATH}/descriptor.py" -) - -# Import descriptor_pool as _descriptor_pool_odigos -_descriptor_pool_odigos = import_module_from_path( - unique_name="_descriptor_pool_odigos", - path=f"{ODIGOS_PROTOBUF_PATH}/descriptor_pool.py" -) - -# Import symbol_database as _symbol_database_odigos -_symbol_database_odigos = import_module_from_path( - unique_name="_symbol_database_odigos", - path=f"{ODIGOS_PROTOBUF_PATH}/symbol_database.py" -) - -# Import builder as _builder_odigos -_builder_odigos = import_module_from_path( - unique_name="_builder_odigos", - path=f"{ODIGOS_PROTOBUF_PATH}/internal/builder.py" -) - +from google.protobuf.internal import enum_type_wrapper +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) -_sym_db = _symbol_database_odigos.Default() - -from opamp import anyvalue_pb2 - -DESCRIPTOR = _descriptor_pool_odigos.Default().AddSerializedFile(b'\n\x0bopamp.proto\x12\x0bopamp.proto\x1a\x0e\x61nyvalue.proto\"\xbc\x06\n\rAgentToServer\x12!\n\x0cinstance_uid\x18\x01 \x01(\x0cR\x0binstanceUid\x12!\n\x0csequence_num\x18\x02 \x01(\x04R\x0bsequenceNum\x12J\n\x11\x61gent_description\x18\x03 \x01(\x0b\x32\x1d.opamp.proto.AgentDescriptionR\x10\x61gentDescription\x12\"\n\x0c\x63\x61pabilities\x18\x04 \x01(\x04R\x0c\x63\x61pabilities\x12\x34\n\x06health\x18\x05 \x01(\x0b\x32\x1c.opamp.proto.ComponentHealthR\x06health\x12G\n\x10\x65\x66\x66\x65\x63tive_config\x18\x06 \x01(\x0b\x32\x1c.opamp.proto.EffectiveConfigR\x0f\x65\x66\x66\x65\x63tiveConfig\x12Q\n\x14remote_config_status\x18\x07 \x01(\x0b\x32\x1f.opamp.proto.RemoteConfigStatusR\x12remoteConfigStatus\x12G\n\x10package_statuses\x18\x08 \x01(\x0b\x32\x1c.opamp.proto.PackageStatusesR\x0fpackageStatuses\x12G\n\x10\x61gent_disconnect\x18\t \x01(\x0b\x32\x1c.opamp.proto.AgentDisconnectR\x0f\x61gentDisconnect\x12\x14\n\x05\x66lags\x18\n \x01(\x04R\x05\x66lags\x12\x66\n\x1b\x63onnection_settings_request\x18\x0b \x01(\x0b\x32&.opamp.proto.ConnectionSettingsRequestR\x19\x63onnectionSettingsRequest\x12P\n\x13\x63ustom_capabilities\x18\x0c \x01(\x0b\x32\x1f.opamp.proto.CustomCapabilitiesR\x12\x63ustomCapabilities\x12\x41\n\x0e\x63ustom_message\x18\r \x01(\x0b\x32\x1a.opamp.proto.CustomMessageR\rcustomMessage\"\x11\n\x0f\x41gentDisconnect\"^\n\x19\x43onnectionSettingsRequest\x12\x41\n\x05opamp\x18\x01 \x01(\x0b\x32+.opamp.proto.OpAMPConnectionSettingsRequestR\x05opamp\"r\n\x1eOpAMPConnectionSettingsRequest\x12P\n\x13\x63\x65rtificate_request\x18\x01 \x01(\x0b\x32\x1f.opamp.proto.CertificateRequestR\x12\x63\x65rtificateRequest\"&\n\x12\x43\x65rtificateRequest\x12\x10\n\x03\x63sr\x18\x01 \x01(\x0cR\x03\x63sr\"\xc8\x05\n\rServerToAgent\x12!\n\x0cinstance_uid\x18\x01 \x01(\x0cR\x0binstanceUid\x12G\n\x0e\x65rror_response\x18\x02 \x01(\x0b\x32 .opamp.proto.ServerErrorResponseR\rerrorResponse\x12\x43\n\rremote_config\x18\x03 \x01(\x0b\x32\x1e.opamp.proto.AgentRemoteConfigR\x0cremoteConfig\x12V\n\x13\x63onnection_settings\x18\x04 \x01(\x0b\x32%.opamp.proto.ConnectionSettingsOffersR\x12\x63onnectionSettings\x12M\n\x12packages_available\x18\x05 \x01(\x0b\x32\x1e.opamp.proto.PackagesAvailableR\x11packagesAvailable\x12\x14\n\x05\x66lags\x18\x06 \x01(\x04R\x05\x66lags\x12\"\n\x0c\x63\x61pabilities\x18\x07 \x01(\x04R\x0c\x63\x61pabilities\x12S\n\x14\x61gent_identification\x18\x08 \x01(\x0b\x32 .opamp.proto.AgentIdentificationR\x13\x61gentIdentification\x12;\n\x07\x63ommand\x18\t \x01(\x0b\x32!.opamp.proto.ServerToAgentCommandR\x07\x63ommand\x12P\n\x13\x63ustom_capabilities\x18\n \x01(\x0b\x32\x1f.opamp.proto.CustomCapabilitiesR\x12\x63ustomCapabilities\x12\x41\n\x0e\x63ustom_message\x18\x0b \x01(\x0b\x32\x1a.opamp.proto.CustomMessageR\rcustomMessage\"\xbb\x01\n\x17OpAMPConnectionSettings\x12\x31\n\x14\x64\x65stination_endpoint\x18\x01 \x01(\tR\x13\x64\x65stinationEndpoint\x12.\n\x07headers\x18\x02 \x01(\x0b\x32\x14.opamp.proto.HeadersR\x07headers\x12=\n\x0b\x63\x65rtificate\x18\x03 \x01(\x0b\x32\x1b.opamp.proto.TLSCertificateR\x0b\x63\x65rtificate\"\xbf\x01\n\x1bTelemetryConnectionSettings\x12\x31\n\x14\x64\x65stination_endpoint\x18\x01 \x01(\tR\x13\x64\x65stinationEndpoint\x12.\n\x07headers\x18\x02 \x01(\x0b\x32\x14.opamp.proto.HeadersR\x07headers\x12=\n\x0b\x63\x65rtificate\x18\x03 \x01(\x0b\x32\x1b.opamp.proto.TLSCertificateR\x0b\x63\x65rtificate\"\xdd\x02\n\x17OtherConnectionSettings\x12\x31\n\x14\x64\x65stination_endpoint\x18\x01 \x01(\tR\x13\x64\x65stinationEndpoint\x12.\n\x07headers\x18\x02 \x01(\x0b\x32\x14.opamp.proto.HeadersR\x07headers\x12=\n\x0b\x63\x65rtificate\x18\x03 \x01(\x0b\x32\x1b.opamp.proto.TLSCertificateR\x0b\x63\x65rtificate\x12^\n\x0eother_settings\x18\x04 \x03(\x0b\x32\x37.opamp.proto.OtherConnectionSettings.OtherSettingsEntryR\rotherSettings\x1a@\n\x12OtherSettingsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"8\n\x07Headers\x12-\n\x07headers\x18\x01 \x03(\x0b\x32\x13.opamp.proto.HeaderR\x07headers\"0\n\x06Header\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\"t\n\x0eTLSCertificate\x12\x1d\n\npublic_key\x18\x01 \x01(\x0cR\tpublicKey\x12\x1f\n\x0bprivate_key\x18\x02 \x01(\x0cR\nprivateKey\x12\"\n\rca_public_key\x18\x03 \x01(\x0cR\x0b\x63\x61PublicKey\"\x98\x04\n\x18\x43onnectionSettingsOffers\x12\x12\n\x04hash\x18\x01 \x01(\x0cR\x04hash\x12:\n\x05opamp\x18\x02 \x01(\x0b\x32$.opamp.proto.OpAMPConnectionSettingsR\x05opamp\x12I\n\x0bown_metrics\x18\x03 \x01(\x0b\x32(.opamp.proto.TelemetryConnectionSettingsR\nownMetrics\x12G\n\nown_traces\x18\x04 \x01(\x0b\x32(.opamp.proto.TelemetryConnectionSettingsR\townTraces\x12\x43\n\x08own_logs\x18\x05 \x01(\x0b\x32(.opamp.proto.TelemetryConnectionSettingsR\x07ownLogs\x12h\n\x11other_connections\x18\x06 \x03(\x0b\x32;.opamp.proto.ConnectionSettingsOffers.OtherConnectionsEntryR\x10otherConnections\x1ai\n\x15OtherConnectionsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12:\n\x05value\x18\x02 \x01(\x0b\x32$.opamp.proto.OtherConnectionSettingsR\x05value:\x02\x38\x01\"\xe5\x01\n\x11PackagesAvailable\x12H\n\x08packages\x18\x01 \x03(\x0b\x32,.opamp.proto.PackagesAvailable.PackagesEntryR\x08packages\x12*\n\x11\x61ll_packages_hash\x18\x02 \x01(\x0cR\x0f\x61llPackagesHash\x1aZ\n\rPackagesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x33\n\x05value\x18\x02 \x01(\x0b\x32\x1d.opamp.proto.PackageAvailableR\x05value:\x02\x38\x01\"\xa1\x01\n\x10PackageAvailable\x12,\n\x04type\x18\x01 \x01(\x0e\x32\x18.opamp.proto.PackageTypeR\x04type\x12\x18\n\x07version\x18\x02 \x01(\tR\x07version\x12\x31\n\x04\x66ile\x18\x03 \x01(\x0b\x32\x1d.opamp.proto.DownloadableFileR\x04\x66ile\x12\x12\n\x04hash\x18\x04 \x01(\x0cR\x04hash\"v\n\x10\x44ownloadableFile\x12!\n\x0c\x64ownload_url\x18\x01 \x01(\tR\x0b\x64ownloadUrl\x12!\n\x0c\x63ontent_hash\x18\x02 \x01(\x0cR\x0b\x63ontentHash\x12\x1c\n\tsignature\x18\x03 \x01(\x0cR\tsignature\"\xb8\x01\n\x13ServerErrorResponse\x12\x38\n\x04type\x18\x01 \x01(\x0e\x32$.opamp.proto.ServerErrorResponseTypeR\x04type\x12#\n\rerror_message\x18\x02 \x01(\tR\x0c\x65rrorMessage\x12\x37\n\nretry_info\x18\x03 \x01(\x0b\x32\x16.opamp.proto.RetryInfoH\x00R\tretryInfoB\t\n\x07\x44\x65tails\"C\n\tRetryInfo\x12\x36\n\x17retry_after_nanoseconds\x18\x01 \x01(\x04R\x15retryAfterNanoseconds\"D\n\x14ServerToAgentCommand\x12,\n\x04type\x18\x01 \x01(\x0e\x32\x18.opamp.proto.CommandTypeR\x04type\"\xb5\x01\n\x10\x41gentDescription\x12L\n\x16identifying_attributes\x18\x01 \x03(\x0b\x32\x15.opamp.proto.KeyValueR\x15identifyingAttributes\x12S\n\x1anon_identifying_attributes\x18\x02 \x03(\x0b\x32\x15.opamp.proto.KeyValueR\x18nonIdentifyingAttributes\"\x93\x03\n\x0f\x43omponentHealth\x12\x18\n\x07healthy\x18\x01 \x01(\x08R\x07healthy\x12/\n\x14start_time_unix_nano\x18\x02 \x01(\x06R\x11startTimeUnixNano\x12\x1d\n\nlast_error\x18\x03 \x01(\tR\tlastError\x12\x16\n\x06status\x18\x04 \x01(\tR\x06status\x12\x31\n\x15status_time_unix_nano\x18\x05 \x01(\x06R\x12statusTimeUnixNano\x12\x66\n\x14\x63omponent_health_map\x18\x06 \x03(\x0b\x32\x34.opamp.proto.ComponentHealth.ComponentHealthMapEntryR\x12\x63omponentHealthMap\x1a\x63\n\x17\x43omponentHealthMapEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x32\n\x05value\x18\x02 \x01(\x0b\x32\x1c.opamp.proto.ComponentHealthR\x05value:\x02\x38\x01\"M\n\x0f\x45\x66\x66\x65\x63tiveConfig\x12:\n\nconfig_map\x18\x01 \x01(\x0b\x32\x1b.opamp.proto.AgentConfigMapR\tconfigMap\"\xab\x01\n\x12RemoteConfigStatus\x12\x35\n\x17last_remote_config_hash\x18\x01 \x01(\x0cR\x14lastRemoteConfigHash\x12\x39\n\x06status\x18\x02 \x01(\x0e\x32!.opamp.proto.RemoteConfigStatusesR\x06status\x12#\n\rerror_message\x18\x03 \x01(\tR\x0c\x65rrorMessage\"\xa1\x02\n\x0fPackageStatuses\x12\x46\n\x08packages\x18\x01 \x03(\x0b\x32*.opamp.proto.PackageStatuses.PackagesEntryR\x08packages\x12H\n!server_provided_all_packages_hash\x18\x02 \x01(\x0cR\x1dserverProvidedAllPackagesHash\x12#\n\rerror_message\x18\x03 \x01(\tR\x0c\x65rrorMessage\x1aW\n\rPackagesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x30\n\x05value\x18\x02 \x01(\x0b\x32\x1a.opamp.proto.PackageStatusR\x05value:\x02\x38\x01\"\xb8\x02\n\rPackageStatus\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12*\n\x11\x61gent_has_version\x18\x02 \x01(\tR\x0f\x61gentHasVersion\x12$\n\x0e\x61gent_has_hash\x18\x03 \x01(\x0cR\x0c\x61gentHasHash\x12\x34\n\x16server_offered_version\x18\x04 \x01(\tR\x14serverOfferedVersion\x12.\n\x13server_offered_hash\x18\x05 \x01(\x0cR\x11serverOfferedHash\x12\x36\n\x06status\x18\x06 \x01(\x0e\x32\x1e.opamp.proto.PackageStatusEnumR\x06status\x12#\n\rerror_message\x18\x07 \x01(\tR\x0c\x65rrorMessage\"?\n\x13\x41gentIdentification\x12(\n\x10new_instance_uid\x18\x01 \x01(\x0cR\x0enewInstanceUid\"i\n\x11\x41gentRemoteConfig\x12\x33\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x1b.opamp.proto.AgentConfigMapR\x06\x63onfig\x12\x1f\n\x0b\x63onfig_hash\x18\x02 \x01(\x0cR\nconfigHash\"\xb7\x01\n\x0e\x41gentConfigMap\x12I\n\nconfig_map\x18\x01 \x03(\x0b\x32*.opamp.proto.AgentConfigMap.ConfigMapEntryR\tconfigMap\x1aZ\n\x0e\x43onfigMapEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x32\n\x05value\x18\x02 \x01(\x0b\x32\x1c.opamp.proto.AgentConfigFileR\x05value:\x02\x38\x01\"H\n\x0f\x41gentConfigFile\x12\x12\n\x04\x62ody\x18\x01 \x01(\x0cR\x04\x62ody\x12!\n\x0c\x63ontent_type\x18\x02 \x01(\tR\x0b\x63ontentType\"8\n\x12\x43ustomCapabilities\x12\"\n\x0c\x63\x61pabilities\x18\x01 \x03(\tR\x0c\x63\x61pabilities\"W\n\rCustomMessage\x12\x1e\n\ncapability\x18\x01 \x01(\tR\ncapability\x12\x12\n\x04type\x18\x02 \x01(\tR\x04type\x12\x12\n\x04\x64\x61ta\x18\x03 \x01(\x0cR\x04\x64\x61ta*c\n\x12\x41gentToServerFlags\x12\"\n\x1e\x41gentToServerFlags_Unspecified\x10\x00\x12)\n%AgentToServerFlags_RequestInstanceUid\x10\x01*`\n\x12ServerToAgentFlags\x12\"\n\x1eServerToAgentFlags_Unspecified\x10\x00\x12&\n\"ServerToAgentFlags_ReportFullState\x10\x01*\xf7\x02\n\x12ServerCapabilities\x12\"\n\x1eServerCapabilities_Unspecified\x10\x00\x12$\n ServerCapabilities_AcceptsStatus\x10\x01\x12)\n%ServerCapabilities_OffersRemoteConfig\x10\x02\x12-\n)ServerCapabilities_AcceptsEffectiveConfig\x10\x04\x12%\n!ServerCapabilities_OffersPackages\x10\x08\x12,\n(ServerCapabilities_AcceptsPackagesStatus\x10\x10\x12/\n+ServerCapabilities_OffersConnectionSettings\x10 \x12\x37\n3ServerCapabilities_AcceptsConnectionSettingsRequest\x10@*>\n\x0bPackageType\x12\x18\n\x14PackageType_TopLevel\x10\x00\x12\x15\n\x11PackageType_Addon\x10\x01*\x8f\x01\n\x17ServerErrorResponseType\x12#\n\x1fServerErrorResponseType_Unknown\x10\x00\x12&\n\"ServerErrorResponseType_BadRequest\x10\x01\x12\'\n#ServerErrorResponseType_Unavailable\x10\x02*&\n\x0b\x43ommandType\x12\x17\n\x13\x43ommandType_Restart\x10\x00*\xef\x04\n\x11\x41gentCapabilities\x12!\n\x1d\x41gentCapabilities_Unspecified\x10\x00\x12#\n\x1f\x41gentCapabilities_ReportsStatus\x10\x01\x12)\n%AgentCapabilities_AcceptsRemoteConfig\x10\x02\x12,\n(AgentCapabilities_ReportsEffectiveConfig\x10\x04\x12%\n!AgentCapabilities_AcceptsPackages\x10\x08\x12,\n(AgentCapabilities_ReportsPackageStatuses\x10\x10\x12&\n\"AgentCapabilities_ReportsOwnTraces\x10 \x12\'\n#AgentCapabilities_ReportsOwnMetrics\x10@\x12%\n AgentCapabilities_ReportsOwnLogs\x10\x80\x01\x12\x35\n0AgentCapabilities_AcceptsOpAMPConnectionSettings\x10\x80\x02\x12\x35\n0AgentCapabilities_AcceptsOtherConnectionSettings\x10\x80\x04\x12,\n\'AgentCapabilities_AcceptsRestartCommand\x10\x80\x08\x12$\n\x1f\x41gentCapabilities_ReportsHealth\x10\x80\x10\x12*\n%AgentCapabilities_ReportsRemoteConfig\x10\x80 *\x9c\x01\n\x14RemoteConfigStatuses\x12\x1e\n\x1aRemoteConfigStatuses_UNSET\x10\x00\x12 \n\x1cRemoteConfigStatuses_APPLIED\x10\x01\x12!\n\x1dRemoteConfigStatuses_APPLYING\x10\x02\x12\x1f\n\x1bRemoteConfigStatuses_FAILED\x10\x03*\xa1\x01\n\x11PackageStatusEnum\x12\x1f\n\x1bPackageStatusEnum_Installed\x10\x00\x12$\n PackageStatusEnum_InstallPending\x10\x01\x12 \n\x1cPackageStatusEnum_Installing\x10\x02\x12#\n\x1fPackageStatusEnum_InstallFailed\x10\x03\x42\x9d\x01\n\x0f\x63om.opamp.protoB\nOpampProtoP\x01Z1github.com/odigos-io/odigos/opampserver/protobufs\xa2\x02\x03OPX\xaa\x02\x0bOpamp.Proto\xca\x02\x0bOpamp\\Proto\xe2\x02\x17Opamp\\Proto\\GPBMetadata\xea\x02\x0cOpamp::Protob\x06proto3') - -_globals = globals() -_builder_odigos.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder_odigos.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'opamp_pb2', _globals) - -if _descriptor_odigos._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\017com.opamp.protoB\nOpampProtoP\001Z1github.com/odigos-io/odigos/opampserver/protobufs\242\002\003OPX\252\002\013Opamp.Proto\312\002\013Opamp\\Proto\342\002\027Opamp\\Proto\\GPBMetadata\352\002\014Opamp::Proto' - _globals['_OTHERCONNECTIONSETTINGS_OTHERSETTINGSENTRY']._options = None - _globals['_OTHERCONNECTIONSETTINGS_OTHERSETTINGSENTRY']._serialized_options = b'8\001' - _globals['_CONNECTIONSETTINGSOFFERS_OTHERCONNECTIONSENTRY']._options = None - _globals['_CONNECTIONSETTINGSOFFERS_OTHERCONNECTIONSENTRY']._serialized_options = b'8\001' - _globals['_PACKAGESAVAILABLE_PACKAGESENTRY']._options = None - _globals['_PACKAGESAVAILABLE_PACKAGESENTRY']._serialized_options = b'8\001' - _globals['_COMPONENTHEALTH_COMPONENTHEALTHMAPENTRY']._options = None - _globals['_COMPONENTHEALTH_COMPONENTHEALTHMAPENTRY']._serialized_options = b'8\001' - _globals['_PACKAGESTATUSES_PACKAGESENTRY']._options = None - _globals['_PACKAGESTATUSES_PACKAGESENTRY']._serialized_options = b'8\001' - _globals['_AGENTCONFIGMAP_CONFIGMAPENTRY']._options = None - _globals['_AGENTCONFIGMAP_CONFIGMAPENTRY']._serialized_options = b'8\001' - _globals['_AGENTTOSERVERFLAGS']._serialized_start=6233 - _globals['_AGENTTOSERVERFLAGS']._serialized_end=6332 - _globals['_SERVERTOAGENTFLAGS']._serialized_start=6334 - _globals['_SERVERTOAGENTFLAGS']._serialized_end=6430 - _globals['_SERVERCAPABILITIES']._serialized_start=6433 - _globals['_SERVERCAPABILITIES']._serialized_end=6808 - _globals['_PACKAGETYPE']._serialized_start=6810 - _globals['_PACKAGETYPE']._serialized_end=6872 - _globals['_SERVERERRORRESPONSETYPE']._serialized_start=6875 - _globals['_SERVERERRORRESPONSETYPE']._serialized_end=7018 - _globals['_COMMANDTYPE']._serialized_start=7020 - _globals['_COMMANDTYPE']._serialized_end=7058 - _globals['_AGENTCAPABILITIES']._serialized_start=7061 - _globals['_AGENTCAPABILITIES']._serialized_end=7684 - _globals['_REMOTECONFIGSTATUSES']._serialized_start=7687 - _globals['_REMOTECONFIGSTATUSES']._serialized_end=7843 - _globals['_PACKAGESTATUSENUM']._serialized_start=7846 - _globals['_PACKAGESTATUSENUM']._serialized_end=8007 - _globals['_AGENTTOSERVER']._serialized_start=45 - _globals['_AGENTTOSERVER']._serialized_end=873 - _globals['_AGENTDISCONNECT']._serialized_start=875 - _globals['_AGENTDISCONNECT']._serialized_end=892 - _globals['_CONNECTIONSETTINGSREQUEST']._serialized_start=894 - _globals['_CONNECTIONSETTINGSREQUEST']._serialized_end=988 - _globals['_OPAMPCONNECTIONSETTINGSREQUEST']._serialized_start=990 - _globals['_OPAMPCONNECTIONSETTINGSREQUEST']._serialized_end=1104 - _globals['_CERTIFICATEREQUEST']._serialized_start=1106 - _globals['_CERTIFICATEREQUEST']._serialized_end=1144 - _globals['_SERVERTOAGENT']._serialized_start=1147 - _globals['_SERVERTOAGENT']._serialized_end=1859 - _globals['_OPAMPCONNECTIONSETTINGS']._serialized_start=1862 - _globals['_OPAMPCONNECTIONSETTINGS']._serialized_end=2049 - _globals['_TELEMETRYCONNECTIONSETTINGS']._serialized_start=2052 - _globals['_TELEMETRYCONNECTIONSETTINGS']._serialized_end=2243 - _globals['_OTHERCONNECTIONSETTINGS']._serialized_start=2246 - _globals['_OTHERCONNECTIONSETTINGS']._serialized_end=2595 - _globals['_OTHERCONNECTIONSETTINGS_OTHERSETTINGSENTRY']._serialized_start=2531 - _globals['_OTHERCONNECTIONSETTINGS_OTHERSETTINGSENTRY']._serialized_end=2595 - _globals['_HEADERS']._serialized_start=2597 - _globals['_HEADERS']._serialized_end=2653 - _globals['_HEADER']._serialized_start=2655 - _globals['_HEADER']._serialized_end=2703 - _globals['_TLSCERTIFICATE']._serialized_start=2705 - _globals['_TLSCERTIFICATE']._serialized_end=2821 - _globals['_CONNECTIONSETTINGSOFFERS']._serialized_start=2824 - _globals['_CONNECTIONSETTINGSOFFERS']._serialized_end=3360 - _globals['_CONNECTIONSETTINGSOFFERS_OTHERCONNECTIONSENTRY']._serialized_start=3255 - _globals['_CONNECTIONSETTINGSOFFERS_OTHERCONNECTIONSENTRY']._serialized_end=3360 - _globals['_PACKAGESAVAILABLE']._serialized_start=3363 - _globals['_PACKAGESAVAILABLE']._serialized_end=3592 - _globals['_PACKAGESAVAILABLE_PACKAGESENTRY']._serialized_start=3502 - _globals['_PACKAGESAVAILABLE_PACKAGESENTRY']._serialized_end=3592 - _globals['_PACKAGEAVAILABLE']._serialized_start=3595 - _globals['_PACKAGEAVAILABLE']._serialized_end=3756 - _globals['_DOWNLOADABLEFILE']._serialized_start=3758 - _globals['_DOWNLOADABLEFILE']._serialized_end=3876 - _globals['_SERVERERRORRESPONSE']._serialized_start=3879 - _globals['_SERVERERRORRESPONSE']._serialized_end=4063 - _globals['_RETRYINFO']._serialized_start=4065 - _globals['_RETRYINFO']._serialized_end=4132 - _globals['_SERVERTOAGENTCOMMAND']._serialized_start=4134 - _globals['_SERVERTOAGENTCOMMAND']._serialized_end=4202 - _globals['_AGENTDESCRIPTION']._serialized_start=4205 - _globals['_AGENTDESCRIPTION']._serialized_end=4386 - _globals['_COMPONENTHEALTH']._serialized_start=4389 - _globals['_COMPONENTHEALTH']._serialized_end=4792 - _globals['_COMPONENTHEALTH_COMPONENTHEALTHMAPENTRY']._serialized_start=4693 - _globals['_COMPONENTHEALTH_COMPONENTHEALTHMAPENTRY']._serialized_end=4792 - _globals['_EFFECTIVECONFIG']._serialized_start=4794 - _globals['_EFFECTIVECONFIG']._serialized_end=4871 - _globals['_REMOTECONFIGSTATUS']._serialized_start=4874 - _globals['_REMOTECONFIGSTATUS']._serialized_end=5045 - _globals['_PACKAGESTATUSES']._serialized_start=5048 - _globals['_PACKAGESTATUSES']._serialized_end=5337 - _globals['_PACKAGESTATUSES_PACKAGESENTRY']._serialized_start=5250 - _globals['_PACKAGESTATUSES_PACKAGESENTRY']._serialized_end=5337 - _globals['_PACKAGESTATUS']._serialized_start=5340 - _globals['_PACKAGESTATUS']._serialized_end=5652 - _globals['_AGENTIDENTIFICATION']._serialized_start=5654 - _globals['_AGENTIDENTIFICATION']._serialized_end=5717 - _globals['_AGENTREMOTECONFIG']._serialized_start=5719 - _globals['_AGENTREMOTECONFIG']._serialized_end=5824 - _globals['_AGENTCONFIGMAP']._serialized_start=5827 - _globals['_AGENTCONFIGMAP']._serialized_end=6010 - _globals['_AGENTCONFIGMAP_CONFIGMAPENTRY']._serialized_start=5920 - _globals['_AGENTCONFIGMAP_CONFIGMAPENTRY']._serialized_end=6010 - _globals['_AGENTCONFIGFILE']._serialized_start=6012 - _globals['_AGENTCONFIGFILE']._serialized_end=6084 - _globals['_CUSTOMCAPABILITIES']._serialized_start=6086 - _globals['_CUSTOMCAPABILITIES']._serialized_end=6142 - _globals['_CUSTOMMESSAGE']._serialized_start=6144 - _globals['_CUSTOMMESSAGE']._serialized_end=6231 +_sym_db = _symbol_database.Default() + + +from opamp import anyvalue_pb2 as anyvalue__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0bopamp.proto\x12\x0bopamp.proto\x1a\x0e\x61nyvalue.proto\"\xee\x04\n\rAgentToServer\x12\x14\n\x0cinstance_uid\x18\x01 \x01(\x0c\x12\x14\n\x0csequence_num\x18\x02 \x01(\x04\x12\x38\n\x11\x61gent_description\x18\x03 \x01(\x0b\x32\x1d.opamp.proto.AgentDescription\x12\x14\n\x0c\x63\x61pabilities\x18\x04 \x01(\x04\x12,\n\x06health\x18\x05 \x01(\x0b\x32\x1c.opamp.proto.ComponentHealth\x12\x36\n\x10\x65\x66\x66\x65\x63tive_config\x18\x06 \x01(\x0b\x32\x1c.opamp.proto.EffectiveConfig\x12=\n\x14remote_config_status\x18\x07 \x01(\x0b\x32\x1f.opamp.proto.RemoteConfigStatus\x12\x36\n\x10package_statuses\x18\x08 \x01(\x0b\x32\x1c.opamp.proto.PackageStatuses\x12\x36\n\x10\x61gent_disconnect\x18\t \x01(\x0b\x32\x1c.opamp.proto.AgentDisconnect\x12\r\n\x05\x66lags\x18\n \x01(\x04\x12K\n\x1b\x63onnection_settings_request\x18\x0b \x01(\x0b\x32&.opamp.proto.ConnectionSettingsRequest\x12<\n\x13\x63ustom_capabilities\x18\x0c \x01(\x0b\x32\x1f.opamp.proto.CustomCapabilities\x12\x32\n\x0e\x63ustom_message\x18\r \x01(\x0b\x32\x1a.opamp.proto.CustomMessage\"\x11\n\x0f\x41gentDisconnect\"W\n\x19\x43onnectionSettingsRequest\x12:\n\x05opamp\x18\x01 \x01(\x0b\x32+.opamp.proto.OpAMPConnectionSettingsRequest\"^\n\x1eOpAMPConnectionSettingsRequest\x12<\n\x13\x63\x65rtificate_request\x18\x01 \x01(\x0b\x32\x1f.opamp.proto.CertificateRequest\"!\n\x12\x43\x65rtificateRequest\x12\x0b\n\x03\x63sr\x18\x01 \x01(\x0c\"\xa1\x04\n\rServerToAgent\x12\x14\n\x0cinstance_uid\x18\x01 \x01(\x0c\x12\x38\n\x0e\x65rror_response\x18\x02 \x01(\x0b\x32 .opamp.proto.ServerErrorResponse\x12\x35\n\rremote_config\x18\x03 \x01(\x0b\x32\x1e.opamp.proto.AgentRemoteConfig\x12\x42\n\x13\x63onnection_settings\x18\x04 \x01(\x0b\x32%.opamp.proto.ConnectionSettingsOffers\x12:\n\x12packages_available\x18\x05 \x01(\x0b\x32\x1e.opamp.proto.PackagesAvailable\x12\r\n\x05\x66lags\x18\x06 \x01(\x04\x12\x14\n\x0c\x63\x61pabilities\x18\x07 \x01(\x04\x12>\n\x14\x61gent_identification\x18\x08 \x01(\x0b\x32 .opamp.proto.AgentIdentification\x12\x32\n\x07\x63ommand\x18\t \x01(\x0b\x32!.opamp.proto.ServerToAgentCommand\x12<\n\x13\x63ustom_capabilities\x18\n \x01(\x0b\x32\x1f.opamp.proto.CustomCapabilities\x12\x32\n\x0e\x63ustom_message\x18\x0b \x01(\x0b\x32\x1a.opamp.proto.CustomMessage\"\x90\x01\n\x17OpAMPConnectionSettings\x12\x1c\n\x14\x64\x65stination_endpoint\x18\x01 \x01(\t\x12%\n\x07headers\x18\x02 \x01(\x0b\x32\x14.opamp.proto.Headers\x12\x30\n\x0b\x63\x65rtificate\x18\x03 \x01(\x0b\x32\x1b.opamp.proto.TLSCertificate\"\x94\x01\n\x1bTelemetryConnectionSettings\x12\x1c\n\x14\x64\x65stination_endpoint\x18\x01 \x01(\t\x12%\n\x07headers\x18\x02 \x01(\x0b\x32\x14.opamp.proto.Headers\x12\x30\n\x0b\x63\x65rtificate\x18\x03 \x01(\x0b\x32\x1b.opamp.proto.TLSCertificate\"\x97\x02\n\x17OtherConnectionSettings\x12\x1c\n\x14\x64\x65stination_endpoint\x18\x01 \x01(\t\x12%\n\x07headers\x18\x02 \x01(\x0b\x32\x14.opamp.proto.Headers\x12\x30\n\x0b\x63\x65rtificate\x18\x03 \x01(\x0b\x32\x1b.opamp.proto.TLSCertificate\x12O\n\x0eother_settings\x18\x04 \x03(\x0b\x32\x37.opamp.proto.OtherConnectionSettings.OtherSettingsEntry\x1a\x34\n\x12OtherSettingsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"/\n\x07Headers\x12$\n\x07headers\x18\x01 \x03(\x0b\x32\x13.opamp.proto.Header\"$\n\x06Header\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"P\n\x0eTLSCertificate\x12\x12\n\npublic_key\x18\x01 \x01(\x0c\x12\x13\n\x0bprivate_key\x18\x02 \x01(\x0c\x12\x15\n\rca_public_key\x18\x03 \x01(\x0c\"\xcd\x03\n\x18\x43onnectionSettingsOffers\x12\x0c\n\x04hash\x18\x01 \x01(\x0c\x12\x33\n\x05opamp\x18\x02 \x01(\x0b\x32$.opamp.proto.OpAMPConnectionSettings\x12=\n\x0bown_metrics\x18\x03 \x01(\x0b\x32(.opamp.proto.TelemetryConnectionSettings\x12<\n\nown_traces\x18\x04 \x01(\x0b\x32(.opamp.proto.TelemetryConnectionSettings\x12:\n\x08own_logs\x18\x05 \x01(\x0b\x32(.opamp.proto.TelemetryConnectionSettings\x12V\n\x11other_connections\x18\x06 \x03(\x0b\x32;.opamp.proto.ConnectionSettingsOffers.OtherConnectionsEntry\x1a]\n\x15OtherConnectionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x33\n\x05value\x18\x02 \x01(\x0b\x32$.opamp.proto.OtherConnectionSettings:\x02\x38\x01\"\xbe\x01\n\x11PackagesAvailable\x12>\n\x08packages\x18\x01 \x03(\x0b\x32,.opamp.proto.PackagesAvailable.PackagesEntry\x12\x19\n\x11\x61ll_packages_hash\x18\x02 \x01(\x0c\x1aN\n\rPackagesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x1d.opamp.proto.PackageAvailable:\x02\x38\x01\"\x86\x01\n\x10PackageAvailable\x12&\n\x04type\x18\x01 \x01(\x0e\x32\x18.opamp.proto.PackageType\x12\x0f\n\x07version\x18\x02 \x01(\t\x12+\n\x04\x66ile\x18\x03 \x01(\x0b\x32\x1d.opamp.proto.DownloadableFile\x12\x0c\n\x04hash\x18\x04 \x01(\x0c\"Q\n\x10\x44ownloadableFile\x12\x14\n\x0c\x64ownload_url\x18\x01 \x01(\t\x12\x14\n\x0c\x63ontent_hash\x18\x02 \x01(\x0c\x12\x11\n\tsignature\x18\x03 \x01(\x0c\"\x99\x01\n\x13ServerErrorResponse\x12\x32\n\x04type\x18\x01 \x01(\x0e\x32$.opamp.proto.ServerErrorResponseType\x12\x15\n\rerror_message\x18\x02 \x01(\t\x12,\n\nretry_info\x18\x03 \x01(\x0b\x32\x16.opamp.proto.RetryInfoH\x00\x42\t\n\x07\x44\x65tails\",\n\tRetryInfo\x12\x1f\n\x17retry_after_nanoseconds\x18\x01 \x01(\x04\">\n\x14ServerToAgentCommand\x12&\n\x04type\x18\x01 \x01(\x0e\x32\x18.opamp.proto.CommandType\"\x84\x01\n\x10\x41gentDescription\x12\x35\n\x16identifying_attributes\x18\x01 \x03(\x0b\x32\x15.opamp.proto.KeyValue\x12\x39\n\x1anon_identifying_attributes\x18\x02 \x03(\x0b\x32\x15.opamp.proto.KeyValue\"\xb0\x02\n\x0f\x43omponentHealth\x12\x0f\n\x07healthy\x18\x01 \x01(\x08\x12\x1c\n\x14start_time_unix_nano\x18\x02 \x01(\x06\x12\x12\n\nlast_error\x18\x03 \x01(\t\x12\x0e\n\x06status\x18\x04 \x01(\t\x12\x1d\n\x15status_time_unix_nano\x18\x05 \x01(\x06\x12R\n\x14\x63omponent_health_map\x18\x06 \x03(\x0b\x32\x34.opamp.proto.ComponentHealth.ComponentHealthMapEntry\x1aW\n\x17\x43omponentHealthMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.opamp.proto.ComponentHealth:\x02\x38\x01\"B\n\x0f\x45\x66\x66\x65\x63tiveConfig\x12/\n\nconfig_map\x18\x01 \x01(\x0b\x32\x1b.opamp.proto.AgentConfigMap\"\x7f\n\x12RemoteConfigStatus\x12\x1f\n\x17last_remote_config_hash\x18\x01 \x01(\x0c\x12\x31\n\x06status\x18\x02 \x01(\x0e\x32!.opamp.proto.RemoteConfigStatuses\x12\x15\n\rerror_message\x18\x03 \x01(\t\"\xde\x01\n\x0fPackageStatuses\x12<\n\x08packages\x18\x01 \x03(\x0b\x32*.opamp.proto.PackageStatuses.PackagesEntry\x12)\n!server_provided_all_packages_hash\x18\x02 \x01(\x0c\x12\x15\n\rerror_message\x18\x03 \x01(\t\x1aK\n\rPackagesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x1a.opamp.proto.PackageStatus:\x02\x38\x01\"\xd4\x01\n\rPackageStatus\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x11\x61gent_has_version\x18\x02 \x01(\t\x12\x16\n\x0e\x61gent_has_hash\x18\x03 \x01(\x0c\x12\x1e\n\x16server_offered_version\x18\x04 \x01(\t\x12\x1b\n\x13server_offered_hash\x18\x05 \x01(\x0c\x12.\n\x06status\x18\x06 \x01(\x0e\x32\x1e.opamp.proto.PackageStatusEnum\x12\x15\n\rerror_message\x18\x07 \x01(\t\"/\n\x13\x41gentIdentification\x12\x18\n\x10new_instance_uid\x18\x01 \x01(\x0c\"U\n\x11\x41gentRemoteConfig\x12+\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x1b.opamp.proto.AgentConfigMap\x12\x13\n\x0b\x63onfig_hash\x18\x02 \x01(\x0c\"\xa0\x01\n\x0e\x41gentConfigMap\x12>\n\nconfig_map\x18\x01 \x03(\x0b\x32*.opamp.proto.AgentConfigMap.ConfigMapEntry\x1aN\n\x0e\x43onfigMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.opamp.proto.AgentConfigFile:\x02\x38\x01\"5\n\x0f\x41gentConfigFile\x12\x0c\n\x04\x62ody\x18\x01 \x01(\x0c\x12\x14\n\x0c\x63ontent_type\x18\x02 \x01(\t\"*\n\x12\x43ustomCapabilities\x12\x14\n\x0c\x63\x61pabilities\x18\x01 \x03(\t\"?\n\rCustomMessage\x12\x12\n\ncapability\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x03 \x01(\x0c*c\n\x12\x41gentToServerFlags\x12\"\n\x1e\x41gentToServerFlags_Unspecified\x10\x00\x12)\n%AgentToServerFlags_RequestInstanceUid\x10\x01*`\n\x12ServerToAgentFlags\x12\"\n\x1eServerToAgentFlags_Unspecified\x10\x00\x12&\n\"ServerToAgentFlags_ReportFullState\x10\x01*\xf7\x02\n\x12ServerCapabilities\x12\"\n\x1eServerCapabilities_Unspecified\x10\x00\x12$\n ServerCapabilities_AcceptsStatus\x10\x01\x12)\n%ServerCapabilities_OffersRemoteConfig\x10\x02\x12-\n)ServerCapabilities_AcceptsEffectiveConfig\x10\x04\x12%\n!ServerCapabilities_OffersPackages\x10\x08\x12,\n(ServerCapabilities_AcceptsPackagesStatus\x10\x10\x12/\n+ServerCapabilities_OffersConnectionSettings\x10 \x12\x37\n3ServerCapabilities_AcceptsConnectionSettingsRequest\x10@*>\n\x0bPackageType\x12\x18\n\x14PackageType_TopLevel\x10\x00\x12\x15\n\x11PackageType_Addon\x10\x01*\x8f\x01\n\x17ServerErrorResponseType\x12#\n\x1fServerErrorResponseType_Unknown\x10\x00\x12&\n\"ServerErrorResponseType_BadRequest\x10\x01\x12\'\n#ServerErrorResponseType_Unavailable\x10\x02*&\n\x0b\x43ommandType\x12\x17\n\x13\x43ommandType_Restart\x10\x00*\xef\x04\n\x11\x41gentCapabilities\x12!\n\x1d\x41gentCapabilities_Unspecified\x10\x00\x12#\n\x1f\x41gentCapabilities_ReportsStatus\x10\x01\x12)\n%AgentCapabilities_AcceptsRemoteConfig\x10\x02\x12,\n(AgentCapabilities_ReportsEffectiveConfig\x10\x04\x12%\n!AgentCapabilities_AcceptsPackages\x10\x08\x12,\n(AgentCapabilities_ReportsPackageStatuses\x10\x10\x12&\n\"AgentCapabilities_ReportsOwnTraces\x10 \x12\'\n#AgentCapabilities_ReportsOwnMetrics\x10@\x12%\n AgentCapabilities_ReportsOwnLogs\x10\x80\x01\x12\x35\n0AgentCapabilities_AcceptsOpAMPConnectionSettings\x10\x80\x02\x12\x35\n0AgentCapabilities_AcceptsOtherConnectionSettings\x10\x80\x04\x12,\n\'AgentCapabilities_AcceptsRestartCommand\x10\x80\x08\x12$\n\x1f\x41gentCapabilities_ReportsHealth\x10\x80\x10\x12*\n%AgentCapabilities_ReportsRemoteConfig\x10\x80 *\x9c\x01\n\x14RemoteConfigStatuses\x12\x1e\n\x1aRemoteConfigStatuses_UNSET\x10\x00\x12 \n\x1cRemoteConfigStatuses_APPLIED\x10\x01\x12!\n\x1dRemoteConfigStatuses_APPLYING\x10\x02\x12\x1f\n\x1bRemoteConfigStatuses_FAILED\x10\x03*\xa1\x01\n\x11PackageStatusEnum\x12\x1f\n\x1bPackageStatusEnum_Installed\x10\x00\x12$\n PackageStatusEnum_InstallPending\x10\x01\x12 \n\x1cPackageStatusEnum_Installing\x10\x02\x12#\n\x1fPackageStatusEnum_InstallFailed\x10\x03\x42.Z,github.com/open-telemetry/opamp-go/protobufsb\x06proto3') + +_AGENTTOSERVERFLAGS = DESCRIPTOR.enum_types_by_name['AgentToServerFlags'] +AgentToServerFlags = enum_type_wrapper.EnumTypeWrapper(_AGENTTOSERVERFLAGS) +_SERVERTOAGENTFLAGS = DESCRIPTOR.enum_types_by_name['ServerToAgentFlags'] +ServerToAgentFlags = enum_type_wrapper.EnumTypeWrapper(_SERVERTOAGENTFLAGS) +_SERVERCAPABILITIES = DESCRIPTOR.enum_types_by_name['ServerCapabilities'] +ServerCapabilities = enum_type_wrapper.EnumTypeWrapper(_SERVERCAPABILITIES) +_PACKAGETYPE = DESCRIPTOR.enum_types_by_name['PackageType'] +PackageType = enum_type_wrapper.EnumTypeWrapper(_PACKAGETYPE) +_SERVERERRORRESPONSETYPE = DESCRIPTOR.enum_types_by_name['ServerErrorResponseType'] +ServerErrorResponseType = enum_type_wrapper.EnumTypeWrapper(_SERVERERRORRESPONSETYPE) +_COMMANDTYPE = DESCRIPTOR.enum_types_by_name['CommandType'] +CommandType = enum_type_wrapper.EnumTypeWrapper(_COMMANDTYPE) +_AGENTCAPABILITIES = DESCRIPTOR.enum_types_by_name['AgentCapabilities'] +AgentCapabilities = enum_type_wrapper.EnumTypeWrapper(_AGENTCAPABILITIES) +_REMOTECONFIGSTATUSES = DESCRIPTOR.enum_types_by_name['RemoteConfigStatuses'] +RemoteConfigStatuses = enum_type_wrapper.EnumTypeWrapper(_REMOTECONFIGSTATUSES) +_PACKAGESTATUSENUM = DESCRIPTOR.enum_types_by_name['PackageStatusEnum'] +PackageStatusEnum = enum_type_wrapper.EnumTypeWrapper(_PACKAGESTATUSENUM) +AgentToServerFlags_Unspecified = 0 +AgentToServerFlags_RequestInstanceUid = 1 +ServerToAgentFlags_Unspecified = 0 +ServerToAgentFlags_ReportFullState = 1 +ServerCapabilities_Unspecified = 0 +ServerCapabilities_AcceptsStatus = 1 +ServerCapabilities_OffersRemoteConfig = 2 +ServerCapabilities_AcceptsEffectiveConfig = 4 +ServerCapabilities_OffersPackages = 8 +ServerCapabilities_AcceptsPackagesStatus = 16 +ServerCapabilities_OffersConnectionSettings = 32 +ServerCapabilities_AcceptsConnectionSettingsRequest = 64 +PackageType_TopLevel = 0 +PackageType_Addon = 1 +ServerErrorResponseType_Unknown = 0 +ServerErrorResponseType_BadRequest = 1 +ServerErrorResponseType_Unavailable = 2 +CommandType_Restart = 0 +AgentCapabilities_Unspecified = 0 +AgentCapabilities_ReportsStatus = 1 +AgentCapabilities_AcceptsRemoteConfig = 2 +AgentCapabilities_ReportsEffectiveConfig = 4 +AgentCapabilities_AcceptsPackages = 8 +AgentCapabilities_ReportsPackageStatuses = 16 +AgentCapabilities_ReportsOwnTraces = 32 +AgentCapabilities_ReportsOwnMetrics = 64 +AgentCapabilities_ReportsOwnLogs = 128 +AgentCapabilities_AcceptsOpAMPConnectionSettings = 256 +AgentCapabilities_AcceptsOtherConnectionSettings = 512 +AgentCapabilities_AcceptsRestartCommand = 1024 +AgentCapabilities_ReportsHealth = 2048 +AgentCapabilities_ReportsRemoteConfig = 4096 +RemoteConfigStatuses_UNSET = 0 +RemoteConfigStatuses_APPLIED = 1 +RemoteConfigStatuses_APPLYING = 2 +RemoteConfigStatuses_FAILED = 3 +PackageStatusEnum_Installed = 0 +PackageStatusEnum_InstallPending = 1 +PackageStatusEnum_Installing = 2 +PackageStatusEnum_InstallFailed = 3 + + +_AGENTTOSERVER = DESCRIPTOR.message_types_by_name['AgentToServer'] +_AGENTDISCONNECT = DESCRIPTOR.message_types_by_name['AgentDisconnect'] +_CONNECTIONSETTINGSREQUEST = DESCRIPTOR.message_types_by_name['ConnectionSettingsRequest'] +_OPAMPCONNECTIONSETTINGSREQUEST = DESCRIPTOR.message_types_by_name['OpAMPConnectionSettingsRequest'] +_CERTIFICATEREQUEST = DESCRIPTOR.message_types_by_name['CertificateRequest'] +_SERVERTOAGENT = DESCRIPTOR.message_types_by_name['ServerToAgent'] +_OPAMPCONNECTIONSETTINGS = DESCRIPTOR.message_types_by_name['OpAMPConnectionSettings'] +_TELEMETRYCONNECTIONSETTINGS = DESCRIPTOR.message_types_by_name['TelemetryConnectionSettings'] +_OTHERCONNECTIONSETTINGS = DESCRIPTOR.message_types_by_name['OtherConnectionSettings'] +_OTHERCONNECTIONSETTINGS_OTHERSETTINGSENTRY = _OTHERCONNECTIONSETTINGS.nested_types_by_name['OtherSettingsEntry'] +_HEADERS = DESCRIPTOR.message_types_by_name['Headers'] +_HEADER = DESCRIPTOR.message_types_by_name['Header'] +_TLSCERTIFICATE = DESCRIPTOR.message_types_by_name['TLSCertificate'] +_CONNECTIONSETTINGSOFFERS = DESCRIPTOR.message_types_by_name['ConnectionSettingsOffers'] +_CONNECTIONSETTINGSOFFERS_OTHERCONNECTIONSENTRY = _CONNECTIONSETTINGSOFFERS.nested_types_by_name['OtherConnectionsEntry'] +_PACKAGESAVAILABLE = DESCRIPTOR.message_types_by_name['PackagesAvailable'] +_PACKAGESAVAILABLE_PACKAGESENTRY = _PACKAGESAVAILABLE.nested_types_by_name['PackagesEntry'] +_PACKAGEAVAILABLE = DESCRIPTOR.message_types_by_name['PackageAvailable'] +_DOWNLOADABLEFILE = DESCRIPTOR.message_types_by_name['DownloadableFile'] +_SERVERERRORRESPONSE = DESCRIPTOR.message_types_by_name['ServerErrorResponse'] +_RETRYINFO = DESCRIPTOR.message_types_by_name['RetryInfo'] +_SERVERTOAGENTCOMMAND = DESCRIPTOR.message_types_by_name['ServerToAgentCommand'] +_AGENTDESCRIPTION = DESCRIPTOR.message_types_by_name['AgentDescription'] +_COMPONENTHEALTH = DESCRIPTOR.message_types_by_name['ComponentHealth'] +_COMPONENTHEALTH_COMPONENTHEALTHMAPENTRY = _COMPONENTHEALTH.nested_types_by_name['ComponentHealthMapEntry'] +_EFFECTIVECONFIG = DESCRIPTOR.message_types_by_name['EffectiveConfig'] +_REMOTECONFIGSTATUS = DESCRIPTOR.message_types_by_name['RemoteConfigStatus'] +_PACKAGESTATUSES = DESCRIPTOR.message_types_by_name['PackageStatuses'] +_PACKAGESTATUSES_PACKAGESENTRY = _PACKAGESTATUSES.nested_types_by_name['PackagesEntry'] +_PACKAGESTATUS = DESCRIPTOR.message_types_by_name['PackageStatus'] +_AGENTIDENTIFICATION = DESCRIPTOR.message_types_by_name['AgentIdentification'] +_AGENTREMOTECONFIG = DESCRIPTOR.message_types_by_name['AgentRemoteConfig'] +_AGENTCONFIGMAP = DESCRIPTOR.message_types_by_name['AgentConfigMap'] +_AGENTCONFIGMAP_CONFIGMAPENTRY = _AGENTCONFIGMAP.nested_types_by_name['ConfigMapEntry'] +_AGENTCONFIGFILE = DESCRIPTOR.message_types_by_name['AgentConfigFile'] +_CUSTOMCAPABILITIES = DESCRIPTOR.message_types_by_name['CustomCapabilities'] +_CUSTOMMESSAGE = DESCRIPTOR.message_types_by_name['CustomMessage'] +AgentToServer = _reflection.GeneratedProtocolMessageType('AgentToServer', (_message.Message,), { + 'DESCRIPTOR' : _AGENTTOSERVER, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.AgentToServer) + }) +_sym_db.RegisterMessage(AgentToServer) + +AgentDisconnect = _reflection.GeneratedProtocolMessageType('AgentDisconnect', (_message.Message,), { + 'DESCRIPTOR' : _AGENTDISCONNECT, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.AgentDisconnect) + }) +_sym_db.RegisterMessage(AgentDisconnect) + +ConnectionSettingsRequest = _reflection.GeneratedProtocolMessageType('ConnectionSettingsRequest', (_message.Message,), { + 'DESCRIPTOR' : _CONNECTIONSETTINGSREQUEST, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.ConnectionSettingsRequest) + }) +_sym_db.RegisterMessage(ConnectionSettingsRequest) + +OpAMPConnectionSettingsRequest = _reflection.GeneratedProtocolMessageType('OpAMPConnectionSettingsRequest', (_message.Message,), { + 'DESCRIPTOR' : _OPAMPCONNECTIONSETTINGSREQUEST, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.OpAMPConnectionSettingsRequest) + }) +_sym_db.RegisterMessage(OpAMPConnectionSettingsRequest) + +CertificateRequest = _reflection.GeneratedProtocolMessageType('CertificateRequest', (_message.Message,), { + 'DESCRIPTOR' : _CERTIFICATEREQUEST, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.CertificateRequest) + }) +_sym_db.RegisterMessage(CertificateRequest) + +ServerToAgent = _reflection.GeneratedProtocolMessageType('ServerToAgent', (_message.Message,), { + 'DESCRIPTOR' : _SERVERTOAGENT, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.ServerToAgent) + }) +_sym_db.RegisterMessage(ServerToAgent) + +OpAMPConnectionSettings = _reflection.GeneratedProtocolMessageType('OpAMPConnectionSettings', (_message.Message,), { + 'DESCRIPTOR' : _OPAMPCONNECTIONSETTINGS, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.OpAMPConnectionSettings) + }) +_sym_db.RegisterMessage(OpAMPConnectionSettings) + +TelemetryConnectionSettings = _reflection.GeneratedProtocolMessageType('TelemetryConnectionSettings', (_message.Message,), { + 'DESCRIPTOR' : _TELEMETRYCONNECTIONSETTINGS, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.TelemetryConnectionSettings) + }) +_sym_db.RegisterMessage(TelemetryConnectionSettings) + +OtherConnectionSettings = _reflection.GeneratedProtocolMessageType('OtherConnectionSettings', (_message.Message,), { + + 'OtherSettingsEntry' : _reflection.GeneratedProtocolMessageType('OtherSettingsEntry', (_message.Message,), { + 'DESCRIPTOR' : _OTHERCONNECTIONSETTINGS_OTHERSETTINGSENTRY, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.OtherConnectionSettings.OtherSettingsEntry) + }) + , + 'DESCRIPTOR' : _OTHERCONNECTIONSETTINGS, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.OtherConnectionSettings) + }) +_sym_db.RegisterMessage(OtherConnectionSettings) +_sym_db.RegisterMessage(OtherConnectionSettings.OtherSettingsEntry) + +Headers = _reflection.GeneratedProtocolMessageType('Headers', (_message.Message,), { + 'DESCRIPTOR' : _HEADERS, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.Headers) + }) +_sym_db.RegisterMessage(Headers) + +Header = _reflection.GeneratedProtocolMessageType('Header', (_message.Message,), { + 'DESCRIPTOR' : _HEADER, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.Header) + }) +_sym_db.RegisterMessage(Header) + +TLSCertificate = _reflection.GeneratedProtocolMessageType('TLSCertificate', (_message.Message,), { + 'DESCRIPTOR' : _TLSCERTIFICATE, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.TLSCertificate) + }) +_sym_db.RegisterMessage(TLSCertificate) + +ConnectionSettingsOffers = _reflection.GeneratedProtocolMessageType('ConnectionSettingsOffers', (_message.Message,), { + + 'OtherConnectionsEntry' : _reflection.GeneratedProtocolMessageType('OtherConnectionsEntry', (_message.Message,), { + 'DESCRIPTOR' : _CONNECTIONSETTINGSOFFERS_OTHERCONNECTIONSENTRY, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.ConnectionSettingsOffers.OtherConnectionsEntry) + }) + , + 'DESCRIPTOR' : _CONNECTIONSETTINGSOFFERS, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.ConnectionSettingsOffers) + }) +_sym_db.RegisterMessage(ConnectionSettingsOffers) +_sym_db.RegisterMessage(ConnectionSettingsOffers.OtherConnectionsEntry) + +PackagesAvailable = _reflection.GeneratedProtocolMessageType('PackagesAvailable', (_message.Message,), { + + 'PackagesEntry' : _reflection.GeneratedProtocolMessageType('PackagesEntry', (_message.Message,), { + 'DESCRIPTOR' : _PACKAGESAVAILABLE_PACKAGESENTRY, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.PackagesAvailable.PackagesEntry) + }) + , + 'DESCRIPTOR' : _PACKAGESAVAILABLE, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.PackagesAvailable) + }) +_sym_db.RegisterMessage(PackagesAvailable) +_sym_db.RegisterMessage(PackagesAvailable.PackagesEntry) + +PackageAvailable = _reflection.GeneratedProtocolMessageType('PackageAvailable', (_message.Message,), { + 'DESCRIPTOR' : _PACKAGEAVAILABLE, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.PackageAvailable) + }) +_sym_db.RegisterMessage(PackageAvailable) + +DownloadableFile = _reflection.GeneratedProtocolMessageType('DownloadableFile', (_message.Message,), { + 'DESCRIPTOR' : _DOWNLOADABLEFILE, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.DownloadableFile) + }) +_sym_db.RegisterMessage(DownloadableFile) + +ServerErrorResponse = _reflection.GeneratedProtocolMessageType('ServerErrorResponse', (_message.Message,), { + 'DESCRIPTOR' : _SERVERERRORRESPONSE, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.ServerErrorResponse) + }) +_sym_db.RegisterMessage(ServerErrorResponse) + +RetryInfo = _reflection.GeneratedProtocolMessageType('RetryInfo', (_message.Message,), { + 'DESCRIPTOR' : _RETRYINFO, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.RetryInfo) + }) +_sym_db.RegisterMessage(RetryInfo) + +ServerToAgentCommand = _reflection.GeneratedProtocolMessageType('ServerToAgentCommand', (_message.Message,), { + 'DESCRIPTOR' : _SERVERTOAGENTCOMMAND, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.ServerToAgentCommand) + }) +_sym_db.RegisterMessage(ServerToAgentCommand) + +AgentDescription = _reflection.GeneratedProtocolMessageType('AgentDescription', (_message.Message,), { + 'DESCRIPTOR' : _AGENTDESCRIPTION, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.AgentDescription) + }) +_sym_db.RegisterMessage(AgentDescription) + +ComponentHealth = _reflection.GeneratedProtocolMessageType('ComponentHealth', (_message.Message,), { + + 'ComponentHealthMapEntry' : _reflection.GeneratedProtocolMessageType('ComponentHealthMapEntry', (_message.Message,), { + 'DESCRIPTOR' : _COMPONENTHEALTH_COMPONENTHEALTHMAPENTRY, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.ComponentHealth.ComponentHealthMapEntry) + }) + , + 'DESCRIPTOR' : _COMPONENTHEALTH, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.ComponentHealth) + }) +_sym_db.RegisterMessage(ComponentHealth) +_sym_db.RegisterMessage(ComponentHealth.ComponentHealthMapEntry) + +EffectiveConfig = _reflection.GeneratedProtocolMessageType('EffectiveConfig', (_message.Message,), { + 'DESCRIPTOR' : _EFFECTIVECONFIG, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.EffectiveConfig) + }) +_sym_db.RegisterMessage(EffectiveConfig) + +RemoteConfigStatus = _reflection.GeneratedProtocolMessageType('RemoteConfigStatus', (_message.Message,), { + 'DESCRIPTOR' : _REMOTECONFIGSTATUS, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.RemoteConfigStatus) + }) +_sym_db.RegisterMessage(RemoteConfigStatus) + +PackageStatuses = _reflection.GeneratedProtocolMessageType('PackageStatuses', (_message.Message,), { + + 'PackagesEntry' : _reflection.GeneratedProtocolMessageType('PackagesEntry', (_message.Message,), { + 'DESCRIPTOR' : _PACKAGESTATUSES_PACKAGESENTRY, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.PackageStatuses.PackagesEntry) + }) + , + 'DESCRIPTOR' : _PACKAGESTATUSES, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.PackageStatuses) + }) +_sym_db.RegisterMessage(PackageStatuses) +_sym_db.RegisterMessage(PackageStatuses.PackagesEntry) + +PackageStatus = _reflection.GeneratedProtocolMessageType('PackageStatus', (_message.Message,), { + 'DESCRIPTOR' : _PACKAGESTATUS, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.PackageStatus) + }) +_sym_db.RegisterMessage(PackageStatus) + +AgentIdentification = _reflection.GeneratedProtocolMessageType('AgentIdentification', (_message.Message,), { + 'DESCRIPTOR' : _AGENTIDENTIFICATION, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.AgentIdentification) + }) +_sym_db.RegisterMessage(AgentIdentification) + +AgentRemoteConfig = _reflection.GeneratedProtocolMessageType('AgentRemoteConfig', (_message.Message,), { + 'DESCRIPTOR' : _AGENTREMOTECONFIG, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.AgentRemoteConfig) + }) +_sym_db.RegisterMessage(AgentRemoteConfig) + +AgentConfigMap = _reflection.GeneratedProtocolMessageType('AgentConfigMap', (_message.Message,), { + + 'ConfigMapEntry' : _reflection.GeneratedProtocolMessageType('ConfigMapEntry', (_message.Message,), { + 'DESCRIPTOR' : _AGENTCONFIGMAP_CONFIGMAPENTRY, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.AgentConfigMap.ConfigMapEntry) + }) + , + 'DESCRIPTOR' : _AGENTCONFIGMAP, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.AgentConfigMap) + }) +_sym_db.RegisterMessage(AgentConfigMap) +_sym_db.RegisterMessage(AgentConfigMap.ConfigMapEntry) + +AgentConfigFile = _reflection.GeneratedProtocolMessageType('AgentConfigFile', (_message.Message,), { + 'DESCRIPTOR' : _AGENTCONFIGFILE, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.AgentConfigFile) + }) +_sym_db.RegisterMessage(AgentConfigFile) + +CustomCapabilities = _reflection.GeneratedProtocolMessageType('CustomCapabilities', (_message.Message,), { + 'DESCRIPTOR' : _CUSTOMCAPABILITIES, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.CustomCapabilities) + }) +_sym_db.RegisterMessage(CustomCapabilities) + +CustomMessage = _reflection.GeneratedProtocolMessageType('CustomMessage', (_message.Message,), { + 'DESCRIPTOR' : _CUSTOMMESSAGE, + '__module__' : 'opamp_pb2' + # @@protoc_insertion_point(class_scope:opamp.proto.CustomMessage) + }) +_sym_db.RegisterMessage(CustomMessage) + +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z,github.com/open-telemetry/opamp-go/protobufs' + _OTHERCONNECTIONSETTINGS_OTHERSETTINGSENTRY._options = None + _OTHERCONNECTIONSETTINGS_OTHERSETTINGSENTRY._serialized_options = b'8\001' + _CONNECTIONSETTINGSOFFERS_OTHERCONNECTIONSENTRY._options = None + _CONNECTIONSETTINGSOFFERS_OTHERCONNECTIONSENTRY._serialized_options = b'8\001' + _PACKAGESAVAILABLE_PACKAGESENTRY._options = None + _PACKAGESAVAILABLE_PACKAGESENTRY._serialized_options = b'8\001' + _COMPONENTHEALTH_COMPONENTHEALTHMAPENTRY._options = None + _COMPONENTHEALTH_COMPONENTHEALTHMAPENTRY._serialized_options = b'8\001' + _PACKAGESTATUSES_PACKAGESENTRY._options = None + _PACKAGESTATUSES_PACKAGESENTRY._serialized_options = b'8\001' + _AGENTCONFIGMAP_CONFIGMAPENTRY._options = None + _AGENTCONFIGMAP_CONFIGMAPENTRY._serialized_options = b'8\001' + _AGENTTOSERVERFLAGS._serialized_start=4890 + _AGENTTOSERVERFLAGS._serialized_end=4989 + _SERVERTOAGENTFLAGS._serialized_start=4991 + _SERVERTOAGENTFLAGS._serialized_end=5087 + _SERVERCAPABILITIES._serialized_start=5090 + _SERVERCAPABILITIES._serialized_end=5465 + _PACKAGETYPE._serialized_start=5467 + _PACKAGETYPE._serialized_end=5529 + _SERVERERRORRESPONSETYPE._serialized_start=5532 + _SERVERERRORRESPONSETYPE._serialized_end=5675 + _COMMANDTYPE._serialized_start=5677 + _COMMANDTYPE._serialized_end=5715 + _AGENTCAPABILITIES._serialized_start=5718 + _AGENTCAPABILITIES._serialized_end=6341 + _REMOTECONFIGSTATUSES._serialized_start=6344 + _REMOTECONFIGSTATUSES._serialized_end=6500 + _PACKAGESTATUSENUM._serialized_start=6503 + _PACKAGESTATUSENUM._serialized_end=6664 + _AGENTTOSERVER._serialized_start=45 + _AGENTTOSERVER._serialized_end=667 + _AGENTDISCONNECT._serialized_start=669 + _AGENTDISCONNECT._serialized_end=686 + _CONNECTIONSETTINGSREQUEST._serialized_start=688 + _CONNECTIONSETTINGSREQUEST._serialized_end=775 + _OPAMPCONNECTIONSETTINGSREQUEST._serialized_start=777 + _OPAMPCONNECTIONSETTINGSREQUEST._serialized_end=871 + _CERTIFICATEREQUEST._serialized_start=873 + _CERTIFICATEREQUEST._serialized_end=906 + _SERVERTOAGENT._serialized_start=909 + _SERVERTOAGENT._serialized_end=1454 + _OPAMPCONNECTIONSETTINGS._serialized_start=1457 + _OPAMPCONNECTIONSETTINGS._serialized_end=1601 + _TELEMETRYCONNECTIONSETTINGS._serialized_start=1604 + _TELEMETRYCONNECTIONSETTINGS._serialized_end=1752 + _OTHERCONNECTIONSETTINGS._serialized_start=1755 + _OTHERCONNECTIONSETTINGS._serialized_end=2034 + _OTHERCONNECTIONSETTINGS_OTHERSETTINGSENTRY._serialized_start=1982 + _OTHERCONNECTIONSETTINGS_OTHERSETTINGSENTRY._serialized_end=2034 + _HEADERS._serialized_start=2036 + _HEADERS._serialized_end=2083 + _HEADER._serialized_start=2085 + _HEADER._serialized_end=2121 + _TLSCERTIFICATE._serialized_start=2123 + _TLSCERTIFICATE._serialized_end=2203 + _CONNECTIONSETTINGSOFFERS._serialized_start=2206 + _CONNECTIONSETTINGSOFFERS._serialized_end=2667 + _CONNECTIONSETTINGSOFFERS_OTHERCONNECTIONSENTRY._serialized_start=2574 + _CONNECTIONSETTINGSOFFERS_OTHERCONNECTIONSENTRY._serialized_end=2667 + _PACKAGESAVAILABLE._serialized_start=2670 + _PACKAGESAVAILABLE._serialized_end=2860 + _PACKAGESAVAILABLE_PACKAGESENTRY._serialized_start=2782 + _PACKAGESAVAILABLE_PACKAGESENTRY._serialized_end=2860 + _PACKAGEAVAILABLE._serialized_start=2863 + _PACKAGEAVAILABLE._serialized_end=2997 + _DOWNLOADABLEFILE._serialized_start=2999 + _DOWNLOADABLEFILE._serialized_end=3080 + _SERVERERRORRESPONSE._serialized_start=3083 + _SERVERERRORRESPONSE._serialized_end=3236 + _RETRYINFO._serialized_start=3238 + _RETRYINFO._serialized_end=3282 + _SERVERTOAGENTCOMMAND._serialized_start=3284 + _SERVERTOAGENTCOMMAND._serialized_end=3346 + _AGENTDESCRIPTION._serialized_start=3349 + _AGENTDESCRIPTION._serialized_end=3481 + _COMPONENTHEALTH._serialized_start=3484 + _COMPONENTHEALTH._serialized_end=3788 + _COMPONENTHEALTH_COMPONENTHEALTHMAPENTRY._serialized_start=3701 + _COMPONENTHEALTH_COMPONENTHEALTHMAPENTRY._serialized_end=3788 + _EFFECTIVECONFIG._serialized_start=3790 + _EFFECTIVECONFIG._serialized_end=3856 + _REMOTECONFIGSTATUS._serialized_start=3858 + _REMOTECONFIGSTATUS._serialized_end=3985 + _PACKAGESTATUSES._serialized_start=3988 + _PACKAGESTATUSES._serialized_end=4210 + _PACKAGESTATUSES_PACKAGESENTRY._serialized_start=4135 + _PACKAGESTATUSES_PACKAGESENTRY._serialized_end=4210 + _PACKAGESTATUS._serialized_start=4213 + _PACKAGESTATUS._serialized_end=4425 + _AGENTIDENTIFICATION._serialized_start=4427 + _AGENTIDENTIFICATION._serialized_end=4474 + _AGENTREMOTECONFIG._serialized_start=4476 + _AGENTREMOTECONFIG._serialized_end=4561 + _AGENTCONFIGMAP._serialized_start=4564 + _AGENTCONFIGMAP._serialized_end=4724 + _AGENTCONFIGMAP_CONFIGMAPENTRY._serialized_start=4646 + _AGENTCONFIGMAP_CONFIGMAPENTRY._serialized_end=4724 + _AGENTCONFIGFILE._serialized_start=4726 + _AGENTCONFIGFILE._serialized_end=4779 + _CUSTOMCAPABILITIES._serialized_start=4781 + _CUSTOMCAPABILITIES._serialized_end=4823 + _CUSTOMMESSAGE._serialized_start=4825 + _CUSTOMMESSAGE._serialized_end=4888 # @@protoc_insertion_point(module_scope) diff --git a/requirements.txt b/requirements.txt index f9ed0b6..83cef5b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,11 +8,11 @@ asgiref==3.8.1 # via # opentelemetry-instrumentation-asgi # opentelemetry-test-utils -certifi==2023.5.7 +certifi==2024.8.30 # via # odigos-requests # requests -charset-normalizer==3.2.0 +charset-normalizer==3.3.2 # via # odigos-requests # requests @@ -20,13 +20,13 @@ deprecated==1.2.14 # via # opentelemetry-api # opentelemetry-exporter-otlp-proto-http -googleapis-common-protos==1.65.0 +googleapis-common-protos==1.56.4 # via opentelemetry-exporter-otlp-proto-http -idna==3.4 +idna==3.8 # via # odigos-requests # requests -importlib-metadata==7.0.0 +importlib-metadata==7.1.0 # via # opentelemetry-api # opentelemetry-instrumentation-flask @@ -320,15 +320,16 @@ packaging==24.1 # opentelemetry-instrumentation-flask # opentelemetry-instrumentation-pika # opentelemetry-instrumentation-sqlalchemy -protobuf==4.23.4 +protobuf==3.19.4 # via # googleapis-common-protos + # odigos-opentelemetry-python (setup.py) # opentelemetry-proto psutil==5.9.8 # via opentelemetry-instrumentation-system-metrics requests==2.32.3 # via opentelemetry-exporter-otlp-proto-http -typing-extensions==4.7.1 +typing-extensions==4.12.2 # via opentelemetry-sdk urllib3==2.2.2 # via requests @@ -360,7 +361,7 @@ wrapt==1.16.0 # opentelemetry-instrumentation-sqlalchemy # opentelemetry-instrumentation-threading # opentelemetry-instrumentation-urllib3 -zipp==3.19.2 +zipp==3.20.1 # via importlib-metadata # The following packages are considered to be unsafe in a requirements file: diff --git a/setup.py b/setup.py index 8a76dc2..3a21325 100644 --- a/setup.py +++ b/setup.py @@ -11,6 +11,7 @@ "uuid7 == 0.1.0", "urllib3-odigos == 2.2.2", "odigos-requests == 2.32.3.dev0", + "protobuf == 3.19.4", 'opentelemetry-distro==0.46b0', 'opentelemetry-exporter-otlp-proto-http==1.25.0', 'opentelemetry-instrumentation==0.46b0', From f0165385c50e6c41c4e38c31c01baffa6c319b39 Mon Sep 17 00:00:00 2001 From: Tamir David Date: Tue, 10 Sep 2024 17:08:53 +0300 Subject: [PATCH 3/3] fix: remove not used func and consts --- initializer/lib_handling.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/initializer/lib_handling.py b/initializer/lib_handling.py index 08a552e..97cfdd4 100644 --- a/initializer/lib_handling.py +++ b/initializer/lib_handling.py @@ -1,9 +1,4 @@ import sys -import os -import importlib.util - -# Constants -ODIGOS_PROTOBUF_PATH = '/var/odigos/python/google/protobuf' def reorder_python_path(): paths_to_move = [path for path in sys.path if path.startswith('/var/odigos/')] @@ -44,17 +39,3 @@ def reload_distro_modules() -> None: if any(module.startswith(prefix) for prefix in needed_module_prefixes): del sys.modules[module] - - -def import_module_from_path(unique_name, path): - ''' Import a module from a file path and return it ''' - if not os.path.isfile(path): - raise ImportError(f"Module '{unique_name}' not found at path '{path}'") - - spec = importlib.util.spec_from_file_location(unique_name, path) - - module = importlib.util.module_from_spec(spec) - - spec.loader.exec_module(module) - - return module \ No newline at end of file