Goby v2
modem_id_lookup.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/moos/protobuf/modem_id_lookup.proto
3 
4 #ifndef PROTOBUF_goby_2fmoos_2fprotobuf_2fmodem_5fid_5flookup_2eproto__INCLUDED
5 #define PROTOBUF_goby_2fmoos_2fprotobuf_2fmodem_5fid_5flookup_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/generated_enum_reflection.h>
27 #include <google/protobuf/unknown_field_set.h>
28 #include <boost/units/quantity.hpp>
29 #include <boost/units/absolute.hpp>
30 #include <boost/units/dimensionless_type.hpp>
31 #include <boost/units/make_scaled_unit.hpp>
32 // @@protoc_insertion_point(includes)
33 
34 namespace goby {
35 namespace moos {
36 namespace protobuf {
37 
38 // Internal implementation detail -- do not call these.
39 void protobuf_AddDesc_goby_2fmoos_2fprotobuf_2fmodem_5fid_5flookup_2eproto();
40 void protobuf_AssignDesc_goby_2fmoos_2fprotobuf_2fmodem_5fid_5flookup_2eproto();
41 void protobuf_ShutdownFile_goby_2fmoos_2fprotobuf_2fmodem_5fid_5flookup_2eproto();
42 
43 class ModemIdEntry;
44 
45 enum ModemIdEntry_VehicleType {
46  ModemIdEntry_VehicleType_UNKNOWN = 0,
47  ModemIdEntry_VehicleType_AUV = 1,
48  ModemIdEntry_VehicleType_BUOY = 2,
49  ModemIdEntry_VehicleType_SHIP = 3,
50  ModemIdEntry_VehicleType_GLIDER = 4,
51  ModemIdEntry_VehicleType_ASC = 5
52 };
53 bool ModemIdEntry_VehicleType_IsValid(int value);
54 const ModemIdEntry_VehicleType ModemIdEntry_VehicleType_VehicleType_MIN = ModemIdEntry_VehicleType_UNKNOWN;
55 const ModemIdEntry_VehicleType ModemIdEntry_VehicleType_VehicleType_MAX = ModemIdEntry_VehicleType_ASC;
56 const int ModemIdEntry_VehicleType_VehicleType_ARRAYSIZE = ModemIdEntry_VehicleType_VehicleType_MAX + 1;
57 
58 const ::google::protobuf::EnumDescriptor* ModemIdEntry_VehicleType_descriptor();
59 inline const ::std::string& ModemIdEntry_VehicleType_Name(ModemIdEntry_VehicleType value) {
60  return ::google::protobuf::internal::NameOfEnum(
61  ModemIdEntry_VehicleType_descriptor(), value);
62 }
63 inline bool ModemIdEntry_VehicleType_Parse(
64  const ::std::string& name, ModemIdEntry_VehicleType* value) {
65  return ::google::protobuf::internal::ParseNamedEnum<ModemIdEntry_VehicleType>(
66  ModemIdEntry_VehicleType_descriptor(), name, value);
67 }
68 // ===================================================================
69 
70 class ModemIdEntry : public ::google::protobuf::Message {
71  public:
72  ModemIdEntry();
73  virtual ~ModemIdEntry();
74 
75  ModemIdEntry(const ModemIdEntry& from);
76 
77  inline ModemIdEntry& operator=(const ModemIdEntry& from) {
78  CopyFrom(from);
79  return *this;
80  }
81 
82  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
83  return _unknown_fields_;
84  }
85 
86  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
87  return &_unknown_fields_;
88  }
89 
90  static const ::google::protobuf::Descriptor* descriptor();
91  static const ModemIdEntry& default_instance();
92 
93  void Swap(ModemIdEntry* other);
94 
95  // implements Message ----------------------------------------------
96 
97  ModemIdEntry* New() const;
98  void CopyFrom(const ::google::protobuf::Message& from);
99  void MergeFrom(const ::google::protobuf::Message& from);
100  void CopyFrom(const ModemIdEntry& from);
101  void MergeFrom(const ModemIdEntry& from);
102  void Clear();
103  bool IsInitialized() const;
104 
105  int ByteSize() const;
106  bool MergePartialFromCodedStream(
107  ::google::protobuf::io::CodedInputStream* input);
108  void SerializeWithCachedSizes(
109  ::google::protobuf::io::CodedOutputStream* output) const;
110  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
111  int GetCachedSize() const { return _cached_size_; }
112  private:
113  void SharedCtor();
114  void SharedDtor();
115  void SetCachedSize(int size) const;
116  public:
117  ::google::protobuf::Metadata GetMetadata() const;
118 
119  // nested types ----------------------------------------------------
120 
121  typedef ModemIdEntry_VehicleType VehicleType;
122  static const VehicleType UNKNOWN = ModemIdEntry_VehicleType_UNKNOWN;
123  static const VehicleType AUV = ModemIdEntry_VehicleType_AUV;
124  static const VehicleType BUOY = ModemIdEntry_VehicleType_BUOY;
125  static const VehicleType SHIP = ModemIdEntry_VehicleType_SHIP;
126  static const VehicleType GLIDER = ModemIdEntry_VehicleType_GLIDER;
127  static const VehicleType ASC = ModemIdEntry_VehicleType_ASC;
128  static inline bool VehicleType_IsValid(int value) {
129  return ModemIdEntry_VehicleType_IsValid(value);
130  }
131  static const VehicleType VehicleType_MIN =
132  ModemIdEntry_VehicleType_VehicleType_MIN;
133  static const VehicleType VehicleType_MAX =
134  ModemIdEntry_VehicleType_VehicleType_MAX;
135  static const int VehicleType_ARRAYSIZE =
136  ModemIdEntry_VehicleType_VehicleType_ARRAYSIZE;
137  static inline const ::google::protobuf::EnumDescriptor*
138  VehicleType_descriptor() {
139  return ModemIdEntry_VehicleType_descriptor();
140  }
141  static inline const ::std::string& VehicleType_Name(VehicleType value) {
142  return ModemIdEntry_VehicleType_Name(value);
143  }
144  static inline bool VehicleType_Parse(const ::std::string& name,
145  VehicleType* value) {
146  return ModemIdEntry_VehicleType_Parse(name, value);
147  }
148 
149  // accessors -------------------------------------------------------
150 
151  // required uint32 modem_id = 1;
152  inline bool has_modem_id() const;
153  inline void clear_modem_id();
154  static const int kModemIdFieldNumber = 1;
155  inline ::google::protobuf::uint32 modem_id() const;
156  inline void set_modem_id(::google::protobuf::uint32 value);
157 
158  // required string name = 2;
159  inline bool has_name() const;
160  inline void clear_name();
161  static const int kNameFieldNumber = 2;
162  inline const ::std::string& name() const;
163  inline void set_name(const ::std::string& value);
164  inline void set_name(const char* value);
165  inline void set_name(const char* value, size_t size);
166  inline ::std::string* mutable_name();
167  inline ::std::string* release_name();
168  inline void set_allocated_name(::std::string* name);
169 
170  // optional .goby.moos.protobuf.ModemIdEntry.VehicleType type = 3 [default = UNKNOWN];
171  inline bool has_type() const;
172  inline void clear_type();
173  static const int kTypeFieldNumber = 3;
174  inline ::goby::moos::protobuf::ModemIdEntry_VehicleType type() const;
175  inline void set_type(::goby::moos::protobuf::ModemIdEntry_VehicleType value);
176 
177  // @@protoc_insertion_point(class_scope:goby.moos.protobuf.ModemIdEntry)
178  private:
179  inline void set_has_modem_id();
180  inline void clear_has_modem_id();
181  inline void set_has_name();
182  inline void clear_has_name();
183  inline void set_has_type();
184  inline void clear_has_type();
185 
186  ::google::protobuf::UnknownFieldSet _unknown_fields_;
187 
188  ::google::protobuf::uint32 _has_bits_[1];
189  mutable int _cached_size_;
190  ::std::string* name_;
191  ::google::protobuf::uint32 modem_id_;
192  int type_;
193  friend void protobuf_AddDesc_goby_2fmoos_2fprotobuf_2fmodem_5fid_5flookup_2eproto();
194  friend void protobuf_AssignDesc_goby_2fmoos_2fprotobuf_2fmodem_5fid_5flookup_2eproto();
195  friend void protobuf_ShutdownFile_goby_2fmoos_2fprotobuf_2fmodem_5fid_5flookup_2eproto();
196 
197  void InitAsDefaultInstance();
198  static ModemIdEntry* default_instance_;
199 };
200 // ===================================================================
201 
202 
203 // ===================================================================
204 
205 // ModemIdEntry
206 
207 // required uint32 modem_id = 1;
208 inline bool ModemIdEntry::has_modem_id() const {
209  return (_has_bits_[0] & 0x00000001u) != 0;
210 }
211 inline void ModemIdEntry::set_has_modem_id() {
212  _has_bits_[0] |= 0x00000001u;
213 }
214 inline void ModemIdEntry::clear_has_modem_id() {
215  _has_bits_[0] &= ~0x00000001u;
216 }
217 inline void ModemIdEntry::clear_modem_id() {
218  modem_id_ = 0u;
219  clear_has_modem_id();
220 }
221 inline ::google::protobuf::uint32 ModemIdEntry::modem_id() const {
222  // @@protoc_insertion_point(field_get:goby.moos.protobuf.ModemIdEntry.modem_id)
223  return modem_id_;
224 }
225 inline void ModemIdEntry::set_modem_id(::google::protobuf::uint32 value) {
226  set_has_modem_id();
227  modem_id_ = value;
228  // @@protoc_insertion_point(field_set:goby.moos.protobuf.ModemIdEntry.modem_id)
229 }
230 
231 // required string name = 2;
232 inline bool ModemIdEntry::has_name() const {
233  return (_has_bits_[0] & 0x00000002u) != 0;
234 }
235 inline void ModemIdEntry::set_has_name() {
236  _has_bits_[0] |= 0x00000002u;
237 }
238 inline void ModemIdEntry::clear_has_name() {
239  _has_bits_[0] &= ~0x00000002u;
240 }
241 inline void ModemIdEntry::clear_name() {
242  if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
243  name_->clear();
244  }
245  clear_has_name();
246 }
247 inline const ::std::string& ModemIdEntry::name() const {
248  // @@protoc_insertion_point(field_get:goby.moos.protobuf.ModemIdEntry.name)
249  return *name_;
250 }
251 inline void ModemIdEntry::set_name(const ::std::string& value) {
252  set_has_name();
253  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
254  name_ = new ::std::string;
255  }
256  name_->assign(value);
257  // @@protoc_insertion_point(field_set:goby.moos.protobuf.ModemIdEntry.name)
258 }
259 inline void ModemIdEntry::set_name(const char* value) {
260  set_has_name();
261  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
262  name_ = new ::std::string;
263  }
264  name_->assign(value);
265  // @@protoc_insertion_point(field_set_char:goby.moos.protobuf.ModemIdEntry.name)
266 }
267 inline void ModemIdEntry::set_name(const char* value, size_t size) {
268  set_has_name();
269  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
270  name_ = new ::std::string;
271  }
272  name_->assign(reinterpret_cast<const char*>(value), size);
273  // @@protoc_insertion_point(field_set_pointer:goby.moos.protobuf.ModemIdEntry.name)
274 }
275 inline ::std::string* ModemIdEntry::mutable_name() {
276  set_has_name();
277  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
278  name_ = new ::std::string;
279  }
280  // @@protoc_insertion_point(field_mutable:goby.moos.protobuf.ModemIdEntry.name)
281  return name_;
282 }
283 inline ::std::string* ModemIdEntry::release_name() {
284  clear_has_name();
285  if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
286  return NULL;
287  } else {
288  ::std::string* temp = name_;
289  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
290  return temp;
291  }
292 }
293 inline void ModemIdEntry::set_allocated_name(::std::string* name) {
294  if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
295  delete name_;
296  }
297  if (name) {
298  set_has_name();
299  name_ = name;
300  } else {
301  clear_has_name();
302  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
303  }
304  // @@protoc_insertion_point(field_set_allocated:goby.moos.protobuf.ModemIdEntry.name)
305 }
306 
307 // optional .goby.moos.protobuf.ModemIdEntry.VehicleType type = 3 [default = UNKNOWN];
308 inline bool ModemIdEntry::has_type() const {
309  return (_has_bits_[0] & 0x00000004u) != 0;
310 }
311 inline void ModemIdEntry::set_has_type() {
312  _has_bits_[0] |= 0x00000004u;
313 }
314 inline void ModemIdEntry::clear_has_type() {
315  _has_bits_[0] &= ~0x00000004u;
316 }
317 inline void ModemIdEntry::clear_type() {
318  type_ = 0;
319  clear_has_type();
320 }
321 inline ::goby::moos::protobuf::ModemIdEntry_VehicleType ModemIdEntry::type() const {
322  // @@protoc_insertion_point(field_get:goby.moos.protobuf.ModemIdEntry.type)
323  return static_cast< ::goby::moos::protobuf::ModemIdEntry_VehicleType >(type_);
324 }
325 inline void ModemIdEntry::set_type(::goby::moos::protobuf::ModemIdEntry_VehicleType value) {
326  assert(::goby::moos::protobuf::ModemIdEntry_VehicleType_IsValid(value));
327  set_has_type();
328  type_ = value;
329  // @@protoc_insertion_point(field_set:goby.moos.protobuf.ModemIdEntry.type)
330 }
331 
332 
333 // @@protoc_insertion_point(namespace_scope)
334 
335 } // namespace protobuf
336 } // namespace moos
337 } // namespace goby
338 
339 #ifndef SWIG
340 namespace google {
341 namespace protobuf {
342 
343 template <> struct is_proto_enum< ::goby::moos::protobuf::ModemIdEntry_VehicleType> : ::google::protobuf::internal::true_type {};
344 template <>
345 inline const EnumDescriptor* GetEnumDescriptor< ::goby::moos::protobuf::ModemIdEntry_VehicleType>() {
346  return ::goby::moos::protobuf::ModemIdEntry_VehicleType_descriptor();
347 }
348 
349 } // namespace google
350 } // namespace protobuf
351 #endif // SWIG
352 
353 // @@protoc_insertion_point(global_scope)
354 
355 #endif // PROTOBUF_goby_2fmoos_2fprotobuf_2fmodem_5fid_5flookup_2eproto__INCLUDED
The global namespace for the Goby project.