-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbt.pb.h
730 lines (635 loc) · 27.4 KB
/
bt.pb.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: external/aic/btd/bt.proto
#ifndef PROTOBUF_external_2faic_2fbtd_2fbt_2eproto__INCLUDED
#define PROTOBUF_external_2faic_2fbtd_2fbt_2eproto__INCLUDED
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 2003000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 2003000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/repeated_field.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/generated_message_reflection.h>
// @@protoc_insertion_point(includes)
// Internal implementation detail -- do not call these.
void protobuf_AddDesc_external_2faic_2fbtd_2fbt_2eproto();
void protobuf_AssignDesc_external_2faic_2fbtd_2fbt_2eproto();
void protobuf_ShutdownFile_external_2faic_2fbtd_2fbt_2eproto();
class btPayload;
class btPayload_BtifPayload;
class btPayload_BtePayload;
enum btPayload_BtifPayload_cmdTypeBtif {
btPayload_BtifPayload_cmdTypeBtif_INIT = 0,
btPayload_BtifPayload_cmdTypeBtif_ENABLE = 1,
btPayload_BtifPayload_cmdTypeBtif_DISABLE = 2,
btPayload_BtifPayload_cmdTypeBtif_CLEANUP = 3,
btPayload_BtifPayload_cmdTypeBtif_GET_ADAPTER_PROPERTIES = 4,
btPayload_BtifPayload_cmdTypeBtif_GET_ADAPTER_PROPERTY = 5,
btPayload_BtifPayload_cmdTypeBtif_SET_ADAPTER_PROPERTY = 6,
btPayload_BtifPayload_cmdTypeBtif_GET_REMOTE_DEVICE_PROPERTIES = 7,
btPayload_BtifPayload_cmdTypeBtif_GET_REMOTE_DEVICE_PROPERTY = 8,
btPayload_BtifPayload_cmdTypeBtif_SET_REMOTE_DEVICE_PROPERTY = 9,
btPayload_BtifPayload_cmdTypeBtif_GET_REMOTE_SERVICE_RECORD = 10,
btPayload_BtifPayload_cmdTypeBtif_GET_REMOTE_SERVICES = 11,
btPayload_BtifPayload_cmdTypeBtif_START_DISCOVERY = 12,
btPayload_BtifPayload_cmdTypeBtif_CANCEL_DISCOVERY = 13,
btPayload_BtifPayload_cmdTypeBtif_CREATE_BOND = 14,
btPayload_BtifPayload_cmdTypeBtif_REMOVE_BOND = 15,
btPayload_BtifPayload_cmdTypeBtif_CANCEL_BOND = 16,
btPayload_BtifPayload_cmdTypeBtif_PIN_REPLY = 17,
btPayload_BtifPayload_cmdTypeBtif_SSP_REPLY = 18,
btPayload_BtifPayload_cmdTypeBtif_GET_PROFILE_INTERFACE = 19,
btPayload_BtifPayload_cmdTypeBtif_DUT_MODE_CONFIGURE = 20,
btPayload_BtifPayload_cmdTypeBtif_DUT_MODE_SEND = 21,
btPayload_BtifPayload_cmdTypeBtif_LE_TEST_MODE = 22,
btPayload_BtifPayload_cmdTypeBtif_CONFIG_HCI_SNOOP_LOG = 23,
btPayload_BtifPayload_cmdTypeBtif_SET_ADAPTER_PROPERTY_BDNAME = 24,
btPayload_BtifPayload_cmdTypeBtif_SET_ADAPTER_PROPERTY_SCAN_MODE_NONE = 25,
btPayload_BtifPayload_cmdTypeBtif_SET_ADAPTER_PROPERTY_SCAN_MODE_CONNECTABLE = 26,
btPayload_BtifPayload_cmdTypeBtif_SET_ADAPTER_PROPERTY_SCAN_MODE_CONNECTABLE_DISCOVERABLE = 27,
btPayload_BtifPayload_cmdTypeBtif_SET_ADAPTER_PROPERTY_DISCOVERY_TIMEOUT_2M = 28,
btPayload_BtifPayload_cmdTypeBtif_SET_ADAPTER_PROPERTY_DISCOVERY_TIMEOUT_5M = 29,
btPayload_BtifPayload_cmdTypeBtif_SET_ADAPTER_PROPERTY_DISCOVERY_TIMEOUT_1H = 30,
btPayload_BtifPayload_cmdTypeBtif_SET_ADAPTER_PROPERTY_DISCOVERY_TIMEOUT_NE = 31
};
bool btPayload_BtifPayload_cmdTypeBtif_IsValid(int value);
const btPayload_BtifPayload_cmdTypeBtif btPayload_BtifPayload_cmdTypeBtif_cmdTypeBtif_MIN = btPayload_BtifPayload_cmdTypeBtif_INIT;
const btPayload_BtifPayload_cmdTypeBtif btPayload_BtifPayload_cmdTypeBtif_cmdTypeBtif_MAX = btPayload_BtifPayload_cmdTypeBtif_SET_ADAPTER_PROPERTY_DISCOVERY_TIMEOUT_NE;
const int btPayload_BtifPayload_cmdTypeBtif_cmdTypeBtif_ARRAYSIZE = btPayload_BtifPayload_cmdTypeBtif_cmdTypeBtif_MAX + 1;
const ::google::protobuf::EnumDescriptor* btPayload_BtifPayload_cmdTypeBtif_descriptor();
inline const ::std::string& btPayload_BtifPayload_cmdTypeBtif_Name(btPayload_BtifPayload_cmdTypeBtif value) {
return ::google::protobuf::internal::NameOfEnum(
btPayload_BtifPayload_cmdTypeBtif_descriptor(), value);
}
inline bool btPayload_BtifPayload_cmdTypeBtif_Parse(
const ::std::string& name, btPayload_BtifPayload_cmdTypeBtif* value) {
return ::google::protobuf::internal::ParseNamedEnum<btPayload_BtifPayload_cmdTypeBtif>(
btPayload_BtifPayload_cmdTypeBtif_descriptor(), name, value);
}
enum btPayload_BtePayload_cmdTypeBte {
btPayload_BtePayload_cmdTypeBte_INQ_RES = 100,
btPayload_BtePayload_cmdTypeBte_BOND_STATE = 101,
btPayload_BtePayload_cmdTypeBte_DISC_RES = 102
};
bool btPayload_BtePayload_cmdTypeBte_IsValid(int value);
const btPayload_BtePayload_cmdTypeBte btPayload_BtePayload_cmdTypeBte_cmdTypeBte_MIN = btPayload_BtePayload_cmdTypeBte_INQ_RES;
const btPayload_BtePayload_cmdTypeBte btPayload_BtePayload_cmdTypeBte_cmdTypeBte_MAX = btPayload_BtePayload_cmdTypeBte_DISC_RES;
const int btPayload_BtePayload_cmdTypeBte_cmdTypeBte_ARRAYSIZE = btPayload_BtePayload_cmdTypeBte_cmdTypeBte_MAX + 1;
const ::google::protobuf::EnumDescriptor* btPayload_BtePayload_cmdTypeBte_descriptor();
inline const ::std::string& btPayload_BtePayload_cmdTypeBte_Name(btPayload_BtePayload_cmdTypeBte value) {
return ::google::protobuf::internal::NameOfEnum(
btPayload_BtePayload_cmdTypeBte_descriptor(), value);
}
inline bool btPayload_BtePayload_cmdTypeBte_Parse(
const ::std::string& name, btPayload_BtePayload_cmdTypeBte* value) {
return ::google::protobuf::internal::ParseNamedEnum<btPayload_BtePayload_cmdTypeBte>(
btPayload_BtePayload_cmdTypeBte_descriptor(), name, value);
}
// ===================================================================
class btPayload_BtifPayload : public ::google::protobuf::Message {
public:
btPayload_BtifPayload();
virtual ~btPayload_BtifPayload();
btPayload_BtifPayload(const btPayload_BtifPayload& from);
inline btPayload_BtifPayload& operator=(const btPayload_BtifPayload& from) {
CopyFrom(from);
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _unknown_fields_;
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return &_unknown_fields_;
}
static const ::google::protobuf::Descriptor* descriptor();
static const btPayload_BtifPayload& default_instance();
void Swap(btPayload_BtifPayload* other);
// implements Message ----------------------------------------------
btPayload_BtifPayload* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const btPayload_BtifPayload& from);
void MergeFrom(const btPayload_BtifPayload& from);
void Clear();
bool IsInitialized() const;
int ByteSize() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
typedef btPayload_BtifPayload_cmdTypeBtif cmdTypeBtif;
static const cmdTypeBtif INIT = btPayload_BtifPayload_cmdTypeBtif_INIT;
static const cmdTypeBtif ENABLE = btPayload_BtifPayload_cmdTypeBtif_ENABLE;
static const cmdTypeBtif DISABLE = btPayload_BtifPayload_cmdTypeBtif_DISABLE;
static const cmdTypeBtif CLEANUP = btPayload_BtifPayload_cmdTypeBtif_CLEANUP;
static const cmdTypeBtif GET_ADAPTER_PROPERTIES = btPayload_BtifPayload_cmdTypeBtif_GET_ADAPTER_PROPERTIES;
static const cmdTypeBtif GET_ADAPTER_PROPERTY = btPayload_BtifPayload_cmdTypeBtif_GET_ADAPTER_PROPERTY;
static const cmdTypeBtif SET_ADAPTER_PROPERTY = btPayload_BtifPayload_cmdTypeBtif_SET_ADAPTER_PROPERTY;
static const cmdTypeBtif GET_REMOTE_DEVICE_PROPERTIES = btPayload_BtifPayload_cmdTypeBtif_GET_REMOTE_DEVICE_PROPERTIES;
static const cmdTypeBtif GET_REMOTE_DEVICE_PROPERTY = btPayload_BtifPayload_cmdTypeBtif_GET_REMOTE_DEVICE_PROPERTY;
static const cmdTypeBtif SET_REMOTE_DEVICE_PROPERTY = btPayload_BtifPayload_cmdTypeBtif_SET_REMOTE_DEVICE_PROPERTY;
static const cmdTypeBtif GET_REMOTE_SERVICE_RECORD = btPayload_BtifPayload_cmdTypeBtif_GET_REMOTE_SERVICE_RECORD;
static const cmdTypeBtif GET_REMOTE_SERVICES = btPayload_BtifPayload_cmdTypeBtif_GET_REMOTE_SERVICES;
static const cmdTypeBtif START_DISCOVERY = btPayload_BtifPayload_cmdTypeBtif_START_DISCOVERY;
static const cmdTypeBtif CANCEL_DISCOVERY = btPayload_BtifPayload_cmdTypeBtif_CANCEL_DISCOVERY;
static const cmdTypeBtif CREATE_BOND = btPayload_BtifPayload_cmdTypeBtif_CREATE_BOND;
static const cmdTypeBtif REMOVE_BOND = btPayload_BtifPayload_cmdTypeBtif_REMOVE_BOND;
static const cmdTypeBtif CANCEL_BOND = btPayload_BtifPayload_cmdTypeBtif_CANCEL_BOND;
static const cmdTypeBtif PIN_REPLY = btPayload_BtifPayload_cmdTypeBtif_PIN_REPLY;
static const cmdTypeBtif SSP_REPLY = btPayload_BtifPayload_cmdTypeBtif_SSP_REPLY;
static const cmdTypeBtif GET_PROFILE_INTERFACE = btPayload_BtifPayload_cmdTypeBtif_GET_PROFILE_INTERFACE;
static const cmdTypeBtif DUT_MODE_CONFIGURE = btPayload_BtifPayload_cmdTypeBtif_DUT_MODE_CONFIGURE;
static const cmdTypeBtif DUT_MODE_SEND = btPayload_BtifPayload_cmdTypeBtif_DUT_MODE_SEND;
static const cmdTypeBtif LE_TEST_MODE = btPayload_BtifPayload_cmdTypeBtif_LE_TEST_MODE;
static const cmdTypeBtif CONFIG_HCI_SNOOP_LOG = btPayload_BtifPayload_cmdTypeBtif_CONFIG_HCI_SNOOP_LOG;
static const cmdTypeBtif SET_ADAPTER_PROPERTY_BDNAME = btPayload_BtifPayload_cmdTypeBtif_SET_ADAPTER_PROPERTY_BDNAME;
static const cmdTypeBtif SET_ADAPTER_PROPERTY_SCAN_MODE_NONE = btPayload_BtifPayload_cmdTypeBtif_SET_ADAPTER_PROPERTY_SCAN_MODE_NONE;
static const cmdTypeBtif SET_ADAPTER_PROPERTY_SCAN_MODE_CONNECTABLE = btPayload_BtifPayload_cmdTypeBtif_SET_ADAPTER_PROPERTY_SCAN_MODE_CONNECTABLE;
static const cmdTypeBtif SET_ADAPTER_PROPERTY_SCAN_MODE_CONNECTABLE_DISCOVERABLE = btPayload_BtifPayload_cmdTypeBtif_SET_ADAPTER_PROPERTY_SCAN_MODE_CONNECTABLE_DISCOVERABLE;
static const cmdTypeBtif SET_ADAPTER_PROPERTY_DISCOVERY_TIMEOUT_2M = btPayload_BtifPayload_cmdTypeBtif_SET_ADAPTER_PROPERTY_DISCOVERY_TIMEOUT_2M;
static const cmdTypeBtif SET_ADAPTER_PROPERTY_DISCOVERY_TIMEOUT_5M = btPayload_BtifPayload_cmdTypeBtif_SET_ADAPTER_PROPERTY_DISCOVERY_TIMEOUT_5M;
static const cmdTypeBtif SET_ADAPTER_PROPERTY_DISCOVERY_TIMEOUT_1H = btPayload_BtifPayload_cmdTypeBtif_SET_ADAPTER_PROPERTY_DISCOVERY_TIMEOUT_1H;
static const cmdTypeBtif SET_ADAPTER_PROPERTY_DISCOVERY_TIMEOUT_NE = btPayload_BtifPayload_cmdTypeBtif_SET_ADAPTER_PROPERTY_DISCOVERY_TIMEOUT_NE;
static inline bool cmdTypeBtif_IsValid(int value) {
return btPayload_BtifPayload_cmdTypeBtif_IsValid(value);
}
static const cmdTypeBtif cmdTypeBtif_MIN =
btPayload_BtifPayload_cmdTypeBtif_cmdTypeBtif_MIN;
static const cmdTypeBtif cmdTypeBtif_MAX =
btPayload_BtifPayload_cmdTypeBtif_cmdTypeBtif_MAX;
static const int cmdTypeBtif_ARRAYSIZE =
btPayload_BtifPayload_cmdTypeBtif_cmdTypeBtif_ARRAYSIZE;
static inline const ::google::protobuf::EnumDescriptor*
cmdTypeBtif_descriptor() {
return btPayload_BtifPayload_cmdTypeBtif_descriptor();
}
static inline const ::std::string& cmdTypeBtif_Name(cmdTypeBtif value) {
return btPayload_BtifPayload_cmdTypeBtif_Name(value);
}
static inline bool cmdTypeBtif_Parse(const ::std::string& name,
cmdTypeBtif* value) {
return btPayload_BtifPayload_cmdTypeBtif_Parse(name, value);
}
// accessors -------------------------------------------------------
// optional .btPayload.BtifPayload.cmdTypeBtif cmd = 5 [default = INIT];
inline bool has_cmd() const;
inline void clear_cmd();
static const int kCmdFieldNumber = 5;
inline ::btPayload_BtifPayload_cmdTypeBtif cmd() const;
inline void set_cmd(::btPayload_BtifPayload_cmdTypeBtif value);
// @@protoc_insertion_point(class_scope:btPayload.BtifPayload)
private:
::google::protobuf::UnknownFieldSet _unknown_fields_;
mutable int _cached_size_;
int cmd_;
friend void protobuf_AddDesc_external_2faic_2fbtd_2fbt_2eproto();
friend void protobuf_AssignDesc_external_2faic_2fbtd_2fbt_2eproto();
friend void protobuf_ShutdownFile_external_2faic_2fbtd_2fbt_2eproto();
::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
// WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
inline bool _has_bit(int index) const {
return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
}
inline void _set_bit(int index) {
_has_bits_[index / 32] |= (1u << (index % 32));
}
inline void _clear_bit(int index) {
_has_bits_[index / 32] &= ~(1u << (index % 32));
}
void InitAsDefaultInstance();
static btPayload_BtifPayload* default_instance_;
};
// -------------------------------------------------------------------
class btPayload_BtePayload : public ::google::protobuf::Message {
public:
btPayload_BtePayload();
virtual ~btPayload_BtePayload();
btPayload_BtePayload(const btPayload_BtePayload& from);
inline btPayload_BtePayload& operator=(const btPayload_BtePayload& from) {
CopyFrom(from);
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _unknown_fields_;
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return &_unknown_fields_;
}
static const ::google::protobuf::Descriptor* descriptor();
static const btPayload_BtePayload& default_instance();
void Swap(btPayload_BtePayload* other);
// implements Message ----------------------------------------------
btPayload_BtePayload* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const btPayload_BtePayload& from);
void MergeFrom(const btPayload_BtePayload& from);
void Clear();
bool IsInitialized() const;
int ByteSize() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
typedef btPayload_BtePayload_cmdTypeBte cmdTypeBte;
static const cmdTypeBte INQ_RES = btPayload_BtePayload_cmdTypeBte_INQ_RES;
static const cmdTypeBte BOND_STATE = btPayload_BtePayload_cmdTypeBte_BOND_STATE;
static const cmdTypeBte DISC_RES = btPayload_BtePayload_cmdTypeBte_DISC_RES;
static inline bool cmdTypeBte_IsValid(int value) {
return btPayload_BtePayload_cmdTypeBte_IsValid(value);
}
static const cmdTypeBte cmdTypeBte_MIN =
btPayload_BtePayload_cmdTypeBte_cmdTypeBte_MIN;
static const cmdTypeBte cmdTypeBte_MAX =
btPayload_BtePayload_cmdTypeBte_cmdTypeBte_MAX;
static const int cmdTypeBte_ARRAYSIZE =
btPayload_BtePayload_cmdTypeBte_cmdTypeBte_ARRAYSIZE;
static inline const ::google::protobuf::EnumDescriptor*
cmdTypeBte_descriptor() {
return btPayload_BtePayload_cmdTypeBte_descriptor();
}
static inline const ::std::string& cmdTypeBte_Name(cmdTypeBte value) {
return btPayload_BtePayload_cmdTypeBte_Name(value);
}
static inline bool cmdTypeBte_Parse(const ::std::string& name,
cmdTypeBte* value) {
return btPayload_BtePayload_cmdTypeBte_Parse(name, value);
}
// accessors -------------------------------------------------------
// optional .btPayload.BtePayload.cmdTypeBte cmd = 7 [default = INQ_RES];
inline bool has_cmd() const;
inline void clear_cmd();
static const int kCmdFieldNumber = 7;
inline ::btPayload_BtePayload_cmdTypeBte cmd() const;
inline void set_cmd(::btPayload_BtePayload_cmdTypeBte value);
// @@protoc_insertion_point(class_scope:btPayload.BtePayload)
private:
::google::protobuf::UnknownFieldSet _unknown_fields_;
mutable int _cached_size_;
int cmd_;
friend void protobuf_AddDesc_external_2faic_2fbtd_2fbt_2eproto();
friend void protobuf_AssignDesc_external_2faic_2fbtd_2fbt_2eproto();
friend void protobuf_ShutdownFile_external_2faic_2fbtd_2fbt_2eproto();
::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
// WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
inline bool _has_bit(int index) const {
return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
}
inline void _set_bit(int index) {
_has_bits_[index / 32] |= (1u << (index % 32));
}
inline void _clear_bit(int index) {
_has_bits_[index / 32] &= ~(1u << (index % 32));
}
void InitAsDefaultInstance();
static btPayload_BtePayload* default_instance_;
};
// -------------------------------------------------------------------
class btPayload : public ::google::protobuf::Message {
public:
btPayload();
virtual ~btPayload();
btPayload(const btPayload& from);
inline btPayload& operator=(const btPayload& from) {
CopyFrom(from);
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _unknown_fields_;
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return &_unknown_fields_;
}
static const ::google::protobuf::Descriptor* descriptor();
static const btPayload& default_instance();
void Swap(btPayload* other);
// implements Message ----------------------------------------------
btPayload* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const btPayload& from);
void MergeFrom(const btPayload& from);
void Clear();
bool IsInitialized() const;
int ByteSize() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
typedef btPayload_BtifPayload BtifPayload;
typedef btPayload_BtePayload BtePayload;
// accessors -------------------------------------------------------
// optional string addr = 1;
inline bool has_addr() const;
inline void clear_addr();
static const int kAddrFieldNumber = 1;
inline const ::std::string& addr() const;
inline void set_addr(const ::std::string& value);
inline void set_addr(const char* value);
inline void set_addr(const char* value, size_t size);
inline ::std::string* mutable_addr();
// optional string name = 2;
inline bool has_name() const;
inline void clear_name();
static const int kNameFieldNumber = 2;
inline const ::std::string& name() const;
inline void set_name(const ::std::string& value);
inline void set_name(const char* value);
inline void set_name(const char* value, size_t size);
inline ::std::string* mutable_name();
// optional string devclass = 3;
inline bool has_devclass() const;
inline void clear_devclass();
static const int kDevclassFieldNumber = 3;
inline const ::std::string& devclass() const;
inline void set_devclass(const ::std::string& value);
inline void set_devclass(const char* value);
inline void set_devclass(const char* value, size_t size);
inline ::std::string* mutable_devclass();
// optional .btPayload.BtifPayload btif = 4;
inline bool has_btif() const;
inline void clear_btif();
static const int kBtifFieldNumber = 4;
inline const ::btPayload_BtifPayload& btif() const;
inline ::btPayload_BtifPayload* mutable_btif();
// optional .btPayload.BtePayload bte = 6;
inline bool has_bte() const;
inline void clear_bte();
static const int kBteFieldNumber = 6;
inline const ::btPayload_BtePayload& bte() const;
inline ::btPayload_BtePayload* mutable_bte();
// @@protoc_insertion_point(class_scope:btPayload)
private:
::google::protobuf::UnknownFieldSet _unknown_fields_;
mutable int _cached_size_;
::std::string* addr_;
static const ::std::string _default_addr_;
::std::string* name_;
static const ::std::string _default_name_;
::std::string* devclass_;
static const ::std::string _default_devclass_;
::btPayload_BtifPayload* btif_;
::btPayload_BtePayload* bte_;
friend void protobuf_AddDesc_external_2faic_2fbtd_2fbt_2eproto();
friend void protobuf_AssignDesc_external_2faic_2fbtd_2fbt_2eproto();
friend void protobuf_ShutdownFile_external_2faic_2fbtd_2fbt_2eproto();
::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
// WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
inline bool _has_bit(int index) const {
return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
}
inline void _set_bit(int index) {
_has_bits_[index / 32] |= (1u << (index % 32));
}
inline void _clear_bit(int index) {
_has_bits_[index / 32] &= ~(1u << (index % 32));
}
void InitAsDefaultInstance();
static btPayload* default_instance_;
};
// ===================================================================
// ===================================================================
// btPayload_BtifPayload
// optional .btPayload.BtifPayload.cmdTypeBtif cmd = 5 [default = INIT];
inline bool btPayload_BtifPayload::has_cmd() const {
return _has_bit(0);
}
inline void btPayload_BtifPayload::clear_cmd() {
cmd_ = 0;
_clear_bit(0);
}
inline ::btPayload_BtifPayload_cmdTypeBtif btPayload_BtifPayload::cmd() const {
return static_cast< ::btPayload_BtifPayload_cmdTypeBtif >(cmd_);
}
inline void btPayload_BtifPayload::set_cmd(::btPayload_BtifPayload_cmdTypeBtif value) {
GOOGLE_DCHECK(::btPayload_BtifPayload_cmdTypeBtif_IsValid(value));
_set_bit(0);
cmd_ = value;
}
// -------------------------------------------------------------------
// btPayload_BtePayload
// optional .btPayload.BtePayload.cmdTypeBte cmd = 7 [default = INQ_RES];
inline bool btPayload_BtePayload::has_cmd() const {
return _has_bit(0);
}
inline void btPayload_BtePayload::clear_cmd() {
cmd_ = 100;
_clear_bit(0);
}
inline ::btPayload_BtePayload_cmdTypeBte btPayload_BtePayload::cmd() const {
return static_cast< ::btPayload_BtePayload_cmdTypeBte >(cmd_);
}
inline void btPayload_BtePayload::set_cmd(::btPayload_BtePayload_cmdTypeBte value) {
GOOGLE_DCHECK(::btPayload_BtePayload_cmdTypeBte_IsValid(value));
_set_bit(0);
cmd_ = value;
}
// -------------------------------------------------------------------
// btPayload
// optional string addr = 1;
inline bool btPayload::has_addr() const {
return _has_bit(0);
}
inline void btPayload::clear_addr() {
if (addr_ != &_default_addr_) {
addr_->clear();
}
_clear_bit(0);
}
inline const ::std::string& btPayload::addr() const {
return *addr_;
}
inline void btPayload::set_addr(const ::std::string& value) {
_set_bit(0);
if (addr_ == &_default_addr_) {
addr_ = new ::std::string;
}
addr_->assign(value);
}
inline void btPayload::set_addr(const char* value) {
_set_bit(0);
if (addr_ == &_default_addr_) {
addr_ = new ::std::string;
}
addr_->assign(value);
}
inline void btPayload::set_addr(const char* value, size_t size) {
_set_bit(0);
if (addr_ == &_default_addr_) {
addr_ = new ::std::string;
}
addr_->assign(reinterpret_cast<const char*>(value), size);
}
inline ::std::string* btPayload::mutable_addr() {
_set_bit(0);
if (addr_ == &_default_addr_) {
addr_ = new ::std::string;
}
return addr_;
}
// optional string name = 2;
inline bool btPayload::has_name() const {
return _has_bit(1);
}
inline void btPayload::clear_name() {
if (name_ != &_default_name_) {
name_->clear();
}
_clear_bit(1);
}
inline const ::std::string& btPayload::name() const {
return *name_;
}
inline void btPayload::set_name(const ::std::string& value) {
_set_bit(1);
if (name_ == &_default_name_) {
name_ = new ::std::string;
}
name_->assign(value);
}
inline void btPayload::set_name(const char* value) {
_set_bit(1);
if (name_ == &_default_name_) {
name_ = new ::std::string;
}
name_->assign(value);
}
inline void btPayload::set_name(const char* value, size_t size) {
_set_bit(1);
if (name_ == &_default_name_) {
name_ = new ::std::string;
}
name_->assign(reinterpret_cast<const char*>(value), size);
}
inline ::std::string* btPayload::mutable_name() {
_set_bit(1);
if (name_ == &_default_name_) {
name_ = new ::std::string;
}
return name_;
}
// optional string devclass = 3;
inline bool btPayload::has_devclass() const {
return _has_bit(2);
}
inline void btPayload::clear_devclass() {
if (devclass_ != &_default_devclass_) {
devclass_->clear();
}
_clear_bit(2);
}
inline const ::std::string& btPayload::devclass() const {
return *devclass_;
}
inline void btPayload::set_devclass(const ::std::string& value) {
_set_bit(2);
if (devclass_ == &_default_devclass_) {
devclass_ = new ::std::string;
}
devclass_->assign(value);
}
inline void btPayload::set_devclass(const char* value) {
_set_bit(2);
if (devclass_ == &_default_devclass_) {
devclass_ = new ::std::string;
}
devclass_->assign(value);
}
inline void btPayload::set_devclass(const char* value, size_t size) {
_set_bit(2);
if (devclass_ == &_default_devclass_) {
devclass_ = new ::std::string;
}
devclass_->assign(reinterpret_cast<const char*>(value), size);
}
inline ::std::string* btPayload::mutable_devclass() {
_set_bit(2);
if (devclass_ == &_default_devclass_) {
devclass_ = new ::std::string;
}
return devclass_;
}
// optional .btPayload.BtifPayload btif = 4;
inline bool btPayload::has_btif() const {
return _has_bit(3);
}
inline void btPayload::clear_btif() {
if (btif_ != NULL) btif_->::btPayload_BtifPayload::Clear();
_clear_bit(3);
}
inline const ::btPayload_BtifPayload& btPayload::btif() const {
return btif_ != NULL ? *btif_ : *default_instance_->btif_;
}
inline ::btPayload_BtifPayload* btPayload::mutable_btif() {
_set_bit(3);
if (btif_ == NULL) btif_ = new ::btPayload_BtifPayload;
return btif_;
}
// optional .btPayload.BtePayload bte = 6;
inline bool btPayload::has_bte() const {
return _has_bit(4);
}
inline void btPayload::clear_bte() {
if (bte_ != NULL) bte_->::btPayload_BtePayload::Clear();
_clear_bit(4);
}
inline const ::btPayload_BtePayload& btPayload::bte() const {
return bte_ != NULL ? *bte_ : *default_instance_->bte_;
}
inline ::btPayload_BtePayload* btPayload::mutable_bte() {
_set_bit(4);
if (bte_ == NULL) bte_ = new ::btPayload_BtePayload;
return bte_;
}
// @@protoc_insertion_point(namespace_scope)
#ifndef SWIG
namespace google {
namespace protobuf {
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::btPayload_BtifPayload_cmdTypeBtif>() {
return ::btPayload_BtifPayload_cmdTypeBtif_descriptor();
}
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::btPayload_BtePayload_cmdTypeBte>() {
return ::btPayload_BtePayload_cmdTypeBte_descriptor();
}
} // namespace google
} // namespace protobuf
#endif // SWIG
// @@protoc_insertion_point(global_scope)
#endif // PROTOBUF_external_2faic_2fbtd_2fbt_2eproto__INCLUDED