Goby v2
udp_driver.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/acomms/protobuf/udp_driver.proto
3 
4 #ifndef PROTOBUF_goby_2facomms_2fprotobuf_2fudp_5fdriver_2eproto__INCLUDED
5 #define PROTOBUF_goby_2facomms_2fprotobuf_2fudp_5fdriver_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/acomms/protobuf/driver_base.pb.h"
29 #include <boost/units/quantity.hpp>
30 #include <boost/units/absolute.hpp>
31 #include <boost/units/dimensionless_type.hpp>
32 #include <boost/units/make_scaled_unit.hpp>
33 // @@protoc_insertion_point(includes)
34 
35 // Internal implementation detail -- do not call these.
36 void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fudp_5fdriver_2eproto();
37 void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fudp_5fdriver_2eproto();
38 void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fudp_5fdriver_2eproto();
39 
40 class UDPDriverConfig;
42 
43 // ===================================================================
44 
45 class UDPDriverConfig_EndPoint : public ::google::protobuf::Message {
46  public:
48  virtual ~UDPDriverConfig_EndPoint();
49 
51 
52  inline UDPDriverConfig_EndPoint& operator=(const UDPDriverConfig_EndPoint& from) {
53  CopyFrom(from);
54  return *this;
55  }
56 
57  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
58  return _unknown_fields_;
59  }
60 
61  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
62  return &_unknown_fields_;
63  }
64 
65  static const ::google::protobuf::Descriptor* descriptor();
66  static const UDPDriverConfig_EndPoint& default_instance();
67 
68  void Swap(UDPDriverConfig_EndPoint* other);
69 
70  // implements Message ----------------------------------------------
71 
72  UDPDriverConfig_EndPoint* New() const;
73  void CopyFrom(const ::google::protobuf::Message& from);
74  void MergeFrom(const ::google::protobuf::Message& from);
75  void CopyFrom(const UDPDriverConfig_EndPoint& from);
76  void MergeFrom(const UDPDriverConfig_EndPoint& from);
77  void Clear();
78  bool IsInitialized() const;
79 
80  int ByteSize() const;
81  bool MergePartialFromCodedStream(
82  ::google::protobuf::io::CodedInputStream* input);
83  void SerializeWithCachedSizes(
84  ::google::protobuf::io::CodedOutputStream* output) const;
85  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
86  int GetCachedSize() const { return _cached_size_; }
87  private:
88  void SharedCtor();
89  void SharedDtor();
90  void SetCachedSize(int size) const;
91  public:
92  ::google::protobuf::Metadata GetMetadata() const;
93 
94  // nested types ----------------------------------------------------
95 
96  // accessors -------------------------------------------------------
97 
98  // optional string ip = 1 [default = "127.0.0.1"];
99  inline bool has_ip() const;
100  inline void clear_ip();
101  static const int kIpFieldNumber = 1;
102  inline const ::std::string& ip() const;
103  inline void set_ip(const ::std::string& value);
104  inline void set_ip(const char* value);
105  inline void set_ip(const char* value, size_t size);
106  inline ::std::string* mutable_ip();
107  inline ::std::string* release_ip();
108  inline void set_allocated_ip(::std::string* ip);
109 
110  // required uint32 port = 2;
111  inline bool has_port() const;
112  inline void clear_port();
113  static const int kPortFieldNumber = 2;
114  inline ::google::protobuf::uint32 port() const;
115  inline void set_port(::google::protobuf::uint32 value);
116 
117  // @@protoc_insertion_point(class_scope:UDPDriverConfig.EndPoint)
118  private:
119  inline void set_has_ip();
120  inline void clear_has_ip();
121  inline void set_has_port();
122  inline void clear_has_port();
123 
124  ::google::protobuf::UnknownFieldSet _unknown_fields_;
125 
126  ::google::protobuf::uint32 _has_bits_[1];
127  mutable int _cached_size_;
128  static ::std::string* _default_ip_;
129  ::std::string* ip_;
130  ::google::protobuf::uint32 port_;
131  friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fudp_5fdriver_2eproto();
132  friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fudp_5fdriver_2eproto();
133  friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fudp_5fdriver_2eproto();
134 
135  void InitAsDefaultInstance();
136  static UDPDriverConfig_EndPoint* default_instance_;
137 };
138 // -------------------------------------------------------------------
139 
140 class UDPDriverConfig : public ::google::protobuf::Message {
141  public:
142  UDPDriverConfig();
143  virtual ~UDPDriverConfig();
144 
145  UDPDriverConfig(const UDPDriverConfig& from);
146 
147  inline UDPDriverConfig& operator=(const UDPDriverConfig& from) {
148  CopyFrom(from);
149  return *this;
150  }
151 
152  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
153  return _unknown_fields_;
154  }
155 
156  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
157  return &_unknown_fields_;
158  }
159 
160  static const ::google::protobuf::Descriptor* descriptor();
161  static const UDPDriverConfig& default_instance();
162 
163  void Swap(UDPDriverConfig* other);
164 
165  // implements Message ----------------------------------------------
166 
167  UDPDriverConfig* New() const;
168  void CopyFrom(const ::google::protobuf::Message& from);
169  void MergeFrom(const ::google::protobuf::Message& from);
170  void CopyFrom(const UDPDriverConfig& from);
171  void MergeFrom(const UDPDriverConfig& from);
172  void Clear();
173  bool IsInitialized() const;
174 
175  int ByteSize() const;
176  bool MergePartialFromCodedStream(
177  ::google::protobuf::io::CodedInputStream* input);
178  void SerializeWithCachedSizes(
179  ::google::protobuf::io::CodedOutputStream* output) const;
180  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
181  int GetCachedSize() const { return _cached_size_; }
182  private:
183  void SharedCtor();
184  void SharedDtor();
185  void SetCachedSize(int size) const;
186  public:
187  ::google::protobuf::Metadata GetMetadata() const;
188 
189  // nested types ----------------------------------------------------
190 
192 
193  // accessors -------------------------------------------------------
194 
195  static const int kLocalFieldNumber = 1341;
196  static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
197  ::google::protobuf::internal::MessageTypeTraits< ::UDPDriverConfig_EndPoint >, 11, false >
198  local;
199  static const int kRemoteFieldNumber = 1342;
200  static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
201  ::google::protobuf::internal::MessageTypeTraits< ::UDPDriverConfig_EndPoint >, 11, false >
202  remote;
203  static const int kMaxFrameSizeFieldNumber = 1343;
204  static ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
205  ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
206  max_frame_size;
207  // @@protoc_insertion_point(class_scope:UDPDriverConfig)
208  private:
209 
210  ::google::protobuf::UnknownFieldSet _unknown_fields_;
211 
212  ::google::protobuf::uint32 _has_bits_[1];
213  mutable int _cached_size_;
214  friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2fudp_5fdriver_2eproto();
215  friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2fudp_5fdriver_2eproto();
216  friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2fudp_5fdriver_2eproto();
217 
218  void InitAsDefaultInstance();
219  static UDPDriverConfig* default_instance_;
220 };
221 // ===================================================================
222 
223 
224 // ===================================================================
225 
226 // UDPDriverConfig_EndPoint
227 
228 // optional string ip = 1 [default = "127.0.0.1"];
229 inline bool UDPDriverConfig_EndPoint::has_ip() const {
230  return (_has_bits_[0] & 0x00000001u) != 0;
231 }
232 inline void UDPDriverConfig_EndPoint::set_has_ip() {
233  _has_bits_[0] |= 0x00000001u;
234 }
235 inline void UDPDriverConfig_EndPoint::clear_has_ip() {
236  _has_bits_[0] &= ~0x00000001u;
237 }
238 inline void UDPDriverConfig_EndPoint::clear_ip() {
239  if (ip_ != _default_ip_) {
240  ip_->assign(*_default_ip_);
241  }
242  clear_has_ip();
243 }
244 inline const ::std::string& UDPDriverConfig_EndPoint::ip() const {
245  // @@protoc_insertion_point(field_get:UDPDriverConfig.EndPoint.ip)
246  return *ip_;
247 }
248 inline void UDPDriverConfig_EndPoint::set_ip(const ::std::string& value) {
249  set_has_ip();
250  if (ip_ == _default_ip_) {
251  ip_ = new ::std::string;
252  }
253  ip_->assign(value);
254  // @@protoc_insertion_point(field_set:UDPDriverConfig.EndPoint.ip)
255 }
256 inline void UDPDriverConfig_EndPoint::set_ip(const char* value) {
257  set_has_ip();
258  if (ip_ == _default_ip_) {
259  ip_ = new ::std::string;
260  }
261  ip_->assign(value);
262  // @@protoc_insertion_point(field_set_char:UDPDriverConfig.EndPoint.ip)
263 }
264 inline void UDPDriverConfig_EndPoint::set_ip(const char* value, size_t size) {
265  set_has_ip();
266  if (ip_ == _default_ip_) {
267  ip_ = new ::std::string;
268  }
269  ip_->assign(reinterpret_cast<const char*>(value), size);
270  // @@protoc_insertion_point(field_set_pointer:UDPDriverConfig.EndPoint.ip)
271 }
272 inline ::std::string* UDPDriverConfig_EndPoint::mutable_ip() {
273  set_has_ip();
274  if (ip_ == _default_ip_) {
275  ip_ = new ::std::string(*_default_ip_);
276  }
277  // @@protoc_insertion_point(field_mutable:UDPDriverConfig.EndPoint.ip)
278  return ip_;
279 }
280 inline ::std::string* UDPDriverConfig_EndPoint::release_ip() {
281  clear_has_ip();
282  if (ip_ == _default_ip_) {
283  return NULL;
284  } else {
285  ::std::string* temp = ip_;
286  ip_ = const_cast< ::std::string*>(_default_ip_);
287  return temp;
288  }
289 }
290 inline void UDPDriverConfig_EndPoint::set_allocated_ip(::std::string* ip) {
291  if (ip_ != _default_ip_) {
292  delete ip_;
293  }
294  if (ip) {
295  set_has_ip();
296  ip_ = ip;
297  } else {
298  clear_has_ip();
299  ip_ = const_cast< ::std::string*>(_default_ip_);
300  }
301  // @@protoc_insertion_point(field_set_allocated:UDPDriverConfig.EndPoint.ip)
302 }
303 
304 // required uint32 port = 2;
305 inline bool UDPDriverConfig_EndPoint::has_port() const {
306  return (_has_bits_[0] & 0x00000002u) != 0;
307 }
308 inline void UDPDriverConfig_EndPoint::set_has_port() {
309  _has_bits_[0] |= 0x00000002u;
310 }
311 inline void UDPDriverConfig_EndPoint::clear_has_port() {
312  _has_bits_[0] &= ~0x00000002u;
313 }
314 inline void UDPDriverConfig_EndPoint::clear_port() {
315  port_ = 0u;
316  clear_has_port();
317 }
318 inline ::google::protobuf::uint32 UDPDriverConfig_EndPoint::port() const {
319  // @@protoc_insertion_point(field_get:UDPDriverConfig.EndPoint.port)
320  return port_;
321 }
322 inline void UDPDriverConfig_EndPoint::set_port(::google::protobuf::uint32 value) {
323  set_has_port();
324  port_ = value;
325  // @@protoc_insertion_point(field_set:UDPDriverConfig.EndPoint.port)
326 }
327 
328 // -------------------------------------------------------------------
329 
330 // UDPDriverConfig
331 
332 
333 // @@protoc_insertion_point(namespace_scope)
334 
335 #ifndef SWIG
336 namespace google {
337 namespace protobuf {
338 
339 
340 } // namespace google
341 } // namespace protobuf
342 #endif // SWIG
343 
344 // @@protoc_insertion_point(global_scope)
345 
346 #endif // PROTOBUF_goby_2facomms_2fprotobuf_2fudp_5fdriver_2eproto__INCLUDED