Newer
Older

Lluis Gifre Renom
committed
# -*- coding: utf-8 -*-

Lluis Gifre Renom
committed
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: device.proto

Lluis Gifre Renom
committed
"""Generated protocol buffer code."""

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,

Lluis Gifre Renom
committed
create_key=_descriptor._internal_create_key,
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
_MONITORINGSETTINGS = _descriptor.Descriptor(
name='MonitoringSettings',
full_name='device.MonitoringSettings',
filename=None,
file=DESCRIPTOR,
containing_type=None,

Lluis Gifre Renom
committed
create_key=_descriptor._internal_create_key,
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,

Lluis Gifre Renom
committed
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_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,

Lluis Gifre Renom
committed
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_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,

Lluis Gifre Renom
committed
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_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,

Lluis Gifre Renom
committed
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
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)

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

Lluis Gifre Renom
committed
})

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

Lluis Gifre Renom
committed
create_key=_descriptor._internal_create_key,

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,

Lluis Gifre Renom
committed
create_key=_descriptor._internal_create_key,

Lluis Gifre Renom
committed
),
_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,

Lluis Gifre Renom
committed
create_key=_descriptor._internal_create_key,

Lluis Gifre Renom
committed
),
_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,

Lluis Gifre Renom
committed
create_key=_descriptor._internal_create_key,

Lluis Gifre Renom
committed
),
_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,

Lluis Gifre Renom
committed
create_key=_descriptor._internal_create_key,
),
_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
create_key=_descriptor._internal_create_key,

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