Goby v2
config.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/test/moos/goby_app_config/config.proto
3 
4 #ifndef PROTOBUF_goby_2ftest_2fmoos_2fgoby_5fapp_5fconfig_2fconfig_2eproto__INCLUDED
5 #define PROTOBUF_goby_2ftest_2fmoos_2fgoby_5fapp_5fconfig_2fconfig_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/moos/protobuf/goby_moos_app.pb.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 // Internal implementation detail -- do not call these.
35 void protobuf_AddDesc_goby_2ftest_2fmoos_2fgoby_5fapp_5fconfig_2fconfig_2eproto();
36 void protobuf_AssignDesc_goby_2ftest_2fmoos_2fgoby_5fapp_5fconfig_2fconfig_2eproto();
37 void protobuf_ShutdownFile_goby_2ftest_2fmoos_2fgoby_5fapp_5fconfig_2fconfig_2eproto();
38 
39 class AppConfig;
40 class SubMessageType;
41 
42 // ===================================================================
43 
44 class AppConfig : public ::google::protobuf::Message {
45  public:
46  AppConfig();
47  virtual ~AppConfig();
48 
49  AppConfig(const AppConfig& from);
50 
51  inline AppConfig& operator=(const AppConfig& from) {
52  CopyFrom(from);
53  return *this;
54  }
55 
56  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
57  return _unknown_fields_;
58  }
59 
60  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
61  return &_unknown_fields_;
62  }
63 
64  static const ::google::protobuf::Descriptor* descriptor();
65  static const AppConfig& default_instance();
66 
67  void Swap(AppConfig* other);
68 
69  // implements Message ----------------------------------------------
70 
71  AppConfig* New() const;
72  void CopyFrom(const ::google::protobuf::Message& from);
73  void MergeFrom(const ::google::protobuf::Message& from);
74  void CopyFrom(const AppConfig& from);
75  void MergeFrom(const AppConfig& from);
76  void Clear();
77  bool IsInitialized() const;
78 
79  int ByteSize() const;
80  bool MergePartialFromCodedStream(
81  ::google::protobuf::io::CodedInputStream* input);
82  void SerializeWithCachedSizes(
83  ::google::protobuf::io::CodedOutputStream* output) const;
84  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
85  int GetCachedSize() const { return _cached_size_; }
86  private:
87  void SharedCtor();
88  void SharedDtor();
89  void SetCachedSize(int size) const;
90  public:
91  ::google::protobuf::Metadata GetMetadata() const;
92 
93  // nested types ----------------------------------------------------
94 
95  // accessors -------------------------------------------------------
96 
97  // optional .GobyMOOSAppConfig common = 1;
98  inline bool has_common() const;
99  inline void clear_common();
100  static const int kCommonFieldNumber = 1;
101  inline const ::GobyMOOSAppConfig& common() const;
102  inline ::GobyMOOSAppConfig* mutable_common();
103  inline ::GobyMOOSAppConfig* release_common();
104  inline void set_allocated_common(::GobyMOOSAppConfig* common);
105 
106  // optional .SubMessageType submessage = 12;
107  inline bool has_submessage() const;
108  inline void clear_submessage();
109  static const int kSubmessageFieldNumber = 12;
110  inline const ::SubMessageType& submessage() const;
111  inline ::SubMessageType* mutable_submessage();
112  inline ::SubMessageType* release_submessage();
113  inline void set_allocated_submessage(::SubMessageType* submessage);
114 
115  // @@protoc_insertion_point(class_scope:AppConfig)
116  private:
117  inline void set_has_common();
118  inline void clear_has_common();
119  inline void set_has_submessage();
120  inline void clear_has_submessage();
121 
122  ::google::protobuf::UnknownFieldSet _unknown_fields_;
123 
124  ::google::protobuf::uint32 _has_bits_[1];
125  mutable int _cached_size_;
126  ::GobyMOOSAppConfig* common_;
127  ::SubMessageType* submessage_;
128  friend void protobuf_AddDesc_goby_2ftest_2fmoos_2fgoby_5fapp_5fconfig_2fconfig_2eproto();
129  friend void protobuf_AssignDesc_goby_2ftest_2fmoos_2fgoby_5fapp_5fconfig_2fconfig_2eproto();
130  friend void protobuf_ShutdownFile_goby_2ftest_2fmoos_2fgoby_5fapp_5fconfig_2fconfig_2eproto();
131 
132  void InitAsDefaultInstance();
133  static AppConfig* default_instance_;
134 };
135 // -------------------------------------------------------------------
136 
137 class SubMessageType : public ::google::protobuf::Message {
138  public:
139  SubMessageType();
140  virtual ~SubMessageType();
141 
142  SubMessageType(const SubMessageType& from);
143 
144  inline SubMessageType& operator=(const SubMessageType& from) {
145  CopyFrom(from);
146  return *this;
147  }
148 
149  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
150  return _unknown_fields_;
151  }
152 
153  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
154  return &_unknown_fields_;
155  }
156 
157  static const ::google::protobuf::Descriptor* descriptor();
158  static const SubMessageType& default_instance();
159 
160  void Swap(SubMessageType* other);
161 
162  // implements Message ----------------------------------------------
163 
164  SubMessageType* New() const;
165  void CopyFrom(const ::google::protobuf::Message& from);
166  void MergeFrom(const ::google::protobuf::Message& from);
167  void CopyFrom(const SubMessageType& from);
168  void MergeFrom(const SubMessageType& from);
169  void Clear();
170  bool IsInitialized() const;
171 
172  int ByteSize() const;
173  bool MergePartialFromCodedStream(
174  ::google::protobuf::io::CodedInputStream* input);
175  void SerializeWithCachedSizes(
176  ::google::protobuf::io::CodedOutputStream* output) const;
177  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
178  int GetCachedSize() const { return _cached_size_; }
179  private:
180  void SharedCtor();
181  void SharedDtor();
182  void SetCachedSize(int size) const;
183  public:
184  ::google::protobuf::Metadata GetMetadata() const;
185 
186  // nested types ----------------------------------------------------
187 
188  // accessors -------------------------------------------------------
189 
190  // optional int32 foo = 1;
191  inline bool has_foo() const;
192  inline void clear_foo();
193  static const int kFooFieldNumber = 1;
194  inline ::google::protobuf::int32 foo() const;
195  inline void set_foo(::google::protobuf::int32 value);
196 
197  // @@protoc_insertion_point(class_scope:SubMessageType)
198  private:
199  inline void set_has_foo();
200  inline void clear_has_foo();
201 
202  ::google::protobuf::UnknownFieldSet _unknown_fields_;
203 
204  ::google::protobuf::uint32 _has_bits_[1];
205  mutable int _cached_size_;
206  ::google::protobuf::int32 foo_;
207  friend void protobuf_AddDesc_goby_2ftest_2fmoos_2fgoby_5fapp_5fconfig_2fconfig_2eproto();
208  friend void protobuf_AssignDesc_goby_2ftest_2fmoos_2fgoby_5fapp_5fconfig_2fconfig_2eproto();
209  friend void protobuf_ShutdownFile_goby_2ftest_2fmoos_2fgoby_5fapp_5fconfig_2fconfig_2eproto();
210 
211  void InitAsDefaultInstance();
212  static SubMessageType* default_instance_;
213 };
214 // ===================================================================
215 
216 
217 // ===================================================================
218 
219 // AppConfig
220 
221 // optional .GobyMOOSAppConfig common = 1;
222 inline bool AppConfig::has_common() const {
223  return (_has_bits_[0] & 0x00000001u) != 0;
224 }
225 inline void AppConfig::set_has_common() {
226  _has_bits_[0] |= 0x00000001u;
227 }
228 inline void AppConfig::clear_has_common() {
229  _has_bits_[0] &= ~0x00000001u;
230 }
231 inline void AppConfig::clear_common() {
232  if (common_ != NULL) common_->::GobyMOOSAppConfig::Clear();
233  clear_has_common();
234 }
235 inline const ::GobyMOOSAppConfig& AppConfig::common() const {
236  // @@protoc_insertion_point(field_get:AppConfig.common)
237  return common_ != NULL ? *common_ : *default_instance_->common_;
238 }
239 inline ::GobyMOOSAppConfig* AppConfig::mutable_common() {
240  set_has_common();
241  if (common_ == NULL) common_ = new ::GobyMOOSAppConfig;
242  // @@protoc_insertion_point(field_mutable:AppConfig.common)
243  return common_;
244 }
245 inline ::GobyMOOSAppConfig* AppConfig::release_common() {
246  clear_has_common();
247  ::GobyMOOSAppConfig* temp = common_;
248  common_ = NULL;
249  return temp;
250 }
251 inline void AppConfig::set_allocated_common(::GobyMOOSAppConfig* common) {
252  delete common_;
253  common_ = common;
254  if (common) {
255  set_has_common();
256  } else {
257  clear_has_common();
258  }
259  // @@protoc_insertion_point(field_set_allocated:AppConfig.common)
260 }
261 
262 // optional .SubMessageType submessage = 12;
263 inline bool AppConfig::has_submessage() const {
264  return (_has_bits_[0] & 0x00000002u) != 0;
265 }
266 inline void AppConfig::set_has_submessage() {
267  _has_bits_[0] |= 0x00000002u;
268 }
269 inline void AppConfig::clear_has_submessage() {
270  _has_bits_[0] &= ~0x00000002u;
271 }
272 inline void AppConfig::clear_submessage() {
273  if (submessage_ != NULL) submessage_->::SubMessageType::Clear();
274  clear_has_submessage();
275 }
276 inline const ::SubMessageType& AppConfig::submessage() const {
277  // @@protoc_insertion_point(field_get:AppConfig.submessage)
278  return submessage_ != NULL ? *submessage_ : *default_instance_->submessage_;
279 }
280 inline ::SubMessageType* AppConfig::mutable_submessage() {
281  set_has_submessage();
282  if (submessage_ == NULL) submessage_ = new ::SubMessageType;
283  // @@protoc_insertion_point(field_mutable:AppConfig.submessage)
284  return submessage_;
285 }
286 inline ::SubMessageType* AppConfig::release_submessage() {
287  clear_has_submessage();
288  ::SubMessageType* temp = submessage_;
289  submessage_ = NULL;
290  return temp;
291 }
292 inline void AppConfig::set_allocated_submessage(::SubMessageType* submessage) {
293  delete submessage_;
294  submessage_ = submessage;
295  if (submessage) {
296  set_has_submessage();
297  } else {
298  clear_has_submessage();
299  }
300  // @@protoc_insertion_point(field_set_allocated:AppConfig.submessage)
301 }
302 
303 // -------------------------------------------------------------------
304 
305 // SubMessageType
306 
307 // optional int32 foo = 1;
308 inline bool SubMessageType::has_foo() const {
309  return (_has_bits_[0] & 0x00000001u) != 0;
310 }
311 inline void SubMessageType::set_has_foo() {
312  _has_bits_[0] |= 0x00000001u;
313 }
314 inline void SubMessageType::clear_has_foo() {
315  _has_bits_[0] &= ~0x00000001u;
316 }
317 inline void SubMessageType::clear_foo() {
318  foo_ = 0;
319  clear_has_foo();
320 }
321 inline ::google::protobuf::int32 SubMessageType::foo() const {
322  // @@protoc_insertion_point(field_get:SubMessageType.foo)
323  return foo_;
324 }
325 inline void SubMessageType::set_foo(::google::protobuf::int32 value) {
326  set_has_foo();
327  foo_ = value;
328  // @@protoc_insertion_point(field_set:SubMessageType.foo)
329 }
330 
331 
332 // @@protoc_insertion_point(namespace_scope)
333 
334 #ifndef SWIG
335 namespace google {
336 namespace protobuf {
337 
338 
339 } // namespace google
340 } // namespace protobuf
341 #endif // SWIG
342 
343 // @@protoc_insertion_point(global_scope)
344 
345 #endif // PROTOBUF_goby_2ftest_2fmoos_2fgoby_5fapp_5fconfig_2fconfig_2eproto__INCLUDED