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 |
| 4 | |
| 5 | import sys |
| 6 | _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) |
| 7 | from google.protobuf.internal import enum_type_wrapper |
| 8 | from google.protobuf import descriptor as _descriptor |
| 9 | from google.protobuf import message as _message |
| 10 | from google.protobuf import reflection as _reflection |
| 11 | from google.protobuf import symbol_database as _symbol_database |
| 12 | # @@protoc_insertion_point(imports) |
| 13 | |
| 14 | _sym_db = _symbol_database.Default() |
| 15 | |
| 16 | |
| 17 | from dmi import commons_pb2 as dmi_dot_commons__pb2 |
| 18 | from dmi import hw_pb2 as dmi_dot_hw__pb2 |
| 19 | |
| 20 | |
| 21 | DESCRIPTOR = _descriptor.FileDescriptor( |
| 22 | name='dmi/hw_metrics_mgmt_service.proto', |
| 23 | package='dmi', |
| 24 | syntax='proto3', |
| 25 | serialized_options=_b('Z9github.com/opencord/device-management-interface/v3/go/dmi'), |
| 26 | serialized_pb=_b('\n!dmi/hw_metrics_mgmt_service.proto\x12\x03\x64mi\x1a\x11\x64mi/commons.proto\x1a\x0c\x64mi/hw.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\"t\n\x13ListMetricsResponse\x12\x1b\n\x06status\x18\x01 \x01(\x0e\x32\x0b.dmi.Status\x12\x1b\n\x06reason\x18\x02 \x01(\x0e\x32\x0b.dmi.Reason\x12#\n\x07metrics\x18\x03 \x01(\x0b\x32\x12.dmi.MetricsConfig\"\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\"X\n\x1cMetricsConfigurationResponse\x12\x1b\n\x06status\x18\x01 \x01(\x0e\x32\x0b.dmi.Status\x12\x1b\n\x06reason\x18\x02 \x01(\x0e\x32\x0b.dmi.Reason\"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*\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\xee\x01\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\x0b.dmi.MetricB;Z9github.com/opencord/device-management-interface/v3/go/dmib\x06proto3') |
| 27 | , |
| 28 | dependencies=[dmi_dot_commons__pb2.DESCRIPTOR,dmi_dot_hw__pb2.DESCRIPTOR,]) |
| 29 | |
| 30 | _METRICNAMES = _descriptor.EnumDescriptor( |
| 31 | name='MetricNames', |
| 32 | full_name='dmi.MetricNames', |
| 33 | filename=None, |
| 34 | file=DESCRIPTOR, |
| 35 | values=[ |
| 36 | _descriptor.EnumValueDescriptor( |
| 37 | name='METRIC_NAME_UNDEFINED', index=0, number=0, |
| 38 | serialized_options=None, |
| 39 | type=None), |
| 40 | _descriptor.EnumValueDescriptor( |
| 41 | name='METRIC_FAN_SPEED', index=1, number=1, |
| 42 | serialized_options=None, |
| 43 | type=None), |
| 44 | _descriptor.EnumValueDescriptor( |
| 45 | name='METRIC_CPU_TEMP', index=2, number=100, |
| 46 | serialized_options=None, |
| 47 | type=None), |
| 48 | _descriptor.EnumValueDescriptor( |
| 49 | name='METRIC_CPU_USAGE_PERCENTAGE', index=3, number=101, |
| 50 | serialized_options=None, |
| 51 | type=None), |
| 52 | _descriptor.EnumValueDescriptor( |
| 53 | name='METRIC_TRANSCEIVER_TEMP', index=4, number=200, |
| 54 | serialized_options=None, |
| 55 | type=None), |
| 56 | _descriptor.EnumValueDescriptor( |
| 57 | name='METRIC_TRANSCEIVER_VOLTAGE', index=5, number=201, |
| 58 | serialized_options=None, |
| 59 | type=None), |
| 60 | _descriptor.EnumValueDescriptor( |
| 61 | name='METRIC_TRANSCEIVER_BIAS', index=6, number=202, |
| 62 | serialized_options=None, |
| 63 | type=None), |
| 64 | _descriptor.EnumValueDescriptor( |
| 65 | name='METRIC_TRANSCEIVER_RX_POWER', index=7, number=203, |
| 66 | serialized_options=None, |
| 67 | type=None), |
| 68 | _descriptor.EnumValueDescriptor( |
| 69 | name='METRIC_TRANSCEIVER_TX_POWER', index=8, number=204, |
| 70 | serialized_options=None, |
| 71 | type=None), |
| 72 | _descriptor.EnumValueDescriptor( |
| 73 | name='METRIC_TRANSCEIVER_WAVELENGTH', index=9, number=205, |
| 74 | serialized_options=None, |
| 75 | type=None), |
| 76 | _descriptor.EnumValueDescriptor( |
| 77 | name='METRIC_DISK_TEMP', index=10, number=300, |
| 78 | serialized_options=None, |
| 79 | type=None), |
| 80 | _descriptor.EnumValueDescriptor( |
| 81 | name='METRIC_DISK_CAPACITY', index=11, number=301, |
| 82 | serialized_options=None, |
| 83 | type=None), |
| 84 | _descriptor.EnumValueDescriptor( |
| 85 | name='METRIC_DISK_USAGE', index=12, number=302, |
| 86 | serialized_options=None, |
| 87 | type=None), |
| 88 | _descriptor.EnumValueDescriptor( |
| 89 | name='METRIC_DISK_USAGE_PERCENTAGE', index=13, number=303, |
| 90 | serialized_options=None, |
| 91 | type=None), |
| 92 | _descriptor.EnumValueDescriptor( |
| 93 | name='METRIC_DISK_READ_WRITE_PERCENTAGE', index=14, number=304, |
| 94 | serialized_options=None, |
| 95 | type=None), |
| 96 | _descriptor.EnumValueDescriptor( |
| 97 | name='METRIC_DISK_FAULTY_CELLS_PERCENTAGE', index=15, number=305, |
| 98 | serialized_options=None, |
| 99 | type=None), |
| 100 | _descriptor.EnumValueDescriptor( |
| 101 | name='METRIC_RAM_TEMP', index=16, number=400, |
| 102 | serialized_options=None, |
| 103 | type=None), |
| 104 | _descriptor.EnumValueDescriptor( |
| 105 | name='METRIC_RAM_CAPACITY', index=17, number=401, |
| 106 | serialized_options=None, |
| 107 | type=None), |
| 108 | _descriptor.EnumValueDescriptor( |
| 109 | name='METRIC_RAM_USAGE', index=18, number=402, |
| 110 | serialized_options=None, |
| 111 | type=None), |
| 112 | _descriptor.EnumValueDescriptor( |
| 113 | name='METRIC_RAM_USAGE_PERCENTAGE', index=19, number=403, |
| 114 | serialized_options=None, |
| 115 | type=None), |
| 116 | _descriptor.EnumValueDescriptor( |
| 117 | name='METRIC_POWER_MAX', index=20, number=500, |
| 118 | serialized_options=None, |
| 119 | type=None), |
| 120 | _descriptor.EnumValueDescriptor( |
| 121 | name='METRIC_POWER_USAGE', index=21, number=501, |
| 122 | serialized_options=None, |
| 123 | type=None), |
| 124 | _descriptor.EnumValueDescriptor( |
| 125 | name='METRIC_POWER_USAGE_PERCENTAGE', index=22, number=502, |
| 126 | serialized_options=None, |
| 127 | type=None), |
| 128 | _descriptor.EnumValueDescriptor( |
| 129 | name='METRIC_INNER_SURROUNDING_TEMP', index=23, number=600, |
| 130 | serialized_options=None, |
| 131 | type=None), |
| 132 | ], |
| 133 | containing_type=None, |
| 134 | serialized_options=None, |
| 135 | serialized_start=921, |
| 136 | serialized_end=1650, |
| 137 | ) |
| 138 | _sym_db.RegisterEnumDescriptor(_METRICNAMES) |
| 139 | |
| 140 | MetricNames = enum_type_wrapper.EnumTypeWrapper(_METRICNAMES) |
| 141 | METRIC_NAME_UNDEFINED = 0 |
| 142 | METRIC_FAN_SPEED = 1 |
| 143 | METRIC_CPU_TEMP = 100 |
| 144 | METRIC_CPU_USAGE_PERCENTAGE = 101 |
| 145 | METRIC_TRANSCEIVER_TEMP = 200 |
| 146 | METRIC_TRANSCEIVER_VOLTAGE = 201 |
| 147 | METRIC_TRANSCEIVER_BIAS = 202 |
| 148 | METRIC_TRANSCEIVER_RX_POWER = 203 |
| 149 | METRIC_TRANSCEIVER_TX_POWER = 204 |
| 150 | METRIC_TRANSCEIVER_WAVELENGTH = 205 |
| 151 | METRIC_DISK_TEMP = 300 |
| 152 | METRIC_DISK_CAPACITY = 301 |
| 153 | METRIC_DISK_USAGE = 302 |
| 154 | METRIC_DISK_USAGE_PERCENTAGE = 303 |
| 155 | METRIC_DISK_READ_WRITE_PERCENTAGE = 304 |
| 156 | METRIC_DISK_FAULTY_CELLS_PERCENTAGE = 305 |
| 157 | METRIC_RAM_TEMP = 400 |
| 158 | METRIC_RAM_CAPACITY = 401 |
| 159 | METRIC_RAM_USAGE = 402 |
| 160 | METRIC_RAM_USAGE_PERCENTAGE = 403 |
| 161 | METRIC_POWER_MAX = 500 |
| 162 | METRIC_POWER_USAGE = 501 |
| 163 | METRIC_POWER_USAGE_PERCENTAGE = 502 |
| 164 | METRIC_INNER_SURROUNDING_TEMP = 600 |
| 165 | |
| 166 | |
| 167 | |
| 168 | _METRICCONFIG = _descriptor.Descriptor( |
| 169 | name='MetricConfig', |
| 170 | full_name='dmi.MetricConfig', |
| 171 | filename=None, |
| 172 | file=DESCRIPTOR, |
| 173 | containing_type=None, |
| 174 | fields=[ |
| 175 | _descriptor.FieldDescriptor( |
| 176 | name='metric_id', full_name='dmi.MetricConfig.metric_id', index=0, |
| 177 | number=1, type=14, cpp_type=8, label=1, |
| 178 | has_default_value=False, default_value=0, |
| 179 | message_type=None, enum_type=None, containing_type=None, |
| 180 | is_extension=False, extension_scope=None, |
| 181 | serialized_options=None, file=DESCRIPTOR), |
| 182 | _descriptor.FieldDescriptor( |
| 183 | name='is_configured', full_name='dmi.MetricConfig.is_configured', index=1, |
| 184 | number=2, type=8, cpp_type=7, label=1, |
| 185 | has_default_value=False, default_value=False, |
| 186 | message_type=None, enum_type=None, containing_type=None, |
| 187 | is_extension=False, extension_scope=None, |
| 188 | serialized_options=None, file=DESCRIPTOR), |
| 189 | _descriptor.FieldDescriptor( |
| 190 | name='poll_interval', full_name='dmi.MetricConfig.poll_interval', index=2, |
| 191 | number=3, type=13, cpp_type=3, label=1, |
| 192 | has_default_value=False, default_value=0, |
| 193 | message_type=None, enum_type=None, containing_type=None, |
| 194 | is_extension=False, extension_scope=None, |
| 195 | serialized_options=None, file=DESCRIPTOR), |
| 196 | ], |
| 197 | extensions=[ |
| 198 | ], |
| 199 | nested_types=[], |
| 200 | enum_types=[ |
| 201 | ], |
| 202 | serialized_options=None, |
| 203 | is_extendable=False, |
| 204 | syntax='proto3', |
| 205 | extension_ranges=[], |
| 206 | oneofs=[ |
| 207 | ], |
| 208 | serialized_start=75, |
| 209 | serialized_end=172, |
| 210 | ) |
| 211 | |
| 212 | |
| 213 | _METRICSCONFIG = _descriptor.Descriptor( |
| 214 | name='MetricsConfig', |
| 215 | full_name='dmi.MetricsConfig', |
| 216 | filename=None, |
| 217 | file=DESCRIPTOR, |
| 218 | containing_type=None, |
| 219 | fields=[ |
| 220 | _descriptor.FieldDescriptor( |
| 221 | name='metrics', full_name='dmi.MetricsConfig.metrics', index=0, |
| 222 | number=1, type=11, cpp_type=10, label=3, |
| 223 | has_default_value=False, default_value=[], |
| 224 | message_type=None, enum_type=None, containing_type=None, |
| 225 | is_extension=False, extension_scope=None, |
| 226 | serialized_options=None, file=DESCRIPTOR), |
| 227 | ], |
| 228 | extensions=[ |
| 229 | ], |
| 230 | nested_types=[], |
| 231 | enum_types=[ |
| 232 | ], |
| 233 | serialized_options=None, |
| 234 | is_extendable=False, |
| 235 | syntax='proto3', |
| 236 | extension_ranges=[], |
| 237 | oneofs=[ |
| 238 | ], |
| 239 | serialized_start=174, |
| 240 | serialized_end=225, |
| 241 | ) |
| 242 | |
| 243 | |
| 244 | _LISTMETRICSRESPONSE = _descriptor.Descriptor( |
| 245 | name='ListMetricsResponse', |
| 246 | full_name='dmi.ListMetricsResponse', |
| 247 | filename=None, |
| 248 | file=DESCRIPTOR, |
| 249 | containing_type=None, |
| 250 | fields=[ |
| 251 | _descriptor.FieldDescriptor( |
| 252 | name='status', full_name='dmi.ListMetricsResponse.status', index=0, |
| 253 | number=1, type=14, cpp_type=8, label=1, |
| 254 | has_default_value=False, default_value=0, |
| 255 | message_type=None, enum_type=None, containing_type=None, |
| 256 | is_extension=False, extension_scope=None, |
| 257 | serialized_options=None, file=DESCRIPTOR), |
| 258 | _descriptor.FieldDescriptor( |
| 259 | name='reason', full_name='dmi.ListMetricsResponse.reason', index=1, |
| 260 | number=2, type=14, cpp_type=8, label=1, |
| 261 | has_default_value=False, default_value=0, |
| 262 | message_type=None, enum_type=None, containing_type=None, |
| 263 | is_extension=False, extension_scope=None, |
| 264 | serialized_options=None, file=DESCRIPTOR), |
| 265 | _descriptor.FieldDescriptor( |
| 266 | name='metrics', full_name='dmi.ListMetricsResponse.metrics', index=2, |
| 267 | number=3, type=11, cpp_type=10, label=1, |
| 268 | has_default_value=False, default_value=None, |
| 269 | message_type=None, enum_type=None, containing_type=None, |
| 270 | is_extension=False, extension_scope=None, |
| 271 | serialized_options=None, file=DESCRIPTOR), |
| 272 | ], |
| 273 | extensions=[ |
| 274 | ], |
| 275 | nested_types=[], |
| 276 | enum_types=[ |
| 277 | ], |
| 278 | serialized_options=None, |
| 279 | is_extendable=False, |
| 280 | syntax='proto3', |
| 281 | extension_ranges=[], |
| 282 | oneofs=[ |
| 283 | ], |
| 284 | serialized_start=227, |
| 285 | serialized_end=343, |
| 286 | ) |
| 287 | |
| 288 | |
| 289 | _METRICSCONFIGURATIONREQUEST = _descriptor.Descriptor( |
| 290 | name='MetricsConfigurationRequest', |
| 291 | full_name='dmi.MetricsConfigurationRequest', |
| 292 | filename=None, |
| 293 | file=DESCRIPTOR, |
| 294 | containing_type=None, |
| 295 | fields=[ |
| 296 | _descriptor.FieldDescriptor( |
| 297 | name='device_uuid', full_name='dmi.MetricsConfigurationRequest.device_uuid', index=0, |
| 298 | number=1, type=11, cpp_type=10, label=1, |
| 299 | has_default_value=False, default_value=None, |
| 300 | message_type=None, enum_type=None, containing_type=None, |
| 301 | is_extension=False, extension_scope=None, |
| 302 | serialized_options=None, file=DESCRIPTOR), |
| 303 | _descriptor.FieldDescriptor( |
| 304 | name='changes', full_name='dmi.MetricsConfigurationRequest.changes', index=1, |
| 305 | number=2, type=11, cpp_type=10, label=1, |
| 306 | has_default_value=False, default_value=None, |
| 307 | message_type=None, enum_type=None, containing_type=None, |
| 308 | is_extension=False, extension_scope=None, |
| 309 | serialized_options=None, file=DESCRIPTOR), |
| 310 | _descriptor.FieldDescriptor( |
| 311 | name='reset_to_default', full_name='dmi.MetricsConfigurationRequest.reset_to_default', index=2, |
| 312 | number=3, type=8, cpp_type=7, label=1, |
| 313 | has_default_value=False, default_value=False, |
| 314 | message_type=None, enum_type=None, containing_type=None, |
| 315 | is_extension=False, extension_scope=None, |
| 316 | serialized_options=None, file=DESCRIPTOR), |
| 317 | ], |
| 318 | extensions=[ |
| 319 | ], |
| 320 | nested_types=[], |
| 321 | enum_types=[ |
| 322 | ], |
| 323 | serialized_options=None, |
| 324 | is_extendable=False, |
| 325 | syntax='proto3', |
| 326 | extension_ranges=[], |
| 327 | oneofs=[ |
| 328 | _descriptor.OneofDescriptor( |
| 329 | name='operation', full_name='dmi.MetricsConfigurationRequest.operation', |
| 330 | index=0, containing_type=None, fields=[]), |
| 331 | ], |
| 332 | serialized_start=346, |
| 333 | serialized_end=487, |
| 334 | ) |
| 335 | |
| 336 | |
| 337 | _METRICSCONFIGURATIONRESPONSE = _descriptor.Descriptor( |
| 338 | name='MetricsConfigurationResponse', |
| 339 | full_name='dmi.MetricsConfigurationResponse', |
| 340 | filename=None, |
| 341 | file=DESCRIPTOR, |
| 342 | containing_type=None, |
| 343 | fields=[ |
| 344 | _descriptor.FieldDescriptor( |
| 345 | name='status', full_name='dmi.MetricsConfigurationResponse.status', index=0, |
| 346 | number=1, type=14, cpp_type=8, label=1, |
| 347 | has_default_value=False, default_value=0, |
| 348 | message_type=None, enum_type=None, containing_type=None, |
| 349 | is_extension=False, extension_scope=None, |
| 350 | serialized_options=None, file=DESCRIPTOR), |
| 351 | _descriptor.FieldDescriptor( |
| 352 | name='reason', full_name='dmi.MetricsConfigurationResponse.reason', index=1, |
| 353 | number=2, type=14, cpp_type=8, label=1, |
| 354 | has_default_value=False, default_value=0, |
| 355 | message_type=None, enum_type=None, containing_type=None, |
| 356 | is_extension=False, extension_scope=None, |
| 357 | serialized_options=None, file=DESCRIPTOR), |
| 358 | ], |
| 359 | extensions=[ |
| 360 | ], |
| 361 | nested_types=[], |
| 362 | enum_types=[ |
| 363 | ], |
| 364 | serialized_options=None, |
| 365 | is_extendable=False, |
| 366 | syntax='proto3', |
| 367 | extension_ranges=[], |
| 368 | oneofs=[ |
| 369 | ], |
| 370 | serialized_start=489, |
| 371 | serialized_end=577, |
| 372 | ) |
| 373 | |
| 374 | |
| 375 | _METRICMETADATA = _descriptor.Descriptor( |
| 376 | name='MetricMetaData', |
| 377 | full_name='dmi.MetricMetaData', |
| 378 | filename=None, |
| 379 | file=DESCRIPTOR, |
| 380 | containing_type=None, |
| 381 | fields=[ |
| 382 | _descriptor.FieldDescriptor( |
| 383 | name='device_uuid', full_name='dmi.MetricMetaData.device_uuid', index=0, |
| 384 | number=1, type=11, cpp_type=10, label=1, |
| 385 | has_default_value=False, default_value=None, |
| 386 | message_type=None, enum_type=None, containing_type=None, |
| 387 | is_extension=False, extension_scope=None, |
| 388 | serialized_options=None, file=DESCRIPTOR), |
| 389 | _descriptor.FieldDescriptor( |
| 390 | name='component_uuid', full_name='dmi.MetricMetaData.component_uuid', index=1, |
| 391 | number=2, type=11, cpp_type=10, label=1, |
| 392 | has_default_value=False, default_value=None, |
| 393 | message_type=None, enum_type=None, containing_type=None, |
| 394 | is_extension=False, extension_scope=None, |
| 395 | serialized_options=None, file=DESCRIPTOR), |
| 396 | _descriptor.FieldDescriptor( |
| 397 | name='component_name', full_name='dmi.MetricMetaData.component_name', index=2, |
| 398 | number=3, type=9, cpp_type=9, label=1, |
| 399 | has_default_value=False, default_value=_b("").decode('utf-8'), |
| 400 | message_type=None, enum_type=None, containing_type=None, |
| 401 | is_extension=False, extension_scope=None, |
| 402 | serialized_options=None, file=DESCRIPTOR), |
| 403 | ], |
| 404 | extensions=[ |
| 405 | ], |
| 406 | nested_types=[], |
| 407 | enum_types=[ |
| 408 | ], |
| 409 | serialized_options=None, |
| 410 | is_extendable=False, |
| 411 | syntax='proto3', |
| 412 | extension_ranges=[], |
| 413 | oneofs=[ |
| 414 | ], |
| 415 | serialized_start=579, |
| 416 | serialized_end=686, |
| 417 | ) |
| 418 | |
| 419 | |
| 420 | _METRIC = _descriptor.Descriptor( |
| 421 | name='Metric', |
| 422 | full_name='dmi.Metric', |
| 423 | filename=None, |
| 424 | file=DESCRIPTOR, |
| 425 | containing_type=None, |
| 426 | fields=[ |
| 427 | _descriptor.FieldDescriptor( |
| 428 | name='metric_id', full_name='dmi.Metric.metric_id', index=0, |
| 429 | number=1, type=14, cpp_type=8, label=1, |
| 430 | has_default_value=False, default_value=0, |
| 431 | message_type=None, enum_type=None, containing_type=None, |
| 432 | is_extension=False, extension_scope=None, |
| 433 | serialized_options=None, file=DESCRIPTOR), |
| 434 | _descriptor.FieldDescriptor( |
| 435 | name='metric_metadata', full_name='dmi.Metric.metric_metadata', index=1, |
| 436 | number=2, type=11, cpp_type=10, label=1, |
| 437 | has_default_value=False, default_value=None, |
| 438 | message_type=None, enum_type=None, containing_type=None, |
| 439 | is_extension=False, extension_scope=None, |
| 440 | serialized_options=None, file=DESCRIPTOR), |
| 441 | _descriptor.FieldDescriptor( |
| 442 | name='value', full_name='dmi.Metric.value', index=2, |
| 443 | number=3, type=11, cpp_type=10, label=1, |
| 444 | has_default_value=False, default_value=None, |
| 445 | message_type=None, enum_type=None, containing_type=None, |
| 446 | is_extension=False, extension_scope=None, |
| 447 | serialized_options=None, file=DESCRIPTOR), |
| 448 | ], |
| 449 | extensions=[ |
| 450 | ], |
| 451 | nested_types=[], |
| 452 | enum_types=[ |
| 453 | ], |
| 454 | serialized_options=None, |
| 455 | is_extendable=False, |
| 456 | syntax='proto3', |
| 457 | extension_ranges=[], |
| 458 | oneofs=[ |
| 459 | ], |
| 460 | serialized_start=689, |
| 461 | serialized_end=821, |
| 462 | ) |
| 463 | |
| 464 | |
| 465 | _GETMETRICREQUEST = _descriptor.Descriptor( |
| 466 | name='GetMetricRequest', |
| 467 | full_name='dmi.GetMetricRequest', |
| 468 | filename=None, |
| 469 | file=DESCRIPTOR, |
| 470 | containing_type=None, |
| 471 | fields=[ |
| 472 | _descriptor.FieldDescriptor( |
| 473 | name='meta_data', full_name='dmi.GetMetricRequest.meta_data', index=0, |
| 474 | number=1, type=11, cpp_type=10, label=1, |
| 475 | has_default_value=False, default_value=None, |
| 476 | message_type=None, enum_type=None, containing_type=None, |
| 477 | is_extension=False, extension_scope=None, |
| 478 | serialized_options=None, file=DESCRIPTOR), |
| 479 | _descriptor.FieldDescriptor( |
| 480 | name='metric_id', full_name='dmi.GetMetricRequest.metric_id', index=1, |
| 481 | number=2, type=14, cpp_type=8, label=1, |
| 482 | has_default_value=False, default_value=0, |
| 483 | message_type=None, enum_type=None, containing_type=None, |
| 484 | is_extension=False, extension_scope=None, |
| 485 | serialized_options=None, file=DESCRIPTOR), |
| 486 | ], |
| 487 | extensions=[ |
| 488 | ], |
| 489 | nested_types=[], |
| 490 | enum_types=[ |
| 491 | ], |
| 492 | serialized_options=None, |
| 493 | is_extendable=False, |
| 494 | syntax='proto3', |
| 495 | extension_ranges=[], |
| 496 | oneofs=[ |
| 497 | ], |
| 498 | serialized_start=823, |
| 499 | serialized_end=918, |
| 500 | ) |
| 501 | |
| 502 | _METRICCONFIG.fields_by_name['metric_id'].enum_type = _METRICNAMES |
| 503 | _METRICSCONFIG.fields_by_name['metrics'].message_type = _METRICCONFIG |
| 504 | _LISTMETRICSRESPONSE.fields_by_name['status'].enum_type = dmi_dot_commons__pb2._STATUS |
| 505 | _LISTMETRICSRESPONSE.fields_by_name['reason'].enum_type = dmi_dot_commons__pb2._REASON |
| 506 | _LISTMETRICSRESPONSE.fields_by_name['metrics'].message_type = _METRICSCONFIG |
| 507 | _METRICSCONFIGURATIONREQUEST.fields_by_name['device_uuid'].message_type = dmi_dot_hw__pb2._UUID |
| 508 | _METRICSCONFIGURATIONREQUEST.fields_by_name['changes'].message_type = _METRICSCONFIG |
| 509 | _METRICSCONFIGURATIONREQUEST.oneofs_by_name['operation'].fields.append( |
| 510 | _METRICSCONFIGURATIONREQUEST.fields_by_name['changes']) |
| 511 | _METRICSCONFIGURATIONREQUEST.fields_by_name['changes'].containing_oneof = _METRICSCONFIGURATIONREQUEST.oneofs_by_name['operation'] |
| 512 | _METRICSCONFIGURATIONREQUEST.oneofs_by_name['operation'].fields.append( |
| 513 | _METRICSCONFIGURATIONREQUEST.fields_by_name['reset_to_default']) |
| 514 | _METRICSCONFIGURATIONREQUEST.fields_by_name['reset_to_default'].containing_oneof = _METRICSCONFIGURATIONREQUEST.oneofs_by_name['operation'] |
| 515 | _METRICSCONFIGURATIONRESPONSE.fields_by_name['status'].enum_type = dmi_dot_commons__pb2._STATUS |
| 516 | _METRICSCONFIGURATIONRESPONSE.fields_by_name['reason'].enum_type = dmi_dot_commons__pb2._REASON |
| 517 | _METRICMETADATA.fields_by_name['device_uuid'].message_type = dmi_dot_hw__pb2._UUID |
| 518 | _METRICMETADATA.fields_by_name['component_uuid'].message_type = dmi_dot_hw__pb2._UUID |
| 519 | _METRIC.fields_by_name['metric_id'].enum_type = _METRICNAMES |
| 520 | _METRIC.fields_by_name['metric_metadata'].message_type = _METRICMETADATA |
| 521 | _METRIC.fields_by_name['value'].message_type = dmi_dot_hw__pb2._COMPONENTSENSORDATA |
| 522 | _GETMETRICREQUEST.fields_by_name['meta_data'].message_type = _METRICMETADATA |
| 523 | _GETMETRICREQUEST.fields_by_name['metric_id'].enum_type = _METRICNAMES |
| 524 | DESCRIPTOR.message_types_by_name['MetricConfig'] = _METRICCONFIG |
| 525 | DESCRIPTOR.message_types_by_name['MetricsConfig'] = _METRICSCONFIG |
| 526 | DESCRIPTOR.message_types_by_name['ListMetricsResponse'] = _LISTMETRICSRESPONSE |
| 527 | DESCRIPTOR.message_types_by_name['MetricsConfigurationRequest'] = _METRICSCONFIGURATIONREQUEST |
| 528 | DESCRIPTOR.message_types_by_name['MetricsConfigurationResponse'] = _METRICSCONFIGURATIONRESPONSE |
| 529 | DESCRIPTOR.message_types_by_name['MetricMetaData'] = _METRICMETADATA |
| 530 | DESCRIPTOR.message_types_by_name['Metric'] = _METRIC |
| 531 | DESCRIPTOR.message_types_by_name['GetMetricRequest'] = _GETMETRICREQUEST |
| 532 | DESCRIPTOR.enum_types_by_name['MetricNames'] = _METRICNAMES |
| 533 | _sym_db.RegisterFileDescriptor(DESCRIPTOR) |
| 534 | |
| 535 | MetricConfig = _reflection.GeneratedProtocolMessageType('MetricConfig', (_message.Message,), dict( |
| 536 | DESCRIPTOR = _METRICCONFIG, |
| 537 | __module__ = 'dmi.hw_metrics_mgmt_service_pb2' |
| 538 | # @@protoc_insertion_point(class_scope:dmi.MetricConfig) |
| 539 | )) |
| 540 | _sym_db.RegisterMessage(MetricConfig) |
| 541 | |
| 542 | MetricsConfig = _reflection.GeneratedProtocolMessageType('MetricsConfig', (_message.Message,), dict( |
| 543 | DESCRIPTOR = _METRICSCONFIG, |
| 544 | __module__ = 'dmi.hw_metrics_mgmt_service_pb2' |
| 545 | # @@protoc_insertion_point(class_scope:dmi.MetricsConfig) |
| 546 | )) |
| 547 | _sym_db.RegisterMessage(MetricsConfig) |
| 548 | |
| 549 | ListMetricsResponse = _reflection.GeneratedProtocolMessageType('ListMetricsResponse', (_message.Message,), dict( |
| 550 | DESCRIPTOR = _LISTMETRICSRESPONSE, |
| 551 | __module__ = 'dmi.hw_metrics_mgmt_service_pb2' |
| 552 | # @@protoc_insertion_point(class_scope:dmi.ListMetricsResponse) |
| 553 | )) |
| 554 | _sym_db.RegisterMessage(ListMetricsResponse) |
| 555 | |
| 556 | MetricsConfigurationRequest = _reflection.GeneratedProtocolMessageType('MetricsConfigurationRequest', (_message.Message,), dict( |
| 557 | DESCRIPTOR = _METRICSCONFIGURATIONREQUEST, |
| 558 | __module__ = 'dmi.hw_metrics_mgmt_service_pb2' |
| 559 | # @@protoc_insertion_point(class_scope:dmi.MetricsConfigurationRequest) |
| 560 | )) |
| 561 | _sym_db.RegisterMessage(MetricsConfigurationRequest) |
| 562 | |
| 563 | MetricsConfigurationResponse = _reflection.GeneratedProtocolMessageType('MetricsConfigurationResponse', (_message.Message,), dict( |
| 564 | DESCRIPTOR = _METRICSCONFIGURATIONRESPONSE, |
| 565 | __module__ = 'dmi.hw_metrics_mgmt_service_pb2' |
| 566 | # @@protoc_insertion_point(class_scope:dmi.MetricsConfigurationResponse) |
| 567 | )) |
| 568 | _sym_db.RegisterMessage(MetricsConfigurationResponse) |
| 569 | |
| 570 | MetricMetaData = _reflection.GeneratedProtocolMessageType('MetricMetaData', (_message.Message,), dict( |
| 571 | DESCRIPTOR = _METRICMETADATA, |
| 572 | __module__ = 'dmi.hw_metrics_mgmt_service_pb2' |
| 573 | # @@protoc_insertion_point(class_scope:dmi.MetricMetaData) |
| 574 | )) |
| 575 | _sym_db.RegisterMessage(MetricMetaData) |
| 576 | |
| 577 | Metric = _reflection.GeneratedProtocolMessageType('Metric', (_message.Message,), dict( |
| 578 | DESCRIPTOR = _METRIC, |
| 579 | __module__ = 'dmi.hw_metrics_mgmt_service_pb2' |
| 580 | # @@protoc_insertion_point(class_scope:dmi.Metric) |
| 581 | )) |
| 582 | _sym_db.RegisterMessage(Metric) |
| 583 | |
| 584 | GetMetricRequest = _reflection.GeneratedProtocolMessageType('GetMetricRequest', (_message.Message,), dict( |
| 585 | DESCRIPTOR = _GETMETRICREQUEST, |
| 586 | __module__ = 'dmi.hw_metrics_mgmt_service_pb2' |
| 587 | # @@protoc_insertion_point(class_scope:dmi.GetMetricRequest) |
| 588 | )) |
| 589 | _sym_db.RegisterMessage(GetMetricRequest) |
| 590 | |
| 591 | |
| 592 | DESCRIPTOR._options = None |
| 593 | |
| 594 | _NATIVEMETRICSMANAGEMENTSERVICE = _descriptor.ServiceDescriptor( |
| 595 | name='NativeMetricsManagementService', |
| 596 | full_name='dmi.NativeMetricsManagementService', |
| 597 | file=DESCRIPTOR, |
| 598 | index=0, |
| 599 | serialized_options=None, |
| 600 | serialized_start=1653, |
| 601 | serialized_end=1891, |
| 602 | methods=[ |
| 603 | _descriptor.MethodDescriptor( |
| 604 | name='ListMetrics', |
| 605 | full_name='dmi.NativeMetricsManagementService.ListMetrics', |
| 606 | index=0, |
| 607 | containing_service=None, |
| 608 | input_type=dmi_dot_hw__pb2._HARDWAREID, |
| 609 | output_type=_LISTMETRICSRESPONSE, |
| 610 | serialized_options=None, |
| 611 | ), |
| 612 | _descriptor.MethodDescriptor( |
| 613 | name='UpdateMetricsConfiguration', |
| 614 | full_name='dmi.NativeMetricsManagementService.UpdateMetricsConfiguration', |
| 615 | index=1, |
| 616 | containing_service=None, |
| 617 | input_type=_METRICSCONFIGURATIONREQUEST, |
| 618 | output_type=_METRICSCONFIGURATIONRESPONSE, |
| 619 | serialized_options=None, |
| 620 | ), |
| 621 | _descriptor.MethodDescriptor( |
| 622 | name='GetMetric', |
| 623 | full_name='dmi.NativeMetricsManagementService.GetMetric', |
| 624 | index=2, |
| 625 | containing_service=None, |
| 626 | input_type=_GETMETRICREQUEST, |
| 627 | output_type=_METRIC, |
| 628 | serialized_options=None, |
| 629 | ), |
| 630 | ]) |
| 631 | _sym_db.RegisterServiceDescriptor(_NATIVEMETRICSMANAGEMENTSERVICE) |
| 632 | |
| 633 | DESCRIPTOR.services_by_name['NativeMetricsManagementService'] = _NATIVEMETRICSMANAGEMENTSERVICE |
| 634 | |
| 635 | # @@protoc_insertion_point(module_scope) |