1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ctrl.proto
3
4 #ifndef PROTOBUF_ctrl_2eproto__INCLUDED
5 #define PROTOBUF_ctrl_2eproto__INCLUDED
6
7 #include <string>
8
9 #include <google/protobuf/stubs/common.h>
10
11 #if GOOGLE_PROTOBUF_VERSION < 2003000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 2003000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
20 #endif
21
22 #include <google/protobuf/generated_message_util.h>
23 #include <google/protobuf/repeated_field.h>
24 #include <google/protobuf/extension_set.h>
25 #include <google/protobuf/generated_message_reflection.h>
26 #include "ril.pb.h"
27 // @@protoc_insertion_point(includes)
28
29 namespace ril_proto {
30
31 // Internal implementation detail -- do not call these.
32 void protobuf_AddDesc_ctrl_2eproto();
33 void protobuf_AssignDesc_ctrl_2eproto();
34 void protobuf_ShutdownFile_ctrl_2eproto();
35
36 class CtrlReqRadioState;
37 class CtrlRspRadioState;
38 class CtrlReqSetMTCall;
39 class CtrlHangupConnRemote;
40 class CtrlSetCallTransitionFlag;
41 class CtrlReqAddDialingCall;
42
43 enum CtrlCmd {
44 CTRL_CMD_ECHO = 0,
45 CTRL_CMD_GET_RADIO_STATE = 1,
46 CTRL_CMD_SET_RADIO_STATE = 2,
47 CTRL_CMD_SET_MT_CALL = 1001,
48 CTRL_CMD_HANGUP_CONN_REMOTE = 1002,
49 CTRL_CMD_SET_CALL_TRANSITION_FLAG = 1003,
50 CTRL_CMD_SET_CALL_ALERT = 1004,
51 CTRL_CMD_SET_CALL_ACTIVE = 1005,
52 CTRL_CMD_ADD_DIALING_CALL = 1006
53 };
54 bool CtrlCmd_IsValid(int value);
55 const CtrlCmd CtrlCmd_MIN = CTRL_CMD_ECHO;
56 const CtrlCmd CtrlCmd_MAX = CTRL_CMD_ADD_DIALING_CALL;
57 const int CtrlCmd_ARRAYSIZE = CtrlCmd_MAX + 1;
58
59 const ::google::protobuf::EnumDescriptor* CtrlCmd_descriptor();
CtrlCmd_Name(CtrlCmd value)60 inline const ::std::string& CtrlCmd_Name(CtrlCmd value) {
61 return ::google::protobuf::internal::NameOfEnum(
62 CtrlCmd_descriptor(), value);
63 }
CtrlCmd_Parse(const::std::string & name,CtrlCmd * value)64 inline bool CtrlCmd_Parse(
65 const ::std::string& name, CtrlCmd* value) {
66 return ::google::protobuf::internal::ParseNamedEnum<CtrlCmd>(
67 CtrlCmd_descriptor(), name, value);
68 }
69 enum CtrlStatus {
70 CTRL_STATUS_OK = 0,
71 CTRL_STATUS_ERR = 1
72 };
73 bool CtrlStatus_IsValid(int value);
74 const CtrlStatus CtrlStatus_MIN = CTRL_STATUS_OK;
75 const CtrlStatus CtrlStatus_MAX = CTRL_STATUS_ERR;
76 const int CtrlStatus_ARRAYSIZE = CtrlStatus_MAX + 1;
77
78 const ::google::protobuf::EnumDescriptor* CtrlStatus_descriptor();
CtrlStatus_Name(CtrlStatus value)79 inline const ::std::string& CtrlStatus_Name(CtrlStatus value) {
80 return ::google::protobuf::internal::NameOfEnum(
81 CtrlStatus_descriptor(), value);
82 }
CtrlStatus_Parse(const::std::string & name,CtrlStatus * value)83 inline bool CtrlStatus_Parse(
84 const ::std::string& name, CtrlStatus* value) {
85 return ::google::protobuf::internal::ParseNamedEnum<CtrlStatus>(
86 CtrlStatus_descriptor(), name, value);
87 }
88 // ===================================================================
89
90 class CtrlReqRadioState : public ::google::protobuf::Message {
91 public:
92 CtrlReqRadioState();
93 virtual ~CtrlReqRadioState();
94
95 CtrlReqRadioState(const CtrlReqRadioState& from);
96
97 inline CtrlReqRadioState& operator=(const CtrlReqRadioState& from) {
98 CopyFrom(from);
99 return *this;
100 }
101
unknown_fields()102 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
103 return _unknown_fields_;
104 }
105
mutable_unknown_fields()106 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
107 return &_unknown_fields_;
108 }
109
110 static const ::google::protobuf::Descriptor* descriptor();
111 static const CtrlReqRadioState& default_instance();
112
113 void Swap(CtrlReqRadioState* other);
114
115 // implements Message ----------------------------------------------
116
117 CtrlReqRadioState* New() const;
118 void CopyFrom(const ::google::protobuf::Message& from);
119 void MergeFrom(const ::google::protobuf::Message& from);
120 void CopyFrom(const CtrlReqRadioState& from);
121 void MergeFrom(const CtrlReqRadioState& from);
122 void Clear();
123 bool IsInitialized() const;
124
125 int ByteSize() const;
126 bool MergePartialFromCodedStream(
127 ::google::protobuf::io::CodedInputStream* input);
128 void SerializeWithCachedSizes(
129 ::google::protobuf::io::CodedOutputStream* output) const;
130 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()131 int GetCachedSize() const { return _cached_size_; }
132 private:
133 void SharedCtor();
134 void SharedDtor();
135 void SetCachedSize(int size) const;
136 public:
137
138 ::google::protobuf::Metadata GetMetadata() const;
139
140 // nested types ----------------------------------------------------
141
142 // accessors -------------------------------------------------------
143
144 // required .ril_proto.RadioState state = 1;
145 inline bool has_state() const;
146 inline void clear_state();
147 static const int kStateFieldNumber = 1;
148 inline ril_proto::RadioState state() const;
149 inline void set_state(ril_proto::RadioState value);
150
151 // @@protoc_insertion_point(class_scope:ril_proto.CtrlReqRadioState)
152 private:
153 ::google::protobuf::UnknownFieldSet _unknown_fields_;
154 mutable int _cached_size_;
155
156 int state_;
157 friend void protobuf_AddDesc_ctrl_2eproto();
158 friend void protobuf_AssignDesc_ctrl_2eproto();
159 friend void protobuf_ShutdownFile_ctrl_2eproto();
160
161 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
162
163 // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
_has_bit(int index)164 inline bool _has_bit(int index) const {
165 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
166 }
_set_bit(int index)167 inline void _set_bit(int index) {
168 _has_bits_[index / 32] |= (1u << (index % 32));
169 }
_clear_bit(int index)170 inline void _clear_bit(int index) {
171 _has_bits_[index / 32] &= ~(1u << (index % 32));
172 }
173
174 void InitAsDefaultInstance();
175 static CtrlReqRadioState* default_instance_;
176 };
177 // -------------------------------------------------------------------
178
179 class CtrlRspRadioState : public ::google::protobuf::Message {
180 public:
181 CtrlRspRadioState();
182 virtual ~CtrlRspRadioState();
183
184 CtrlRspRadioState(const CtrlRspRadioState& from);
185
186 inline CtrlRspRadioState& operator=(const CtrlRspRadioState& from) {
187 CopyFrom(from);
188 return *this;
189 }
190
unknown_fields()191 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
192 return _unknown_fields_;
193 }
194
mutable_unknown_fields()195 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
196 return &_unknown_fields_;
197 }
198
199 static const ::google::protobuf::Descriptor* descriptor();
200 static const CtrlRspRadioState& default_instance();
201
202 void Swap(CtrlRspRadioState* other);
203
204 // implements Message ----------------------------------------------
205
206 CtrlRspRadioState* New() const;
207 void CopyFrom(const ::google::protobuf::Message& from);
208 void MergeFrom(const ::google::protobuf::Message& from);
209 void CopyFrom(const CtrlRspRadioState& from);
210 void MergeFrom(const CtrlRspRadioState& from);
211 void Clear();
212 bool IsInitialized() const;
213
214 int ByteSize() const;
215 bool MergePartialFromCodedStream(
216 ::google::protobuf::io::CodedInputStream* input);
217 void SerializeWithCachedSizes(
218 ::google::protobuf::io::CodedOutputStream* output) const;
219 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()220 int GetCachedSize() const { return _cached_size_; }
221 private:
222 void SharedCtor();
223 void SharedDtor();
224 void SetCachedSize(int size) const;
225 public:
226
227 ::google::protobuf::Metadata GetMetadata() const;
228
229 // nested types ----------------------------------------------------
230
231 // accessors -------------------------------------------------------
232
233 // required .ril_proto.RadioState state = 1;
234 inline bool has_state() const;
235 inline void clear_state();
236 static const int kStateFieldNumber = 1;
237 inline ril_proto::RadioState state() const;
238 inline void set_state(ril_proto::RadioState value);
239
240 // @@protoc_insertion_point(class_scope:ril_proto.CtrlRspRadioState)
241 private:
242 ::google::protobuf::UnknownFieldSet _unknown_fields_;
243 mutable int _cached_size_;
244
245 int state_;
246 friend void protobuf_AddDesc_ctrl_2eproto();
247 friend void protobuf_AssignDesc_ctrl_2eproto();
248 friend void protobuf_ShutdownFile_ctrl_2eproto();
249
250 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
251
252 // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
_has_bit(int index)253 inline bool _has_bit(int index) const {
254 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
255 }
_set_bit(int index)256 inline void _set_bit(int index) {
257 _has_bits_[index / 32] |= (1u << (index % 32));
258 }
_clear_bit(int index)259 inline void _clear_bit(int index) {
260 _has_bits_[index / 32] &= ~(1u << (index % 32));
261 }
262
263 void InitAsDefaultInstance();
264 static CtrlRspRadioState* default_instance_;
265 };
266 // -------------------------------------------------------------------
267
268 class CtrlReqSetMTCall : public ::google::protobuf::Message {
269 public:
270 CtrlReqSetMTCall();
271 virtual ~CtrlReqSetMTCall();
272
273 CtrlReqSetMTCall(const CtrlReqSetMTCall& from);
274
275 inline CtrlReqSetMTCall& operator=(const CtrlReqSetMTCall& from) {
276 CopyFrom(from);
277 return *this;
278 }
279
unknown_fields()280 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
281 return _unknown_fields_;
282 }
283
mutable_unknown_fields()284 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
285 return &_unknown_fields_;
286 }
287
288 static const ::google::protobuf::Descriptor* descriptor();
289 static const CtrlReqSetMTCall& default_instance();
290
291 void Swap(CtrlReqSetMTCall* other);
292
293 // implements Message ----------------------------------------------
294
295 CtrlReqSetMTCall* New() const;
296 void CopyFrom(const ::google::protobuf::Message& from);
297 void MergeFrom(const ::google::protobuf::Message& from);
298 void CopyFrom(const CtrlReqSetMTCall& from);
299 void MergeFrom(const CtrlReqSetMTCall& from);
300 void Clear();
301 bool IsInitialized() const;
302
303 int ByteSize() const;
304 bool MergePartialFromCodedStream(
305 ::google::protobuf::io::CodedInputStream* input);
306 void SerializeWithCachedSizes(
307 ::google::protobuf::io::CodedOutputStream* output) const;
308 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()309 int GetCachedSize() const { return _cached_size_; }
310 private:
311 void SharedCtor();
312 void SharedDtor();
313 void SetCachedSize(int size) const;
314 public:
315
316 ::google::protobuf::Metadata GetMetadata() const;
317
318 // nested types ----------------------------------------------------
319
320 // accessors -------------------------------------------------------
321
322 // required string phone_number = 1;
323 inline bool has_phone_number() const;
324 inline void clear_phone_number();
325 static const int kPhoneNumberFieldNumber = 1;
326 inline const ::std::string& phone_number() const;
327 inline void set_phone_number(const ::std::string& value);
328 inline void set_phone_number(const char* value);
329 inline void set_phone_number(const char* value, size_t size);
330 inline ::std::string* mutable_phone_number();
331
332 // @@protoc_insertion_point(class_scope:ril_proto.CtrlReqSetMTCall)
333 private:
334 ::google::protobuf::UnknownFieldSet _unknown_fields_;
335 mutable int _cached_size_;
336
337 ::std::string* phone_number_;
338 static const ::std::string _default_phone_number_;
339 friend void protobuf_AddDesc_ctrl_2eproto();
340 friend void protobuf_AssignDesc_ctrl_2eproto();
341 friend void protobuf_ShutdownFile_ctrl_2eproto();
342
343 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
344
345 // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
_has_bit(int index)346 inline bool _has_bit(int index) const {
347 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
348 }
_set_bit(int index)349 inline void _set_bit(int index) {
350 _has_bits_[index / 32] |= (1u << (index % 32));
351 }
_clear_bit(int index)352 inline void _clear_bit(int index) {
353 _has_bits_[index / 32] &= ~(1u << (index % 32));
354 }
355
356 void InitAsDefaultInstance();
357 static CtrlReqSetMTCall* default_instance_;
358 };
359 // -------------------------------------------------------------------
360
361 class CtrlHangupConnRemote : public ::google::protobuf::Message {
362 public:
363 CtrlHangupConnRemote();
364 virtual ~CtrlHangupConnRemote();
365
366 CtrlHangupConnRemote(const CtrlHangupConnRemote& from);
367
368 inline CtrlHangupConnRemote& operator=(const CtrlHangupConnRemote& from) {
369 CopyFrom(from);
370 return *this;
371 }
372
unknown_fields()373 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
374 return _unknown_fields_;
375 }
376
mutable_unknown_fields()377 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
378 return &_unknown_fields_;
379 }
380
381 static const ::google::protobuf::Descriptor* descriptor();
382 static const CtrlHangupConnRemote& default_instance();
383
384 void Swap(CtrlHangupConnRemote* other);
385
386 // implements Message ----------------------------------------------
387
388 CtrlHangupConnRemote* New() const;
389 void CopyFrom(const ::google::protobuf::Message& from);
390 void MergeFrom(const ::google::protobuf::Message& from);
391 void CopyFrom(const CtrlHangupConnRemote& from);
392 void MergeFrom(const CtrlHangupConnRemote& from);
393 void Clear();
394 bool IsInitialized() const;
395
396 int ByteSize() const;
397 bool MergePartialFromCodedStream(
398 ::google::protobuf::io::CodedInputStream* input);
399 void SerializeWithCachedSizes(
400 ::google::protobuf::io::CodedOutputStream* output) const;
401 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()402 int GetCachedSize() const { return _cached_size_; }
403 private:
404 void SharedCtor();
405 void SharedDtor();
406 void SetCachedSize(int size) const;
407 public:
408
409 ::google::protobuf::Metadata GetMetadata() const;
410
411 // nested types ----------------------------------------------------
412
413 // accessors -------------------------------------------------------
414
415 // required int32 connection_id = 1;
416 inline bool has_connection_id() const;
417 inline void clear_connection_id();
418 static const int kConnectionIdFieldNumber = 1;
419 inline ::google::protobuf::int32 connection_id() const;
420 inline void set_connection_id(::google::protobuf::int32 value);
421
422 // required int32 call_fail_cause = 2;
423 inline bool has_call_fail_cause() const;
424 inline void clear_call_fail_cause();
425 static const int kCallFailCauseFieldNumber = 2;
426 inline ::google::protobuf::int32 call_fail_cause() const;
427 inline void set_call_fail_cause(::google::protobuf::int32 value);
428
429 // @@protoc_insertion_point(class_scope:ril_proto.CtrlHangupConnRemote)
430 private:
431 ::google::protobuf::UnknownFieldSet _unknown_fields_;
432 mutable int _cached_size_;
433
434 ::google::protobuf::int32 connection_id_;
435 ::google::protobuf::int32 call_fail_cause_;
436 friend void protobuf_AddDesc_ctrl_2eproto();
437 friend void protobuf_AssignDesc_ctrl_2eproto();
438 friend void protobuf_ShutdownFile_ctrl_2eproto();
439
440 ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
441
442 // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
_has_bit(int index)443 inline bool _has_bit(int index) const {
444 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
445 }
_set_bit(int index)446 inline void _set_bit(int index) {
447 _has_bits_[index / 32] |= (1u << (index % 32));
448 }
_clear_bit(int index)449 inline void _clear_bit(int index) {
450 _has_bits_[index / 32] &= ~(1u << (index % 32));
451 }
452
453 void InitAsDefaultInstance();
454 static CtrlHangupConnRemote* default_instance_;
455 };
456 // -------------------------------------------------------------------
457
458 class CtrlSetCallTransitionFlag : public ::google::protobuf::Message {
459 public:
460 CtrlSetCallTransitionFlag();
461 virtual ~CtrlSetCallTransitionFlag();
462
463 CtrlSetCallTransitionFlag(const CtrlSetCallTransitionFlag& from);
464
465 inline CtrlSetCallTransitionFlag& operator=(const CtrlSetCallTransitionFlag& from) {
466 CopyFrom(from);
467 return *this;
468 }
469
unknown_fields()470 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
471 return _unknown_fields_;
472 }
473
mutable_unknown_fields()474 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
475 return &_unknown_fields_;
476 }
477
478 static const ::google::protobuf::Descriptor* descriptor();
479 static const CtrlSetCallTransitionFlag& default_instance();
480
481 void Swap(CtrlSetCallTransitionFlag* other);
482
483 // implements Message ----------------------------------------------
484
485 CtrlSetCallTransitionFlag* New() const;
486 void CopyFrom(const ::google::protobuf::Message& from);
487 void MergeFrom(const ::google::protobuf::Message& from);
488 void CopyFrom(const CtrlSetCallTransitionFlag& from);
489 void MergeFrom(const CtrlSetCallTransitionFlag& from);
490 void Clear();
491 bool IsInitialized() const;
492
493 int ByteSize() const;
494 bool MergePartialFromCodedStream(
495 ::google::protobuf::io::CodedInputStream* input);
496 void SerializeWithCachedSizes(
497 ::google::protobuf::io::CodedOutputStream* output) const;
498 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()499 int GetCachedSize() const { return _cached_size_; }
500 private:
501 void SharedCtor();
502 void SharedDtor();
503 void SetCachedSize(int size) const;
504 public:
505
506 ::google::protobuf::Metadata GetMetadata() const;
507
508 // nested types ----------------------------------------------------
509
510 // accessors -------------------------------------------------------
511
512 // required bool flag = 1;
513 inline bool has_flag() const;
514 inline void clear_flag();
515 static const int kFlagFieldNumber = 1;
516 inline bool flag() const;
517 inline void set_flag(bool value);
518
519 // @@protoc_insertion_point(class_scope:ril_proto.CtrlSetCallTransitionFlag)
520 private:
521 ::google::protobuf::UnknownFieldSet _unknown_fields_;
522 mutable int _cached_size_;
523
524 bool flag_;
525 friend void protobuf_AddDesc_ctrl_2eproto();
526 friend void protobuf_AssignDesc_ctrl_2eproto();
527 friend void protobuf_ShutdownFile_ctrl_2eproto();
528
529 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
530
531 // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
_has_bit(int index)532 inline bool _has_bit(int index) const {
533 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
534 }
_set_bit(int index)535 inline void _set_bit(int index) {
536 _has_bits_[index / 32] |= (1u << (index % 32));
537 }
_clear_bit(int index)538 inline void _clear_bit(int index) {
539 _has_bits_[index / 32] &= ~(1u << (index % 32));
540 }
541
542 void InitAsDefaultInstance();
543 static CtrlSetCallTransitionFlag* default_instance_;
544 };
545 // -------------------------------------------------------------------
546
547 class CtrlReqAddDialingCall : public ::google::protobuf::Message {
548 public:
549 CtrlReqAddDialingCall();
550 virtual ~CtrlReqAddDialingCall();
551
552 CtrlReqAddDialingCall(const CtrlReqAddDialingCall& from);
553
554 inline CtrlReqAddDialingCall& operator=(const CtrlReqAddDialingCall& from) {
555 CopyFrom(from);
556 return *this;
557 }
558
unknown_fields()559 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
560 return _unknown_fields_;
561 }
562
mutable_unknown_fields()563 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
564 return &_unknown_fields_;
565 }
566
567 static const ::google::protobuf::Descriptor* descriptor();
568 static const CtrlReqAddDialingCall& default_instance();
569
570 void Swap(CtrlReqAddDialingCall* other);
571
572 // implements Message ----------------------------------------------
573
574 CtrlReqAddDialingCall* New() const;
575 void CopyFrom(const ::google::protobuf::Message& from);
576 void MergeFrom(const ::google::protobuf::Message& from);
577 void CopyFrom(const CtrlReqAddDialingCall& from);
578 void MergeFrom(const CtrlReqAddDialingCall& from);
579 void Clear();
580 bool IsInitialized() const;
581
582 int ByteSize() const;
583 bool MergePartialFromCodedStream(
584 ::google::protobuf::io::CodedInputStream* input);
585 void SerializeWithCachedSizes(
586 ::google::protobuf::io::CodedOutputStream* output) const;
587 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
GetCachedSize()588 int GetCachedSize() const { return _cached_size_; }
589 private:
590 void SharedCtor();
591 void SharedDtor();
592 void SetCachedSize(int size) const;
593 public:
594
595 ::google::protobuf::Metadata GetMetadata() const;
596
597 // nested types ----------------------------------------------------
598
599 // accessors -------------------------------------------------------
600
601 // required string phone_number = 1;
602 inline bool has_phone_number() const;
603 inline void clear_phone_number();
604 static const int kPhoneNumberFieldNumber = 1;
605 inline const ::std::string& phone_number() const;
606 inline void set_phone_number(const ::std::string& value);
607 inline void set_phone_number(const char* value);
608 inline void set_phone_number(const char* value, size_t size);
609 inline ::std::string* mutable_phone_number();
610
611 // @@protoc_insertion_point(class_scope:ril_proto.CtrlReqAddDialingCall)
612 private:
613 ::google::protobuf::UnknownFieldSet _unknown_fields_;
614 mutable int _cached_size_;
615
616 ::std::string* phone_number_;
617 static const ::std::string _default_phone_number_;
618 friend void protobuf_AddDesc_ctrl_2eproto();
619 friend void protobuf_AssignDesc_ctrl_2eproto();
620 friend void protobuf_ShutdownFile_ctrl_2eproto();
621
622 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
623
624 // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
_has_bit(int index)625 inline bool _has_bit(int index) const {
626 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
627 }
_set_bit(int index)628 inline void _set_bit(int index) {
629 _has_bits_[index / 32] |= (1u << (index % 32));
630 }
_clear_bit(int index)631 inline void _clear_bit(int index) {
632 _has_bits_[index / 32] &= ~(1u << (index % 32));
633 }
634
635 void InitAsDefaultInstance();
636 static CtrlReqAddDialingCall* default_instance_;
637 };
638 // ===================================================================
639
640
641 // ===================================================================
642
643 // CtrlReqRadioState
644
645 // required .ril_proto.RadioState state = 1;
has_state()646 inline bool CtrlReqRadioState::has_state() const {
647 return _has_bit(0);
648 }
clear_state()649 inline void CtrlReqRadioState::clear_state() {
650 state_ = 0;
651 _clear_bit(0);
652 }
state()653 inline ril_proto::RadioState CtrlReqRadioState::state() const {
654 return static_cast< ril_proto::RadioState >(state_);
655 }
set_state(ril_proto::RadioState value)656 inline void CtrlReqRadioState::set_state(ril_proto::RadioState value) {
657 GOOGLE_DCHECK(ril_proto::RadioState_IsValid(value));
658 _set_bit(0);
659 state_ = value;
660 }
661
662 // -------------------------------------------------------------------
663
664 // CtrlRspRadioState
665
666 // required .ril_proto.RadioState state = 1;
has_state()667 inline bool CtrlRspRadioState::has_state() const {
668 return _has_bit(0);
669 }
clear_state()670 inline void CtrlRspRadioState::clear_state() {
671 state_ = 0;
672 _clear_bit(0);
673 }
state()674 inline ril_proto::RadioState CtrlRspRadioState::state() const {
675 return static_cast< ril_proto::RadioState >(state_);
676 }
set_state(ril_proto::RadioState value)677 inline void CtrlRspRadioState::set_state(ril_proto::RadioState value) {
678 GOOGLE_DCHECK(ril_proto::RadioState_IsValid(value));
679 _set_bit(0);
680 state_ = value;
681 }
682
683 // -------------------------------------------------------------------
684
685 // CtrlReqSetMTCall
686
687 // required string phone_number = 1;
has_phone_number()688 inline bool CtrlReqSetMTCall::has_phone_number() const {
689 return _has_bit(0);
690 }
clear_phone_number()691 inline void CtrlReqSetMTCall::clear_phone_number() {
692 if (phone_number_ != &_default_phone_number_) {
693 phone_number_->clear();
694 }
695 _clear_bit(0);
696 }
phone_number()697 inline const ::std::string& CtrlReqSetMTCall::phone_number() const {
698 return *phone_number_;
699 }
set_phone_number(const::std::string & value)700 inline void CtrlReqSetMTCall::set_phone_number(const ::std::string& value) {
701 _set_bit(0);
702 if (phone_number_ == &_default_phone_number_) {
703 phone_number_ = new ::std::string;
704 }
705 phone_number_->assign(value);
706 }
set_phone_number(const char * value)707 inline void CtrlReqSetMTCall::set_phone_number(const char* value) {
708 _set_bit(0);
709 if (phone_number_ == &_default_phone_number_) {
710 phone_number_ = new ::std::string;
711 }
712 phone_number_->assign(value);
713 }
set_phone_number(const char * value,size_t size)714 inline void CtrlReqSetMTCall::set_phone_number(const char* value, size_t size) {
715 _set_bit(0);
716 if (phone_number_ == &_default_phone_number_) {
717 phone_number_ = new ::std::string;
718 }
719 phone_number_->assign(reinterpret_cast<const char*>(value), size);
720 }
mutable_phone_number()721 inline ::std::string* CtrlReqSetMTCall::mutable_phone_number() {
722 _set_bit(0);
723 if (phone_number_ == &_default_phone_number_) {
724 phone_number_ = new ::std::string;
725 }
726 return phone_number_;
727 }
728
729 // -------------------------------------------------------------------
730
731 // CtrlHangupConnRemote
732
733 // required int32 connection_id = 1;
has_connection_id()734 inline bool CtrlHangupConnRemote::has_connection_id() const {
735 return _has_bit(0);
736 }
clear_connection_id()737 inline void CtrlHangupConnRemote::clear_connection_id() {
738 connection_id_ = 0;
739 _clear_bit(0);
740 }
connection_id()741 inline ::google::protobuf::int32 CtrlHangupConnRemote::connection_id() const {
742 return connection_id_;
743 }
set_connection_id(::google::protobuf::int32 value)744 inline void CtrlHangupConnRemote::set_connection_id(::google::protobuf::int32 value) {
745 _set_bit(0);
746 connection_id_ = value;
747 }
748
749 // required int32 call_fail_cause = 2;
has_call_fail_cause()750 inline bool CtrlHangupConnRemote::has_call_fail_cause() const {
751 return _has_bit(1);
752 }
clear_call_fail_cause()753 inline void CtrlHangupConnRemote::clear_call_fail_cause() {
754 call_fail_cause_ = 0;
755 _clear_bit(1);
756 }
call_fail_cause()757 inline ::google::protobuf::int32 CtrlHangupConnRemote::call_fail_cause() const {
758 return call_fail_cause_;
759 }
set_call_fail_cause(::google::protobuf::int32 value)760 inline void CtrlHangupConnRemote::set_call_fail_cause(::google::protobuf::int32 value) {
761 _set_bit(1);
762 call_fail_cause_ = value;
763 }
764
765 // -------------------------------------------------------------------
766
767 // CtrlSetCallTransitionFlag
768
769 // required bool flag = 1;
has_flag()770 inline bool CtrlSetCallTransitionFlag::has_flag() const {
771 return _has_bit(0);
772 }
clear_flag()773 inline void CtrlSetCallTransitionFlag::clear_flag() {
774 flag_ = false;
775 _clear_bit(0);
776 }
flag()777 inline bool CtrlSetCallTransitionFlag::flag() const {
778 return flag_;
779 }
set_flag(bool value)780 inline void CtrlSetCallTransitionFlag::set_flag(bool value) {
781 _set_bit(0);
782 flag_ = value;
783 }
784
785 // -------------------------------------------------------------------
786
787 // CtrlReqAddDialingCall
788
789 // required string phone_number = 1;
has_phone_number()790 inline bool CtrlReqAddDialingCall::has_phone_number() const {
791 return _has_bit(0);
792 }
clear_phone_number()793 inline void CtrlReqAddDialingCall::clear_phone_number() {
794 if (phone_number_ != &_default_phone_number_) {
795 phone_number_->clear();
796 }
797 _clear_bit(0);
798 }
phone_number()799 inline const ::std::string& CtrlReqAddDialingCall::phone_number() const {
800 return *phone_number_;
801 }
set_phone_number(const::std::string & value)802 inline void CtrlReqAddDialingCall::set_phone_number(const ::std::string& value) {
803 _set_bit(0);
804 if (phone_number_ == &_default_phone_number_) {
805 phone_number_ = new ::std::string;
806 }
807 phone_number_->assign(value);
808 }
set_phone_number(const char * value)809 inline void CtrlReqAddDialingCall::set_phone_number(const char* value) {
810 _set_bit(0);
811 if (phone_number_ == &_default_phone_number_) {
812 phone_number_ = new ::std::string;
813 }
814 phone_number_->assign(value);
815 }
set_phone_number(const char * value,size_t size)816 inline void CtrlReqAddDialingCall::set_phone_number(const char* value, size_t size) {
817 _set_bit(0);
818 if (phone_number_ == &_default_phone_number_) {
819 phone_number_ = new ::std::string;
820 }
821 phone_number_->assign(reinterpret_cast<const char*>(value), size);
822 }
mutable_phone_number()823 inline ::std::string* CtrlReqAddDialingCall::mutable_phone_number() {
824 _set_bit(0);
825 if (phone_number_ == &_default_phone_number_) {
826 phone_number_ = new ::std::string;
827 }
828 return phone_number_;
829 }
830
831
832 // @@protoc_insertion_point(namespace_scope)
833
834 } // namespace ril_proto
835
836 #ifndef SWIG
837 namespace google {
838 namespace protobuf {
839
840 template <>
841 inline const EnumDescriptor* GetEnumDescriptor< ril_proto::CtrlCmd>() {
842 return ril_proto::CtrlCmd_descriptor();
843 }
844 template <>
845 inline const EnumDescriptor* GetEnumDescriptor< ril_proto::CtrlStatus>() {
846 return ril_proto::CtrlStatus_descriptor();
847 }
848
849 } // namespace google
850 } // namespace protobuf
851 #endif // SWIG
852
853 // @@protoc_insertion_point(global_scope)
854
855 #endif // PROTOBUF_ctrl_2eproto__INCLUDED
856