1 // Generated by the protocol buffer compiler. DO NOT EDIT!
4 #ifndef PROTOBUF_ctrl_2eproto__INCLUDED
5 #define PROTOBUF_ctrl_2eproto__INCLUDED
9 #include <google/protobuf/stubs/common.h>
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
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.
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>
27 // @@protoc_insertion_point(includes)
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();
36 class CtrlReqRadioState;
37 class CtrlRspRadioState;
38 class CtrlReqSetMTCall;
42 CTRL_CMD_GET_RADIO_STATE = 1,
43 CTRL_CMD_SET_RADIO_STATE = 2,
44 CTRL_CMD_SET_MT_CALL = 1001
46 bool CtrlCmd_IsValid(int value);
47 const CtrlCmd CtrlCmd_MIN = CTRL_CMD_ECHO;
48 const CtrlCmd CtrlCmd_MAX = CTRL_CMD_SET_MT_CALL;
49 const int CtrlCmd_ARRAYSIZE = CtrlCmd_MAX + 1;
51 const ::google::protobuf::EnumDescriptor* CtrlCmd_descriptor();
52 inline const ::std::string& CtrlCmd_Name(CtrlCmd value) {
53 return ::google::protobuf::internal::NameOfEnum(
54 CtrlCmd_descriptor(), value);
56 inline bool CtrlCmd_Parse(
57 const ::std::string& name, CtrlCmd* value) {
58 return ::google::protobuf::internal::ParseNamedEnum<CtrlCmd>(
59 CtrlCmd_descriptor(), name, value);
65 bool CtrlStatus_IsValid(int value);
66 const CtrlStatus CtrlStatus_MIN = CTRL_STATUS_OK;
67 const CtrlStatus CtrlStatus_MAX = CTRL_STATUS_ERR;
68 const int CtrlStatus_ARRAYSIZE = CtrlStatus_MAX + 1;
70 const ::google::protobuf::EnumDescriptor* CtrlStatus_descriptor();
71 inline const ::std::string& CtrlStatus_Name(CtrlStatus value) {
72 return ::google::protobuf::internal::NameOfEnum(
73 CtrlStatus_descriptor(), value);
75 inline bool CtrlStatus_Parse(
76 const ::std::string& name, CtrlStatus* value) {
77 return ::google::protobuf::internal::ParseNamedEnum<CtrlStatus>(
78 CtrlStatus_descriptor(), name, value);
80 // ===================================================================
82 class CtrlReqRadioState : public ::google::protobuf::Message {
85 virtual ~CtrlReqRadioState();
87 CtrlReqRadioState(const CtrlReqRadioState& from);
89 inline CtrlReqRadioState& operator=(const CtrlReqRadioState& from) {
94 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
95 return _unknown_fields_;
98 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
99 return &_unknown_fields_;
102 static const ::google::protobuf::Descriptor* descriptor();
103 static const CtrlReqRadioState& default_instance();
105 void Swap(CtrlReqRadioState* other);
107 // implements Message ----------------------------------------------
109 CtrlReqRadioState* New() const;
110 void CopyFrom(const ::google::protobuf::Message& from);
111 void MergeFrom(const ::google::protobuf::Message& from);
112 void CopyFrom(const CtrlReqRadioState& from);
113 void MergeFrom(const CtrlReqRadioState& from);
115 bool IsInitialized() const;
117 int ByteSize() const;
118 bool MergePartialFromCodedStream(
119 ::google::protobuf::io::CodedInputStream* input);
120 void SerializeWithCachedSizes(
121 ::google::protobuf::io::CodedOutputStream* output) const;
122 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
123 int GetCachedSize() const { return _cached_size_; }
127 void SetCachedSize(int size) const;
130 ::google::protobuf::Metadata GetMetadata() const;
132 // nested types ----------------------------------------------------
134 // accessors -------------------------------------------------------
136 // required .ril_proto.RadioState state = 1;
137 inline bool has_state() const;
138 inline void clear_state();
139 static const int kStateFieldNumber = 1;
140 inline ril_proto::RadioState state() const;
141 inline void set_state(ril_proto::RadioState value);
143 // @@protoc_insertion_point(class_scope:ril_proto.CtrlReqRadioState)
145 ::google::protobuf::UnknownFieldSet _unknown_fields_;
146 mutable int _cached_size_;
149 friend void protobuf_AddDesc_ctrl_2eproto();
150 friend void protobuf_AssignDesc_ctrl_2eproto();
151 friend void protobuf_ShutdownFile_ctrl_2eproto();
153 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
155 // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
156 inline bool _has_bit(int index) const {
157 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
159 inline void _set_bit(int index) {
160 _has_bits_[index / 32] |= (1u << (index % 32));
162 inline void _clear_bit(int index) {
163 _has_bits_[index / 32] &= ~(1u << (index % 32));
166 void InitAsDefaultInstance();
167 static CtrlReqRadioState* default_instance_;
169 // -------------------------------------------------------------------
171 class CtrlRspRadioState : public ::google::protobuf::Message {
174 virtual ~CtrlRspRadioState();
176 CtrlRspRadioState(const CtrlRspRadioState& from);
178 inline CtrlRspRadioState& operator=(const CtrlRspRadioState& from) {
183 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
184 return _unknown_fields_;
187 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
188 return &_unknown_fields_;
191 static const ::google::protobuf::Descriptor* descriptor();
192 static const CtrlRspRadioState& default_instance();
194 void Swap(CtrlRspRadioState* other);
196 // implements Message ----------------------------------------------
198 CtrlRspRadioState* New() const;
199 void CopyFrom(const ::google::protobuf::Message& from);
200 void MergeFrom(const ::google::protobuf::Message& from);
201 void CopyFrom(const CtrlRspRadioState& from);
202 void MergeFrom(const CtrlRspRadioState& from);
204 bool IsInitialized() const;
206 int ByteSize() const;
207 bool MergePartialFromCodedStream(
208 ::google::protobuf::io::CodedInputStream* input);
209 void SerializeWithCachedSizes(
210 ::google::protobuf::io::CodedOutputStream* output) const;
211 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
212 int GetCachedSize() const { return _cached_size_; }
216 void SetCachedSize(int size) const;
219 ::google::protobuf::Metadata GetMetadata() const;
221 // nested types ----------------------------------------------------
223 // accessors -------------------------------------------------------
225 // required .ril_proto.RadioState state = 1;
226 inline bool has_state() const;
227 inline void clear_state();
228 static const int kStateFieldNumber = 1;
229 inline ril_proto::RadioState state() const;
230 inline void set_state(ril_proto::RadioState value);
232 // @@protoc_insertion_point(class_scope:ril_proto.CtrlRspRadioState)
234 ::google::protobuf::UnknownFieldSet _unknown_fields_;
235 mutable int _cached_size_;
238 friend void protobuf_AddDesc_ctrl_2eproto();
239 friend void protobuf_AssignDesc_ctrl_2eproto();
240 friend void protobuf_ShutdownFile_ctrl_2eproto();
242 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
244 // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
245 inline bool _has_bit(int index) const {
246 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
248 inline void _set_bit(int index) {
249 _has_bits_[index / 32] |= (1u << (index % 32));
251 inline void _clear_bit(int index) {
252 _has_bits_[index / 32] &= ~(1u << (index % 32));
255 void InitAsDefaultInstance();
256 static CtrlRspRadioState* default_instance_;
258 // -------------------------------------------------------------------
260 class CtrlReqSetMTCall : public ::google::protobuf::Message {
263 virtual ~CtrlReqSetMTCall();
265 CtrlReqSetMTCall(const CtrlReqSetMTCall& from);
267 inline CtrlReqSetMTCall& operator=(const CtrlReqSetMTCall& from) {
272 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
273 return _unknown_fields_;
276 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
277 return &_unknown_fields_;
280 static const ::google::protobuf::Descriptor* descriptor();
281 static const CtrlReqSetMTCall& default_instance();
283 void Swap(CtrlReqSetMTCall* other);
285 // implements Message ----------------------------------------------
287 CtrlReqSetMTCall* New() const;
288 void CopyFrom(const ::google::protobuf::Message& from);
289 void MergeFrom(const ::google::protobuf::Message& from);
290 void CopyFrom(const CtrlReqSetMTCall& from);
291 void MergeFrom(const CtrlReqSetMTCall& from);
293 bool IsInitialized() const;
295 int ByteSize() const;
296 bool MergePartialFromCodedStream(
297 ::google::protobuf::io::CodedInputStream* input);
298 void SerializeWithCachedSizes(
299 ::google::protobuf::io::CodedOutputStream* output) const;
300 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
301 int GetCachedSize() const { return _cached_size_; }
305 void SetCachedSize(int size) const;
308 ::google::protobuf::Metadata GetMetadata() const;
310 // nested types ----------------------------------------------------
312 // accessors -------------------------------------------------------
314 // required string phone_number = 1;
315 inline bool has_phone_number() const;
316 inline void clear_phone_number();
317 static const int kPhoneNumberFieldNumber = 1;
318 inline const ::std::string& phone_number() const;
319 inline void set_phone_number(const ::std::string& value);
320 inline void set_phone_number(const char* value);
321 inline void set_phone_number(const char* value, size_t size);
322 inline ::std::string* mutable_phone_number();
324 // @@protoc_insertion_point(class_scope:ril_proto.CtrlReqSetMTCall)
326 ::google::protobuf::UnknownFieldSet _unknown_fields_;
327 mutable int _cached_size_;
329 ::std::string* phone_number_;
330 static const ::std::string _default_phone_number_;
331 friend void protobuf_AddDesc_ctrl_2eproto();
332 friend void protobuf_AssignDesc_ctrl_2eproto();
333 friend void protobuf_ShutdownFile_ctrl_2eproto();
335 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
337 // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
338 inline bool _has_bit(int index) const {
339 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
341 inline void _set_bit(int index) {
342 _has_bits_[index / 32] |= (1u << (index % 32));
344 inline void _clear_bit(int index) {
345 _has_bits_[index / 32] &= ~(1u << (index % 32));
348 void InitAsDefaultInstance();
349 static CtrlReqSetMTCall* default_instance_;
351 // ===================================================================
354 // ===================================================================
358 // required .ril_proto.RadioState state = 1;
359 inline bool CtrlReqRadioState::has_state() const {
362 inline void CtrlReqRadioState::clear_state() {
366 inline ril_proto::RadioState CtrlReqRadioState::state() const {
367 return static_cast< ril_proto::RadioState >(state_);
369 inline void CtrlReqRadioState::set_state(ril_proto::RadioState value) {
370 GOOGLE_DCHECK(ril_proto::RadioState_IsValid(value));
375 // -------------------------------------------------------------------
379 // required .ril_proto.RadioState state = 1;
380 inline bool CtrlRspRadioState::has_state() const {
383 inline void CtrlRspRadioState::clear_state() {
387 inline ril_proto::RadioState CtrlRspRadioState::state() const {
388 return static_cast< ril_proto::RadioState >(state_);
390 inline void CtrlRspRadioState::set_state(ril_proto::RadioState value) {
391 GOOGLE_DCHECK(ril_proto::RadioState_IsValid(value));
396 // -------------------------------------------------------------------
400 // required string phone_number = 1;
401 inline bool CtrlReqSetMTCall::has_phone_number() const {
404 inline void CtrlReqSetMTCall::clear_phone_number() {
405 if (phone_number_ != &_default_phone_number_) {
406 phone_number_->clear();
410 inline const ::std::string& CtrlReqSetMTCall::phone_number() const {
411 return *phone_number_;
413 inline void CtrlReqSetMTCall::set_phone_number(const ::std::string& value) {
415 if (phone_number_ == &_default_phone_number_) {
416 phone_number_ = new ::std::string;
418 phone_number_->assign(value);
420 inline void CtrlReqSetMTCall::set_phone_number(const char* value) {
422 if (phone_number_ == &_default_phone_number_) {
423 phone_number_ = new ::std::string;
425 phone_number_->assign(value);
427 inline void CtrlReqSetMTCall::set_phone_number(const char* value, size_t size) {
429 if (phone_number_ == &_default_phone_number_) {
430 phone_number_ = new ::std::string;
432 phone_number_->assign(reinterpret_cast<const char*>(value), size);
434 inline ::std::string* CtrlReqSetMTCall::mutable_phone_number() {
436 if (phone_number_ == &_default_phone_number_) {
437 phone_number_ = new ::std::string;
439 return phone_number_;
443 // @@protoc_insertion_point(namespace_scope)
445 } // namespace ril_proto
452 inline const EnumDescriptor* GetEnumDescriptor< ril_proto::CtrlCmd>() {
453 return ril_proto::CtrlCmd_descriptor();
456 inline const EnumDescriptor* GetEnumDescriptor< ril_proto::CtrlStatus>() {
457 return ril_proto::CtrlStatus_descriptor();
460 } // namespace google
461 } // namespace protobuf
464 // @@protoc_insertion_point(global_scope)
466 #endif // PROTOBUF_ctrl_2eproto__INCLUDED