blob: 3aa3977c0af1f72866975cb4c842bb24ba6760ca [file] [log] [blame]
uwe ottrembka66d91ea2020-08-11 10:50:55 +02001# -*- coding: utf-8 -*-
2# Generated by the protocol buffer compiler. DO NOT EDIT!
3# source: dmi/hw_metrics_mgmt_service.proto
Andrea Campanellacb990bc2020-09-22 12:50:56 +02004"""Generated protocol buffer code."""
uwe ottrembka66d91ea2020-08-11 10:50:55 +02005from google.protobuf.internal import enum_type_wrapper
6from google.protobuf import descriptor as _descriptor
Girish Gowdra997432d2022-03-10 15:59:33 -08007from google.protobuf import descriptor_pool as _descriptor_pool
uwe ottrembka66d91ea2020-08-11 10:50:55 +02008from google.protobuf import message as _message
9from google.protobuf import reflection as _reflection
10from google.protobuf import symbol_database as _symbol_database
11# @@protoc_insertion_point(imports)
12
13_sym_db = _symbol_database.Default()
14
15
16from dmi import commons_pb2 as dmi_dot_commons__pb2
17from dmi import hw_pb2 as dmi_dot_hw__pb2
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +053018from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
uwe ottrembka66d91ea2020-08-11 10:50:55 +020019
20
Abhilash laxmeshwarfbf836c2026-02-03 16:25:31 +053021DESCRIPTOR = _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*\x82\x06\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\'\n\"METRIC_TRANSCEIVER_XGSPON_TX_POWER\x10\xce\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 ottrembka66d91ea2020-08-11 10:50:55 +020022
Girish Gowdra997432d2022-03-10 15:59:33 -080023_METRICNAMES = DESCRIPTOR.enum_types_by_name['MetricNames']
uwe ottrembka66d91ea2020-08-11 10:50:55 +020024MetricNames = enum_type_wrapper.EnumTypeWrapper(_METRICNAMES)
25METRIC_NAME_UNDEFINED = 0
26METRIC_FAN_SPEED = 1
27METRIC_CPU_TEMP = 100
28METRIC_CPU_USAGE_PERCENTAGE = 101
29METRIC_TRANSCEIVER_TEMP = 200
30METRIC_TRANSCEIVER_VOLTAGE = 201
31METRIC_TRANSCEIVER_BIAS = 202
32METRIC_TRANSCEIVER_RX_POWER = 203
33METRIC_TRANSCEIVER_TX_POWER = 204
34METRIC_TRANSCEIVER_WAVELENGTH = 205
Abhilash laxmeshwarfbf836c2026-02-03 16:25:31 +053035METRIC_TRANSCEIVER_XGSPON_TX_POWER = 206
uwe ottrembka66d91ea2020-08-11 10:50:55 +020036METRIC_DISK_TEMP = 300
37METRIC_DISK_CAPACITY = 301
38METRIC_DISK_USAGE = 302
39METRIC_DISK_USAGE_PERCENTAGE = 303
40METRIC_DISK_READ_WRITE_PERCENTAGE = 304
41METRIC_DISK_FAULTY_CELLS_PERCENTAGE = 305
42METRIC_RAM_TEMP = 400
43METRIC_RAM_CAPACITY = 401
44METRIC_RAM_USAGE = 402
45METRIC_RAM_USAGE_PERCENTAGE = 403
46METRIC_POWER_MAX = 500
47METRIC_POWER_USAGE = 501
48METRIC_POWER_USAGE_PERCENTAGE = 502
49METRIC_INNER_SURROUNDING_TEMP = 600
50
51
Girish Gowdra997432d2022-03-10 15:59:33 -080052_METRICCONFIG = DESCRIPTOR.message_types_by_name['MetricConfig']
53_METRICSCONFIG = DESCRIPTOR.message_types_by_name['MetricsConfig']
54_LISTMETRICSRESPONSE = DESCRIPTOR.message_types_by_name['ListMetricsResponse']
55_METRICSCONFIGURATIONREQUEST = DESCRIPTOR.message_types_by_name['MetricsConfigurationRequest']
56_METRICSCONFIGURATIONRESPONSE = DESCRIPTOR.message_types_by_name['MetricsConfigurationResponse']
57_METRICMETADATA = DESCRIPTOR.message_types_by_name['MetricMetaData']
58_METRIC = DESCRIPTOR.message_types_by_name['Metric']
59_GETMETRICREQUEST = DESCRIPTOR.message_types_by_name['GetMetricRequest']
60_GETMETRICRESPONSE = DESCRIPTOR.message_types_by_name['GetMetricResponse']
61_LISTMETRICSRESPONSE_REASON = _LISTMETRICSRESPONSE.enum_types_by_name['Reason']
62_METRICSCONFIGURATIONRESPONSE_REASON = _METRICSCONFIGURATIONRESPONSE.enum_types_by_name['Reason']
63_GETMETRICRESPONSE_REASON = _GETMETRICRESPONSE.enum_types_by_name['Reason']
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020064MetricConfig = _reflection.GeneratedProtocolMessageType('MetricConfig', (_message.Message,), {
65 'DESCRIPTOR' : _METRICCONFIG,
66 '__module__' : 'dmi.hw_metrics_mgmt_service_pb2'
uwe ottrembka66d91ea2020-08-11 10:50:55 +020067 # @@protoc_insertion_point(class_scope:dmi.MetricConfig)
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020068 })
uwe ottrembka66d91ea2020-08-11 10:50:55 +020069_sym_db.RegisterMessage(MetricConfig)
70
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020071MetricsConfig = _reflection.GeneratedProtocolMessageType('MetricsConfig', (_message.Message,), {
72 'DESCRIPTOR' : _METRICSCONFIG,
73 '__module__' : 'dmi.hw_metrics_mgmt_service_pb2'
uwe ottrembka66d91ea2020-08-11 10:50:55 +020074 # @@protoc_insertion_point(class_scope:dmi.MetricsConfig)
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020075 })
uwe ottrembka66d91ea2020-08-11 10:50:55 +020076_sym_db.RegisterMessage(MetricsConfig)
77
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020078ListMetricsResponse = _reflection.GeneratedProtocolMessageType('ListMetricsResponse', (_message.Message,), {
79 'DESCRIPTOR' : _LISTMETRICSRESPONSE,
80 '__module__' : 'dmi.hw_metrics_mgmt_service_pb2'
uwe ottrembka66d91ea2020-08-11 10:50:55 +020081 # @@protoc_insertion_point(class_scope:dmi.ListMetricsResponse)
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020082 })
uwe ottrembka66d91ea2020-08-11 10:50:55 +020083_sym_db.RegisterMessage(ListMetricsResponse)
84
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020085MetricsConfigurationRequest = _reflection.GeneratedProtocolMessageType('MetricsConfigurationRequest', (_message.Message,), {
86 'DESCRIPTOR' : _METRICSCONFIGURATIONREQUEST,
87 '__module__' : 'dmi.hw_metrics_mgmt_service_pb2'
uwe ottrembka66d91ea2020-08-11 10:50:55 +020088 # @@protoc_insertion_point(class_scope:dmi.MetricsConfigurationRequest)
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020089 })
uwe ottrembka66d91ea2020-08-11 10:50:55 +020090_sym_db.RegisterMessage(MetricsConfigurationRequest)
91
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020092MetricsConfigurationResponse = _reflection.GeneratedProtocolMessageType('MetricsConfigurationResponse', (_message.Message,), {
93 'DESCRIPTOR' : _METRICSCONFIGURATIONRESPONSE,
94 '__module__' : 'dmi.hw_metrics_mgmt_service_pb2'
uwe ottrembka66d91ea2020-08-11 10:50:55 +020095 # @@protoc_insertion_point(class_scope:dmi.MetricsConfigurationResponse)
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020096 })
uwe ottrembka66d91ea2020-08-11 10:50:55 +020097_sym_db.RegisterMessage(MetricsConfigurationResponse)
98
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020099MetricMetaData = _reflection.GeneratedProtocolMessageType('MetricMetaData', (_message.Message,), {
100 'DESCRIPTOR' : _METRICMETADATA,
101 '__module__' : 'dmi.hw_metrics_mgmt_service_pb2'
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200102 # @@protoc_insertion_point(class_scope:dmi.MetricMetaData)
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200103 })
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200104_sym_db.RegisterMessage(MetricMetaData)
105
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200106Metric = _reflection.GeneratedProtocolMessageType('Metric', (_message.Message,), {
107 'DESCRIPTOR' : _METRIC,
108 '__module__' : 'dmi.hw_metrics_mgmt_service_pb2'
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200109 # @@protoc_insertion_point(class_scope:dmi.Metric)
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200110 })
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200111_sym_db.RegisterMessage(Metric)
112
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200113GetMetricRequest = _reflection.GeneratedProtocolMessageType('GetMetricRequest', (_message.Message,), {
114 'DESCRIPTOR' : _GETMETRICREQUEST,
115 '__module__' : 'dmi.hw_metrics_mgmt_service_pb2'
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200116 # @@protoc_insertion_point(class_scope:dmi.GetMetricRequest)
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200117 })
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200118_sym_db.RegisterMessage(GetMetricRequest)
119
aghoshc301dcd2020-09-03 16:55:34 +0100120GetMetricResponse = _reflection.GeneratedProtocolMessageType('GetMetricResponse', (_message.Message,), {
121 'DESCRIPTOR' : _GETMETRICRESPONSE,
122 '__module__' : 'dmi.hw_metrics_mgmt_service_pb2'
123 # @@protoc_insertion_point(class_scope:dmi.GetMetricResponse)
124 })
125_sym_db.RegisterMessage(GetMetricResponse)
126
Girish Gowdra997432d2022-03-10 15:59:33 -0800127_NATIVEMETRICSMANAGEMENTSERVICE = DESCRIPTOR.services_by_name['NativeMetricsManagementService']
128if _descriptor._USE_C_DESCRIPTORS == False:
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200129
Girish Gowdra997432d2022-03-10 15:59:33 -0800130 DESCRIPTOR._options = None
131 DESCRIPTOR._serialized_options = b'Z9github.com/opencord/device-management-interface/v3/go/dmi'
132 _METRICNAMES._serialized_start=1581
Abhilash laxmeshwarfbf836c2026-02-03 16:25:31 +0530133 _METRICNAMES._serialized_end=2351
Girish Gowdra997432d2022-03-10 15:59:33 -0800134 _METRICCONFIG._serialized_start=104
135 _METRICCONFIG._serialized_end=201
136 _METRICSCONFIG._serialized_start=203
137 _METRICSCONFIG._serialized_end=254
138 _LISTMETRICSRESPONSE._serialized_start=257
139 _LISTMETRICSRESPONSE._serialized_end=512
140 _LISTMETRICSRESPONSE_REASON._serialized_start=418
141 _LISTMETRICSRESPONSE_REASON._serialized_end=512
142 _METRICSCONFIGURATIONREQUEST._serialized_start=515
143 _METRICSCONFIGURATIONREQUEST._serialized_end=656
144 _METRICSCONFIGURATIONRESPONSE._serialized_start=659
145 _METRICSCONFIGURATIONRESPONSE._serialized_end=947
146 _METRICSCONFIGURATIONRESPONSE_REASON._serialized_start=802
147 _METRICSCONFIGURATIONRESPONSE_REASON._serialized_end=947
148 _METRICMETADATA._serialized_start=949
149 _METRICMETADATA._serialized_end=1056
150 _METRIC._serialized_start=1059
151 _METRIC._serialized_end=1191
152 _GETMETRICREQUEST._serialized_start=1193
153 _GETMETRICREQUEST._serialized_end=1288
154 _GETMETRICRESPONSE._serialized_start=1291
155 _GETMETRICRESPONSE._serialized_end=1578
156 _GETMETRICRESPONSE_REASON._serialized_start=1441
157 _GETMETRICRESPONSE_REASON._serialized_end=1578
Abhilash laxmeshwarfbf836c2026-02-03 16:25:31 +0530158 _NATIVEMETRICSMANAGEMENTSERVICE._serialized_start=2354
159 _NATIVEMETRICSMANAGEMENTSERVICE._serialized_end=2659
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200160# @@protoc_insertion_point(module_scope)