4 #ifndef PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fgps_5fconfig_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fgps_5fconfig_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < 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/io/coded_stream.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/unknown_field_set.h>
37 #include <boost/units/quantity.hpp>
38 #include <boost/units/absolute.hpp>
39 #include <boost/units/dimensionless_type.hpp>
40 #include <boost/units/make_scaled_unit.hpp>
42 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2fzeromq_2fprotobuf_2fgps_5fconfig_2eproto
47 static const ::google::protobuf::internal::ParseTableField
entries[];
48 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
49 static const ::google::protobuf::internal::ParseTable
schema[1];
61 class GPSDConfigDefaultTypeInternal;
93 *
this = ::std::move(from);
97 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
98 if (
this != &from) InternalSwap(&from);
106 return _internal_metadata_.unknown_fields();
109 return _internal_metadata_.mutable_unknown_fields();
112 static const ::google::protobuf::Descriptor*
descriptor();
131 return CreateMaybeMessage<GPSDConfig>(NULL);
135 return CreateMaybeMessage<GPSDConfig>(arena);
137 void CopyFrom(const ::google::protobuf::Message& from)
final;
138 void MergeFrom(const ::google::protobuf::Message& from)
final;
146 ::
google::protobuf::io::CodedInputStream* input) final;
148 ::
google::protobuf::io::CodedOutputStream* output) const final;
150 bool deterministic, ::
google::protobuf::uint8* target) const final;
156 void SetCachedSize(
int size)
const final;
159 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
162 inline void* MaybeArenaPtr()
const {
192 const ::google::protobuf::RepeatedPtrField< ::std::string>&
device_name()
const;
200 const ::goby::middleware::protobuf::AppConfig& _internal_app()
const;
202 const ::goby::middleware::protobuf::AppConfig&
app()
const;
212 const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess()
const;
214 const ::goby::zeromq::protobuf::InterProcessPortalConfig&
interprocess()
const;
224 const ::goby::middleware::protobuf::TCPClientConfig& _internal_gpsd()
const;
226 const ::goby::middleware::protobuf::TCPClientConfig&
gpsd()
const;
234 void clear_has_app();
235 void set_has_interprocess();
236 void clear_has_interprocess();
238 void clear_has_gpsd();
240 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
241 ::google::protobuf::internal::HasBits<1> _has_bits_;
242 mutable ::google::protobuf::internal::CachedSize _cached_size_;
247 friend struct ::protobuf_goby_2fzeromq_2fprotobuf_2fgps_5fconfig_2eproto::TableStruct;
255 #pragma GCC diagnostic push
256 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
262 return (_has_bits_[0] & 0x00000001u) != 0;
264 inline void GPSDConfig::set_has_app() {
265 _has_bits_[0] |= 0x00000001u;
267 inline void GPSDConfig::clear_has_app() {
268 _has_bits_[0] &= ~0x00000001u;
270 inline const ::goby::middleware::protobuf::AppConfig& GPSDConfig::_internal_app()
const {
274 const ::goby::middleware::protobuf::AppConfig* p = app_;
289 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaNoVirtual());
297 if (message_arena == NULL) {
302 if (message_arena != submessage_arena) {
303 app = ::google::protobuf::internal::GetOwnedMessage(
304 message_arena,
app, submessage_arena);
316 return (_has_bits_[0] & 0x00000002u) != 0;
318 inline void GPSDConfig::set_has_interprocess() {
319 _has_bits_[0] |= 0x00000002u;
321 inline void GPSDConfig::clear_has_interprocess() {
322 _has_bits_[0] &= ~0x00000002u;
324 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& GPSDConfig::_internal_interprocess()
const {
325 return *interprocess_;
328 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
335 clear_has_interprocess();
337 interprocess_ = NULL;
341 set_has_interprocess();
342 if (interprocess_ == NULL) {
343 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArenaNoVirtual());
347 return interprocess_;
351 if (message_arena == NULL) {
356 if (message_arena != submessage_arena) {
357 interprocess = ::google::protobuf::internal::GetOwnedMessage(
360 set_has_interprocess();
362 clear_has_interprocess();
370 return (_has_bits_[0] & 0x00000004u) != 0;
372 inline void GPSDConfig::set_has_gpsd() {
373 _has_bits_[0] |= 0x00000004u;
375 inline void GPSDConfig::clear_has_gpsd() {
376 _has_bits_[0] &= ~0x00000004u;
378 inline const ::goby::middleware::protobuf::TCPClientConfig& GPSDConfig::_internal_gpsd()
const {
382 const ::goby::middleware::protobuf::TCPClientConfig* p = gpsd_;
397 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::TCPClientConfig>(GetArenaNoVirtual());
405 if (message_arena == NULL) {
410 if (message_arena != submessage_arena) {
411 gpsd = ::google::protobuf::internal::GetOwnedMessage(
412 message_arena,
gpsd, submessage_arena);
424 return device_name_.size();
427 device_name_.Clear();
431 return device_name_.Get(index);
435 return device_name_.Mutable(index);
439 device_name_.Mutable(index)->assign(value);
444 device_name_.Mutable(index)->assign(std::move(value));
448 GOOGLE_DCHECK(value != NULL);
449 device_name_.Mutable(index)->assign(value);
453 device_name_.Mutable(index)->assign(
454 reinterpret_cast<const char*
>(value), size);
459 return device_name_.Add();
462 device_name_.Add()->assign(value);
467 device_name_.Add(std::move(value));
472 GOOGLE_DCHECK(value != NULL);
473 device_name_.Add()->assign(value);
477 device_name_.Add()->assign(
reinterpret_cast<const char*
>(value), size);
480 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
485 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
488 return &device_name_;
492 #pragma GCC diagnostic pop
504 #endif // PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fgps_5fconfig_2eproto