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 CtrlRspRadioState;
40 CTRL_CMD_GET_RADIO_STATE = 1
42 bool CtrlCmd_IsValid(int value);
43 const CtrlCmd CtrlCmd_MIN = CTRL_CMD_ECHO;
44 const CtrlCmd CtrlCmd_MAX = CTRL_CMD_GET_RADIO_STATE;
45 const int CtrlCmd_ARRAYSIZE = CtrlCmd_MAX + 1;
47 const ::google::protobuf::EnumDescriptor* CtrlCmd_descriptor();
48 inline const ::std::string& CtrlCmd_Name(CtrlCmd value) {
49 return ::google::protobuf::internal::NameOfEnum(
50 CtrlCmd_descriptor(), value);
52 inline bool CtrlCmd_Parse(
53 const ::std::string& name, CtrlCmd* value) {
54 return ::google::protobuf::internal::ParseNamedEnum<CtrlCmd>(
55 CtrlCmd_descriptor(), name, value);
61 bool CtrlStatus_IsValid(int value);
62 const CtrlStatus CtrlStatus_MIN = CTRL_STATUS_OK;
63 const CtrlStatus CtrlStatus_MAX = CTRL_STATUS_ERR;
64 const int CtrlStatus_ARRAYSIZE = CtrlStatus_MAX + 1;
66 const ::google::protobuf::EnumDescriptor* CtrlStatus_descriptor();
67 inline const ::std::string& CtrlStatus_Name(CtrlStatus value) {
68 return ::google::protobuf::internal::NameOfEnum(
69 CtrlStatus_descriptor(), value);
71 inline bool CtrlStatus_Parse(
72 const ::std::string& name, CtrlStatus* value) {
73 return ::google::protobuf::internal::ParseNamedEnum<CtrlStatus>(
74 CtrlStatus_descriptor(), name, value);
76 // ===================================================================
78 class CtrlRspRadioState : public ::google::protobuf::Message {
81 virtual ~CtrlRspRadioState();
83 CtrlRspRadioState(const CtrlRspRadioState& from);
85 inline CtrlRspRadioState& operator=(const CtrlRspRadioState& from) {
90 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
91 return _unknown_fields_;
94 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
95 return &_unknown_fields_;
98 static const ::google::protobuf::Descriptor* descriptor();
99 static const CtrlRspRadioState& default_instance();
101 void Swap(CtrlRspRadioState* other);
103 // implements Message ----------------------------------------------
105 CtrlRspRadioState* New() const;
106 void CopyFrom(const ::google::protobuf::Message& from);
107 void MergeFrom(const ::google::protobuf::Message& from);
108 void CopyFrom(const CtrlRspRadioState& from);
109 void MergeFrom(const CtrlRspRadioState& from);
111 bool IsInitialized() const;
113 int ByteSize() const;
114 bool MergePartialFromCodedStream(
115 ::google::protobuf::io::CodedInputStream* input);
116 void SerializeWithCachedSizes(
117 ::google::protobuf::io::CodedOutputStream* output) const;
118 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
119 int GetCachedSize() const { return _cached_size_; }
123 void SetCachedSize(int size) const;
126 ::google::protobuf::Metadata GetMetadata() const;
128 // nested types ----------------------------------------------------
130 // accessors -------------------------------------------------------
132 // required .ril_proto.RadioState state = 1;
133 inline bool has_state() const;
134 inline void clear_state();
135 static const int kStateFieldNumber = 1;
136 inline ril_proto::RadioState state() const;
137 inline void set_state(ril_proto::RadioState value);
139 // @@protoc_insertion_point(class_scope:ril_proto.CtrlRspRadioState)
141 ::google::protobuf::UnknownFieldSet _unknown_fields_;
142 mutable int _cached_size_;
145 friend void protobuf_AddDesc_ctrl_2eproto();
146 friend void protobuf_AssignDesc_ctrl_2eproto();
147 friend void protobuf_ShutdownFile_ctrl_2eproto();
149 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
151 // WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
152 inline bool _has_bit(int index) const {
153 return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
155 inline void _set_bit(int index) {
156 _has_bits_[index / 32] |= (1u << (index % 32));
158 inline void _clear_bit(int index) {
159 _has_bits_[index / 32] &= ~(1u << (index % 32));
162 void InitAsDefaultInstance();
163 static CtrlRspRadioState* default_instance_;
165 // ===================================================================
168 // ===================================================================
172 // required .ril_proto.RadioState state = 1;
173 inline bool CtrlRspRadioState::has_state() const {
176 inline void CtrlRspRadioState::clear_state() {
180 inline ril_proto::RadioState CtrlRspRadioState::state() const {
181 return static_cast< ril_proto::RadioState >(state_);
183 inline void CtrlRspRadioState::set_state(ril_proto::RadioState value) {
184 GOOGLE_DCHECK(ril_proto::RadioState_IsValid(value));
190 // @@protoc_insertion_point(namespace_scope)
192 } // namespace ril_proto
199 inline const EnumDescriptor* GetEnumDescriptor< ril_proto::CtrlCmd>() {
200 return ril_proto::CtrlCmd_descriptor();
203 inline const EnumDescriptor* GetEnumDescriptor< ril_proto::CtrlStatus>() {
204 return ril_proto::CtrlStatus_descriptor();
207 } // namespace google
208 } // namespace protobuf
211 // @@protoc_insertion_point(global_scope)
213 #endif // PROTOBUF_ctrl_2eproto__INCLUDED