OSDN Git Service

97cd0bd9edc5bbe655c601b508624ae5225e97cb
[android-x86/hardware-ril.git] / mock-ril / src / cpp / ctrl.pb.h
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 CtrlRspRadioState;
37
38 enum CtrlCmd {
39   CTRL_CMD_ECHO = 0,
40   CTRL_CMD_GET_RADIO_STATE = 1
41 };
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;
46
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);
51 }
52 inline bool CtrlCmd_Parse(
53     const ::std::string& name, CtrlCmd* value) {
54   return ::google::protobuf::internal::ParseNamedEnum<CtrlCmd>(
55     CtrlCmd_descriptor(), name, value);
56 }
57 enum CtrlStatus {
58   CTRL_STATUS_OK = 0,
59   CTRL_STATUS_ERR = 1
60 };
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;
65
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);
70 }
71 inline bool CtrlStatus_Parse(
72     const ::std::string& name, CtrlStatus* value) {
73   return ::google::protobuf::internal::ParseNamedEnum<CtrlStatus>(
74     CtrlStatus_descriptor(), name, value);
75 }
76 // ===================================================================
77
78 class CtrlRspRadioState : public ::google::protobuf::Message {
79  public:
80   CtrlRspRadioState();
81   virtual ~CtrlRspRadioState();
82   
83   CtrlRspRadioState(const CtrlRspRadioState& from);
84   
85   inline CtrlRspRadioState& operator=(const CtrlRspRadioState& from) {
86     CopyFrom(from);
87     return *this;
88   }
89   
90   inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
91     return _unknown_fields_;
92   }
93   
94   inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
95     return &_unknown_fields_;
96   }
97   
98   static const ::google::protobuf::Descriptor* descriptor();
99   static const CtrlRspRadioState& default_instance();
100   
101   void Swap(CtrlRspRadioState* other);
102   
103   // implements Message ----------------------------------------------
104   
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);
110   void Clear();
111   bool IsInitialized() const;
112   
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_; }
120   private:
121   void SharedCtor();
122   void SharedDtor();
123   void SetCachedSize(int size) const;
124   public:
125   
126   ::google::protobuf::Metadata GetMetadata() const;
127   
128   // nested types ----------------------------------------------------
129   
130   // accessors -------------------------------------------------------
131   
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);
138   
139   // @@protoc_insertion_point(class_scope:ril_proto.CtrlRspRadioState)
140  private:
141   ::google::protobuf::UnknownFieldSet _unknown_fields_;
142   mutable int _cached_size_;
143   
144   int state_;
145   friend void  protobuf_AddDesc_ctrl_2eproto();
146   friend void protobuf_AssignDesc_ctrl_2eproto();
147   friend void protobuf_ShutdownFile_ctrl_2eproto();
148   
149   ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
150   
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;
154   }
155   inline void _set_bit(int index) {
156     _has_bits_[index / 32] |= (1u << (index % 32));
157   }
158   inline void _clear_bit(int index) {
159     _has_bits_[index / 32] &= ~(1u << (index % 32));
160   }
161   
162   void InitAsDefaultInstance();
163   static CtrlRspRadioState* default_instance_;
164 };
165 // ===================================================================
166
167
168 // ===================================================================
169
170 // CtrlRspRadioState
171
172 // required .ril_proto.RadioState state = 1;
173 inline bool CtrlRspRadioState::has_state() const {
174   return _has_bit(0);
175 }
176 inline void CtrlRspRadioState::clear_state() {
177   state_ = 0;
178   _clear_bit(0);
179 }
180 inline ril_proto::RadioState CtrlRspRadioState::state() const {
181   return static_cast< ril_proto::RadioState >(state_);
182 }
183 inline void CtrlRspRadioState::set_state(ril_proto::RadioState value) {
184   GOOGLE_DCHECK(ril_proto::RadioState_IsValid(value));
185   _set_bit(0);
186   state_ = value;
187 }
188
189
190 // @@protoc_insertion_point(namespace_scope)
191
192 }  // namespace ril_proto
193
194 #ifndef SWIG
195 namespace google {
196 namespace protobuf {
197
198 template <>
199 inline const EnumDescriptor* GetEnumDescriptor< ril_proto::CtrlCmd>() {
200   return ril_proto::CtrlCmd_descriptor();
201 }
202 template <>
203 inline const EnumDescriptor* GetEnumDescriptor< ril_proto::CtrlStatus>() {
204   return ril_proto::CtrlStatus_descriptor();
205 }
206
207 }  // namespace google
208 }  // namespace protobuf
209 #endif  // SWIG
210
211 // @@protoc_insertion_point(global_scope)
212
213 #endif  // PROTOBUF_ctrl_2eproto__INCLUDED