Goby v2
mosh_relay_config.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/apps/acomms/goby_mosh_relay/mosh_relay_config.proto
3 
4 #ifndef PROTOBUF_goby_2fapps_2facomms_2fgoby_5fmosh_5frelay_2fmosh_5frelay_5fconfig_2eproto__INCLUDED
5 #define PROTOBUF_goby_2fapps_2facomms_2fgoby_5fmosh_5frelay_2fmosh_5frelay_5fconfig_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 2006000
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 2006001 < 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/message.h>
24 #include <google/protobuf/repeated_field.h>
25 #include <google/protobuf/extension_set.h>
26 #include <google/protobuf/unknown_field_set.h>
27 #include "goby/common/protobuf/option_extensions.pb.h"
28 #include "goby/common/protobuf/app_base_config.pb.h"
29 #include "goby/acomms/protobuf/driver_base.pb.h"
30 #include <boost/units/quantity.hpp>
31 #include <boost/units/absolute.hpp>
32 #include <boost/units/dimensionless_type.hpp>
33 #include <boost/units/make_scaled_unit.hpp>
34 // @@protoc_insertion_point(includes)
35 
36 namespace goby {
37 namespace acomms {
38 namespace protobuf {
39 
40 // Internal implementation detail -- do not call these.
41 void protobuf_AddDesc_goby_2fapps_2facomms_2fgoby_5fmosh_5frelay_2fmosh_5frelay_5fconfig_2eproto();
42 void protobuf_AssignDesc_goby_2fapps_2facomms_2fgoby_5fmosh_5frelay_2fmosh_5frelay_5fconfig_2eproto();
43 void protobuf_ShutdownFile_goby_2fapps_2facomms_2fgoby_5fmosh_5frelay_2fmosh_5frelay_5fconfig_2eproto();
44 
45 class MoshRelayConfig;
46 
47 // ===================================================================
48 
49 class MoshRelayConfig : public ::google::protobuf::Message {
50  public:
52  virtual ~MoshRelayConfig();
53 
54  MoshRelayConfig(const MoshRelayConfig& from);
55 
56  inline MoshRelayConfig& operator=(const MoshRelayConfig& from) {
57  CopyFrom(from);
58  return *this;
59  }
60 
61  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
62  return _unknown_fields_;
63  }
64 
65  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
66  return &_unknown_fields_;
67  }
68 
69  static const ::google::protobuf::Descriptor* descriptor();
70  static const MoshRelayConfig& default_instance();
71 
72  void Swap(MoshRelayConfig* other);
73 
74  // implements Message ----------------------------------------------
75 
76  MoshRelayConfig* New() const;
77  void CopyFrom(const ::google::protobuf::Message& from);
78  void MergeFrom(const ::google::protobuf::Message& from);
79  void CopyFrom(const MoshRelayConfig& from);
80  void MergeFrom(const MoshRelayConfig& from);
81  void Clear();
82  bool IsInitialized() const;
83 
84  int ByteSize() const;
85  bool MergePartialFromCodedStream(
86  ::google::protobuf::io::CodedInputStream* input);
87  void SerializeWithCachedSizes(
88  ::google::protobuf::io::CodedOutputStream* output) const;
89  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
90  int GetCachedSize() const { return _cached_size_; }
91  private:
92  void SharedCtor();
93  void SharedDtor();
94  void SetCachedSize(int size) const;
95  public:
96  ::google::protobuf::Metadata GetMetadata() const;
97 
98  // nested types ----------------------------------------------------
99 
100  // accessors -------------------------------------------------------
101 
102  // optional .AppBaseConfig base = 1;
103  inline bool has_base() const;
104  inline void clear_base();
105  static const int kBaseFieldNumber = 1;
106  inline const ::AppBaseConfig& base() const;
107  inline ::AppBaseConfig* mutable_base();
108  inline ::AppBaseConfig* release_base();
109  inline void set_allocated_base(::AppBaseConfig* base);
110 
111  // optional string ip_address = 2 [default = "127.0.0.1"];
112  inline bool has_ip_address() const;
113  inline void clear_ip_address();
114  static const int kIpAddressFieldNumber = 2;
115  inline const ::std::string& ip_address() const;
116  inline void set_ip_address(const ::std::string& value);
117  inline void set_ip_address(const char* value);
118  inline void set_ip_address(const char* value, size_t size);
119  inline ::std::string* mutable_ip_address();
120  inline ::std::string* release_ip_address();
121  inline void set_allocated_ip_address(::std::string* ip_address);
122 
123  // optional uint32 udp_port = 3;
124  inline bool has_udp_port() const;
125  inline void clear_udp_port();
126  static const int kUdpPortFieldNumber = 3;
127  inline ::google::protobuf::uint32 udp_port() const;
128  inline void set_udp_port(::google::protobuf::uint32 value);
129 
130  // optional bool bind = 4;
131  inline bool has_bind() const;
132  inline void clear_bind();
133  static const int kBindFieldNumber = 4;
134  inline bool bind() const;
135  inline void set_bind(bool value);
136 
137  // required uint32 src_modem_id = 5;
138  inline bool has_src_modem_id() const;
139  inline void clear_src_modem_id();
140  static const int kSrcModemIdFieldNumber = 5;
141  inline ::google::protobuf::uint32 src_modem_id() const;
142  inline void set_src_modem_id(::google::protobuf::uint32 value);
143 
144  // required uint32 dest_modem_id = 6;
145  inline bool has_dest_modem_id() const;
146  inline void clear_dest_modem_id();
147  static const int kDestModemIdFieldNumber = 6;
148  inline ::google::protobuf::uint32 dest_modem_id() const;
149  inline void set_dest_modem_id(::google::protobuf::uint32 value);
150 
151  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.MoshRelayConfig)
152  private:
153  inline void set_has_base();
154  inline void clear_has_base();
155  inline void set_has_ip_address();
156  inline void clear_has_ip_address();
157  inline void set_has_udp_port();
158  inline void clear_has_udp_port();
159  inline void set_has_bind();
160  inline void clear_has_bind();
161  inline void set_has_src_modem_id();
162  inline void clear_has_src_modem_id();
163  inline void set_has_dest_modem_id();
164  inline void clear_has_dest_modem_id();
165 
166  ::google::protobuf::UnknownFieldSet _unknown_fields_;
167 
168  ::google::protobuf::uint32 _has_bits_[1];
169  mutable int _cached_size_;
170  ::AppBaseConfig* base_;
171  static ::std::string* _default_ip_address_;
172  ::std::string* ip_address_;
173  ::google::protobuf::uint32 udp_port_;
174  bool bind_;
175  ::google::protobuf::uint32 src_modem_id_;
176  ::google::protobuf::uint32 dest_modem_id_;
177  friend void protobuf_AddDesc_goby_2fapps_2facomms_2fgoby_5fmosh_5frelay_2fmosh_5frelay_5fconfig_2eproto();
178  friend void protobuf_AssignDesc_goby_2fapps_2facomms_2fgoby_5fmosh_5frelay_2fmosh_5frelay_5fconfig_2eproto();
179  friend void protobuf_ShutdownFile_goby_2fapps_2facomms_2fgoby_5fmosh_5frelay_2fmosh_5frelay_5fconfig_2eproto();
180 
181  void InitAsDefaultInstance();
182  static MoshRelayConfig* default_instance_;
183 };
184 // ===================================================================
185 
186 
187 // ===================================================================
188 
189 // MoshRelayConfig
190 
191 // optional .AppBaseConfig base = 1;
192 inline bool MoshRelayConfig::has_base() const {
193  return (_has_bits_[0] & 0x00000001u) != 0;
194 }
195 inline void MoshRelayConfig::set_has_base() {
196  _has_bits_[0] |= 0x00000001u;
197 }
198 inline void MoshRelayConfig::clear_has_base() {
199  _has_bits_[0] &= ~0x00000001u;
200 }
201 inline void MoshRelayConfig::clear_base() {
202  if (base_ != NULL) base_->::AppBaseConfig::Clear();
203  clear_has_base();
204 }
205 inline const ::AppBaseConfig& MoshRelayConfig::base() const {
206  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MoshRelayConfig.base)
207  return base_ != NULL ? *base_ : *default_instance_->base_;
208 }
209 inline ::AppBaseConfig* MoshRelayConfig::mutable_base() {
210  set_has_base();
211  if (base_ == NULL) base_ = new ::AppBaseConfig;
212  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.MoshRelayConfig.base)
213  return base_;
214 }
215 inline ::AppBaseConfig* MoshRelayConfig::release_base() {
216  clear_has_base();
217  ::AppBaseConfig* temp = base_;
218  base_ = NULL;
219  return temp;
220 }
221 inline void MoshRelayConfig::set_allocated_base(::AppBaseConfig* base) {
222  delete base_;
223  base_ = base;
224  if (base) {
225  set_has_base();
226  } else {
227  clear_has_base();
228  }
229  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.MoshRelayConfig.base)
230 }
231 
232 // optional string ip_address = 2 [default = "127.0.0.1"];
233 inline bool MoshRelayConfig::has_ip_address() const {
234  return (_has_bits_[0] & 0x00000002u) != 0;
235 }
236 inline void MoshRelayConfig::set_has_ip_address() {
237  _has_bits_[0] |= 0x00000002u;
238 }
239 inline void MoshRelayConfig::clear_has_ip_address() {
240  _has_bits_[0] &= ~0x00000002u;
241 }
242 inline void MoshRelayConfig::clear_ip_address() {
243  if (ip_address_ != _default_ip_address_) {
244  ip_address_->assign(*_default_ip_address_);
245  }
246  clear_has_ip_address();
247 }
248 inline const ::std::string& MoshRelayConfig::ip_address() const {
249  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MoshRelayConfig.ip_address)
250  return *ip_address_;
251 }
252 inline void MoshRelayConfig::set_ip_address(const ::std::string& value) {
253  set_has_ip_address();
254  if (ip_address_ == _default_ip_address_) {
255  ip_address_ = new ::std::string;
256  }
257  ip_address_->assign(value);
258  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MoshRelayConfig.ip_address)
259 }
260 inline void MoshRelayConfig::set_ip_address(const char* value) {
261  set_has_ip_address();
262  if (ip_address_ == _default_ip_address_) {
263  ip_address_ = new ::std::string;
264  }
265  ip_address_->assign(value);
266  // @@protoc_insertion_point(field_set_char:goby.acomms.protobuf.MoshRelayConfig.ip_address)
267 }
268 inline void MoshRelayConfig::set_ip_address(const char* value, size_t size) {
269  set_has_ip_address();
270  if (ip_address_ == _default_ip_address_) {
271  ip_address_ = new ::std::string;
272  }
273  ip_address_->assign(reinterpret_cast<const char*>(value), size);
274  // @@protoc_insertion_point(field_set_pointer:goby.acomms.protobuf.MoshRelayConfig.ip_address)
275 }
276 inline ::std::string* MoshRelayConfig::mutable_ip_address() {
277  set_has_ip_address();
278  if (ip_address_ == _default_ip_address_) {
279  ip_address_ = new ::std::string(*_default_ip_address_);
280  }
281  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.MoshRelayConfig.ip_address)
282  return ip_address_;
283 }
284 inline ::std::string* MoshRelayConfig::release_ip_address() {
285  clear_has_ip_address();
286  if (ip_address_ == _default_ip_address_) {
287  return NULL;
288  } else {
289  ::std::string* temp = ip_address_;
290  ip_address_ = const_cast< ::std::string*>(_default_ip_address_);
291  return temp;
292  }
293 }
294 inline void MoshRelayConfig::set_allocated_ip_address(::std::string* ip_address) {
295  if (ip_address_ != _default_ip_address_) {
296  delete ip_address_;
297  }
298  if (ip_address) {
299  set_has_ip_address();
300  ip_address_ = ip_address;
301  } else {
302  clear_has_ip_address();
303  ip_address_ = const_cast< ::std::string*>(_default_ip_address_);
304  }
305  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.MoshRelayConfig.ip_address)
306 }
307 
308 // optional uint32 udp_port = 3;
309 inline bool MoshRelayConfig::has_udp_port() const {
310  return (_has_bits_[0] & 0x00000004u) != 0;
311 }
312 inline void MoshRelayConfig::set_has_udp_port() {
313  _has_bits_[0] |= 0x00000004u;
314 }
315 inline void MoshRelayConfig::clear_has_udp_port() {
316  _has_bits_[0] &= ~0x00000004u;
317 }
318 inline void MoshRelayConfig::clear_udp_port() {
319  udp_port_ = 0u;
320  clear_has_udp_port();
321 }
322 inline ::google::protobuf::uint32 MoshRelayConfig::udp_port() const {
323  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MoshRelayConfig.udp_port)
324  return udp_port_;
325 }
326 inline void MoshRelayConfig::set_udp_port(::google::protobuf::uint32 value) {
327  set_has_udp_port();
328  udp_port_ = value;
329  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MoshRelayConfig.udp_port)
330 }
331 
332 // optional bool bind = 4;
333 inline bool MoshRelayConfig::has_bind() const {
334  return (_has_bits_[0] & 0x00000008u) != 0;
335 }
336 inline void MoshRelayConfig::set_has_bind() {
337  _has_bits_[0] |= 0x00000008u;
338 }
339 inline void MoshRelayConfig::clear_has_bind() {
340  _has_bits_[0] &= ~0x00000008u;
341 }
342 inline void MoshRelayConfig::clear_bind() {
343  bind_ = false;
344  clear_has_bind();
345 }
346 inline bool MoshRelayConfig::bind() const {
347  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MoshRelayConfig.bind)
348  return bind_;
349 }
350 inline void MoshRelayConfig::set_bind(bool value) {
351  set_has_bind();
352  bind_ = value;
353  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MoshRelayConfig.bind)
354 }
355 
356 // required uint32 src_modem_id = 5;
357 inline bool MoshRelayConfig::has_src_modem_id() const {
358  return (_has_bits_[0] & 0x00000010u) != 0;
359 }
360 inline void MoshRelayConfig::set_has_src_modem_id() {
361  _has_bits_[0] |= 0x00000010u;
362 }
363 inline void MoshRelayConfig::clear_has_src_modem_id() {
364  _has_bits_[0] &= ~0x00000010u;
365 }
366 inline void MoshRelayConfig::clear_src_modem_id() {
367  src_modem_id_ = 0u;
368  clear_has_src_modem_id();
369 }
370 inline ::google::protobuf::uint32 MoshRelayConfig::src_modem_id() const {
371  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MoshRelayConfig.src_modem_id)
372  return src_modem_id_;
373 }
374 inline void MoshRelayConfig::set_src_modem_id(::google::protobuf::uint32 value) {
375  set_has_src_modem_id();
376  src_modem_id_ = value;
377  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MoshRelayConfig.src_modem_id)
378 }
379 
380 // required uint32 dest_modem_id = 6;
381 inline bool MoshRelayConfig::has_dest_modem_id() const {
382  return (_has_bits_[0] & 0x00000020u) != 0;
383 }
384 inline void MoshRelayConfig::set_has_dest_modem_id() {
385  _has_bits_[0] |= 0x00000020u;
386 }
387 inline void MoshRelayConfig::clear_has_dest_modem_id() {
388  _has_bits_[0] &= ~0x00000020u;
389 }
390 inline void MoshRelayConfig::clear_dest_modem_id() {
391  dest_modem_id_ = 0u;
392  clear_has_dest_modem_id();
393 }
394 inline ::google::protobuf::uint32 MoshRelayConfig::dest_modem_id() const {
395  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MoshRelayConfig.dest_modem_id)
396  return dest_modem_id_;
397 }
398 inline void MoshRelayConfig::set_dest_modem_id(::google::protobuf::uint32 value) {
399  set_has_dest_modem_id();
400  dest_modem_id_ = value;
401  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MoshRelayConfig.dest_modem_id)
402 }
403 
404 
405 // @@protoc_insertion_point(namespace_scope)
406 
407 } // namespace protobuf
408 } // namespace acomms
409 } // namespace goby
410 
411 #ifndef SWIG
412 namespace google {
413 namespace protobuf {
414 
415 
416 } // namespace google
417 } // namespace protobuf
418 #endif // SWIG
419 
420 // @@protoc_insertion_point(global_scope)
421 
422 #endif // PROTOBUF_goby_2fapps_2facomms_2fgoby_5fmosh_5frelay_2fmosh_5frelay_5fconfig_2eproto__INCLUDED
The global namespace for the Goby project.