blob: 933c588a49c20a0c4868146529e2d143de0d133d [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
Girish Gowdra997432d2022-03-10 15:59:33 -080021DESCRIPTOR = _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 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
35METRIC_DISK_TEMP = 300
36METRIC_DISK_CAPACITY = 301
37METRIC_DISK_USAGE = 302
38METRIC_DISK_USAGE_PERCENTAGE = 303
39METRIC_DISK_READ_WRITE_PERCENTAGE = 304
40METRIC_DISK_FAULTY_CELLS_PERCENTAGE = 305
41METRIC_RAM_TEMP = 400
42METRIC_RAM_CAPACITY = 401
43METRIC_RAM_USAGE = 402
44METRIC_RAM_USAGE_PERCENTAGE = 403
45METRIC_POWER_MAX = 500
46METRIC_POWER_USAGE = 501
47METRIC_POWER_USAGE_PERCENTAGE = 502
48METRIC_INNER_SURROUNDING_TEMP = 600
49
50
Girish Gowdra997432d2022-03-10 15:59:33 -080051_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 ottrembka5ea5c0a2020-08-31 10:37:35 +020063MetricConfig = _reflection.GeneratedProtocolMessageType('MetricConfig', (_message.Message,), {
64 'DESCRIPTOR' : _METRICCONFIG,
65 '__module__' : 'dmi.hw_metrics_mgmt_service_pb2'
uwe ottrembka66d91ea2020-08-11 10:50:55 +020066 # @@protoc_insertion_point(class_scope:dmi.MetricConfig)
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020067 })
uwe ottrembka66d91ea2020-08-11 10:50:55 +020068_sym_db.RegisterMessage(MetricConfig)
69
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020070MetricsConfig = _reflection.GeneratedProtocolMessageType('MetricsConfig', (_message.Message,), {
71 'DESCRIPTOR' : _METRICSCONFIG,
72 '__module__' : 'dmi.hw_metrics_mgmt_service_pb2'
uwe ottrembka66d91ea2020-08-11 10:50:55 +020073 # @@protoc_insertion_point(class_scope:dmi.MetricsConfig)
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020074 })
uwe ottrembka66d91ea2020-08-11 10:50:55 +020075_sym_db.RegisterMessage(MetricsConfig)
76
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020077ListMetricsResponse = _reflection.GeneratedProtocolMessageType('ListMetricsResponse', (_message.Message,), {
78 'DESCRIPTOR' : _LISTMETRICSRESPONSE,
79 '__module__' : 'dmi.hw_metrics_mgmt_service_pb2'
uwe ottrembka66d91ea2020-08-11 10:50:55 +020080 # @@protoc_insertion_point(class_scope:dmi.ListMetricsResponse)
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020081 })
uwe ottrembka66d91ea2020-08-11 10:50:55 +020082_sym_db.RegisterMessage(ListMetricsResponse)
83
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020084MetricsConfigurationRequest = _reflection.GeneratedProtocolMessageType('MetricsConfigurationRequest', (_message.Message,), {
85 'DESCRIPTOR' : _METRICSCONFIGURATIONREQUEST,
86 '__module__' : 'dmi.hw_metrics_mgmt_service_pb2'
uwe ottrembka66d91ea2020-08-11 10:50:55 +020087 # @@protoc_insertion_point(class_scope:dmi.MetricsConfigurationRequest)
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020088 })
uwe ottrembka66d91ea2020-08-11 10:50:55 +020089_sym_db.RegisterMessage(MetricsConfigurationRequest)
90
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020091MetricsConfigurationResponse = _reflection.GeneratedProtocolMessageType('MetricsConfigurationResponse', (_message.Message,), {
92 'DESCRIPTOR' : _METRICSCONFIGURATIONRESPONSE,
93 '__module__' : 'dmi.hw_metrics_mgmt_service_pb2'
uwe ottrembka66d91ea2020-08-11 10:50:55 +020094 # @@protoc_insertion_point(class_scope:dmi.MetricsConfigurationResponse)
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020095 })
uwe ottrembka66d91ea2020-08-11 10:50:55 +020096_sym_db.RegisterMessage(MetricsConfigurationResponse)
97
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +020098MetricMetaData = _reflection.GeneratedProtocolMessageType('MetricMetaData', (_message.Message,), {
99 'DESCRIPTOR' : _METRICMETADATA,
100 '__module__' : 'dmi.hw_metrics_mgmt_service_pb2'
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200101 # @@protoc_insertion_point(class_scope:dmi.MetricMetaData)
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200102 })
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200103_sym_db.RegisterMessage(MetricMetaData)
104
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200105Metric = _reflection.GeneratedProtocolMessageType('Metric', (_message.Message,), {
106 'DESCRIPTOR' : _METRIC,
107 '__module__' : 'dmi.hw_metrics_mgmt_service_pb2'
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200108 # @@protoc_insertion_point(class_scope:dmi.Metric)
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200109 })
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200110_sym_db.RegisterMessage(Metric)
111
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200112GetMetricRequest = _reflection.GeneratedProtocolMessageType('GetMetricRequest', (_message.Message,), {
113 'DESCRIPTOR' : _GETMETRICREQUEST,
114 '__module__' : 'dmi.hw_metrics_mgmt_service_pb2'
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200115 # @@protoc_insertion_point(class_scope:dmi.GetMetricRequest)
uwe ottrembka5ea5c0a2020-08-31 10:37:35 +0200116 })
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200117_sym_db.RegisterMessage(GetMetricRequest)
118
aghoshc301dcd2020-09-03 16:55:34 +0100119GetMetricResponse = _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 Gowdra997432d2022-03-10 15:59:33 -0800126_NATIVEMETRICSMANAGEMENTSERVICE = DESCRIPTOR.services_by_name['NativeMetricsManagementService']
127if _descriptor._USE_C_DESCRIPTORS == False:
uwe ottrembka66d91ea2020-08-11 10:50:55 +0200128
Girish Gowdra997432d2022-03-10 15:59:33 -0800129 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 ottrembka66d91ea2020-08-11 10:50:55 +0200159# @@protoc_insertion_point(module_scope)