Newer
Older

Lluis Gifre Renom
committed
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: device.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))

Lluis Gifre Renom
committed
from google.protobuf import descriptor as _descriptor
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.Default()
from . import monitoring_pb2 as monitoring__pb2

Lluis Gifre Renom
committed
DESCRIPTOR = _descriptor.FileDescriptor(
name='device.proto',
package='device',
syntax='proto3',
serialized_options=None,
serialized_pb=_b('\n\x0c\x64\x65vice.proto\x12\x06\x64\x65vice\x1a\rcontext.proto\x1a\x10monitoring.proto\"\xa4\x01\n\x12MonitoringSettings\x12!\n\x06kpi_id\x18\x01 \x01(\x0b\x32\x11.monitoring.KpiId\x12\x31\n\x0ekpi_descriptor\x18\x02 \x01(\x0b\x32\x19.monitoring.KpiDescriptor\x12\x1b\n\x13sampling_duration_s\x18\x03 \x01(\x02\x12\x1b\n\x13sampling_interval_s\x18\x04 \x01(\x02\x32\xb2\x02\n\rDeviceService\x12\x31\n\tAddDevice\x12\x0f.context.Device\x1a\x11.context.DeviceId\"\x00\x12\x37\n\x0f\x43onfigureDevice\x12\x0f.context.Device\x1a\x11.context.DeviceId\"\x00\x12\x33\n\x0c\x44\x65leteDevice\x12\x11.context.DeviceId\x1a\x0e.context.Empty\"\x00\x12>\n\x10GetInitialConfig\x12\x11.context.DeviceId\x1a\x15.context.DeviceConfig\"\x00\x12@\n\x10MonitorDeviceKpi\x12\x1a.device.MonitoringSettings\x1a\x0e.context.Empty\"\x00\x62\x06proto3')

Lluis Gifre Renom
committed
,
dependencies=[context__pb2.DESCRIPTOR,monitoring__pb2.DESCRIPTOR,])

Lluis Gifre Renom
committed
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
_MONITORINGSETTINGS = _descriptor.Descriptor(
name='MonitoringSettings',
full_name='device.MonitoringSettings',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='kpi_id', full_name='device.MonitoringSettings.kpi_id', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='kpi_descriptor', full_name='device.MonitoringSettings.kpi_descriptor', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='sampling_duration_s', full_name='device.MonitoringSettings.sampling_duration_s', index=2,
number=3, type=2, cpp_type=6, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='sampling_interval_s', full_name='device.MonitoringSettings.sampling_interval_s', index=3,
number=4, type=2, cpp_type=6, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=58,
serialized_end=222,
)

Lluis Gifre Renom
committed
_MONITORINGSETTINGS.fields_by_name['kpi_id'].message_type = monitoring__pb2._KPIID
_MONITORINGSETTINGS.fields_by_name['kpi_descriptor'].message_type = monitoring__pb2._KPIDESCRIPTOR
DESCRIPTOR.message_types_by_name['MonitoringSettings'] = _MONITORINGSETTINGS

Lluis Gifre Renom
committed
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
MonitoringSettings = _reflection.GeneratedProtocolMessageType('MonitoringSettings', (_message.Message,), dict(
DESCRIPTOR = _MONITORINGSETTINGS,
__module__ = 'device_pb2'
# @@protoc_insertion_point(class_scope:device.MonitoringSettings)
))
_sym_db.RegisterMessage(MonitoringSettings)

Lluis Gifre Renom
committed
_DEVICESERVICE = _descriptor.ServiceDescriptor(
name='DeviceService',
full_name='device.DeviceService',
file=DESCRIPTOR,
index=0,
serialized_options=None,

Lluis Gifre Renom
committed
methods=[
_descriptor.MethodDescriptor(
name='AddDevice',
full_name='device.DeviceService.AddDevice',
index=0,
containing_service=None,
input_type=context__pb2._DEVICE,
output_type=context__pb2._DEVICEID,
serialized_options=None,
),
_descriptor.MethodDescriptor(
name='ConfigureDevice',
full_name='device.DeviceService.ConfigureDevice',
index=1,
containing_service=None,

Lluis Gifre Renom
committed
output_type=context__pb2._DEVICEID,
serialized_options=None,
),
_descriptor.MethodDescriptor(
name='DeleteDevice',
full_name='device.DeviceService.DeleteDevice',
index=2,
containing_service=None,
input_type=context__pb2._DEVICEID,
output_type=context__pb2._EMPTY,
serialized_options=None,
),
_descriptor.MethodDescriptor(
name='GetInitialConfig',
full_name='device.DeviceService.GetInitialConfig',
index=3,
containing_service=None,
input_type=context__pb2._DEVICEID,
output_type=context__pb2._DEVICECONFIG,
serialized_options=None,
),
_descriptor.MethodDescriptor(
name='MonitorDeviceKpi',
full_name='device.DeviceService.MonitorDeviceKpi',
index=4,
containing_service=None,
input_type=_MONITORINGSETTINGS,
output_type=context__pb2._EMPTY,
serialized_options=None,

Lluis Gifre Renom
committed
])
_sym_db.RegisterServiceDescriptor(_DEVICESERVICE)
DESCRIPTOR.services_by_name['DeviceService'] = _DEVICESERVICE
# @@protoc_insertion_point(module_scope)