Goby v2
option_extensions.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/common/protobuf/option_extensions.proto
3 
4 #ifndef PROTOBUF_goby_2fcommon_2fprotobuf_2foption_5fextensions_2eproto__INCLUDED
5 #define PROTOBUF_goby_2fcommon_2fprotobuf_2foption_5fextensions_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 "google/protobuf/descriptor.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 namespace goby {
36 
37 // Internal implementation detail -- do not call these.
38 void protobuf_AddDesc_goby_2fcommon_2fprotobuf_2foption_5fextensions_2eproto();
39 void protobuf_AssignDesc_goby_2fcommon_2fprotobuf_2foption_5fextensions_2eproto();
40 void protobuf_ShutdownFile_goby_2fcommon_2fprotobuf_2foption_5fextensions_2eproto();
41 
42 class GobyFieldOptions;
43 class GobyFieldOptions_ConfigurationOptions;
44 class GobyMessageOptions;
45 
46 enum GobyFieldOptions_ConfigurationOptions_ConfigAction {
47  GobyFieldOptions_ConfigurationOptions_ConfigAction_ALWAYS = 1,
48  GobyFieldOptions_ConfigurationOptions_ConfigAction_NEVER = 2,
49  GobyFieldOptions_ConfigurationOptions_ConfigAction_ADVANCED = 3
50 };
51 bool GobyFieldOptions_ConfigurationOptions_ConfigAction_IsValid(int value);
52 const GobyFieldOptions_ConfigurationOptions_ConfigAction GobyFieldOptions_ConfigurationOptions_ConfigAction_ConfigAction_MIN = GobyFieldOptions_ConfigurationOptions_ConfigAction_ALWAYS;
53 const GobyFieldOptions_ConfigurationOptions_ConfigAction GobyFieldOptions_ConfigurationOptions_ConfigAction_ConfigAction_MAX = GobyFieldOptions_ConfigurationOptions_ConfigAction_ADVANCED;
54 const int GobyFieldOptions_ConfigurationOptions_ConfigAction_ConfigAction_ARRAYSIZE = GobyFieldOptions_ConfigurationOptions_ConfigAction_ConfigAction_MAX + 1;
55 
56 const ::google::protobuf::EnumDescriptor* GobyFieldOptions_ConfigurationOptions_ConfigAction_descriptor();
57 inline const ::std::string& GobyFieldOptions_ConfigurationOptions_ConfigAction_Name(GobyFieldOptions_ConfigurationOptions_ConfigAction value) {
58  return ::google::protobuf::internal::NameOfEnum(
59  GobyFieldOptions_ConfigurationOptions_ConfigAction_descriptor(), value);
60 }
61 inline bool GobyFieldOptions_ConfigurationOptions_ConfigAction_Parse(
62  const ::std::string& name, GobyFieldOptions_ConfigurationOptions_ConfigAction* value) {
63  return ::google::protobuf::internal::ParseNamedEnum<GobyFieldOptions_ConfigurationOptions_ConfigAction>(
64  GobyFieldOptions_ConfigurationOptions_ConfigAction_descriptor(), name, value);
65 }
66 // ===================================================================
67 
68 class GobyFieldOptions_ConfigurationOptions : public ::google::protobuf::Message {
69  public:
72 
74 
76  CopyFrom(from);
77  return *this;
78  }
79 
80  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
81  return _unknown_fields_;
82  }
83 
84  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
85  return &_unknown_fields_;
86  }
87 
88  static const ::google::protobuf::Descriptor* descriptor();
89  static const GobyFieldOptions_ConfigurationOptions& default_instance();
90 
91  void Swap(GobyFieldOptions_ConfigurationOptions* other);
92 
93  // implements Message ----------------------------------------------
94 
96  void CopyFrom(const ::google::protobuf::Message& from);
97  void MergeFrom(const ::google::protobuf::Message& from);
98  void CopyFrom(const GobyFieldOptions_ConfigurationOptions& from);
99  void MergeFrom(const GobyFieldOptions_ConfigurationOptions& from);
100  void Clear();
101  bool IsInitialized() const;
102 
103  int ByteSize() const;
104  bool MergePartialFromCodedStream(
105  ::google::protobuf::io::CodedInputStream* input);
106  void SerializeWithCachedSizes(
107  ::google::protobuf::io::CodedOutputStream* output) const;
108  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
109  int GetCachedSize() const { return _cached_size_; }
110  private:
111  void SharedCtor();
112  void SharedDtor();
113  void SetCachedSize(int size) const;
114  public:
115  ::google::protobuf::Metadata GetMetadata() const;
116 
117  // nested types ----------------------------------------------------
118 
119  typedef GobyFieldOptions_ConfigurationOptions_ConfigAction ConfigAction;
120  static const ConfigAction ALWAYS = GobyFieldOptions_ConfigurationOptions_ConfigAction_ALWAYS;
121  static const ConfigAction NEVER = GobyFieldOptions_ConfigurationOptions_ConfigAction_NEVER;
122  static const ConfigAction ADVANCED = GobyFieldOptions_ConfigurationOptions_ConfigAction_ADVANCED;
123  static inline bool ConfigAction_IsValid(int value) {
124  return GobyFieldOptions_ConfigurationOptions_ConfigAction_IsValid(value);
125  }
126  static const ConfigAction ConfigAction_MIN =
127  GobyFieldOptions_ConfigurationOptions_ConfigAction_ConfigAction_MIN;
128  static const ConfigAction ConfigAction_MAX =
129  GobyFieldOptions_ConfigurationOptions_ConfigAction_ConfigAction_MAX;
130  static const int ConfigAction_ARRAYSIZE =
131  GobyFieldOptions_ConfigurationOptions_ConfigAction_ConfigAction_ARRAYSIZE;
132  static inline const ::google::protobuf::EnumDescriptor*
133  ConfigAction_descriptor() {
134  return GobyFieldOptions_ConfigurationOptions_ConfigAction_descriptor();
135  }
136  static inline const ::std::string& ConfigAction_Name(ConfigAction value) {
137  return GobyFieldOptions_ConfigurationOptions_ConfigAction_Name(value);
138  }
139  static inline bool ConfigAction_Parse(const ::std::string& name,
140  ConfigAction* value) {
141  return GobyFieldOptions_ConfigurationOptions_ConfigAction_Parse(name, value);
142  }
143 
144  // accessors -------------------------------------------------------
145 
146  // optional string cli_short = 1;
147  inline bool has_cli_short() const;
148  inline void clear_cli_short();
149  static const int kCliShortFieldNumber = 1;
150  inline const ::std::string& cli_short() const;
151  inline void set_cli_short(const ::std::string& value);
152  inline void set_cli_short(const char* value);
153  inline void set_cli_short(const char* value, size_t size);
154  inline ::std::string* mutable_cli_short();
155  inline ::std::string* release_cli_short();
156  inline void set_allocated_cli_short(::std::string* cli_short);
157 
158  // optional .goby.GobyFieldOptions.ConfigurationOptions.ConfigAction action = 2 [default = ALWAYS];
159  inline bool has_action() const;
160  inline void clear_action();
161  static const int kActionFieldNumber = 2;
162  inline ::goby::GobyFieldOptions_ConfigurationOptions_ConfigAction action() const;
163  inline void set_action(::goby::GobyFieldOptions_ConfigurationOptions_ConfigAction value);
164 
165  // @@protoc_insertion_point(class_scope:goby.GobyFieldOptions.ConfigurationOptions)
166  private:
167  inline void set_has_cli_short();
168  inline void clear_has_cli_short();
169  inline void set_has_action();
170  inline void clear_has_action();
171 
172  ::google::protobuf::UnknownFieldSet _unknown_fields_;
173 
174  ::google::protobuf::uint32 _has_bits_[1];
175  mutable int _cached_size_;
176  ::std::string* cli_short_;
177  int action_;
178  friend void protobuf_AddDesc_goby_2fcommon_2fprotobuf_2foption_5fextensions_2eproto();
179  friend void protobuf_AssignDesc_goby_2fcommon_2fprotobuf_2foption_5fextensions_2eproto();
180  friend void protobuf_ShutdownFile_goby_2fcommon_2fprotobuf_2foption_5fextensions_2eproto();
181 
182  void InitAsDefaultInstance();
183  static GobyFieldOptions_ConfigurationOptions* default_instance_;
184 };
185 // -------------------------------------------------------------------
186 
187 class GobyFieldOptions : public ::google::protobuf::Message {
188  public:
190  virtual ~GobyFieldOptions();
191 
192  GobyFieldOptions(const GobyFieldOptions& from);
193 
194  inline GobyFieldOptions& operator=(const GobyFieldOptions& from) {
195  CopyFrom(from);
196  return *this;
197  }
198 
199  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
200  return _unknown_fields_;
201  }
202 
203  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
204  return &_unknown_fields_;
205  }
206 
207  static const ::google::protobuf::Descriptor* descriptor();
208  static const GobyFieldOptions& default_instance();
209 
210  void Swap(GobyFieldOptions* other);
211 
212  // implements Message ----------------------------------------------
213 
214  GobyFieldOptions* New() const;
215  void CopyFrom(const ::google::protobuf::Message& from);
216  void MergeFrom(const ::google::protobuf::Message& from);
217  void CopyFrom(const GobyFieldOptions& from);
218  void MergeFrom(const GobyFieldOptions& from);
219  void Clear();
220  bool IsInitialized() const;
221 
222  int ByteSize() const;
223  bool MergePartialFromCodedStream(
224  ::google::protobuf::io::CodedInputStream* input);
225  void SerializeWithCachedSizes(
226  ::google::protobuf::io::CodedOutputStream* output) const;
227  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
228  int GetCachedSize() const { return _cached_size_; }
229  private:
230  void SharedCtor();
231  void SharedDtor();
232  void SetCachedSize(int size) const;
233  public:
234  ::google::protobuf::Metadata GetMetadata() const;
235 
236  // nested types ----------------------------------------------------
237 
239 
240  // accessors -------------------------------------------------------
241 
242  // optional string description = 100;
243  inline bool has_description() const;
244  inline void clear_description();
245  static const int kDescriptionFieldNumber = 100;
246  inline const ::std::string& description() const;
247  inline void set_description(const ::std::string& value);
248  inline void set_description(const char* value);
249  inline void set_description(const char* value, size_t size);
250  inline ::std::string* mutable_description();
251  inline ::std::string* release_description();
252  inline void set_allocated_description(::std::string* description);
253 
254  // optional string example = 101;
255  inline bool has_example() const;
256  inline void clear_example();
257  static const int kExampleFieldNumber = 101;
258  inline const ::std::string& example() const;
259  inline void set_example(const ::std::string& value);
260  inline void set_example(const char* value);
261  inline void set_example(const char* value, size_t size);
262  inline ::std::string* mutable_example();
263  inline ::std::string* release_example();
264  inline void set_allocated_example(::std::string* example);
265 
266  // optional string moos_global = 102;
267  inline bool has_moos_global() const;
268  inline void clear_moos_global();
269  static const int kMoosGlobalFieldNumber = 102;
270  inline const ::std::string& moos_global() const;
271  inline void set_moos_global(const ::std::string& value);
272  inline void set_moos_global(const char* value);
273  inline void set_moos_global(const char* value, size_t size);
274  inline ::std::string* mutable_moos_global();
275  inline ::std::string* release_moos_global();
276  inline void set_allocated_moos_global(::std::string* moos_global);
277 
278  // optional .goby.GobyFieldOptions.ConfigurationOptions cfg = 200;
279  inline bool has_cfg() const;
280  inline void clear_cfg();
281  static const int kCfgFieldNumber = 200;
282  inline const ::goby::GobyFieldOptions_ConfigurationOptions& cfg() const;
283  inline ::goby::GobyFieldOptions_ConfigurationOptions* mutable_cfg();
284  inline ::goby::GobyFieldOptions_ConfigurationOptions* release_cfg();
285  inline void set_allocated_cfg(::goby::GobyFieldOptions_ConfigurationOptions* cfg);
286 
287  // @@protoc_insertion_point(class_scope:goby.GobyFieldOptions)
288  private:
289  inline void set_has_description();
290  inline void clear_has_description();
291  inline void set_has_example();
292  inline void clear_has_example();
293  inline void set_has_moos_global();
294  inline void clear_has_moos_global();
295  inline void set_has_cfg();
296  inline void clear_has_cfg();
297 
298  ::google::protobuf::UnknownFieldSet _unknown_fields_;
299 
300  ::google::protobuf::uint32 _has_bits_[1];
301  mutable int _cached_size_;
302  ::std::string* description_;
303  ::std::string* example_;
304  ::std::string* moos_global_;
306  friend void protobuf_AddDesc_goby_2fcommon_2fprotobuf_2foption_5fextensions_2eproto();
307  friend void protobuf_AssignDesc_goby_2fcommon_2fprotobuf_2foption_5fextensions_2eproto();
308  friend void protobuf_ShutdownFile_goby_2fcommon_2fprotobuf_2foption_5fextensions_2eproto();
309 
310  void InitAsDefaultInstance();
311  static GobyFieldOptions* default_instance_;
312 };
313 // -------------------------------------------------------------------
314 
315 class GobyMessageOptions : public ::google::protobuf::Message {
316  public:
318  virtual ~GobyMessageOptions();
319 
321 
322  inline GobyMessageOptions& operator=(const GobyMessageOptions& from) {
323  CopyFrom(from);
324  return *this;
325  }
326 
327  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
328  return _unknown_fields_;
329  }
330 
331  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
332  return &_unknown_fields_;
333  }
334 
335  static const ::google::protobuf::Descriptor* descriptor();
336  static const GobyMessageOptions& default_instance();
337 
338  void Swap(GobyMessageOptions* other);
339 
340  // implements Message ----------------------------------------------
341 
342  GobyMessageOptions* New() const;
343  void CopyFrom(const ::google::protobuf::Message& from);
344  void MergeFrom(const ::google::protobuf::Message& from);
345  void CopyFrom(const GobyMessageOptions& from);
346  void MergeFrom(const GobyMessageOptions& from);
347  void Clear();
348  bool IsInitialized() const;
349 
350  int ByteSize() const;
351  bool MergePartialFromCodedStream(
352  ::google::protobuf::io::CodedInputStream* input);
353  void SerializeWithCachedSizes(
354  ::google::protobuf::io::CodedOutputStream* output) const;
355  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
356  int GetCachedSize() const { return _cached_size_; }
357  private:
358  void SharedCtor();
359  void SharedDtor();
360  void SetCachedSize(int size) const;
361  public:
362  ::google::protobuf::Metadata GetMetadata() const;
363 
364  // nested types ----------------------------------------------------
365 
366  // accessors -------------------------------------------------------
367 
368  // @@protoc_insertion_point(class_scope:goby.GobyMessageOptions)
369  private:
370 
371  ::google::protobuf::UnknownFieldSet _unknown_fields_;
372 
373  ::google::protobuf::uint32 _has_bits_[1];
374  mutable int _cached_size_;
375  friend void protobuf_AddDesc_goby_2fcommon_2fprotobuf_2foption_5fextensions_2eproto();
376  friend void protobuf_AssignDesc_goby_2fcommon_2fprotobuf_2foption_5fextensions_2eproto();
377  friend void protobuf_ShutdownFile_goby_2fcommon_2fprotobuf_2foption_5fextensions_2eproto();
378 
379  void InitAsDefaultInstance();
380  static GobyMessageOptions* default_instance_;
381 };
382 // ===================================================================
383 
384 static const int kFieldFieldNumber = 1009;
385 extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FieldOptions,
386  ::google::protobuf::internal::MessageTypeTraits< ::goby::GobyFieldOptions >, 11, false >
387  field;
388 static const int kMsgFieldNumber = 1009;
389 extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
390  ::google::protobuf::internal::MessageTypeTraits< ::goby::GobyMessageOptions >, 11, false >
391  msg;
392 
393 // ===================================================================
394 
395 // GobyFieldOptions_ConfigurationOptions
396 
397 // optional string cli_short = 1;
398 inline bool GobyFieldOptions_ConfigurationOptions::has_cli_short() const {
399  return (_has_bits_[0] & 0x00000001u) != 0;
400 }
401 inline void GobyFieldOptions_ConfigurationOptions::set_has_cli_short() {
402  _has_bits_[0] |= 0x00000001u;
403 }
404 inline void GobyFieldOptions_ConfigurationOptions::clear_has_cli_short() {
405  _has_bits_[0] &= ~0x00000001u;
406 }
407 inline void GobyFieldOptions_ConfigurationOptions::clear_cli_short() {
408  if (cli_short_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
409  cli_short_->clear();
410  }
411  clear_has_cli_short();
412 }
413 inline const ::std::string& GobyFieldOptions_ConfigurationOptions::cli_short() const {
414  // @@protoc_insertion_point(field_get:goby.GobyFieldOptions.ConfigurationOptions.cli_short)
415  return *cli_short_;
416 }
417 inline void GobyFieldOptions_ConfigurationOptions::set_cli_short(const ::std::string& value) {
418  set_has_cli_short();
419  if (cli_short_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
420  cli_short_ = new ::std::string;
421  }
422  cli_short_->assign(value);
423  // @@protoc_insertion_point(field_set:goby.GobyFieldOptions.ConfigurationOptions.cli_short)
424 }
425 inline void GobyFieldOptions_ConfigurationOptions::set_cli_short(const char* value) {
426  set_has_cli_short();
427  if (cli_short_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
428  cli_short_ = new ::std::string;
429  }
430  cli_short_->assign(value);
431  // @@protoc_insertion_point(field_set_char:goby.GobyFieldOptions.ConfigurationOptions.cli_short)
432 }
433 inline void GobyFieldOptions_ConfigurationOptions::set_cli_short(const char* value, size_t size) {
434  set_has_cli_short();
435  if (cli_short_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
436  cli_short_ = new ::std::string;
437  }
438  cli_short_->assign(reinterpret_cast<const char*>(value), size);
439  // @@protoc_insertion_point(field_set_pointer:goby.GobyFieldOptions.ConfigurationOptions.cli_short)
440 }
441 inline ::std::string* GobyFieldOptions_ConfigurationOptions::mutable_cli_short() {
442  set_has_cli_short();
443  if (cli_short_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
444  cli_short_ = new ::std::string;
445  }
446  // @@protoc_insertion_point(field_mutable:goby.GobyFieldOptions.ConfigurationOptions.cli_short)
447  return cli_short_;
448 }
449 inline ::std::string* GobyFieldOptions_ConfigurationOptions::release_cli_short() {
450  clear_has_cli_short();
451  if (cli_short_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
452  return NULL;
453  } else {
454  ::std::string* temp = cli_short_;
455  cli_short_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
456  return temp;
457  }
458 }
459 inline void GobyFieldOptions_ConfigurationOptions::set_allocated_cli_short(::std::string* cli_short) {
460  if (cli_short_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
461  delete cli_short_;
462  }
463  if (cli_short) {
464  set_has_cli_short();
465  cli_short_ = cli_short;
466  } else {
467  clear_has_cli_short();
468  cli_short_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
469  }
470  // @@protoc_insertion_point(field_set_allocated:goby.GobyFieldOptions.ConfigurationOptions.cli_short)
471 }
472 
473 // optional .goby.GobyFieldOptions.ConfigurationOptions.ConfigAction action = 2 [default = ALWAYS];
474 inline bool GobyFieldOptions_ConfigurationOptions::has_action() const {
475  return (_has_bits_[0] & 0x00000002u) != 0;
476 }
477 inline void GobyFieldOptions_ConfigurationOptions::set_has_action() {
478  _has_bits_[0] |= 0x00000002u;
479 }
480 inline void GobyFieldOptions_ConfigurationOptions::clear_has_action() {
481  _has_bits_[0] &= ~0x00000002u;
482 }
483 inline void GobyFieldOptions_ConfigurationOptions::clear_action() {
484  action_ = 1;
485  clear_has_action();
486 }
487 inline ::goby::GobyFieldOptions_ConfigurationOptions_ConfigAction GobyFieldOptions_ConfigurationOptions::action() const {
488  // @@protoc_insertion_point(field_get:goby.GobyFieldOptions.ConfigurationOptions.action)
489  return static_cast< ::goby::GobyFieldOptions_ConfigurationOptions_ConfigAction >(action_);
490 }
491 inline void GobyFieldOptions_ConfigurationOptions::set_action(::goby::GobyFieldOptions_ConfigurationOptions_ConfigAction value) {
492  assert(::goby::GobyFieldOptions_ConfigurationOptions_ConfigAction_IsValid(value));
493  set_has_action();
494  action_ = value;
495  // @@protoc_insertion_point(field_set:goby.GobyFieldOptions.ConfigurationOptions.action)
496 }
497 
498 // -------------------------------------------------------------------
499 
500 // GobyFieldOptions
501 
502 // optional string description = 100;
503 inline bool GobyFieldOptions::has_description() const {
504  return (_has_bits_[0] & 0x00000001u) != 0;
505 }
506 inline void GobyFieldOptions::set_has_description() {
507  _has_bits_[0] |= 0x00000001u;
508 }
509 inline void GobyFieldOptions::clear_has_description() {
510  _has_bits_[0] &= ~0x00000001u;
511 }
512 inline void GobyFieldOptions::clear_description() {
513  if (description_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
514  description_->clear();
515  }
516  clear_has_description();
517 }
518 inline const ::std::string& GobyFieldOptions::description() const {
519  // @@protoc_insertion_point(field_get:goby.GobyFieldOptions.description)
520  return *description_;
521 }
522 inline void GobyFieldOptions::set_description(const ::std::string& value) {
523  set_has_description();
524  if (description_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
525  description_ = new ::std::string;
526  }
527  description_->assign(value);
528  // @@protoc_insertion_point(field_set:goby.GobyFieldOptions.description)
529 }
530 inline void GobyFieldOptions::set_description(const char* value) {
531  set_has_description();
532  if (description_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
533  description_ = new ::std::string;
534  }
535  description_->assign(value);
536  // @@protoc_insertion_point(field_set_char:goby.GobyFieldOptions.description)
537 }
538 inline void GobyFieldOptions::set_description(const char* value, size_t size) {
539  set_has_description();
540  if (description_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
541  description_ = new ::std::string;
542  }
543  description_->assign(reinterpret_cast<const char*>(value), size);
544  // @@protoc_insertion_point(field_set_pointer:goby.GobyFieldOptions.description)
545 }
546 inline ::std::string* GobyFieldOptions::mutable_description() {
547  set_has_description();
548  if (description_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
549  description_ = new ::std::string;
550  }
551  // @@protoc_insertion_point(field_mutable:goby.GobyFieldOptions.description)
552  return description_;
553 }
554 inline ::std::string* GobyFieldOptions::release_description() {
555  clear_has_description();
556  if (description_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
557  return NULL;
558  } else {
559  ::std::string* temp = description_;
560  description_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
561  return temp;
562  }
563 }
564 inline void GobyFieldOptions::set_allocated_description(::std::string* description) {
565  if (description_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
566  delete description_;
567  }
568  if (description) {
569  set_has_description();
570  description_ = description;
571  } else {
572  clear_has_description();
573  description_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
574  }
575  // @@protoc_insertion_point(field_set_allocated:goby.GobyFieldOptions.description)
576 }
577 
578 // optional string example = 101;
579 inline bool GobyFieldOptions::has_example() const {
580  return (_has_bits_[0] & 0x00000002u) != 0;
581 }
582 inline void GobyFieldOptions::set_has_example() {
583  _has_bits_[0] |= 0x00000002u;
584 }
585 inline void GobyFieldOptions::clear_has_example() {
586  _has_bits_[0] &= ~0x00000002u;
587 }
588 inline void GobyFieldOptions::clear_example() {
589  if (example_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
590  example_->clear();
591  }
592  clear_has_example();
593 }
594 inline const ::std::string& GobyFieldOptions::example() const {
595  // @@protoc_insertion_point(field_get:goby.GobyFieldOptions.example)
596  return *example_;
597 }
598 inline void GobyFieldOptions::set_example(const ::std::string& value) {
599  set_has_example();
600  if (example_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
601  example_ = new ::std::string;
602  }
603  example_->assign(value);
604  // @@protoc_insertion_point(field_set:goby.GobyFieldOptions.example)
605 }
606 inline void GobyFieldOptions::set_example(const char* value) {
607  set_has_example();
608  if (example_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
609  example_ = new ::std::string;
610  }
611  example_->assign(value);
612  // @@protoc_insertion_point(field_set_char:goby.GobyFieldOptions.example)
613 }
614 inline void GobyFieldOptions::set_example(const char* value, size_t size) {
615  set_has_example();
616  if (example_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
617  example_ = new ::std::string;
618  }
619  example_->assign(reinterpret_cast<const char*>(value), size);
620  // @@protoc_insertion_point(field_set_pointer:goby.GobyFieldOptions.example)
621 }
622 inline ::std::string* GobyFieldOptions::mutable_example() {
623  set_has_example();
624  if (example_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
625  example_ = new ::std::string;
626  }
627  // @@protoc_insertion_point(field_mutable:goby.GobyFieldOptions.example)
628  return example_;
629 }
630 inline ::std::string* GobyFieldOptions::release_example() {
631  clear_has_example();
632  if (example_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
633  return NULL;
634  } else {
635  ::std::string* temp = example_;
636  example_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
637  return temp;
638  }
639 }
640 inline void GobyFieldOptions::set_allocated_example(::std::string* example) {
641  if (example_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
642  delete example_;
643  }
644  if (example) {
645  set_has_example();
646  example_ = example;
647  } else {
648  clear_has_example();
649  example_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
650  }
651  // @@protoc_insertion_point(field_set_allocated:goby.GobyFieldOptions.example)
652 }
653 
654 // optional string moos_global = 102;
655 inline bool GobyFieldOptions::has_moos_global() const {
656  return (_has_bits_[0] & 0x00000004u) != 0;
657 }
658 inline void GobyFieldOptions::set_has_moos_global() {
659  _has_bits_[0] |= 0x00000004u;
660 }
661 inline void GobyFieldOptions::clear_has_moos_global() {
662  _has_bits_[0] &= ~0x00000004u;
663 }
664 inline void GobyFieldOptions::clear_moos_global() {
665  if (moos_global_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
666  moos_global_->clear();
667  }
668  clear_has_moos_global();
669 }
670 inline const ::std::string& GobyFieldOptions::moos_global() const {
671  // @@protoc_insertion_point(field_get:goby.GobyFieldOptions.moos_global)
672  return *moos_global_;
673 }
674 inline void GobyFieldOptions::set_moos_global(const ::std::string& value) {
675  set_has_moos_global();
676  if (moos_global_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
677  moos_global_ = new ::std::string;
678  }
679  moos_global_->assign(value);
680  // @@protoc_insertion_point(field_set:goby.GobyFieldOptions.moos_global)
681 }
682 inline void GobyFieldOptions::set_moos_global(const char* value) {
683  set_has_moos_global();
684  if (moos_global_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
685  moos_global_ = new ::std::string;
686  }
687  moos_global_->assign(value);
688  // @@protoc_insertion_point(field_set_char:goby.GobyFieldOptions.moos_global)
689 }
690 inline void GobyFieldOptions::set_moos_global(const char* value, size_t size) {
691  set_has_moos_global();
692  if (moos_global_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
693  moos_global_ = new ::std::string;
694  }
695  moos_global_->assign(reinterpret_cast<const char*>(value), size);
696  // @@protoc_insertion_point(field_set_pointer:goby.GobyFieldOptions.moos_global)
697 }
698 inline ::std::string* GobyFieldOptions::mutable_moos_global() {
699  set_has_moos_global();
700  if (moos_global_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
701  moos_global_ = new ::std::string;
702  }
703  // @@protoc_insertion_point(field_mutable:goby.GobyFieldOptions.moos_global)
704  return moos_global_;
705 }
706 inline ::std::string* GobyFieldOptions::release_moos_global() {
707  clear_has_moos_global();
708  if (moos_global_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
709  return NULL;
710  } else {
711  ::std::string* temp = moos_global_;
712  moos_global_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
713  return temp;
714  }
715 }
716 inline void GobyFieldOptions::set_allocated_moos_global(::std::string* moos_global) {
717  if (moos_global_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
718  delete moos_global_;
719  }
720  if (moos_global) {
721  set_has_moos_global();
722  moos_global_ = moos_global;
723  } else {
724  clear_has_moos_global();
725  moos_global_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
726  }
727  // @@protoc_insertion_point(field_set_allocated:goby.GobyFieldOptions.moos_global)
728 }
729 
730 // optional .goby.GobyFieldOptions.ConfigurationOptions cfg = 200;
731 inline bool GobyFieldOptions::has_cfg() const {
732  return (_has_bits_[0] & 0x00000008u) != 0;
733 }
734 inline void GobyFieldOptions::set_has_cfg() {
735  _has_bits_[0] |= 0x00000008u;
736 }
737 inline void GobyFieldOptions::clear_has_cfg() {
738  _has_bits_[0] &= ~0x00000008u;
739 }
740 inline void GobyFieldOptions::clear_cfg() {
741  if (cfg_ != NULL) cfg_->::goby::GobyFieldOptions_ConfigurationOptions::Clear();
742  clear_has_cfg();
743 }
744 inline const ::goby::GobyFieldOptions_ConfigurationOptions& GobyFieldOptions::cfg() const {
745  // @@protoc_insertion_point(field_get:goby.GobyFieldOptions.cfg)
746  return cfg_ != NULL ? *cfg_ : *default_instance_->cfg_;
747 }
748 inline ::goby::GobyFieldOptions_ConfigurationOptions* GobyFieldOptions::mutable_cfg() {
749  set_has_cfg();
750  if (cfg_ == NULL) cfg_ = new ::goby::GobyFieldOptions_ConfigurationOptions;
751  // @@protoc_insertion_point(field_mutable:goby.GobyFieldOptions.cfg)
752  return cfg_;
753 }
754 inline ::goby::GobyFieldOptions_ConfigurationOptions* GobyFieldOptions::release_cfg() {
755  clear_has_cfg();
757  cfg_ = NULL;
758  return temp;
759 }
760 inline void GobyFieldOptions::set_allocated_cfg(::goby::GobyFieldOptions_ConfigurationOptions* cfg) {
761  delete cfg_;
762  cfg_ = cfg;
763  if (cfg) {
764  set_has_cfg();
765  } else {
766  clear_has_cfg();
767  }
768  // @@protoc_insertion_point(field_set_allocated:goby.GobyFieldOptions.cfg)
769 }
770 
771 // -------------------------------------------------------------------
772 
773 // GobyMessageOptions
774 
775 
776 // @@protoc_insertion_point(namespace_scope)
777 
778 } // namespace goby
779 
780 #ifndef SWIG
781 namespace google {
782 namespace protobuf {
783 
784 template <> struct is_proto_enum< ::goby::GobyFieldOptions_ConfigurationOptions_ConfigAction> : ::google::protobuf::internal::true_type {};
785 template <>
786 inline const EnumDescriptor* GetEnumDescriptor< ::goby::GobyFieldOptions_ConfigurationOptions_ConfigAction>() {
787  return ::goby::GobyFieldOptions_ConfigurationOptions_ConfigAction_descriptor();
788 }
789 
790 } // namespace google
791 } // namespace protobuf
792 #endif // SWIG
793 
794 // @@protoc_insertion_point(global_scope)
795 
796 #endif // PROTOBUF_goby_2fcommon_2fprotobuf_2foption_5fextensions_2eproto__INCLUDED
The global namespace for the Goby project.