4 #ifndef PROTOBUF_goby_2fmoos_2ffrontseat_2fwaveglider_2fwaveglider_5fsv2_5ffrontseat_5fdriver_5fconfig_2eproto__INCLUDED 5 #define PROTOBUF_goby_2fmoos_2ffrontseat_2fwaveglider_2fwaveglider_5fsv2_5ffrontseat_5fdriver_5fconfig_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/frontseat_config.pb.h" 28 #include "goby/common/protobuf/option_extensions.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> 36 void protobuf_AddDesc_goby_2fmoos_2ffrontseat_2fwaveglider_2fwaveglider_5fsv2_5ffrontseat_5fdriver_5fconfig_2eproto();
37 void protobuf_AssignDesc_goby_2fmoos_2ffrontseat_2fwaveglider_2fwaveglider_5fsv2_5ffrontseat_5fdriver_5fconfig_2eproto();
38 void protobuf_ShutdownFile_goby_2fmoos_2ffrontseat_2fwaveglider_2fwaveglider_5fsv2_5ffrontseat_5fdriver_5fconfig_2eproto();
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();
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_pm_serial_port()
const;
99 inline void clear_pm_serial_port();
100 static const int kPmSerialPortFieldNumber = 1;
101 inline const ::std::string& pm_serial_port()
const;
102 inline void set_pm_serial_port(const ::std::string& value);
103 inline void set_pm_serial_port(
const char* value);
104 inline void set_pm_serial_port(
const char* value,
size_t size);
105 inline ::std::string* mutable_pm_serial_port();
106 inline ::std::string* release_pm_serial_port();
107 inline void set_allocated_pm_serial_port(::std::string* pm_serial_port);
110 inline bool has_pm_serial_baud()
const;
111 inline void clear_pm_serial_baud();
112 static const int kPmSerialBaudFieldNumber = 2;
113 inline ::google::protobuf::uint32 pm_serial_baud()
const;
114 inline void set_pm_serial_baud(::google::protobuf::uint32 value);
117 inline bool has_board_id()
const;
118 inline void clear_board_id();
119 static const int kBoardIdFieldNumber = 3;
120 inline ::google::protobuf::uint32 board_id()
const;
121 inline void set_board_id(::google::protobuf::uint32 value);
124 inline bool has_task_id()
const;
125 inline void clear_task_id();
126 static const int kTaskIdFieldNumber = 4;
127 inline ::google::protobuf::uint32 task_id()
const;
128 inline void set_task_id(::google::protobuf::uint32 value);
132 inline void set_has_pm_serial_port();
133 inline void clear_has_pm_serial_port();
134 inline void set_has_pm_serial_baud();
135 inline void clear_has_pm_serial_baud();
136 inline void set_has_board_id();
137 inline void clear_has_board_id();
138 inline void set_has_task_id();
139 inline void clear_has_task_id();
141 ::google::protobuf::UnknownFieldSet _unknown_fields_;
143 ::google::protobuf::uint32 _has_bits_[1];
144 mutable int _cached_size_;
145 ::std::string* pm_serial_port_;
146 ::google::protobuf::uint32 pm_serial_baud_;
147 ::google::protobuf::uint32 board_id_;
148 ::google::protobuf::uint32 task_id_;
149 friend void protobuf_AddDesc_goby_2fmoos_2ffrontseat_2fwaveglider_2fwaveglider_5fsv2_5ffrontseat_5fdriver_5fconfig_2eproto();
150 friend void protobuf_AssignDesc_goby_2fmoos_2ffrontseat_2fwaveglider_2fwaveglider_5fsv2_5ffrontseat_5fdriver_5fconfig_2eproto();
151 friend void protobuf_ShutdownFile_goby_2fmoos_2ffrontseat_2fwaveglider_2fwaveglider_5fsv2_5ffrontseat_5fdriver_5fconfig_2eproto();
153 void InitAsDefaultInstance();
158 static const int kWavegliderSv2ConfigFieldNumber = 1001;
160 ::google::protobuf::internal::MessageTypeTraits< ::WavegliderSV2FrontSeatConfig >, 11,
false >
161 waveglider_sv2_config;
168 inline bool WavegliderSV2FrontSeatConfig::has_pm_serial_port()
const {
169 return (_has_bits_[0] & 0x00000001u) != 0;
171 inline void WavegliderSV2FrontSeatConfig::set_has_pm_serial_port() {
172 _has_bits_[0] |= 0x00000001u;
174 inline void WavegliderSV2FrontSeatConfig::clear_has_pm_serial_port() {
175 _has_bits_[0] &= ~0x00000001u;
177 inline void WavegliderSV2FrontSeatConfig::clear_pm_serial_port() {
178 if (pm_serial_port_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
179 pm_serial_port_->clear();
181 clear_has_pm_serial_port();
183 inline const ::std::string& WavegliderSV2FrontSeatConfig::pm_serial_port()
const {
185 return *pm_serial_port_;
187 inline void WavegliderSV2FrontSeatConfig::set_pm_serial_port(const ::std::string& value) {
188 set_has_pm_serial_port();
189 if (pm_serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
190 pm_serial_port_ = new ::std::string;
192 pm_serial_port_->assign(value);
195 inline void WavegliderSV2FrontSeatConfig::set_pm_serial_port(
const char* value) {
196 set_has_pm_serial_port();
197 if (pm_serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
198 pm_serial_port_ = new ::std::string;
200 pm_serial_port_->assign(value);
203 inline void WavegliderSV2FrontSeatConfig::set_pm_serial_port(
const char* value,
size_t size) {
204 set_has_pm_serial_port();
205 if (pm_serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
206 pm_serial_port_ = new ::std::string;
208 pm_serial_port_->assign(reinterpret_cast<const char*>(value), size);
211 inline ::std::string* WavegliderSV2FrontSeatConfig::mutable_pm_serial_port() {
212 set_has_pm_serial_port();
213 if (pm_serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
214 pm_serial_port_ = new ::std::string;
217 return pm_serial_port_;
219 inline ::std::string* WavegliderSV2FrontSeatConfig::release_pm_serial_port() {
220 clear_has_pm_serial_port();
221 if (pm_serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
224 ::std::string* temp = pm_serial_port_;
225 pm_serial_port_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
229 inline void WavegliderSV2FrontSeatConfig::set_allocated_pm_serial_port(::std::string* pm_serial_port) {
230 if (pm_serial_port_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
231 delete pm_serial_port_;
233 if (pm_serial_port) {
234 set_has_pm_serial_port();
235 pm_serial_port_ = pm_serial_port;
237 clear_has_pm_serial_port();
238 pm_serial_port_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
244 inline bool WavegliderSV2FrontSeatConfig::has_pm_serial_baud()
const {
245 return (_has_bits_[0] & 0x00000002u) != 0;
247 inline void WavegliderSV2FrontSeatConfig::set_has_pm_serial_baud() {
248 _has_bits_[0] |= 0x00000002u;
250 inline void WavegliderSV2FrontSeatConfig::clear_has_pm_serial_baud() {
251 _has_bits_[0] &= ~0x00000002u;
253 inline void WavegliderSV2FrontSeatConfig::clear_pm_serial_baud() {
254 pm_serial_baud_ = 115200u;
255 clear_has_pm_serial_baud();
257 inline ::google::protobuf::uint32 WavegliderSV2FrontSeatConfig::pm_serial_baud()
const {
259 return pm_serial_baud_;
261 inline void WavegliderSV2FrontSeatConfig::set_pm_serial_baud(::google::protobuf::uint32 value) {
262 set_has_pm_serial_baud();
263 pm_serial_baud_ = value;
268 inline bool WavegliderSV2FrontSeatConfig::has_board_id()
const {
269 return (_has_bits_[0] & 0x00000004u) != 0;
271 inline void WavegliderSV2FrontSeatConfig::set_has_board_id() {
272 _has_bits_[0] |= 0x00000004u;
274 inline void WavegliderSV2FrontSeatConfig::clear_has_board_id() {
275 _has_bits_[0] &= ~0x00000004u;
277 inline void WavegliderSV2FrontSeatConfig::clear_board_id() {
279 clear_has_board_id();
281 inline ::google::protobuf::uint32 WavegliderSV2FrontSeatConfig::board_id()
const {
285 inline void WavegliderSV2FrontSeatConfig::set_board_id(::google::protobuf::uint32 value) {
292 inline bool WavegliderSV2FrontSeatConfig::has_task_id()
const {
293 return (_has_bits_[0] & 0x00000008u) != 0;
295 inline void WavegliderSV2FrontSeatConfig::set_has_task_id() {
296 _has_bits_[0] |= 0x00000008u;
298 inline void WavegliderSV2FrontSeatConfig::clear_has_task_id() {
299 _has_bits_[0] &= ~0x00000008u;
301 inline void WavegliderSV2FrontSeatConfig::clear_task_id() {
305 inline ::google::protobuf::uint32 WavegliderSV2FrontSeatConfig::task_id()
const {
309 inline void WavegliderSV2FrontSeatConfig::set_task_id(::google::protobuf::uint32 value) {
329 #endif // PROTOBUF_goby_2fmoos_2ffrontseat_2fwaveglider_2fwaveglider_5fsv2_5ffrontseat_5fdriver_5fconfig_2eproto__INCLUDED