1 /* Generated by the protocol buffer compiler. DO NOT EDIT! */
2 /* Generated from: WhisperTextProtocol.proto */
3
4 /* Do not generate deprecated warnings for self */
5 #ifndef PROTOBUF_C__NO_DEPRECATED
6 #define PROTOBUF_C__NO_DEPRECATED
7 #endif
8
9 #include "WhisperTextProtocol.pb-c.h"
textsecure__signal_message__init(Textsecure__SignalMessage * message)10 void textsecure__signal_message__init
11 (Textsecure__SignalMessage *message)
12 {
13 static Textsecure__SignalMessage init_value = TEXTSECURE__SIGNAL_MESSAGE__INIT;
14 *message = init_value;
15 }
textsecure__signal_message__get_packed_size(const Textsecure__SignalMessage * message)16 size_t textsecure__signal_message__get_packed_size
17 (const Textsecure__SignalMessage *message)
18 {
19 assert(message->base.descriptor == &textsecure__signal_message__descriptor);
20 return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
21 }
textsecure__signal_message__pack(const Textsecure__SignalMessage * message,uint8_t * out)22 size_t textsecure__signal_message__pack
23 (const Textsecure__SignalMessage *message,
24 uint8_t *out)
25 {
26 assert(message->base.descriptor == &textsecure__signal_message__descriptor);
27 return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
28 }
textsecure__signal_message__pack_to_buffer(const Textsecure__SignalMessage * message,ProtobufCBuffer * buffer)29 size_t textsecure__signal_message__pack_to_buffer
30 (const Textsecure__SignalMessage *message,
31 ProtobufCBuffer *buffer)
32 {
33 assert(message->base.descriptor == &textsecure__signal_message__descriptor);
34 return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
35 }
36 Textsecure__SignalMessage *
textsecure__signal_message__unpack(ProtobufCAllocator * allocator,size_t len,const uint8_t * data)37 textsecure__signal_message__unpack
38 (ProtobufCAllocator *allocator,
39 size_t len,
40 const uint8_t *data)
41 {
42 return (Textsecure__SignalMessage *)
43 protobuf_c_message_unpack (&textsecure__signal_message__descriptor,
44 allocator, len, data);
45 }
textsecure__signal_message__free_unpacked(Textsecure__SignalMessage * message,ProtobufCAllocator * allocator)46 void textsecure__signal_message__free_unpacked
47 (Textsecure__SignalMessage *message,
48 ProtobufCAllocator *allocator)
49 {
50 assert(message->base.descriptor == &textsecure__signal_message__descriptor);
51 protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
52 }
textsecure__pre_key_signal_message__init(Textsecure__PreKeySignalMessage * message)53 void textsecure__pre_key_signal_message__init
54 (Textsecure__PreKeySignalMessage *message)
55 {
56 static Textsecure__PreKeySignalMessage init_value = TEXTSECURE__PRE_KEY_SIGNAL_MESSAGE__INIT;
57 *message = init_value;
58 }
textsecure__pre_key_signal_message__get_packed_size(const Textsecure__PreKeySignalMessage * message)59 size_t textsecure__pre_key_signal_message__get_packed_size
60 (const Textsecure__PreKeySignalMessage *message)
61 {
62 assert(message->base.descriptor == &textsecure__pre_key_signal_message__descriptor);
63 return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
64 }
textsecure__pre_key_signal_message__pack(const Textsecure__PreKeySignalMessage * message,uint8_t * out)65 size_t textsecure__pre_key_signal_message__pack
66 (const Textsecure__PreKeySignalMessage *message,
67 uint8_t *out)
68 {
69 assert(message->base.descriptor == &textsecure__pre_key_signal_message__descriptor);
70 return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
71 }
textsecure__pre_key_signal_message__pack_to_buffer(const Textsecure__PreKeySignalMessage * message,ProtobufCBuffer * buffer)72 size_t textsecure__pre_key_signal_message__pack_to_buffer
73 (const Textsecure__PreKeySignalMessage *message,
74 ProtobufCBuffer *buffer)
75 {
76 assert(message->base.descriptor == &textsecure__pre_key_signal_message__descriptor);
77 return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
78 }
79 Textsecure__PreKeySignalMessage *
textsecure__pre_key_signal_message__unpack(ProtobufCAllocator * allocator,size_t len,const uint8_t * data)80 textsecure__pre_key_signal_message__unpack
81 (ProtobufCAllocator *allocator,
82 size_t len,
83 const uint8_t *data)
84 {
85 return (Textsecure__PreKeySignalMessage *)
86 protobuf_c_message_unpack (&textsecure__pre_key_signal_message__descriptor,
87 allocator, len, data);
88 }
textsecure__pre_key_signal_message__free_unpacked(Textsecure__PreKeySignalMessage * message,ProtobufCAllocator * allocator)89 void textsecure__pre_key_signal_message__free_unpacked
90 (Textsecure__PreKeySignalMessage *message,
91 ProtobufCAllocator *allocator)
92 {
93 assert(message->base.descriptor == &textsecure__pre_key_signal_message__descriptor);
94 protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
95 }
textsecure__key_exchange_message__init(Textsecure__KeyExchangeMessage * message)96 void textsecure__key_exchange_message__init
97 (Textsecure__KeyExchangeMessage *message)
98 {
99 static Textsecure__KeyExchangeMessage init_value = TEXTSECURE__KEY_EXCHANGE_MESSAGE__INIT;
100 *message = init_value;
101 }
textsecure__key_exchange_message__get_packed_size(const Textsecure__KeyExchangeMessage * message)102 size_t textsecure__key_exchange_message__get_packed_size
103 (const Textsecure__KeyExchangeMessage *message)
104 {
105 assert(message->base.descriptor == &textsecure__key_exchange_message__descriptor);
106 return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
107 }
textsecure__key_exchange_message__pack(const Textsecure__KeyExchangeMessage * message,uint8_t * out)108 size_t textsecure__key_exchange_message__pack
109 (const Textsecure__KeyExchangeMessage *message,
110 uint8_t *out)
111 {
112 assert(message->base.descriptor == &textsecure__key_exchange_message__descriptor);
113 return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
114 }
textsecure__key_exchange_message__pack_to_buffer(const Textsecure__KeyExchangeMessage * message,ProtobufCBuffer * buffer)115 size_t textsecure__key_exchange_message__pack_to_buffer
116 (const Textsecure__KeyExchangeMessage *message,
117 ProtobufCBuffer *buffer)
118 {
119 assert(message->base.descriptor == &textsecure__key_exchange_message__descriptor);
120 return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
121 }
122 Textsecure__KeyExchangeMessage *
textsecure__key_exchange_message__unpack(ProtobufCAllocator * allocator,size_t len,const uint8_t * data)123 textsecure__key_exchange_message__unpack
124 (ProtobufCAllocator *allocator,
125 size_t len,
126 const uint8_t *data)
127 {
128 return (Textsecure__KeyExchangeMessage *)
129 protobuf_c_message_unpack (&textsecure__key_exchange_message__descriptor,
130 allocator, len, data);
131 }
textsecure__key_exchange_message__free_unpacked(Textsecure__KeyExchangeMessage * message,ProtobufCAllocator * allocator)132 void textsecure__key_exchange_message__free_unpacked
133 (Textsecure__KeyExchangeMessage *message,
134 ProtobufCAllocator *allocator)
135 {
136 assert(message->base.descriptor == &textsecure__key_exchange_message__descriptor);
137 protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
138 }
textsecure__sender_key_message__init(Textsecure__SenderKeyMessage * message)139 void textsecure__sender_key_message__init
140 (Textsecure__SenderKeyMessage *message)
141 {
142 static Textsecure__SenderKeyMessage init_value = TEXTSECURE__SENDER_KEY_MESSAGE__INIT;
143 *message = init_value;
144 }
textsecure__sender_key_message__get_packed_size(const Textsecure__SenderKeyMessage * message)145 size_t textsecure__sender_key_message__get_packed_size
146 (const Textsecure__SenderKeyMessage *message)
147 {
148 assert(message->base.descriptor == &textsecure__sender_key_message__descriptor);
149 return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
150 }
textsecure__sender_key_message__pack(const Textsecure__SenderKeyMessage * message,uint8_t * out)151 size_t textsecure__sender_key_message__pack
152 (const Textsecure__SenderKeyMessage *message,
153 uint8_t *out)
154 {
155 assert(message->base.descriptor == &textsecure__sender_key_message__descriptor);
156 return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
157 }
textsecure__sender_key_message__pack_to_buffer(const Textsecure__SenderKeyMessage * message,ProtobufCBuffer * buffer)158 size_t textsecure__sender_key_message__pack_to_buffer
159 (const Textsecure__SenderKeyMessage *message,
160 ProtobufCBuffer *buffer)
161 {
162 assert(message->base.descriptor == &textsecure__sender_key_message__descriptor);
163 return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
164 }
165 Textsecure__SenderKeyMessage *
textsecure__sender_key_message__unpack(ProtobufCAllocator * allocator,size_t len,const uint8_t * data)166 textsecure__sender_key_message__unpack
167 (ProtobufCAllocator *allocator,
168 size_t len,
169 const uint8_t *data)
170 {
171 return (Textsecure__SenderKeyMessage *)
172 protobuf_c_message_unpack (&textsecure__sender_key_message__descriptor,
173 allocator, len, data);
174 }
textsecure__sender_key_message__free_unpacked(Textsecure__SenderKeyMessage * message,ProtobufCAllocator * allocator)175 void textsecure__sender_key_message__free_unpacked
176 (Textsecure__SenderKeyMessage *message,
177 ProtobufCAllocator *allocator)
178 {
179 assert(message->base.descriptor == &textsecure__sender_key_message__descriptor);
180 protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
181 }
textsecure__sender_key_distribution_message__init(Textsecure__SenderKeyDistributionMessage * message)182 void textsecure__sender_key_distribution_message__init
183 (Textsecure__SenderKeyDistributionMessage *message)
184 {
185 static Textsecure__SenderKeyDistributionMessage init_value = TEXTSECURE__SENDER_KEY_DISTRIBUTION_MESSAGE__INIT;
186 *message = init_value;
187 }
textsecure__sender_key_distribution_message__get_packed_size(const Textsecure__SenderKeyDistributionMessage * message)188 size_t textsecure__sender_key_distribution_message__get_packed_size
189 (const Textsecure__SenderKeyDistributionMessage *message)
190 {
191 assert(message->base.descriptor == &textsecure__sender_key_distribution_message__descriptor);
192 return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
193 }
textsecure__sender_key_distribution_message__pack(const Textsecure__SenderKeyDistributionMessage * message,uint8_t * out)194 size_t textsecure__sender_key_distribution_message__pack
195 (const Textsecure__SenderKeyDistributionMessage *message,
196 uint8_t *out)
197 {
198 assert(message->base.descriptor == &textsecure__sender_key_distribution_message__descriptor);
199 return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
200 }
textsecure__sender_key_distribution_message__pack_to_buffer(const Textsecure__SenderKeyDistributionMessage * message,ProtobufCBuffer * buffer)201 size_t textsecure__sender_key_distribution_message__pack_to_buffer
202 (const Textsecure__SenderKeyDistributionMessage *message,
203 ProtobufCBuffer *buffer)
204 {
205 assert(message->base.descriptor == &textsecure__sender_key_distribution_message__descriptor);
206 return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
207 }
208 Textsecure__SenderKeyDistributionMessage *
textsecure__sender_key_distribution_message__unpack(ProtobufCAllocator * allocator,size_t len,const uint8_t * data)209 textsecure__sender_key_distribution_message__unpack
210 (ProtobufCAllocator *allocator,
211 size_t len,
212 const uint8_t *data)
213 {
214 return (Textsecure__SenderKeyDistributionMessage *)
215 protobuf_c_message_unpack (&textsecure__sender_key_distribution_message__descriptor,
216 allocator, len, data);
217 }
textsecure__sender_key_distribution_message__free_unpacked(Textsecure__SenderKeyDistributionMessage * message,ProtobufCAllocator * allocator)218 void textsecure__sender_key_distribution_message__free_unpacked
219 (Textsecure__SenderKeyDistributionMessage *message,
220 ProtobufCAllocator *allocator)
221 {
222 assert(message->base.descriptor == &textsecure__sender_key_distribution_message__descriptor);
223 protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
224 }
textsecure__device_consistency_code_message__init(Textsecure__DeviceConsistencyCodeMessage * message)225 void textsecure__device_consistency_code_message__init
226 (Textsecure__DeviceConsistencyCodeMessage *message)
227 {
228 static Textsecure__DeviceConsistencyCodeMessage init_value = TEXTSECURE__DEVICE_CONSISTENCY_CODE_MESSAGE__INIT;
229 *message = init_value;
230 }
textsecure__device_consistency_code_message__get_packed_size(const Textsecure__DeviceConsistencyCodeMessage * message)231 size_t textsecure__device_consistency_code_message__get_packed_size
232 (const Textsecure__DeviceConsistencyCodeMessage *message)
233 {
234 assert(message->base.descriptor == &textsecure__device_consistency_code_message__descriptor);
235 return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
236 }
textsecure__device_consistency_code_message__pack(const Textsecure__DeviceConsistencyCodeMessage * message,uint8_t * out)237 size_t textsecure__device_consistency_code_message__pack
238 (const Textsecure__DeviceConsistencyCodeMessage *message,
239 uint8_t *out)
240 {
241 assert(message->base.descriptor == &textsecure__device_consistency_code_message__descriptor);
242 return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
243 }
textsecure__device_consistency_code_message__pack_to_buffer(const Textsecure__DeviceConsistencyCodeMessage * message,ProtobufCBuffer * buffer)244 size_t textsecure__device_consistency_code_message__pack_to_buffer
245 (const Textsecure__DeviceConsistencyCodeMessage *message,
246 ProtobufCBuffer *buffer)
247 {
248 assert(message->base.descriptor == &textsecure__device_consistency_code_message__descriptor);
249 return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
250 }
251 Textsecure__DeviceConsistencyCodeMessage *
textsecure__device_consistency_code_message__unpack(ProtobufCAllocator * allocator,size_t len,const uint8_t * data)252 textsecure__device_consistency_code_message__unpack
253 (ProtobufCAllocator *allocator,
254 size_t len,
255 const uint8_t *data)
256 {
257 return (Textsecure__DeviceConsistencyCodeMessage *)
258 protobuf_c_message_unpack (&textsecure__device_consistency_code_message__descriptor,
259 allocator, len, data);
260 }
textsecure__device_consistency_code_message__free_unpacked(Textsecure__DeviceConsistencyCodeMessage * message,ProtobufCAllocator * allocator)261 void textsecure__device_consistency_code_message__free_unpacked
262 (Textsecure__DeviceConsistencyCodeMessage *message,
263 ProtobufCAllocator *allocator)
264 {
265 assert(message->base.descriptor == &textsecure__device_consistency_code_message__descriptor);
266 protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
267 }
268 static const ProtobufCFieldDescriptor textsecure__signal_message__field_descriptors[4] =
269 {
270 {
271 "ratchetKey",
272 1,
273 PROTOBUF_C_LABEL_OPTIONAL,
274 PROTOBUF_C_TYPE_BYTES,
275 offsetof(Textsecure__SignalMessage, has_ratchetkey),
276 offsetof(Textsecure__SignalMessage, ratchetkey),
277 NULL,
278 NULL,
279 0, /* flags */
280 0,NULL,NULL /* reserved1,reserved2, etc */
281 },
282 {
283 "counter",
284 2,
285 PROTOBUF_C_LABEL_OPTIONAL,
286 PROTOBUF_C_TYPE_UINT32,
287 offsetof(Textsecure__SignalMessage, has_counter),
288 offsetof(Textsecure__SignalMessage, counter),
289 NULL,
290 NULL,
291 0, /* flags */
292 0,NULL,NULL /* reserved1,reserved2, etc */
293 },
294 {
295 "previousCounter",
296 3,
297 PROTOBUF_C_LABEL_OPTIONAL,
298 PROTOBUF_C_TYPE_UINT32,
299 offsetof(Textsecure__SignalMessage, has_previouscounter),
300 offsetof(Textsecure__SignalMessage, previouscounter),
301 NULL,
302 NULL,
303 0, /* flags */
304 0,NULL,NULL /* reserved1,reserved2, etc */
305 },
306 {
307 "ciphertext",
308 4,
309 PROTOBUF_C_LABEL_OPTIONAL,
310 PROTOBUF_C_TYPE_BYTES,
311 offsetof(Textsecure__SignalMessage, has_ciphertext),
312 offsetof(Textsecure__SignalMessage, ciphertext),
313 NULL,
314 NULL,
315 0, /* flags */
316 0,NULL,NULL /* reserved1,reserved2, etc */
317 },
318 };
319 static const unsigned textsecure__signal_message__field_indices_by_name[] = {
320 3, /* field[3] = ciphertext */
321 1, /* field[1] = counter */
322 2, /* field[2] = previousCounter */
323 0, /* field[0] = ratchetKey */
324 };
325 static const ProtobufCIntRange textsecure__signal_message__number_ranges[1 + 1] =
326 {
327 { 1, 0 },
328 { 0, 4 }
329 };
330 const ProtobufCMessageDescriptor textsecure__signal_message__descriptor =
331 {
332 PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
333 "textsecure.SignalMessage",
334 "SignalMessage",
335 "Textsecure__SignalMessage",
336 "textsecure",
337 sizeof(Textsecure__SignalMessage),
338 4,
339 textsecure__signal_message__field_descriptors,
340 textsecure__signal_message__field_indices_by_name,
341 1, textsecure__signal_message__number_ranges,
342 (ProtobufCMessageInit) textsecure__signal_message__init,
343 NULL,NULL,NULL /* reserved[123] */
344 };
345 static const ProtobufCFieldDescriptor textsecure__pre_key_signal_message__field_descriptors[6] =
346 {
347 {
348 "preKeyId",
349 1,
350 PROTOBUF_C_LABEL_OPTIONAL,
351 PROTOBUF_C_TYPE_UINT32,
352 offsetof(Textsecure__PreKeySignalMessage, has_prekeyid),
353 offsetof(Textsecure__PreKeySignalMessage, prekeyid),
354 NULL,
355 NULL,
356 0, /* flags */
357 0,NULL,NULL /* reserved1,reserved2, etc */
358 },
359 {
360 "baseKey",
361 2,
362 PROTOBUF_C_LABEL_OPTIONAL,
363 PROTOBUF_C_TYPE_BYTES,
364 offsetof(Textsecure__PreKeySignalMessage, has_basekey),
365 offsetof(Textsecure__PreKeySignalMessage, basekey),
366 NULL,
367 NULL,
368 0, /* flags */
369 0,NULL,NULL /* reserved1,reserved2, etc */
370 },
371 {
372 "identityKey",
373 3,
374 PROTOBUF_C_LABEL_OPTIONAL,
375 PROTOBUF_C_TYPE_BYTES,
376 offsetof(Textsecure__PreKeySignalMessage, has_identitykey),
377 offsetof(Textsecure__PreKeySignalMessage, identitykey),
378 NULL,
379 NULL,
380 0, /* flags */
381 0,NULL,NULL /* reserved1,reserved2, etc */
382 },
383 {
384 "message",
385 4,
386 PROTOBUF_C_LABEL_OPTIONAL,
387 PROTOBUF_C_TYPE_BYTES,
388 offsetof(Textsecure__PreKeySignalMessage, has_message),
389 offsetof(Textsecure__PreKeySignalMessage, message),
390 NULL,
391 NULL,
392 0, /* flags */
393 0,NULL,NULL /* reserved1,reserved2, etc */
394 },
395 {
396 "registrationId",
397 5,
398 PROTOBUF_C_LABEL_OPTIONAL,
399 PROTOBUF_C_TYPE_UINT32,
400 offsetof(Textsecure__PreKeySignalMessage, has_registrationid),
401 offsetof(Textsecure__PreKeySignalMessage, registrationid),
402 NULL,
403 NULL,
404 0, /* flags */
405 0,NULL,NULL /* reserved1,reserved2, etc */
406 },
407 {
408 "signedPreKeyId",
409 6,
410 PROTOBUF_C_LABEL_OPTIONAL,
411 PROTOBUF_C_TYPE_UINT32,
412 offsetof(Textsecure__PreKeySignalMessage, has_signedprekeyid),
413 offsetof(Textsecure__PreKeySignalMessage, signedprekeyid),
414 NULL,
415 NULL,
416 0, /* flags */
417 0,NULL,NULL /* reserved1,reserved2, etc */
418 },
419 };
420 static const unsigned textsecure__pre_key_signal_message__field_indices_by_name[] = {
421 1, /* field[1] = baseKey */
422 2, /* field[2] = identityKey */
423 3, /* field[3] = message */
424 0, /* field[0] = preKeyId */
425 4, /* field[4] = registrationId */
426 5, /* field[5] = signedPreKeyId */
427 };
428 static const ProtobufCIntRange textsecure__pre_key_signal_message__number_ranges[1 + 1] =
429 {
430 { 1, 0 },
431 { 0, 6 }
432 };
433 const ProtobufCMessageDescriptor textsecure__pre_key_signal_message__descriptor =
434 {
435 PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
436 "textsecure.PreKeySignalMessage",
437 "PreKeySignalMessage",
438 "Textsecure__PreKeySignalMessage",
439 "textsecure",
440 sizeof(Textsecure__PreKeySignalMessage),
441 6,
442 textsecure__pre_key_signal_message__field_descriptors,
443 textsecure__pre_key_signal_message__field_indices_by_name,
444 1, textsecure__pre_key_signal_message__number_ranges,
445 (ProtobufCMessageInit) textsecure__pre_key_signal_message__init,
446 NULL,NULL,NULL /* reserved[123] */
447 };
448 static const ProtobufCFieldDescriptor textsecure__key_exchange_message__field_descriptors[5] =
449 {
450 {
451 "id",
452 1,
453 PROTOBUF_C_LABEL_OPTIONAL,
454 PROTOBUF_C_TYPE_UINT32,
455 offsetof(Textsecure__KeyExchangeMessage, has_id),
456 offsetof(Textsecure__KeyExchangeMessage, id),
457 NULL,
458 NULL,
459 0, /* flags */
460 0,NULL,NULL /* reserved1,reserved2, etc */
461 },
462 {
463 "baseKey",
464 2,
465 PROTOBUF_C_LABEL_OPTIONAL,
466 PROTOBUF_C_TYPE_BYTES,
467 offsetof(Textsecure__KeyExchangeMessage, has_basekey),
468 offsetof(Textsecure__KeyExchangeMessage, basekey),
469 NULL,
470 NULL,
471 0, /* flags */
472 0,NULL,NULL /* reserved1,reserved2, etc */
473 },
474 {
475 "ratchetKey",
476 3,
477 PROTOBUF_C_LABEL_OPTIONAL,
478 PROTOBUF_C_TYPE_BYTES,
479 offsetof(Textsecure__KeyExchangeMessage, has_ratchetkey),
480 offsetof(Textsecure__KeyExchangeMessage, ratchetkey),
481 NULL,
482 NULL,
483 0, /* flags */
484 0,NULL,NULL /* reserved1,reserved2, etc */
485 },
486 {
487 "identityKey",
488 4,
489 PROTOBUF_C_LABEL_OPTIONAL,
490 PROTOBUF_C_TYPE_BYTES,
491 offsetof(Textsecure__KeyExchangeMessage, has_identitykey),
492 offsetof(Textsecure__KeyExchangeMessage, identitykey),
493 NULL,
494 NULL,
495 0, /* flags */
496 0,NULL,NULL /* reserved1,reserved2, etc */
497 },
498 {
499 "baseKeySignature",
500 5,
501 PROTOBUF_C_LABEL_OPTIONAL,
502 PROTOBUF_C_TYPE_BYTES,
503 offsetof(Textsecure__KeyExchangeMessage, has_basekeysignature),
504 offsetof(Textsecure__KeyExchangeMessage, basekeysignature),
505 NULL,
506 NULL,
507 0, /* flags */
508 0,NULL,NULL /* reserved1,reserved2, etc */
509 },
510 };
511 static const unsigned textsecure__key_exchange_message__field_indices_by_name[] = {
512 1, /* field[1] = baseKey */
513 4, /* field[4] = baseKeySignature */
514 0, /* field[0] = id */
515 3, /* field[3] = identityKey */
516 2, /* field[2] = ratchetKey */
517 };
518 static const ProtobufCIntRange textsecure__key_exchange_message__number_ranges[1 + 1] =
519 {
520 { 1, 0 },
521 { 0, 5 }
522 };
523 const ProtobufCMessageDescriptor textsecure__key_exchange_message__descriptor =
524 {
525 PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
526 "textsecure.KeyExchangeMessage",
527 "KeyExchangeMessage",
528 "Textsecure__KeyExchangeMessage",
529 "textsecure",
530 sizeof(Textsecure__KeyExchangeMessage),
531 5,
532 textsecure__key_exchange_message__field_descriptors,
533 textsecure__key_exchange_message__field_indices_by_name,
534 1, textsecure__key_exchange_message__number_ranges,
535 (ProtobufCMessageInit) textsecure__key_exchange_message__init,
536 NULL,NULL,NULL /* reserved[123] */
537 };
538 static const ProtobufCFieldDescriptor textsecure__sender_key_message__field_descriptors[3] =
539 {
540 {
541 "id",
542 1,
543 PROTOBUF_C_LABEL_OPTIONAL,
544 PROTOBUF_C_TYPE_UINT32,
545 offsetof(Textsecure__SenderKeyMessage, has_id),
546 offsetof(Textsecure__SenderKeyMessage, id),
547 NULL,
548 NULL,
549 0, /* flags */
550 0,NULL,NULL /* reserved1,reserved2, etc */
551 },
552 {
553 "iteration",
554 2,
555 PROTOBUF_C_LABEL_OPTIONAL,
556 PROTOBUF_C_TYPE_UINT32,
557 offsetof(Textsecure__SenderKeyMessage, has_iteration),
558 offsetof(Textsecure__SenderKeyMessage, iteration),
559 NULL,
560 NULL,
561 0, /* flags */
562 0,NULL,NULL /* reserved1,reserved2, etc */
563 },
564 {
565 "ciphertext",
566 3,
567 PROTOBUF_C_LABEL_OPTIONAL,
568 PROTOBUF_C_TYPE_BYTES,
569 offsetof(Textsecure__SenderKeyMessage, has_ciphertext),
570 offsetof(Textsecure__SenderKeyMessage, ciphertext),
571 NULL,
572 NULL,
573 0, /* flags */
574 0,NULL,NULL /* reserved1,reserved2, etc */
575 },
576 };
577 static const unsigned textsecure__sender_key_message__field_indices_by_name[] = {
578 2, /* field[2] = ciphertext */
579 0, /* field[0] = id */
580 1, /* field[1] = iteration */
581 };
582 static const ProtobufCIntRange textsecure__sender_key_message__number_ranges[1 + 1] =
583 {
584 { 1, 0 },
585 { 0, 3 }
586 };
587 const ProtobufCMessageDescriptor textsecure__sender_key_message__descriptor =
588 {
589 PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
590 "textsecure.SenderKeyMessage",
591 "SenderKeyMessage",
592 "Textsecure__SenderKeyMessage",
593 "textsecure",
594 sizeof(Textsecure__SenderKeyMessage),
595 3,
596 textsecure__sender_key_message__field_descriptors,
597 textsecure__sender_key_message__field_indices_by_name,
598 1, textsecure__sender_key_message__number_ranges,
599 (ProtobufCMessageInit) textsecure__sender_key_message__init,
600 NULL,NULL,NULL /* reserved[123] */
601 };
602 static const ProtobufCFieldDescriptor textsecure__sender_key_distribution_message__field_descriptors[4] =
603 {
604 {
605 "id",
606 1,
607 PROTOBUF_C_LABEL_OPTIONAL,
608 PROTOBUF_C_TYPE_UINT32,
609 offsetof(Textsecure__SenderKeyDistributionMessage, has_id),
610 offsetof(Textsecure__SenderKeyDistributionMessage, id),
611 NULL,
612 NULL,
613 0, /* flags */
614 0,NULL,NULL /* reserved1,reserved2, etc */
615 },
616 {
617 "iteration",
618 2,
619 PROTOBUF_C_LABEL_OPTIONAL,
620 PROTOBUF_C_TYPE_UINT32,
621 offsetof(Textsecure__SenderKeyDistributionMessage, has_iteration),
622 offsetof(Textsecure__SenderKeyDistributionMessage, iteration),
623 NULL,
624 NULL,
625 0, /* flags */
626 0,NULL,NULL /* reserved1,reserved2, etc */
627 },
628 {
629 "chainKey",
630 3,
631 PROTOBUF_C_LABEL_OPTIONAL,
632 PROTOBUF_C_TYPE_BYTES,
633 offsetof(Textsecure__SenderKeyDistributionMessage, has_chainkey),
634 offsetof(Textsecure__SenderKeyDistributionMessage, chainkey),
635 NULL,
636 NULL,
637 0, /* flags */
638 0,NULL,NULL /* reserved1,reserved2, etc */
639 },
640 {
641 "signingKey",
642 4,
643 PROTOBUF_C_LABEL_OPTIONAL,
644 PROTOBUF_C_TYPE_BYTES,
645 offsetof(Textsecure__SenderKeyDistributionMessage, has_signingkey),
646 offsetof(Textsecure__SenderKeyDistributionMessage, signingkey),
647 NULL,
648 NULL,
649 0, /* flags */
650 0,NULL,NULL /* reserved1,reserved2, etc */
651 },
652 };
653 static const unsigned textsecure__sender_key_distribution_message__field_indices_by_name[] = {
654 2, /* field[2] = chainKey */
655 0, /* field[0] = id */
656 1, /* field[1] = iteration */
657 3, /* field[3] = signingKey */
658 };
659 static const ProtobufCIntRange textsecure__sender_key_distribution_message__number_ranges[1 + 1] =
660 {
661 { 1, 0 },
662 { 0, 4 }
663 };
664 const ProtobufCMessageDescriptor textsecure__sender_key_distribution_message__descriptor =
665 {
666 PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
667 "textsecure.SenderKeyDistributionMessage",
668 "SenderKeyDistributionMessage",
669 "Textsecure__SenderKeyDistributionMessage",
670 "textsecure",
671 sizeof(Textsecure__SenderKeyDistributionMessage),
672 4,
673 textsecure__sender_key_distribution_message__field_descriptors,
674 textsecure__sender_key_distribution_message__field_indices_by_name,
675 1, textsecure__sender_key_distribution_message__number_ranges,
676 (ProtobufCMessageInit) textsecure__sender_key_distribution_message__init,
677 NULL,NULL,NULL /* reserved[123] */
678 };
679 static const ProtobufCFieldDescriptor textsecure__device_consistency_code_message__field_descriptors[2] =
680 {
681 {
682 "generation",
683 1,
684 PROTOBUF_C_LABEL_OPTIONAL,
685 PROTOBUF_C_TYPE_UINT32,
686 offsetof(Textsecure__DeviceConsistencyCodeMessage, has_generation),
687 offsetof(Textsecure__DeviceConsistencyCodeMessage, generation),
688 NULL,
689 NULL,
690 0, /* flags */
691 0,NULL,NULL /* reserved1,reserved2, etc */
692 },
693 {
694 "signature",
695 2,
696 PROTOBUF_C_LABEL_OPTIONAL,
697 PROTOBUF_C_TYPE_BYTES,
698 offsetof(Textsecure__DeviceConsistencyCodeMessage, has_signature),
699 offsetof(Textsecure__DeviceConsistencyCodeMessage, signature),
700 NULL,
701 NULL,
702 0, /* flags */
703 0,NULL,NULL /* reserved1,reserved2, etc */
704 },
705 };
706 static const unsigned textsecure__device_consistency_code_message__field_indices_by_name[] = {
707 0, /* field[0] = generation */
708 1, /* field[1] = signature */
709 };
710 static const ProtobufCIntRange textsecure__device_consistency_code_message__number_ranges[1 + 1] =
711 {
712 { 1, 0 },
713 { 0, 2 }
714 };
715 const ProtobufCMessageDescriptor textsecure__device_consistency_code_message__descriptor =
716 {
717 PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
718 "textsecure.DeviceConsistencyCodeMessage",
719 "DeviceConsistencyCodeMessage",
720 "Textsecure__DeviceConsistencyCodeMessage",
721 "textsecure",
722 sizeof(Textsecure__DeviceConsistencyCodeMessage),
723 2,
724 textsecure__device_consistency_code_message__field_descriptors,
725 textsecure__device_consistency_code_message__field_indices_by_name,
726 1, textsecure__device_consistency_code_message__number_ranges,
727 (ProtobufCMessageInit) textsecure__device_consistency_code_message__init,
728 NULL,NULL,NULL /* reserved[123] */
729 };
730