4 #ifndef PROTOBUF_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_5fconfig_2eproto__INCLUDED 5 #define PROTOBUF_goby_2fmoos_2ffrontseat_2fiver_2fiver_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_2fiver_2fiver_5fdriver_5fconfig_2eproto();
37 void protobuf_AssignDesc_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_5fconfig_2eproto();
38 void protobuf_ShutdownFile_goby_2fmoos_2ffrontseat_2fiver_2fiver_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_serial_port()
const;
99 inline void clear_serial_port();
100 static const int kSerialPortFieldNumber = 1;
101 inline const ::std::string& serial_port()
const;
102 inline void set_serial_port(const ::std::string& value);
103 inline void set_serial_port(
const char* value);
104 inline void set_serial_port(
const char* value,
size_t size);
105 inline ::std::string* mutable_serial_port();
106 inline ::std::string* release_serial_port();
107 inline void set_allocated_serial_port(::std::string* serial_port);
110 inline bool has_serial_baud()
const;
111 inline void clear_serial_baud();
112 static const int kSerialBaudFieldNumber = 2;
113 inline ::google::protobuf::uint32 serial_baud()
const;
114 inline void set_serial_baud(::google::protobuf::uint32 value);
117 inline bool has_ntp_serial_port()
const;
118 inline void clear_ntp_serial_port();
119 static const int kNtpSerialPortFieldNumber = 3;
120 inline const ::std::string& ntp_serial_port()
const;
121 inline void set_ntp_serial_port(const ::std::string& value);
122 inline void set_ntp_serial_port(
const char* value);
123 inline void set_ntp_serial_port(
const char* value,
size_t size);
124 inline ::std::string* mutable_ntp_serial_port();
125 inline ::std::string* release_ntp_serial_port();
126 inline void set_allocated_ntp_serial_port(::std::string* ntp_serial_port);
129 inline bool has_max_pitch_angle_degrees()
const;
130 inline void clear_max_pitch_angle_degrees();
131 static const int kMaxPitchAngleDegreesFieldNumber = 4;
132 inline ::google::protobuf::int32 max_pitch_angle_degrees()
const;
133 inline void set_max_pitch_angle_degrees(::google::protobuf::int32 value);
136 inline bool has_remote_helm_version_major()
const;
137 inline void clear_remote_helm_version_major();
138 static const int kRemoteHelmVersionMajorFieldNumber = 5;
139 inline ::google::protobuf::int32 remote_helm_version_major()
const;
140 inline void set_remote_helm_version_major(::google::protobuf::int32 value);
144 inline void set_has_serial_port();
145 inline void clear_has_serial_port();
146 inline void set_has_serial_baud();
147 inline void clear_has_serial_baud();
148 inline void set_has_ntp_serial_port();
149 inline void clear_has_ntp_serial_port();
150 inline void set_has_max_pitch_angle_degrees();
151 inline void clear_has_max_pitch_angle_degrees();
152 inline void set_has_remote_helm_version_major();
153 inline void clear_has_remote_helm_version_major();
155 ::google::protobuf::UnknownFieldSet _unknown_fields_;
157 ::google::protobuf::uint32 _has_bits_[1];
158 mutable int _cached_size_;
159 ::std::string* serial_port_;
160 ::std::string* ntp_serial_port_;
161 ::google::protobuf::uint32 serial_baud_;
162 ::google::protobuf::int32 max_pitch_angle_degrees_;
163 ::google::protobuf::int32 remote_helm_version_major_;
164 friend void protobuf_AddDesc_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_5fconfig_2eproto();
165 friend void protobuf_AssignDesc_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_5fconfig_2eproto();
166 friend void protobuf_ShutdownFile_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_5fconfig_2eproto();
168 void InitAsDefaultInstance();
173 static const int kIverConfigFieldNumber = 1003;
175 ::google::protobuf::internal::MessageTypeTraits< ::IverFrontSeatConfig >, 11,
false >
183 inline bool IverFrontSeatConfig::has_serial_port()
const {
184 return (_has_bits_[0] & 0x00000001u) != 0;
186 inline void IverFrontSeatConfig::set_has_serial_port() {
187 _has_bits_[0] |= 0x00000001u;
189 inline void IverFrontSeatConfig::clear_has_serial_port() {
190 _has_bits_[0] &= ~0x00000001u;
192 inline void IverFrontSeatConfig::clear_serial_port() {
193 if (serial_port_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
194 serial_port_->clear();
196 clear_has_serial_port();
198 inline const ::std::string& IverFrontSeatConfig::serial_port()
const {
200 return *serial_port_;
202 inline void IverFrontSeatConfig::set_serial_port(const ::std::string& value) {
203 set_has_serial_port();
204 if (serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
205 serial_port_ = new ::std::string;
207 serial_port_->assign(value);
210 inline void IverFrontSeatConfig::set_serial_port(
const char* value) {
211 set_has_serial_port();
212 if (serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
213 serial_port_ = new ::std::string;
215 serial_port_->assign(value);
218 inline void IverFrontSeatConfig::set_serial_port(
const char* value,
size_t size) {
219 set_has_serial_port();
220 if (serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
221 serial_port_ = new ::std::string;
223 serial_port_->assign(reinterpret_cast<const char*>(value), size);
226 inline ::std::string* IverFrontSeatConfig::mutable_serial_port() {
227 set_has_serial_port();
228 if (serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
229 serial_port_ = new ::std::string;
234 inline ::std::string* IverFrontSeatConfig::release_serial_port() {
235 clear_has_serial_port();
236 if (serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
239 ::std::string* temp = serial_port_;
240 serial_port_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
244 inline void IverFrontSeatConfig::set_allocated_serial_port(::std::string* serial_port) {
245 if (serial_port_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
249 set_has_serial_port();
250 serial_port_ = serial_port;
252 clear_has_serial_port();
253 serial_port_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
259 inline bool IverFrontSeatConfig::has_serial_baud()
const {
260 return (_has_bits_[0] & 0x00000002u) != 0;
262 inline void IverFrontSeatConfig::set_has_serial_baud() {
263 _has_bits_[0] |= 0x00000002u;
265 inline void IverFrontSeatConfig::clear_has_serial_baud() {
266 _has_bits_[0] &= ~0x00000002u;
268 inline void IverFrontSeatConfig::clear_serial_baud() {
269 serial_baud_ = 19200u;
270 clear_has_serial_baud();
272 inline ::google::protobuf::uint32 IverFrontSeatConfig::serial_baud()
const {
276 inline void IverFrontSeatConfig::set_serial_baud(::google::protobuf::uint32 value) {
277 set_has_serial_baud();
278 serial_baud_ = value;
283 inline bool IverFrontSeatConfig::has_ntp_serial_port()
const {
284 return (_has_bits_[0] & 0x00000004u) != 0;
286 inline void IverFrontSeatConfig::set_has_ntp_serial_port() {
287 _has_bits_[0] |= 0x00000004u;
289 inline void IverFrontSeatConfig::clear_has_ntp_serial_port() {
290 _has_bits_[0] &= ~0x00000004u;
292 inline void IverFrontSeatConfig::clear_ntp_serial_port() {
293 if (ntp_serial_port_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
294 ntp_serial_port_->clear();
296 clear_has_ntp_serial_port();
298 inline const ::std::string& IverFrontSeatConfig::ntp_serial_port()
const {
300 return *ntp_serial_port_;
302 inline void IverFrontSeatConfig::set_ntp_serial_port(const ::std::string& value) {
303 set_has_ntp_serial_port();
304 if (ntp_serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
305 ntp_serial_port_ = new ::std::string;
307 ntp_serial_port_->assign(value);
310 inline void IverFrontSeatConfig::set_ntp_serial_port(
const char* value) {
311 set_has_ntp_serial_port();
312 if (ntp_serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
313 ntp_serial_port_ = new ::std::string;
315 ntp_serial_port_->assign(value);
318 inline void IverFrontSeatConfig::set_ntp_serial_port(
const char* value,
size_t size) {
319 set_has_ntp_serial_port();
320 if (ntp_serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
321 ntp_serial_port_ = new ::std::string;
323 ntp_serial_port_->assign(reinterpret_cast<const char*>(value), size);
326 inline ::std::string* IverFrontSeatConfig::mutable_ntp_serial_port() {
327 set_has_ntp_serial_port();
328 if (ntp_serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
329 ntp_serial_port_ = new ::std::string;
332 return ntp_serial_port_;
334 inline ::std::string* IverFrontSeatConfig::release_ntp_serial_port() {
335 clear_has_ntp_serial_port();
336 if (ntp_serial_port_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
339 ::std::string* temp = ntp_serial_port_;
340 ntp_serial_port_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
344 inline void IverFrontSeatConfig::set_allocated_ntp_serial_port(::std::string* ntp_serial_port) {
345 if (ntp_serial_port_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
346 delete ntp_serial_port_;
348 if (ntp_serial_port) {
349 set_has_ntp_serial_port();
350 ntp_serial_port_ = ntp_serial_port;
352 clear_has_ntp_serial_port();
353 ntp_serial_port_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
359 inline bool IverFrontSeatConfig::has_max_pitch_angle_degrees()
const {
360 return (_has_bits_[0] & 0x00000008u) != 0;
362 inline void IverFrontSeatConfig::set_has_max_pitch_angle_degrees() {
363 _has_bits_[0] |= 0x00000008u;
365 inline void IverFrontSeatConfig::clear_has_max_pitch_angle_degrees() {
366 _has_bits_[0] &= ~0x00000008u;
368 inline void IverFrontSeatConfig::clear_max_pitch_angle_degrees() {
369 max_pitch_angle_degrees_ = 45;
370 clear_has_max_pitch_angle_degrees();
372 inline ::google::protobuf::int32 IverFrontSeatConfig::max_pitch_angle_degrees()
const {
374 return max_pitch_angle_degrees_;
376 inline void IverFrontSeatConfig::set_max_pitch_angle_degrees(::google::protobuf::int32 value) {
377 set_has_max_pitch_angle_degrees();
378 max_pitch_angle_degrees_ = value;
383 inline bool IverFrontSeatConfig::has_remote_helm_version_major()
const {
384 return (_has_bits_[0] & 0x00000010u) != 0;
386 inline void IverFrontSeatConfig::set_has_remote_helm_version_major() {
387 _has_bits_[0] |= 0x00000010u;
389 inline void IverFrontSeatConfig::clear_has_remote_helm_version_major() {
390 _has_bits_[0] &= ~0x00000010u;
392 inline void IverFrontSeatConfig::clear_remote_helm_version_major() {
393 remote_helm_version_major_ = 5;
394 clear_has_remote_helm_version_major();
396 inline ::google::protobuf::int32 IverFrontSeatConfig::remote_helm_version_major()
const {
398 return remote_helm_version_major_;
400 inline void IverFrontSeatConfig::set_remote_helm_version_major(::google::protobuf::int32 value) {
401 set_has_remote_helm_version_major();
402 remote_helm_version_major_ = value;
420 #endif // PROTOBUF_goby_2fmoos_2ffrontseat_2fiver_2fiver_5fdriver_5fconfig_2eproto__INCLUDED