Add protobuf definition for events messages and services.
[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*\xd5\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\x32\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.EventResponse')
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     ],
72     containing_type=None,
73     options=None,
74     serialized_start=432,
75     serialized_end=773,
76 )
77
78
79 CLIENT_SESSION_ID = 1
80 CLIENT_UID = 2
81 SOLEDAD_CREATING_KEYS = 3
82 SOLEDAD_DONE_CREATING_KEYS = 4
83 SOLEDAD_UPLOADING_KEYS = 5
84 SOLEDAD_DONE_UPLOADING_KEYS = 6
85 SOLEDAD_DOWNLOADING_KEYS = 7
86 SOLEDAD_DONE_DOWNLOADING_KEYS = 8
87 SOLEDAD_NEW_DATA_TO_SYNC = 9
88 SOLEDAD_DONE_DATA_SYNC = 10
89 UPDATER_NEW_UPDATES = 11
90 UPDATER_DONE_UPDATING = 12
91
92
93 _EVENTRESPONSE_STATUS = descriptor.EnumDescriptor(
94     name='Status',
95     full_name='leap.common.events.EventResponse.Status',
96     filename=None,
97     file=DESCRIPTOR,
98     values=[
99         descriptor.EnumValueDescriptor(
100             name='OK', index=0, number=1,
101             options=None,
102             type=None),
103         descriptor.EnumValueDescriptor(
104             name='UNAUTH', index=1, number=2,
105             options=None,
106             type=None),
107         descriptor.EnumValueDescriptor(
108             name='ERROR', index=2, number=3,
109             options=None,
110             type=None),
111     ],
112     containing_type=None,
113     options=None,
114     serialized_start=390,
115     serialized_end=429,
116 )
117
118
119 _SIGNALREQUEST = descriptor.Descriptor(
120     name='SignalRequest',
121     full_name='leap.common.events.SignalRequest',
122     filename=None,
123     file=DESCRIPTOR,
124     containing_type=None,
125     fields=[
126         descriptor.FieldDescriptor(
127             name='event', full_name='leap.common.events.SignalRequest.event', index=0,
128             number=1, type=14, cpp_type=8, label=2,
129             has_default_value=False, default_value=1,
130             message_type=None, enum_type=None, containing_type=None,
131             is_extension=False, extension_scope=None,
132             options=None),
133         descriptor.FieldDescriptor(
134             name='content', full_name='leap.common.events.SignalRequest.content', index=1,
135             number=2, type=9, cpp_type=9, label=2,
136             has_default_value=False, default_value=unicode("", "utf-8"),
137             message_type=None, enum_type=None, containing_type=None,
138             is_extension=False, extension_scope=None,
139             options=None),
140         descriptor.FieldDescriptor(
141             name='mac_method', full_name='leap.common.events.SignalRequest.mac_method', index=2,
142             number=3, type=9, cpp_type=9, label=2,
143             has_default_value=False, default_value=unicode("", "utf-8"),
144             message_type=None, enum_type=None, containing_type=None,
145             is_extension=False, extension_scope=None,
146             options=None),
147         descriptor.FieldDescriptor(
148             name='mac', full_name='leap.common.events.SignalRequest.mac', index=3,
149             number=4, type=12, cpp_type=9, label=2,
150             has_default_value=False, default_value="",
151             message_type=None, enum_type=None, containing_type=None,
152             is_extension=False, extension_scope=None,
153             options=None),
154         descriptor.FieldDescriptor(
155             name='enc_method', full_name='leap.common.events.SignalRequest.enc_method', index=4,
156             number=5, type=9, cpp_type=9, label=1,
157             has_default_value=False, default_value=unicode("", "utf-8"),
158             message_type=None, enum_type=None, containing_type=None,
159             is_extension=False, extension_scope=None,
160             options=None),
161         descriptor.FieldDescriptor(
162             name='error_occurred', full_name='leap.common.events.SignalRequest.error_occurred', index=5,
163             number=6, type=8, cpp_type=7, label=1,
164             has_default_value=False, default_value=False,
165             message_type=None, enum_type=None, containing_type=None,
166             is_extension=False, extension_scope=None,
167             options=None),
168     ],
169     extensions=[
170     ],
171     nested_types=[],
172     enum_types=[
173     ],
174     options=None,
175     is_extendable=False,
176     extension_ranges=[],
177     serialized_start=37,
178     serialized_end=188,
179 )
180
181
182 _REGISTERREQUEST = descriptor.Descriptor(
183     name='RegisterRequest',
184     full_name='leap.common.events.RegisterRequest',
185     filename=None,
186     file=DESCRIPTOR,
187     containing_type=None,
188     fields=[
189         descriptor.FieldDescriptor(
190             name='event', full_name='leap.common.events.RegisterRequest.event', index=0,
191             number=1, type=14, cpp_type=8, label=2,
192             has_default_value=False, default_value=1,
193             message_type=None, enum_type=None, containing_type=None,
194             is_extension=False, extension_scope=None,
195             options=None),
196         descriptor.FieldDescriptor(
197             name='port', full_name='leap.common.events.RegisterRequest.port', index=1,
198             number=2, type=5, cpp_type=1, label=2,
199             has_default_value=False, default_value=0,
200             message_type=None, enum_type=None, containing_type=None,
201             is_extension=False, extension_scope=None,
202             options=None),
203         descriptor.FieldDescriptor(
204             name='mac_method', full_name='leap.common.events.RegisterRequest.mac_method', index=2,
205             number=3, type=9, cpp_type=9, label=2,
206             has_default_value=False, default_value=unicode("", "utf-8"),
207             message_type=None, enum_type=None, containing_type=None,
208             is_extension=False, extension_scope=None,
209             options=None),
210         descriptor.FieldDescriptor(
211             name='mac', full_name='leap.common.events.RegisterRequest.mac', index=3,
212             number=4, type=12, cpp_type=9, label=2,
213             has_default_value=False, default_value="",
214             message_type=None, enum_type=None, containing_type=None,
215             is_extension=False, extension_scope=None,
216             options=None),
217     ],
218     extensions=[
219     ],
220     nested_types=[],
221     enum_types=[
222     ],
223     options=None,
224     is_extendable=False,
225     extension_ranges=[],
226     serialized_start=190,
227     serialized_end=296,
228 )
229
230
231 _EVENTRESPONSE = descriptor.Descriptor(
232     name='EventResponse',
233     full_name='leap.common.events.EventResponse',
234     filename=None,
235     file=DESCRIPTOR,
236     containing_type=None,
237     fields=[
238         descriptor.FieldDescriptor(
239             name='status', full_name='leap.common.events.EventResponse.status', index=0,
240             number=1, type=14, cpp_type=8, label=2,
241             has_default_value=False, default_value=1,
242             message_type=None, enum_type=None, containing_type=None,
243             is_extension=False, extension_scope=None,
244             options=None),
245         descriptor.FieldDescriptor(
246             name='result', full_name='leap.common.events.EventResponse.result', index=1,
247             number=2, type=9, cpp_type=9, label=1,
248             has_default_value=False, default_value=unicode("", "utf-8"),
249             message_type=None, enum_type=None, containing_type=None,
250             is_extension=False, extension_scope=None,
251             options=None),
252     ],
253     extensions=[
254     ],
255     nested_types=[],
256     enum_types=[
257         _EVENTRESPONSE_STATUS,
258     ],
259     options=None,
260     is_extendable=False,
261     extension_ranges=[],
262     serialized_start=299,
263     serialized_end=429,
264 )
265
266
267 _SIGNALREQUEST.fields_by_name['event'].enum_type = _EVENT
268 _REGISTERREQUEST.fields_by_name['event'].enum_type = _EVENT
269 _EVENTRESPONSE.fields_by_name['status'].enum_type = _EVENTRESPONSE_STATUS
270 _EVENTRESPONSE_STATUS.containing_type = _EVENTRESPONSE
271
272
273 class SignalRequest(message.Message):
274     __metaclass__ = reflection.GeneratedProtocolMessageType
275     DESCRIPTOR = _SIGNALREQUEST
276
277     # @@protoc_insertion_point(class_scope:leap.common.events.SignalRequest)
278
279
280 class RegisterRequest(message.Message):
281     __metaclass__ = reflection.GeneratedProtocolMessageType
282     DESCRIPTOR = _REGISTERREQUEST
283
284     # @@protoc_insertion_point(class_scope:leap.common.events.RegisterRequest)
285
286
287 class EventResponse(message.Message):
288     __metaclass__ = reflection.GeneratedProtocolMessageType
289     DESCRIPTOR = _EVENTRESPONSE
290
291     # @@protoc_insertion_point(class_scope:leap.common.events.EventResponse)
292
293
294 _EVENTSSERVERSERVICE = descriptor.ServiceDescriptor(
295     name='EventsServerService',
296     full_name='leap.common.events.EventsServerService',
297     file=DESCRIPTOR,
298     index=0,
299     options=None,
300     serialized_start=776,
301     serialized_end=961,
302     methods=[
303         descriptor.MethodDescriptor(
304             name='register',
305             full_name='leap.common.events.EventsServerService.register',
306             index=0,
307             containing_service=None,
308             input_type=_REGISTERREQUEST,
309             output_type=_EVENTRESPONSE,
310             options=None,
311         ),
312         descriptor.MethodDescriptor(
313             name='signal',
314             full_name='leap.common.events.EventsServerService.signal',
315             index=1,
316             containing_service=None,
317             input_type=_SIGNALREQUEST,
318             output_type=_EVENTRESPONSE,
319             options=None,
320         ),
321     ])
322
323
324 class EventsServerService(service.Service):
325     __metaclass__ = service_reflection.GeneratedServiceType
326     DESCRIPTOR = _EVENTSSERVERSERVICE
327
328
329 class EventsServerService_Stub(EventsServerService):
330     __metaclass__ = service_reflection.GeneratedServiceStubType
331     DESCRIPTOR = _EVENTSSERVERSERVICE
332
333
334 _EVENTSCOMPONENTSERVICE = descriptor.ServiceDescriptor(
335     name='EventsComponentService',
336     full_name='leap.common.events.EventsComponentService',
337     file=DESCRIPTOR,
338     index=1,
339     options=None,
340     serialized_start=963,
341     serialized_end=1067,
342     methods=[
343         descriptor.MethodDescriptor(
344             name='signal',
345             full_name='leap.common.events.EventsComponentService.signal',
346             index=0,
347             containing_service=None,
348             input_type=_SIGNALREQUEST,
349             output_type=_EVENTRESPONSE,
350             options=None,
351         ),
352     ])
353
354
355 class EventsComponentService(service.Service):
356     __metaclass__ = service_reflection.GeneratedServiceType
357     DESCRIPTOR = _EVENTSCOMPONENTSERVICE
358
359
360 class EventsComponentService_Stub(EventsComponentService):
361     __metaclass__ = service_reflection.GeneratedServiceStubType
362     DESCRIPTOR = _EVENTSCOMPONENTSERVICE
363
364 # @@protoc_insertion_point(module_scope)