uwe ottrembka | 66d91ea | 2020-08-11 10:50:55 +0200 | [diff] [blame] | 1 | # -*- coding: utf-8 -*- |
| 2 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 | # source: dmi/hw_metrics_mgmt_service.proto |
Andrea Campanella | cb990bc | 2020-09-22 12:50:56 +0200 | [diff] [blame] | 4 | """Generated protocol buffer code.""" |
uwe ottrembka | 66d91ea | 2020-08-11 10:50:55 +0200 | [diff] [blame] | 5 | from google.protobuf.internal import enum_type_wrapper |
| 6 | from google.protobuf import descriptor as _descriptor |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 7 | from google.protobuf import descriptor_pool as _descriptor_pool |
uwe ottrembka | 66d91ea | 2020-08-11 10:50:55 +0200 | [diff] [blame] | 8 | from google.protobuf import message as _message |
| 9 | from google.protobuf import reflection as _reflection |
| 10 | from google.protobuf import symbol_database as _symbol_database |
| 11 | # @@protoc_insertion_point(imports) |
| 12 | |
| 13 | _sym_db = _symbol_database.Default() |
| 14 | |
| 15 | |
| 16 | from dmi import commons_pb2 as dmi_dot_commons__pb2 |
| 17 | from dmi import hw_pb2 as dmi_dot_hw__pb2 |
Chandrakanth Nalkudre Gowda | 68590a4 | 2021-04-22 15:19:21 +0530 | [diff] [blame] | 18 | from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 |
uwe ottrembka | 66d91ea | 2020-08-11 10:50:55 +0200 | [diff] [blame] | 19 | |
| 20 | |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 21 | DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!dmi/hw_metrics_mgmt_service.proto\x12\x03\x64mi\x1a\x11\x64mi/commons.proto\x1a\x0c\x64mi/hw.proto\x1a\x1bgoogle/protobuf/empty.proto\"a\n\x0cMetricConfig\x12#\n\tmetric_id\x18\x01 \x01(\x0e\x32\x10.dmi.MetricNames\x12\x15\n\ris_configured\x18\x02 \x01(\x08\x12\x15\n\rpoll_interval\x18\x03 \x01(\r\"3\n\rMetricsConfig\x12\"\n\x07metrics\x18\x01 \x03(\x0b\x32\x11.dmi.MetricConfig\"\xff\x01\n\x13ListMetricsResponse\x12\x1b\n\x06status\x18\x01 \x01(\x0e\x32\x0b.dmi.Status\x12/\n\x06reason\x18\x02 \x01(\x0e\x32\x1f.dmi.ListMetricsResponse.Reason\x12#\n\x07metrics\x18\x03 \x01(\x0b\x32\x12.dmi.MetricsConfig\x12\x15\n\rreason_detail\x18\x04 \x01(\t\"^\n\x06Reason\x12\x14\n\x10UNDEFINED_REASON\x10\x00\x12\x12\n\x0eUNKNOWN_DEVICE\x10\x01\x12\x12\n\x0eINTERNAL_ERROR\x10\x02\x12\x16\n\x12\x44\x45VICE_UNREACHABLE\x10\x03\"\x8d\x01\n\x1bMetricsConfigurationRequest\x12\x1e\n\x0b\x64\x65vice_uuid\x18\x01 \x01(\x0b\x32\t.dmi.Uuid\x12%\n\x07\x63hanges\x18\x02 \x01(\x0b\x32\x12.dmi.MetricsConfigH\x00\x12\x1a\n\x10reset_to_default\x18\x03 \x01(\x08H\x00\x42\x0b\n\toperation\"\xa0\x02\n\x1cMetricsConfigurationResponse\x12\x1b\n\x06status\x18\x01 \x01(\x0e\x32\x0b.dmi.Status\x12\x38\n\x06reason\x18\x02 \x01(\x0e\x32(.dmi.MetricsConfigurationResponse.Reason\x12\x15\n\rreason_detail\x18\x03 \x01(\t\"\x91\x01\n\x06Reason\x12\x14\n\x10UNDEFINED_REASON\x10\x00\x12\x12\n\x0eUNKNOWN_DEVICE\x10\x01\x12\x12\n\x0eINTERNAL_ERROR\x10\x02\x12\x1d\n\x19POLL_INTERVAL_UNSUPPORTED\x10\x03\x12\x12\n\x0eINVALID_METRIC\x10\x04\x12\x16\n\x12\x44\x45VICE_UNREACHABLE\x10\x05\"k\n\x0eMetricMetaData\x12\x1e\n\x0b\x64\x65vice_uuid\x18\x01 \x01(\x0b\x32\t.dmi.Uuid\x12!\n\x0e\x63omponent_uuid\x18\x02 \x01(\x0b\x32\t.dmi.Uuid\x12\x16\n\x0e\x63omponent_name\x18\x03 \x01(\t\"\x84\x01\n\x06Metric\x12#\n\tmetric_id\x18\x01 \x01(\x0e\x32\x10.dmi.MetricNames\x12,\n\x0fmetric_metadata\x18\x02 \x01(\x0b\x32\x13.dmi.MetricMetaData\x12\'\n\x05value\x18\x03 \x01(\x0b\x32\x18.dmi.ComponentSensorData\"_\n\x10GetMetricRequest\x12&\n\tmeta_data\x18\x01 \x01(\x0b\x32\x13.dmi.MetricMetaData\x12#\n\tmetric_id\x18\x02 \x01(\x0e\x32\x10.dmi.MetricNames\"\x9f\x02\n\x11GetMetricResponse\x12\x1b\n\x06status\x18\x01 \x01(\x0e\x32\x0b.dmi.Status\x12-\n\x06reason\x18\x02 \x01(\x0e\x32\x1d.dmi.GetMetricResponse.Reason\x12\x1b\n\x06metric\x18\x03 \x01(\x0b\x32\x0b.dmi.Metric\x12\x15\n\rreason_detail\x18\x04 \x01(\t\"\x89\x01\n\x06Reason\x12\x14\n\x10UNDEFINED_REASON\x10\x00\x12\x12\n\x0eUNKNOWN_DEVICE\x10\x01\x12\x15\n\x11UNKNOWN_COMPONENT\x10\x02\x12\x12\n\x0eINTERNAL_ERROR\x10\x03\x12\x12\n\x0eINVALID_METRIC\x10\x04\x12\x16\n\x12\x44\x45VICE_UNREACHABLE\x10\x05*\xd9\x05\n\x0bMetricNames\x12\x19\n\x15METRIC_NAME_UNDEFINED\x10\x00\x12\x14\n\x10METRIC_FAN_SPEED\x10\x01\x12\x13\n\x0fMETRIC_CPU_TEMP\x10\x64\x12\x1f\n\x1bMETRIC_CPU_USAGE_PERCENTAGE\x10\x65\x12\x1c\n\x17METRIC_TRANSCEIVER_TEMP\x10\xc8\x01\x12\x1f\n\x1aMETRIC_TRANSCEIVER_VOLTAGE\x10\xc9\x01\x12\x1c\n\x17METRIC_TRANSCEIVER_BIAS\x10\xca\x01\x12 \n\x1bMETRIC_TRANSCEIVER_RX_POWER\x10\xcb\x01\x12 \n\x1bMETRIC_TRANSCEIVER_TX_POWER\x10\xcc\x01\x12\"\n\x1dMETRIC_TRANSCEIVER_WAVELENGTH\x10\xcd\x01\x12\x15\n\x10METRIC_DISK_TEMP\x10\xac\x02\x12\x19\n\x14METRIC_DISK_CAPACITY\x10\xad\x02\x12\x16\n\x11METRIC_DISK_USAGE\x10\xae\x02\x12!\n\x1cMETRIC_DISK_USAGE_PERCENTAGE\x10\xaf\x02\x12&\n!METRIC_DISK_READ_WRITE_PERCENTAGE\x10\xb0\x02\x12(\n#METRIC_DISK_FAULTY_CELLS_PERCENTAGE\x10\xb1\x02\x12\x14\n\x0fMETRIC_RAM_TEMP\x10\x90\x03\x12\x18\n\x13METRIC_RAM_CAPACITY\x10\x91\x03\x12\x15\n\x10METRIC_RAM_USAGE\x10\x92\x03\x12 \n\x1bMETRIC_RAM_USAGE_PERCENTAGE\x10\x93\x03\x12\x15\n\x10METRIC_POWER_MAX\x10\xf4\x03\x12\x17\n\x12METRIC_POWER_USAGE\x10\xf5\x03\x12\"\n\x1dMETRIC_POWER_USAGE_PERCENTAGE\x10\xf6\x03\x12\"\n\x1dMETRIC_INNER_SURROUNDING_TEMP\x10\xd8\x04\x32\xb1\x02\n\x1eNativeMetricsManagementService\x12\x38\n\x0bListMetrics\x12\x0f.dmi.HardwareID\x1a\x18.dmi.ListMetricsResponse\x12\x61\n\x1aUpdateMetricsConfiguration\x12 .dmi.MetricsConfigurationRequest\x1a!.dmi.MetricsConfigurationResponse\x12:\n\tGetMetric\x12\x15.dmi.GetMetricRequest\x1a\x16.dmi.GetMetricResponse\x12\x36\n\rStreamMetrics\x12\x16.google.protobuf.Empty\x1a\x0b.dmi.Metric0\x01\x42;Z9github.com/opencord/device-management-interface/v3/go/dmib\x06proto3') |
uwe ottrembka | 66d91ea | 2020-08-11 10:50:55 +0200 | [diff] [blame] | 22 | |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 23 | _METRICNAMES = DESCRIPTOR.enum_types_by_name['MetricNames'] |
uwe ottrembka | 66d91ea | 2020-08-11 10:50:55 +0200 | [diff] [blame] | 24 | MetricNames = enum_type_wrapper.EnumTypeWrapper(_METRICNAMES) |
| 25 | METRIC_NAME_UNDEFINED = 0 |
| 26 | METRIC_FAN_SPEED = 1 |
| 27 | METRIC_CPU_TEMP = 100 |
| 28 | METRIC_CPU_USAGE_PERCENTAGE = 101 |
| 29 | METRIC_TRANSCEIVER_TEMP = 200 |
| 30 | METRIC_TRANSCEIVER_VOLTAGE = 201 |
| 31 | METRIC_TRANSCEIVER_BIAS = 202 |
| 32 | METRIC_TRANSCEIVER_RX_POWER = 203 |
| 33 | METRIC_TRANSCEIVER_TX_POWER = 204 |
| 34 | METRIC_TRANSCEIVER_WAVELENGTH = 205 |
| 35 | METRIC_DISK_TEMP = 300 |
| 36 | METRIC_DISK_CAPACITY = 301 |
| 37 | METRIC_DISK_USAGE = 302 |
| 38 | METRIC_DISK_USAGE_PERCENTAGE = 303 |
| 39 | METRIC_DISK_READ_WRITE_PERCENTAGE = 304 |
| 40 | METRIC_DISK_FAULTY_CELLS_PERCENTAGE = 305 |
| 41 | METRIC_RAM_TEMP = 400 |
| 42 | METRIC_RAM_CAPACITY = 401 |
| 43 | METRIC_RAM_USAGE = 402 |
| 44 | METRIC_RAM_USAGE_PERCENTAGE = 403 |
| 45 | METRIC_POWER_MAX = 500 |
| 46 | METRIC_POWER_USAGE = 501 |
| 47 | METRIC_POWER_USAGE_PERCENTAGE = 502 |
| 48 | METRIC_INNER_SURROUNDING_TEMP = 600 |
| 49 | |
| 50 | |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 51 | _METRICCONFIG = DESCRIPTOR.message_types_by_name['MetricConfig'] |
| 52 | _METRICSCONFIG = DESCRIPTOR.message_types_by_name['MetricsConfig'] |
| 53 | _LISTMETRICSRESPONSE = DESCRIPTOR.message_types_by_name['ListMetricsResponse'] |
| 54 | _METRICSCONFIGURATIONREQUEST = DESCRIPTOR.message_types_by_name['MetricsConfigurationRequest'] |
| 55 | _METRICSCONFIGURATIONRESPONSE = DESCRIPTOR.message_types_by_name['MetricsConfigurationResponse'] |
| 56 | _METRICMETADATA = DESCRIPTOR.message_types_by_name['MetricMetaData'] |
| 57 | _METRIC = DESCRIPTOR.message_types_by_name['Metric'] |
| 58 | _GETMETRICREQUEST = DESCRIPTOR.message_types_by_name['GetMetricRequest'] |
| 59 | _GETMETRICRESPONSE = DESCRIPTOR.message_types_by_name['GetMetricResponse'] |
| 60 | _LISTMETRICSRESPONSE_REASON = _LISTMETRICSRESPONSE.enum_types_by_name['Reason'] |
| 61 | _METRICSCONFIGURATIONRESPONSE_REASON = _METRICSCONFIGURATIONRESPONSE.enum_types_by_name['Reason'] |
| 62 | _GETMETRICRESPONSE_REASON = _GETMETRICRESPONSE.enum_types_by_name['Reason'] |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 63 | MetricConfig = _reflection.GeneratedProtocolMessageType('MetricConfig', (_message.Message,), { |
| 64 | 'DESCRIPTOR' : _METRICCONFIG, |
| 65 | '__module__' : 'dmi.hw_metrics_mgmt_service_pb2' |
uwe ottrembka | 66d91ea | 2020-08-11 10:50:55 +0200 | [diff] [blame] | 66 | # @@protoc_insertion_point(class_scope:dmi.MetricConfig) |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 67 | }) |
uwe ottrembka | 66d91ea | 2020-08-11 10:50:55 +0200 | [diff] [blame] | 68 | _sym_db.RegisterMessage(MetricConfig) |
| 69 | |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 70 | MetricsConfig = _reflection.GeneratedProtocolMessageType('MetricsConfig', (_message.Message,), { |
| 71 | 'DESCRIPTOR' : _METRICSCONFIG, |
| 72 | '__module__' : 'dmi.hw_metrics_mgmt_service_pb2' |
uwe ottrembka | 66d91ea | 2020-08-11 10:50:55 +0200 | [diff] [blame] | 73 | # @@protoc_insertion_point(class_scope:dmi.MetricsConfig) |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 74 | }) |
uwe ottrembka | 66d91ea | 2020-08-11 10:50:55 +0200 | [diff] [blame] | 75 | _sym_db.RegisterMessage(MetricsConfig) |
| 76 | |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 77 | ListMetricsResponse = _reflection.GeneratedProtocolMessageType('ListMetricsResponse', (_message.Message,), { |
| 78 | 'DESCRIPTOR' : _LISTMETRICSRESPONSE, |
| 79 | '__module__' : 'dmi.hw_metrics_mgmt_service_pb2' |
uwe ottrembka | 66d91ea | 2020-08-11 10:50:55 +0200 | [diff] [blame] | 80 | # @@protoc_insertion_point(class_scope:dmi.ListMetricsResponse) |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 81 | }) |
uwe ottrembka | 66d91ea | 2020-08-11 10:50:55 +0200 | [diff] [blame] | 82 | _sym_db.RegisterMessage(ListMetricsResponse) |
| 83 | |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 84 | MetricsConfigurationRequest = _reflection.GeneratedProtocolMessageType('MetricsConfigurationRequest', (_message.Message,), { |
| 85 | 'DESCRIPTOR' : _METRICSCONFIGURATIONREQUEST, |
| 86 | '__module__' : 'dmi.hw_metrics_mgmt_service_pb2' |
uwe ottrembka | 66d91ea | 2020-08-11 10:50:55 +0200 | [diff] [blame] | 87 | # @@protoc_insertion_point(class_scope:dmi.MetricsConfigurationRequest) |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 88 | }) |
uwe ottrembka | 66d91ea | 2020-08-11 10:50:55 +0200 | [diff] [blame] | 89 | _sym_db.RegisterMessage(MetricsConfigurationRequest) |
| 90 | |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 91 | MetricsConfigurationResponse = _reflection.GeneratedProtocolMessageType('MetricsConfigurationResponse', (_message.Message,), { |
| 92 | 'DESCRIPTOR' : _METRICSCONFIGURATIONRESPONSE, |
| 93 | '__module__' : 'dmi.hw_metrics_mgmt_service_pb2' |
uwe ottrembka | 66d91ea | 2020-08-11 10:50:55 +0200 | [diff] [blame] | 94 | # @@protoc_insertion_point(class_scope:dmi.MetricsConfigurationResponse) |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 95 | }) |
uwe ottrembka | 66d91ea | 2020-08-11 10:50:55 +0200 | [diff] [blame] | 96 | _sym_db.RegisterMessage(MetricsConfigurationResponse) |
| 97 | |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 98 | MetricMetaData = _reflection.GeneratedProtocolMessageType('MetricMetaData', (_message.Message,), { |
| 99 | 'DESCRIPTOR' : _METRICMETADATA, |
| 100 | '__module__' : 'dmi.hw_metrics_mgmt_service_pb2' |
uwe ottrembka | 66d91ea | 2020-08-11 10:50:55 +0200 | [diff] [blame] | 101 | # @@protoc_insertion_point(class_scope:dmi.MetricMetaData) |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 102 | }) |
uwe ottrembka | 66d91ea | 2020-08-11 10:50:55 +0200 | [diff] [blame] | 103 | _sym_db.RegisterMessage(MetricMetaData) |
| 104 | |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 105 | Metric = _reflection.GeneratedProtocolMessageType('Metric', (_message.Message,), { |
| 106 | 'DESCRIPTOR' : _METRIC, |
| 107 | '__module__' : 'dmi.hw_metrics_mgmt_service_pb2' |
uwe ottrembka | 66d91ea | 2020-08-11 10:50:55 +0200 | [diff] [blame] | 108 | # @@protoc_insertion_point(class_scope:dmi.Metric) |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 109 | }) |
uwe ottrembka | 66d91ea | 2020-08-11 10:50:55 +0200 | [diff] [blame] | 110 | _sym_db.RegisterMessage(Metric) |
| 111 | |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 112 | GetMetricRequest = _reflection.GeneratedProtocolMessageType('GetMetricRequest', (_message.Message,), { |
| 113 | 'DESCRIPTOR' : _GETMETRICREQUEST, |
| 114 | '__module__' : 'dmi.hw_metrics_mgmt_service_pb2' |
uwe ottrembka | 66d91ea | 2020-08-11 10:50:55 +0200 | [diff] [blame] | 115 | # @@protoc_insertion_point(class_scope:dmi.GetMetricRequest) |
uwe ottrembka | 5ea5c0a | 2020-08-31 10:37:35 +0200 | [diff] [blame] | 116 | }) |
uwe ottrembka | 66d91ea | 2020-08-11 10:50:55 +0200 | [diff] [blame] | 117 | _sym_db.RegisterMessage(GetMetricRequest) |
| 118 | |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 119 | GetMetricResponse = _reflection.GeneratedProtocolMessageType('GetMetricResponse', (_message.Message,), { |
| 120 | 'DESCRIPTOR' : _GETMETRICRESPONSE, |
| 121 | '__module__' : 'dmi.hw_metrics_mgmt_service_pb2' |
| 122 | # @@protoc_insertion_point(class_scope:dmi.GetMetricResponse) |
| 123 | }) |
| 124 | _sym_db.RegisterMessage(GetMetricResponse) |
| 125 | |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 126 | _NATIVEMETRICSMANAGEMENTSERVICE = DESCRIPTOR.services_by_name['NativeMetricsManagementService'] |
| 127 | if _descriptor._USE_C_DESCRIPTORS == False: |
uwe ottrembka | 66d91ea | 2020-08-11 10:50:55 +0200 | [diff] [blame] | 128 | |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 129 | DESCRIPTOR._options = None |
| 130 | DESCRIPTOR._serialized_options = b'Z9github.com/opencord/device-management-interface/v3/go/dmi' |
| 131 | _METRICNAMES._serialized_start=1581 |
| 132 | _METRICNAMES._serialized_end=2310 |
| 133 | _METRICCONFIG._serialized_start=104 |
| 134 | _METRICCONFIG._serialized_end=201 |
| 135 | _METRICSCONFIG._serialized_start=203 |
| 136 | _METRICSCONFIG._serialized_end=254 |
| 137 | _LISTMETRICSRESPONSE._serialized_start=257 |
| 138 | _LISTMETRICSRESPONSE._serialized_end=512 |
| 139 | _LISTMETRICSRESPONSE_REASON._serialized_start=418 |
| 140 | _LISTMETRICSRESPONSE_REASON._serialized_end=512 |
| 141 | _METRICSCONFIGURATIONREQUEST._serialized_start=515 |
| 142 | _METRICSCONFIGURATIONREQUEST._serialized_end=656 |
| 143 | _METRICSCONFIGURATIONRESPONSE._serialized_start=659 |
| 144 | _METRICSCONFIGURATIONRESPONSE._serialized_end=947 |
| 145 | _METRICSCONFIGURATIONRESPONSE_REASON._serialized_start=802 |
| 146 | _METRICSCONFIGURATIONRESPONSE_REASON._serialized_end=947 |
| 147 | _METRICMETADATA._serialized_start=949 |
| 148 | _METRICMETADATA._serialized_end=1056 |
| 149 | _METRIC._serialized_start=1059 |
| 150 | _METRIC._serialized_end=1191 |
| 151 | _GETMETRICREQUEST._serialized_start=1193 |
| 152 | _GETMETRICREQUEST._serialized_end=1288 |
| 153 | _GETMETRICRESPONSE._serialized_start=1291 |
| 154 | _GETMETRICRESPONSE._serialized_end=1578 |
| 155 | _GETMETRICRESPONSE_REASON._serialized_start=1441 |
| 156 | _GETMETRICRESPONSE_REASON._serialized_end=1578 |
| 157 | _NATIVEMETRICSMANAGEMENTSERVICE._serialized_start=2313 |
| 158 | _NATIVEMETRICSMANAGEMENTSERVICE._serialized_end=2618 |
uwe ottrembka | 66d91ea | 2020-08-11 10:50:55 +0200 | [diff] [blame] | 159 | # @@protoc_insertion_point(module_scope) |