Add compiled proto
[leap_pycommon.git] / src / leap / common / events / events_pb2.py
1 # Generated by the protocol buffer compiler.  DO NOT EDIT!
2
3 from google.protobuf import descriptor
4 from google.protobuf import message
5 from google.protobuf import reflection
6 from google.protobuf import service
7 from google.protobuf import service_reflection
8 from google.protobuf import descriptor_pb2
9 # @@protoc_insertion_point(imports)
10
11
12 DESCRIPTOR = descriptor.FileDescriptor(
13     name='events.proto',
14     package='leap.common.events',
15     serialized_pb='\n\x0c\x65vents.proto\x12\x12leap.common.events\"\x97\x01\n\rSignalRequest\x12(\n\x05\x65vent\x18\x01 \x02(\x0e\x32\x19.leap.common.events.Event\x12\x0f\n\x07\x63ontent\x18\x02 \x02(\t\x12\x12\n\nmac_method\x18\x03 \x02(\t\x12\x0b\n\x03mac\x18\x04 \x02(\x0c\x12\x12\n\nenc_method\x18\x05 \x01(\t\x12\x16\n\x0e\x65rror_occurred\x18\x06 \x01(\x08\"j\n\x0fRegisterRequest\x12(\n\x05\x65vent\x18\x01 \x02(\x0e\x32\x19.leap.common.events.Event\x12\x0c\n\x04port\x18\x02 \x02(\x05\x12\x12\n\nmac_method\x18\x03 \x02(\t\x12\x0b\n\x03mac\x18\x04 \x02(\x0c\"\x82\x01\n\rEventResponse\x12\x38\n\x06status\x18\x01 \x02(\x0e\x32(.leap.common.events.EventResponse.Status\x12\x0e\n\x06result\x18\x02 \x01(\t\"\'\n\x06Status\x12\x06\n\x02OK\x10\x01\x12\n\n\x06UNAUTH\x10\x02\x12\t\n\x05\x45RROR\x10\x03*\xe7\x02\n\x05\x45vent\x12\x15\n\x11\x43LIENT_SESSION_ID\x10\x01\x12\x0e\n\nCLIENT_UID\x10\x02\x12\x19\n\x15SOLEDAD_CREATING_KEYS\x10\x03\x12\x1e\n\x1aSOLEDAD_DONE_CREATING_KEYS\x10\x04\x12\x1a\n\x16SOLEDAD_UPLOADING_KEYS\x10\x05\x12\x1f\n\x1bSOLEDAD_DONE_UPLOADING_KEYS\x10\x06\x12\x1c\n\x18SOLEDAD_DOWNLOADING_KEYS\x10\x07\x12!\n\x1dSOLEDAD_DONE_DOWNLOADING_KEYS\x10\x08\x12\x1c\n\x18SOLEDAD_NEW_DATA_TO_SYNC\x10\t\x12\x1a\n\x16SOLEDAD_DONE_DATA_SYNC\x10\n\x12\x17\n\x13UPDATER_NEW_UPDATES\x10\x0b\x12\x19\n\x15UPDATER_DONE_UPDATING\x10\x0c\x12\x10\n\x0cRAISE_WINDOW\x10\r2\xb9\x01\n\x13\x45ventsServerService\x12R\n\x08register\x12#.leap.common.events.RegisterRequest\x1a!.leap.common.events.EventResponse\x12N\n\x06signal\x12!.leap.common.events.SignalRequest\x1a!.leap.common.events.EventResponse2h\n\x16\x45ventsComponentService\x12N\n\x06signal\x12!.leap.common.events.SignalRequest\x1a!.leap.common.events.EventResponseB\x03\x90\x01\x01')
16
17 _EVENT = descriptor.EnumDescriptor(
18     name='Event',
19     full_name='leap.common.events.Event',
20     filename=None,
21     file=DESCRIPTOR,
22     values=[
23         descriptor.EnumValueDescriptor(
24             name='CLIENT_SESSION_ID', index=0, number=1,
25             options=None,
26             type=None),
27         descriptor.EnumValueDescriptor(
28             name='CLIENT_UID', index=1, number=2,
29             options=None,
30             type=None),
31         descriptor.EnumValueDescriptor(
32             name='SOLEDAD_CREATING_KEYS', index=2, number=3,
33             options=None,
34             type=None),
35         descriptor.EnumValueDescriptor(
36             name='SOLEDAD_DONE_CREATING_KEYS', index=3, number=4,
37             options=None,
38             type=None),
39         descriptor.EnumValueDescriptor(
40             name='SOLEDAD_UPLOADING_KEYS', index=4, number=5,
41             options=None,
42             type=None),
43         descriptor.EnumValueDescriptor(
44             name='SOLEDAD_DONE_UPLOADING_KEYS', index=5, number=6,
45             options=None,
46             type=None),
47         descriptor.EnumValueDescriptor(
48             name='SOLEDAD_DOWNLOADING_KEYS', index=6, number=7,
49             options=None,
50             type=None),
51         descriptor.EnumValueDescriptor(
52             name='SOLEDAD_DONE_DOWNLOADING_KEYS', index=7, number=8,
53             options=None,
54             type=None),
55         descriptor.EnumValueDescriptor(
56             name='SOLEDAD_NEW_DATA_TO_SYNC', index=8, number=9,
57             options=None,
58             type=None),
59         descriptor.EnumValueDescriptor(
60             name='SOLEDAD_DONE_DATA_SYNC', index=9, number=10,
61             options=None,
62             type=None),
63         descriptor.EnumValueDescriptor(
64             name='UPDATER_NEW_UPDATES', index=10, number=11,
65             options=None,
66             type=None),
67         descriptor.EnumValueDescriptor(
68             name='UPDATER_DONE_UPDATING', index=11, number=12,
69             options=None,
70             type=None),
71         descriptor.EnumValueDescriptor(
72             name='RAISE_WINDOW', index=12, number=13,
73             options=None,
74             type=None),
75     ],
76     containing_type=None,
77     options=None,
78     serialized_start=432,
79     serialized_end=791,
80 )
81
82
83 CLIENT_SESSION_ID = 1
84 CLIENT_UID = 2
85 SOLEDAD_CREATING_KEYS = 3
86 SOLEDAD_DONE_CREATING_KEYS = 4
87 SOLEDAD_UPLOADING_KEYS = 5
88 SOLEDAD_DONE_UPLOADING_KEYS = 6
89 SOLEDAD_DOWNLOADING_KEYS = 7
90 SOLEDAD_DONE_DOWNLOADING_KEYS = 8
91 SOLEDAD_NEW_DATA_TO_SYNC = 9
92 SOLEDAD_DONE_DATA_SYNC = 10
93 UPDATER_NEW_UPDATES = 11
94 UPDATER_DONE_UPDATING = 12
95 RAISE_WINDOW = 13
96
97
98 _EVENTRESPONSE_STATUS = descriptor.EnumDescriptor(
99     name='Status',
100     full_name='leap.common.events.EventResponse.Status',
101     filename=None,
102     file=DESCRIPTOR,
103     values=[
104         descriptor.EnumValueDescriptor(
105             name='OK', index=0, number=1,
106             options=None,
107             type=None),
108         descriptor.EnumValueDescriptor(
109             name='UNAUTH', index=1, number=2,
110             options=None,
111             type=None),
112         descriptor.EnumValueDescriptor(
113             name='ERROR', index=2, number=3,
114             options=None,
115             type=None),
116     ],
117     containing_type=None,
118     options=None,
119     serialized_start=390,
120     serialized_end=429,
121 )
122
123
124 _SIGNALREQUEST = descriptor.Descriptor(
125     name='SignalRequest',
126     full_name='leap.common.events.SignalRequest',
127     filename=None,
128     file=DESCRIPTOR,
129     containing_type=None,
130     fields=[
131         descriptor.FieldDescriptor(
132             name='event', full_name='leap.common.events.SignalRequest.event', index=0,
133             number=1, type=14, cpp_type=8, label=2,
134             has_default_value=False, default_value=1,
135       message_type=None, enum_type=None, containing_type=None,
136       is_extension=False, extension_scope=None,
137       options=None),
138     descriptor.FieldDescriptor(
139       name='content', full_name='leap.common.events.SignalRequest.content', index=1,
140       number=2, type=9, cpp_type=9, label=2,
141       has_default_value=False, default_value=unicode("", "utf-8"),
142       message_type=None, enum_type=None, containing_type=None,
143       is_extension=False, extension_scope=None,
144       options=None),
145     descriptor.FieldDescriptor(
146       name='mac_method', full_name='leap.common.events.SignalRequest.mac_method', index=2,
147       number=3, type=9, cpp_type=9, label=2,
148       has_default_value=False, default_value=unicode("", "utf-8"),
149       message_type=None, enum_type=None, containing_type=None,
150       is_extension=False, extension_scope=None,
151       options=None),
152     descriptor.FieldDescriptor(
153       name='mac', full_name='leap.common.events.SignalRequest.mac', index=3,
154       number=4, type=12, cpp_type=9, label=2,
155       has_default_value=False, default_value="",
156       message_type=None, enum_type=None, containing_type=None,
157       is_extension=False, extension_scope=None,
158       options=None),
159     descriptor.FieldDescriptor(
160       name='enc_method', full_name='leap.common.events.SignalRequest.enc_method', index=4,
161       number=5, type=9, cpp_type=9, label=1,
162       has_default_value=False, default_value=unicode("", "utf-8"),
163       message_type=None, enum_type=None, containing_type=None,
164       is_extension=False, extension_scope=None,
165       options=None),
166     descriptor.FieldDescriptor(
167       name='error_occurred', full_name='leap.common.events.SignalRequest.error_occurred', index=5,
168       number=6, type=8, cpp_type=7, label=1,
169       has_default_value=False, default_value=False,
170       message_type=None, enum_type=None, containing_type=None,
171       is_extension=False, extension_scope=None,
172       options=None),
173   ],
174   extensions=[
175   ],
176   nested_types=[],
177   enum_types=[
178   ],
179   options=None,
180   is_extendable=False,
181   extension_ranges=[],
182   serialized_start=37,
183   serialized_end=188,
184 )
185
186
187 _REGISTERREQUEST = descriptor.Descriptor(
188   name='RegisterRequest',
189   full_name='leap.common.events.RegisterRequest',
190   filename=None,
191   file=DESCRIPTOR,
192   containing_type=None,
193   fields=[
194     descriptor.FieldDescriptor(
195       name='event', full_name='leap.common.events.RegisterRequest.event', index=0,
196       number=1, type=14, cpp_type=8, label=2,
197       has_default_value=False, default_value=1,
198       message_type=None, enum_type=None, containing_type=None,
199       is_extension=False, extension_scope=None,
200       options=None),
201     descriptor.FieldDescriptor(
202       name='port', full_name='leap.common.events.RegisterRequest.port', index=1,
203       number=2, type=5, cpp_type=1, label=2,
204       has_default_value=False, default_value=0,
205       message_type=None, enum_type=None, containing_type=None,
206       is_extension=False, extension_scope=None,
207       options=None),
208     descriptor.FieldDescriptor(
209       name='mac_method', full_name='leap.common.events.RegisterRequest.mac_method', index=2,
210       number=3, type=9, cpp_type=9, label=2,
211       has_default_value=False, default_value=unicode("", "utf-8"),
212       message_type=None, enum_type=None, containing_type=None,
213       is_extension=False, extension_scope=None,
214       options=None),
215     descriptor.FieldDescriptor(
216       name='mac', full_name='leap.common.events.RegisterRequest.mac', index=3,
217       number=4, type=12, cpp_type=9, label=2,
218       has_default_value=False, default_value="",
219       message_type=None, enum_type=None, containing_type=None,
220       is_extension=False, extension_scope=None,
221       options=None),
222   ],
223   extensions=[
224   ],
225   nested_types=[],
226   enum_types=[
227   ],
228   options=None,
229   is_extendable=False,
230   extension_ranges=[],
231   serialized_start=190,
232   serialized_end=296,
233 )
234
235
236 _EVENTRESPONSE = descriptor.Descriptor(
237   name='EventResponse',
238   full_name='leap.common.events.EventResponse',
239   filename=None,
240   file=DESCRIPTOR,
241   containing_type=None,
242   fields=[
243     descriptor.FieldDescriptor(
244       name='status', full_name='leap.common.events.EventResponse.status', index=0,
245       number=1, type=14, cpp_type=8, label=2,
246       has_default_value=False, default_value=1,
247       message_type=None, enum_type=None, containing_type=None,
248       is_extension=False, extension_scope=None,
249       options=None),
250     descriptor.FieldDescriptor(
251       name='result', full_name='leap.common.events.EventResponse.result', index=1,
252       number=2, type=9, cpp_type=9, label=1,
253       has_default_value=False, default_value=unicode("", "utf-8"),
254       message_type=None, enum_type=None, containing_type=None,
255       is_extension=False, extension_scope=None,
256       options=None),
257   ],
258   extensions=[
259   ],
260   nested_types=[],
261   enum_types=[
262     _EVENTRESPONSE_STATUS,
263   ],
264   options=None,
265   is_extendable=False,
266   extension_ranges=[],
267   serialized_start=299,
268   serialized_end=429,
269 )
270
271 _SIGNALREQUEST.fields_by_name['event'].enum_type = _EVENT
272 _REGISTERREQUEST.fields_by_name['event'].enum_type = _EVENT
273 _EVENTRESPONSE.fields_by_name['status'].enum_type = _EVENTRESPONSE_STATUS
274 _EVENTRESPONSE_STATUS.containing_type = _EVENTRESPONSE;
275 DESCRIPTOR.message_types_by_name['SignalRequest'] = _SIGNALREQUEST
276 DESCRIPTOR.message_types_by_name['RegisterRequest'] = _REGISTERREQUEST
277 DESCRIPTOR.message_types_by_name['EventResponse'] = _EVENTRESPONSE
278
279
280 class SignalRequest(message.Message):
281     __metaclass__ = reflection.GeneratedProtocolMessageType
282     DESCRIPTOR = _SIGNALREQUEST
283
284     # @@protoc_insertion_point(class_scope:leap.common.events.SignalRequest)
285
286
287 class RegisterRequest(message.Message):
288     __metaclass__ = reflection.GeneratedProtocolMessageType
289     DESCRIPTOR = _REGISTERREQUEST
290
291     # @@protoc_insertion_point(class_scope:leap.common.events.RegisterRequest)
292
293
294 class EventResponse(message.Message):
295     __metaclass__ = reflection.GeneratedProtocolMessageType
296     DESCRIPTOR = _EVENTRESPONSE
297
298     # @@protoc_insertion_point(class_scope:leap.common.events.EventResponse)
299
300
301 _EVENTSSERVERSERVICE = descriptor.ServiceDescriptor(
302   name='EventsServerService',
303   full_name='leap.common.events.EventsServerService',
304   file=DESCRIPTOR,
305   index=0,
306   options=None,
307   serialized_start=794,
308   serialized_end=979,
309   methods=[
310   descriptor.MethodDescriptor(
311     name='register',
312     full_name='leap.common.events.EventsServerService.register',
313     index=0,
314     containing_service=None,
315     input_type=_REGISTERREQUEST,
316     output_type=_EVENTRESPONSE,
317     options=None,
318   ),
319   descriptor.MethodDescriptor(
320     name='signal',
321     full_name='leap.common.events.EventsServerService.signal',
322     index=1,
323     containing_service=None,
324     input_type=_SIGNALREQUEST,
325     output_type=_EVENTRESPONSE,
326     options=None,
327   ),
328 ])
329
330
331 class EventsServerService(service.Service):
332     __metaclass__ = service_reflection.GeneratedServiceType
333     DESCRIPTOR = _EVENTSSERVERSERVICE
334
335
336 class EventsServerService_Stub(EventsServerService):
337     __metaclass__ = service_reflection.GeneratedServiceStubType
338     DESCRIPTOR = _EVENTSSERVERSERVICE
339
340
341 _EVENTSCOMPONENTSERVICE = descriptor.ServiceDescriptor(
342   name='EventsComponentService',
343   full_name='leap.common.events.EventsComponentService',
344   file=DESCRIPTOR,
345   index=1,
346   options=None,
347   serialized_start=981,
348   serialized_end=1085,
349   methods=[
350   descriptor.MethodDescriptor(
351     name='signal',
352     full_name='leap.common.events.EventsComponentService.signal',
353     index=0,
354     containing_service=None,
355     input_type=_SIGNALREQUEST,
356     output_type=_EVENTRESPONSE,
357     options=None,
358   ),
359 ])
360
361
362 class EventsComponentService(service.Service):
363     __metaclass__ = service_reflection.GeneratedServiceType
364     DESCRIPTOR = _EVENTSCOMPONENTSERVICE
365
366
367 class EventsComponentService_Stub(EventsComponentService):
368     __metaclass__ = service_reflection.GeneratedServiceStubType
369     DESCRIPTOR = _EVENTSCOMPONENTSERVICE
370
371 # @@protoc_insertion_point(module_scope)