4 #ifndef PROTOBUF_goby_2ftest_2fmoos_2fgoby_5fapp_5fconfig_2fconfig_2eproto__INCLUDED 5 #define PROTOBUF_goby_2ftest_2fmoos_2fgoby_5fapp_5fconfig_2fconfig_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 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 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. 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> 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();
44 class AppConfig :
public ::google::protobuf::Message {
56 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
57 return _unknown_fields_;
60 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
61 return &_unknown_fields_;
64 static const ::google::protobuf::Descriptor* descriptor();
65 static const AppConfig& default_instance();
72 void CopyFrom(const ::google::protobuf::Message& from);
73 void MergeFrom(const ::google::protobuf::Message& from);
77 bool IsInitialized()
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_; }
89 void SetCachedSize(
int size)
const;
91 ::google::protobuf::Metadata GetMetadata()
const;
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();
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);
117 inline void set_has_common();
118 inline void clear_has_common();
119 inline void set_has_submessage();
120 inline void clear_has_submessage();
122 ::google::protobuf::UnknownFieldSet _unknown_fields_;
124 ::google::protobuf::uint32 _has_bits_[1];
125 mutable int _cached_size_;
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();
132 void InitAsDefaultInstance();
149 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
150 return _unknown_fields_;
153 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
154 return &_unknown_fields_;
157 static const ::google::protobuf::Descriptor* descriptor();
165 void CopyFrom(const ::google::protobuf::Message& from);
166 void MergeFrom(const ::google::protobuf::Message& from);
170 bool IsInitialized()
const;
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_; }
182 void SetCachedSize(
int size)
const;
184 ::google::protobuf::Metadata GetMetadata()
const;
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);
199 inline void set_has_foo();
200 inline void clear_has_foo();
202 ::google::protobuf::UnknownFieldSet _unknown_fields_;
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();
211 void InitAsDefaultInstance();
222 inline bool AppConfig::has_common()
const {
223 return (_has_bits_[0] & 0x00000001u) != 0;
225 inline void AppConfig::set_has_common() {
226 _has_bits_[0] |= 0x00000001u;
228 inline void AppConfig::clear_has_common() {
229 _has_bits_[0] &= ~0x00000001u;
231 inline void AppConfig::clear_common() {
232 if (common_ != NULL) common_->::GobyMOOSAppConfig::Clear();
235 inline const ::GobyMOOSAppConfig& AppConfig::common()
const {
237 return common_ != NULL ? *common_ : *default_instance_->common_;
239 inline ::GobyMOOSAppConfig* AppConfig::mutable_common() {
241 if (common_ == NULL) common_ = new ::GobyMOOSAppConfig;
245 inline ::GobyMOOSAppConfig* AppConfig::release_common() {
263 inline bool AppConfig::has_submessage()
const {
264 return (_has_bits_[0] & 0x00000002u) != 0;
266 inline void AppConfig::set_has_submessage() {
267 _has_bits_[0] |= 0x00000002u;
269 inline void AppConfig::clear_has_submessage() {
270 _has_bits_[0] &= ~0x00000002u;
272 inline void AppConfig::clear_submessage() {
273 if (submessage_ != NULL) submessage_->::SubMessageType::Clear();
274 clear_has_submessage();
276 inline const ::SubMessageType& AppConfig::submessage()
const {
278 return submessage_ != NULL ? *submessage_ : *default_instance_->submessage_;
280 inline ::SubMessageType* AppConfig::mutable_submessage() {
281 set_has_submessage();
282 if (submessage_ == NULL) submessage_ = new ::SubMessageType;
286 inline ::SubMessageType* AppConfig::release_submessage() {
287 clear_has_submessage();
292 inline void AppConfig::set_allocated_submessage(::
SubMessageType* submessage) {
294 submessage_ = submessage;
296 set_has_submessage();
298 clear_has_submessage();
308 inline bool SubMessageType::has_foo()
const {
309 return (_has_bits_[0] & 0x00000001u) != 0;
311 inline void SubMessageType::set_has_foo() {
312 _has_bits_[0] |= 0x00000001u;
314 inline void SubMessageType::clear_has_foo() {
315 _has_bits_[0] &= ~0x00000001u;
317 inline void SubMessageType::clear_foo() {
321 inline ::google::protobuf::int32 SubMessageType::foo()
const {
325 inline void SubMessageType::set_foo(::google::protobuf::int32 value) {
345 #endif // PROTOBUF_goby_2ftest_2fmoos_2fgoby_5fapp_5fconfig_2fconfig_2eproto__INCLUDED