Ignition Msgs

API Reference

8.0.0~pre1
wireless_node.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/wireless_node.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fwireless_5fnode_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fwireless_5fnode_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3000000
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 3000000 < 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/arena.h>
23 #include <google/protobuf/arenastring.h>
24 #include <google/protobuf/generated_message_util.h>
25 #include <google/protobuf/metadata.h>
26 #include <google/protobuf/message.h>
27 #include <google/protobuf/repeated_field.h>
28 #include <google/protobuf/extension_set.h>
29 #include <google/protobuf/unknown_field_set.h>
31 #ifndef _MSC_VER
32 #pragma GCC system_header
33 #else
34 #pragma warning(push)
35 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
36 #endif
37 #ifdef __linux__
38 #include <sys/sysmacros.h>
39 #endif
40 #include <memory>
41 #include <ignition/msgs/Export.hh>
42 // @@protoc_insertion_point(includes)
43 
44 namespace ignition {
45 namespace msgs {
46 
47 // Internal implementation detail -- do not call these.
51 
52 class WirelessNode;
53 
54 // ===================================================================
55 
56 class IGNITION_MSGS_VISIBLE WirelessNode : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.WirelessNode) */ {
57  public:
58  WirelessNode();
59  virtual ~WirelessNode();
60 
61  WirelessNode(const WirelessNode& from);
62 
63  inline WirelessNode& operator=(const WirelessNode& from) {
64  CopyFrom(from);
65  return *this;
66  }
67 
68  static const ::google::protobuf::Descriptor* descriptor();
69  static const WirelessNode& default_instance();
70 
71  void Swap(WirelessNode* other);
72 
73  // implements Message ----------------------------------------------
74 
75  inline WirelessNode* New() const { return New(NULL); }
76 
77  WirelessNode* New(::google::protobuf::Arena* arena) const;
78  void CopyFrom(const ::google::protobuf::Message& from);
79  void MergeFrom(const ::google::protobuf::Message& from);
80  void CopyFrom(const WirelessNode& from);
81  void MergeFrom(const WirelessNode& from);
82  void Clear();
83  bool IsInitialized() const;
84 
85  int ByteSize() const;
86  bool MergePartialFromCodedStream(
87  ::google::protobuf::io::CodedInputStream* input);
88  void SerializeWithCachedSizes(
89  ::google::protobuf::io::CodedOutputStream* output) const;
90  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
91  bool deterministic, ::google::protobuf::uint8* output) const;
92  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
93  return InternalSerializeWithCachedSizesToArray(false, output);
94  }
95  int GetCachedSize() const { return _cached_size_; }
96  private:
97  void SharedCtor();
98  void SharedDtor();
99  void SetCachedSize(int size) const;
100  void InternalSwap(WirelessNode* other);
101  private:
102  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
103  return _internal_metadata_.arena();
104  }
105  inline void* MaybeArenaPtr() const {
106  return _internal_metadata_.raw_arena_ptr();
107  }
108  public:
109 
110  ::google::protobuf::Metadata GetMetadata() const;
111 
112  // nested types ----------------------------------------------------
113 
114  // accessors -------------------------------------------------------
115 
116  // optional .ignition.msgs.Header header = 1;
117  bool has_header() const;
118  void clear_header();
119  static const int kHeaderFieldNumber = 1;
120  const ::ignition::msgs::Header& header() const;
121  ::ignition::msgs::Header* mutable_header();
122  ::ignition::msgs::Header* release_header();
123  void set_allocated_header(::ignition::msgs::Header* header);
124 
125  // optional string essid = 2;
126  void clear_essid();
127  static const int kEssidFieldNumber = 2;
128  const ::std::string& essid() const;
129  void set_essid(const ::std::string& value);
130  void set_essid(const char* value);
131  void set_essid(const char* value, size_t size);
132  ::std::string* mutable_essid();
133  ::std::string* release_essid();
134  void set_allocated_essid(::std::string* essid);
135 
136  // optional double frequency = 3;
137  void clear_frequency();
138  static const int kFrequencyFieldNumber = 3;
139  double frequency() const;
140  void set_frequency(double value);
141 
142  // optional double signal_level = 4;
143  void clear_signal_level();
144  static const int kSignalLevelFieldNumber = 4;
145  double signal_level() const;
146  void set_signal_level(double value);
147 
148  // @@protoc_insertion_point(class_scope:ignition.msgs.WirelessNode)
149  private:
150 
151  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
152  bool _is_default_instance_;
153  ::ignition::msgs::Header* header_;
154  ::google::protobuf::internal::ArenaStringPtr essid_;
155  double frequency_;
156  double signal_level_;
157  mutable int _cached_size_;
158  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fwireless_5fnode_2eproto();
161 
162  void InitAsDefaultInstance();
163  static WirelessNode* default_instance_;
164 };
165 // ===================================================================
166 
167 
168 // ===================================================================
169 
170 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
171 // WirelessNode
172 
173 // optional .ignition.msgs.Header header = 1;
174 inline bool WirelessNode::has_header() const {
175  return !_is_default_instance_ && header_ != NULL;
176 }
178  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
179  header_ = NULL;
180 }
181 inline const ::ignition::msgs::Header& WirelessNode::header() const {
182  // @@protoc_insertion_point(field_get:ignition.msgs.WirelessNode.header)
183  return header_ != NULL ? *header_ : *default_instance_->header_;
184 }
185 inline ::ignition::msgs::Header* WirelessNode::mutable_header() {
186 
187  if (header_ == NULL) {
188  header_ = new ::ignition::msgs::Header;
189  }
190  // @@protoc_insertion_point(field_mutable:ignition.msgs.WirelessNode.header)
191  return header_;
192 }
193 inline ::ignition::msgs::Header* WirelessNode::release_header() {
194  // @@protoc_insertion_point(field_release:ignition.msgs.WirelessNode.header)
195 
196  ::ignition::msgs::Header* temp = header_;
197  header_ = NULL;
198  return temp;
199 }
201  delete header_;
202  header_ = header;
203  if (header) {
204 
205  } else {
206 
207  }
208  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.WirelessNode.header)
209 }
210 
211 // optional string essid = 2;
213  essid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
214 }
215 inline const ::std::string& WirelessNode::essid() const {
216  // @@protoc_insertion_point(field_get:ignition.msgs.WirelessNode.essid)
217  return essid_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
218 }
219 inline void WirelessNode::set_essid(const ::std::string& value) {
220 
221  essid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
222  // @@protoc_insertion_point(field_set:ignition.msgs.WirelessNode.essid)
223 }
224 inline void WirelessNode::set_essid(const char* value) {
225 
226  essid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
227  // @@protoc_insertion_point(field_set_char:ignition.msgs.WirelessNode.essid)
228 }
229 inline void WirelessNode::set_essid(const char* value, size_t size) {
230 
231  essid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
232  ::std::string(reinterpret_cast<const char*>(value), size));
233  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.WirelessNode.essid)
234 }
235 inline ::std::string* WirelessNode::mutable_essid() {
236 
237  // @@protoc_insertion_point(field_mutable:ignition.msgs.WirelessNode.essid)
238  return essid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
239 }
240 inline ::std::string* WirelessNode::release_essid() {
241  // @@protoc_insertion_point(field_release:ignition.msgs.WirelessNode.essid)
242 
243  return essid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
244 }
246  if (essid != NULL) {
247 
248  } else {
249 
250  }
251  essid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), essid);
252  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.WirelessNode.essid)
253 }
254 
255 // optional double frequency = 3;
257  frequency_ = 0;
258 }
259 inline double WirelessNode::frequency() const {
260  // @@protoc_insertion_point(field_get:ignition.msgs.WirelessNode.frequency)
261  return frequency_;
262 }
263 inline void WirelessNode::set_frequency(double value) {
264 
265  frequency_ = value;
266  // @@protoc_insertion_point(field_set:ignition.msgs.WirelessNode.frequency)
267 }
268 
269 // optional double signal_level = 4;
271  signal_level_ = 0;
272 }
273 inline double WirelessNode::signal_level() const {
274  // @@protoc_insertion_point(field_get:ignition.msgs.WirelessNode.signal_level)
275  return signal_level_;
276 }
277 inline void WirelessNode::set_signal_level(double value) {
278 
279  signal_level_ = value;
280  // @@protoc_insertion_point(field_set:ignition.msgs.WirelessNode.signal_level)
281 }
282 
283 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
284 
289 // @@protoc_insertion_point(namespace_scope)
290 
291 } // namespace msgs
292 } // namespace ignition
293 
294 #ifdef _MSC_VER
295 #pragma warning(pop)
296 #endif
297 // @@protoc_insertion_point(global_scope)
298 
299 #endif // PROTOBUF_ignition_2fmsgs_2fwireless_5fnode_2eproto__INCLUDED
double frequency() const
Definition: wireless_node.pb.h:259
void clear_signal_level()
Definition: wireless_node.pb.h:270
::ignition::msgs::Header * mutable_header()
Definition: wireless_node.pb.h:185
void set_frequency(double value)
Definition: wireless_node.pb.h:263
::std::string * release_essid()
Definition: wireless_node.pb.h:240
void protobuf_ShutdownFile_ignition_2fmsgs_2fwireless_5fnode_2eproto()
void set_essid(const ::std::string &value)
Definition: wireless_node.pb.h:219
WirelessNode * New() const
Definition: wireless_node.pb.h:75
const ::ignition::msgs::Header & header() const
Definition: wireless_node.pb.h:181
void set_signal_level(double value)
Definition: wireless_node.pb.h:277
int GetCachedSize() const
Definition: wireless_node.pb.h:95
void protobuf_AssignDesc_ignition_2fmsgs_2fwireless_5fnode_2eproto()
bool has_header() const
Definition: wireless_node.pb.h:174
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: wireless_node.pb.h:92
Definition: header.pb.h:161
STL class.
const ::std::string & essid() const
Definition: wireless_node.pb.h:215
WirelessNode & operator=(const WirelessNode &from)
Definition: wireless_node.pb.h:63
void clear_header()
Definition: wireless_node.pb.h:177
std::shared_ptr< WirelessNode > WirelessNodeSharedPtr
Definition: wireless_node.pb.h:287
void set_allocated_essid(::std::string *essid)
Definition: wireless_node.pb.h:245
STL class.
double signal_level() const
Definition: wireless_node.pb.h:273
::std::string * mutable_essid()
Definition: wireless_node.pb.h:235
Definition: wireless_node.pb.h:56
void set_allocated_header(::ignition::msgs::Header *header)
Definition: wireless_node.pb.h:200
std::unique_ptr< WirelessNode > WirelessNodeUniquePtr
Definition: wireless_node.pb.h:285
void clear_frequency()
Definition: wireless_node.pb.h:256
std::shared_ptr< const WirelessNode > ConstWirelessNodeSharedPtr
Definition: wireless_node.pb.h:288
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fwireless_5fnode_2eproto()
void clear_essid()
Definition: wireless_node.pb.h:212
::ignition::msgs::Header * release_header()
Definition: wireless_node.pb.h:193
std::unique_ptr< const WirelessNode > ConstWirelessNodeUniquePtr
Definition: wireless_node.pb.h:286