Goby3  3.1.5
2024.05.14
gps_config.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/zeromq/protobuf/gps_config.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fgps_5fconfig_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fgps_5fconfig_2eproto
6 
7 #include <limits>
8 #include <string>
9 
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3012000
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 3012004 < 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/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
32 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
33 #include <google/protobuf/extension_set.h> // IWYU pragma: export
34 #include <google/protobuf/unknown_field_set.h>
39 #include <boost/units/quantity.hpp>
40 #include <boost/units/absolute.hpp>
41 #include <boost/units/dimensionless_type.hpp>
42 #include <boost/units/make_scaled_unit.hpp>
43 // @@protoc_insertion_point(includes)
44 #include <google/protobuf/port_def.inc>
45 #define PROTOBUF_INTERNAL_EXPORT_goby_2fzeromq_2fprotobuf_2fgps_5fconfig_2eproto
46 PROTOBUF_NAMESPACE_OPEN
47 namespace internal {
48 class AnyMetadata;
49 } // namespace internal
50 PROTOBUF_NAMESPACE_CLOSE
51 
52 // Internal implementation detail -- do not use these members.
54  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
55  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
56  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
57  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
58  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
59  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
60  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
61  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
63 };
64 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fzeromq_2fprotobuf_2fgps_5fconfig_2eproto;
65 namespace goby {
66 namespace apps {
67 namespace zeromq {
68 namespace protobuf {
69 class GPSDConfig;
70 class GPSDConfigDefaultTypeInternal;
71 extern GPSDConfigDefaultTypeInternal _GPSDConfig_default_instance_;
72 } // namespace protobuf
73 } // namespace zeromq
74 } // namespace apps
75 } // namespace goby
76 PROTOBUF_NAMESPACE_OPEN
77 template<> ::goby::apps::zeromq::protobuf::GPSDConfig* Arena::CreateMaybeMessage<::goby::apps::zeromq::protobuf::GPSDConfig>(Arena*);
78 PROTOBUF_NAMESPACE_CLOSE
79 namespace goby {
80 namespace apps {
81 namespace zeromq {
82 namespace protobuf {
83 
84 // ===================================================================
85 
86 class GPSDConfig PROTOBUF_FINAL :
87  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.apps.zeromq.protobuf.GPSDConfig) */ {
88  public:
89  inline GPSDConfig() : GPSDConfig(nullptr) {};
90  virtual ~GPSDConfig();
91 
92  GPSDConfig(const GPSDConfig& from);
93  GPSDConfig(GPSDConfig&& from) noexcept
94  : GPSDConfig() {
95  *this = ::std::move(from);
96  }
97 
98  inline GPSDConfig& operator=(const GPSDConfig& from) {
99  CopyFrom(from);
100  return *this;
101  }
102  inline GPSDConfig& operator=(GPSDConfig&& from) noexcept {
103  if (GetArena() == from.GetArena()) {
104  if (this != &from) InternalSwap(&from);
105  } else {
106  CopyFrom(from);
107  }
108  return *this;
109  }
110 
111  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
112  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
113  }
114  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
115  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
116  }
117 
118  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
119  return GetDescriptor();
120  }
121  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
122  return GetMetadataStatic().descriptor;
123  }
124  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
125  return GetMetadataStatic().reflection;
126  }
127  static const GPSDConfig& default_instance();
128 
129  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
130  static inline const GPSDConfig* internal_default_instance() {
131  return reinterpret_cast<const GPSDConfig*>(
133  }
134  static constexpr int kIndexInFileMessages =
135  0;
136 
137  friend void swap(GPSDConfig& a, GPSDConfig& b) {
138  a.Swap(&b);
139  }
140  inline void Swap(GPSDConfig* other) {
141  if (other == this) return;
142  if (GetArena() == other->GetArena()) {
143  InternalSwap(other);
144  } else {
145  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
146  }
147  }
148  void UnsafeArenaSwap(GPSDConfig* other) {
149  if (other == this) return;
150  GOOGLE_DCHECK(GetArena() == other->GetArena());
151  InternalSwap(other);
152  }
153 
154  // implements Message ----------------------------------------------
155 
156  inline GPSDConfig* New() const final {
157  return CreateMaybeMessage<GPSDConfig>(nullptr);
158  }
159 
160  GPSDConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
161  return CreateMaybeMessage<GPSDConfig>(arena);
162  }
163  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
164  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
165  void CopyFrom(const GPSDConfig& from);
166  void MergeFrom(const GPSDConfig& from);
167  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
168  bool IsInitialized() const final;
169 
170  size_t ByteSizeLong() const final;
171  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
172  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
173  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
174  int GetCachedSize() const final { return _cached_size_.Get(); }
175 
176  private:
177  inline void SharedCtor();
178  inline void SharedDtor();
179  void SetCachedSize(int size) const final;
180  void InternalSwap(GPSDConfig* other);
181  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
182  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
183  return "goby.apps.zeromq.protobuf.GPSDConfig";
184  }
185  protected:
186  explicit GPSDConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena);
187  private:
188  static void ArenaDtor(void* object);
189  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
190  public:
191 
192  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
193  private:
194  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
195  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_goby_2fzeromq_2fprotobuf_2fgps_5fconfig_2eproto);
196  return ::descriptor_table_goby_2fzeromq_2fprotobuf_2fgps_5fconfig_2eproto.file_level_metadata[kIndexInFileMessages];
197  }
198 
199  public:
200 
201  // nested types ----------------------------------------------------
202 
203  // accessors -------------------------------------------------------
204 
205  enum : int {
206  kDeviceNameFieldNumber = 5,
207  kAppFieldNumber = 1,
208  kInterprocessFieldNumber = 2,
209  kGpsdFieldNumber = 3,
210  };
211  // repeated string device_name = 5;
212  int device_name_size() const;
213  private:
214  int _internal_device_name_size() const;
215  public:
217  const std::string& device_name(int index) const;
218  std::string* mutable_device_name(int index);
219  void set_device_name(int index, const std::string& value);
220  void set_device_name(int index, std::string&& value);
221  void set_device_name(int index, const char* value);
222  void set_device_name(int index, const char* value, size_t size);
223  std::string* add_device_name();
224  void add_device_name(const std::string& value);
225  void add_device_name(std::string&& value);
226  void add_device_name(const char* value);
227  void add_device_name(const char* value, size_t size);
228  const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& device_name() const;
229  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_device_name();
230  private:
231  const std::string& _internal_device_name(int index) const;
232  std::string* _internal_add_device_name();
233  public:
234 
235  // optional .goby.middleware.protobuf.AppConfig app = 1;
236  bool has_app() const;
237  private:
238  bool _internal_has_app() const;
239  public:
240  void clear_app();
241  const ::goby::middleware::protobuf::AppConfig& app() const;
242  ::goby::middleware::protobuf::AppConfig* release_app();
243  ::goby::middleware::protobuf::AppConfig* mutable_app();
244  void set_allocated_app(::goby::middleware::protobuf::AppConfig* app);
245  private:
246  const ::goby::middleware::protobuf::AppConfig& _internal_app() const;
247  ::goby::middleware::protobuf::AppConfig* _internal_mutable_app();
248  public:
250  ::goby::middleware::protobuf::AppConfig* app);
251  ::goby::middleware::protobuf::AppConfig* unsafe_arena_release_app();
252 
253  // optional .goby.zeromq.protobuf.InterProcessPortalConfig interprocess = 2 [(.goby.field) = {
254  bool has_interprocess() const;
255  private:
256  bool _internal_has_interprocess() const;
257  public:
259  const ::goby::zeromq::protobuf::InterProcessPortalConfig& interprocess() const;
260  ::goby::zeromq::protobuf::InterProcessPortalConfig* release_interprocess();
261  ::goby::zeromq::protobuf::InterProcessPortalConfig* mutable_interprocess();
262  void set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess);
263  private:
264  const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess() const;
265  ::goby::zeromq::protobuf::InterProcessPortalConfig* _internal_mutable_interprocess();
266  public:
268  ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess);
269  ::goby::zeromq::protobuf::InterProcessPortalConfig* unsafe_arena_release_interprocess();
270 
271  // required .goby.middleware.protobuf.TCPClientConfig gpsd = 3;
272  bool has_gpsd() const;
273  private:
274  bool _internal_has_gpsd() const;
275  public:
276  void clear_gpsd();
277  const ::goby::middleware::protobuf::TCPClientConfig& gpsd() const;
278  ::goby::middleware::protobuf::TCPClientConfig* release_gpsd();
279  ::goby::middleware::protobuf::TCPClientConfig* mutable_gpsd();
280  void set_allocated_gpsd(::goby::middleware::protobuf::TCPClientConfig* gpsd);
281  private:
282  const ::goby::middleware::protobuf::TCPClientConfig& _internal_gpsd() const;
283  ::goby::middleware::protobuf::TCPClientConfig* _internal_mutable_gpsd();
284  public:
286  ::goby::middleware::protobuf::TCPClientConfig* gpsd);
287  ::goby::middleware::protobuf::TCPClientConfig* unsafe_arena_release_gpsd();
288 
289  // @@protoc_insertion_point(class_scope:goby.apps.zeromq.protobuf.GPSDConfig)
290  private:
291  class _Internal;
292 
293  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
294  typedef void InternalArenaConstructable_;
295  typedef void DestructorSkippable_;
296  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
297  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
298  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> device_name_;
299  ::goby::middleware::protobuf::AppConfig* app_;
300  ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess_;
301  ::goby::middleware::protobuf::TCPClientConfig* gpsd_;
302  friend struct ::TableStruct_goby_2fzeromq_2fprotobuf_2fgps_5fconfig_2eproto;
303 };
304 // ===================================================================
305 
306 
307 // ===================================================================
308 
309 #ifdef __GNUC__
310  #pragma GCC diagnostic push
311  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
312 #endif // __GNUC__
313 // GPSDConfig
314 
315 // optional .goby.middleware.protobuf.AppConfig app = 1;
316 inline bool GPSDConfig::_internal_has_app() const {
317  bool value = (_has_bits_[0] & 0x00000001u) != 0;
318  PROTOBUF_ASSUME(!value || app_ != nullptr);
319  return value;
320 }
321 inline bool GPSDConfig::has_app() const {
322  return _internal_has_app();
323 }
324 inline const ::goby::middleware::protobuf::AppConfig& GPSDConfig::_internal_app() const {
325  const ::goby::middleware::protobuf::AppConfig* p = app_;
326  return p != nullptr ? *p : *reinterpret_cast<const ::goby::middleware::protobuf::AppConfig*>(
328 }
329 inline const ::goby::middleware::protobuf::AppConfig& GPSDConfig::app() const {
330  // @@protoc_insertion_point(field_get:goby.apps.zeromq.protobuf.GPSDConfig.app)
331  return _internal_app();
332 }
333 inline void GPSDConfig::unsafe_arena_set_allocated_app(
334  ::goby::middleware::protobuf::AppConfig* app) {
335  if (GetArena() == nullptr) {
336  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(app_);
337  }
338  app_ = app;
339  if (app) {
340  _has_bits_[0] |= 0x00000001u;
341  } else {
342  _has_bits_[0] &= ~0x00000001u;
343  }
344  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.zeromq.protobuf.GPSDConfig.app)
345 }
346 inline ::goby::middleware::protobuf::AppConfig* GPSDConfig::release_app() {
347  auto temp = unsafe_arena_release_app();
348  if (GetArena() != nullptr) {
349  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
350  }
351  return temp;
352 }
353 inline ::goby::middleware::protobuf::AppConfig* GPSDConfig::unsafe_arena_release_app() {
354  // @@protoc_insertion_point(field_release:goby.apps.zeromq.protobuf.GPSDConfig.app)
355  _has_bits_[0] &= ~0x00000001u;
356  ::goby::middleware::protobuf::AppConfig* temp = app_;
357  app_ = nullptr;
358  return temp;
359 }
360 inline ::goby::middleware::protobuf::AppConfig* GPSDConfig::_internal_mutable_app() {
361  _has_bits_[0] |= 0x00000001u;
362  if (app_ == nullptr) {
363  auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArena());
364  app_ = p;
365  }
366  return app_;
367 }
368 inline ::goby::middleware::protobuf::AppConfig* GPSDConfig::mutable_app() {
369  // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.protobuf.GPSDConfig.app)
370  return _internal_mutable_app();
371 }
372 inline void GPSDConfig::set_allocated_app(::goby::middleware::protobuf::AppConfig* app) {
373  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
374  if (message_arena == nullptr) {
375  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(app_);
376  }
377  if (app) {
378  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
379  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(app)->GetArena();
380  if (message_arena != submessage_arena) {
381  app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
382  message_arena, app, submessage_arena);
383  }
384  _has_bits_[0] |= 0x00000001u;
385  } else {
386  _has_bits_[0] &= ~0x00000001u;
387  }
388  app_ = app;
389  // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.protobuf.GPSDConfig.app)
390 }
391 
392 // optional .goby.zeromq.protobuf.InterProcessPortalConfig interprocess = 2 [(.goby.field) = {
393 inline bool GPSDConfig::_internal_has_interprocess() const {
394  bool value = (_has_bits_[0] & 0x00000002u) != 0;
395  PROTOBUF_ASSUME(!value || interprocess_ != nullptr);
396  return value;
397 }
398 inline bool GPSDConfig::has_interprocess() const {
399  return _internal_has_interprocess();
400 }
401 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& GPSDConfig::_internal_interprocess() const {
402  const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
403  return p != nullptr ? *p : *reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig*>(
405 }
406 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& GPSDConfig::interprocess() const {
407  // @@protoc_insertion_point(field_get:goby.apps.zeromq.protobuf.GPSDConfig.interprocess)
408  return _internal_interprocess();
409 }
410 inline void GPSDConfig::unsafe_arena_set_allocated_interprocess(
411  ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess) {
412  if (GetArena() == nullptr) {
413  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(interprocess_);
414  }
415  interprocess_ = interprocess;
416  if (interprocess) {
417  _has_bits_[0] |= 0x00000002u;
418  } else {
419  _has_bits_[0] &= ~0x00000002u;
420  }
421  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.zeromq.protobuf.GPSDConfig.interprocess)
422 }
423 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* GPSDConfig::release_interprocess() {
424  auto temp = unsafe_arena_release_interprocess();
425  if (GetArena() != nullptr) {
426  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
427  }
428  return temp;
429 }
430 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* GPSDConfig::unsafe_arena_release_interprocess() {
431  // @@protoc_insertion_point(field_release:goby.apps.zeromq.protobuf.GPSDConfig.interprocess)
432  _has_bits_[0] &= ~0x00000002u;
433  ::goby::zeromq::protobuf::InterProcessPortalConfig* temp = interprocess_;
434  interprocess_ = nullptr;
435  return temp;
436 }
437 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* GPSDConfig::_internal_mutable_interprocess() {
438  _has_bits_[0] |= 0x00000002u;
439  if (interprocess_ == nullptr) {
440  auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArena());
441  interprocess_ = p;
442  }
443  return interprocess_;
444 }
445 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* GPSDConfig::mutable_interprocess() {
446  // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.protobuf.GPSDConfig.interprocess)
447  return _internal_mutable_interprocess();
448 }
449 inline void GPSDConfig::set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess) {
450  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
451  if (message_arena == nullptr) {
452  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(interprocess_);
453  }
454  if (interprocess) {
455  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
456  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(interprocess)->GetArena();
457  if (message_arena != submessage_arena) {
458  interprocess = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
459  message_arena, interprocess, submessage_arena);
460  }
461  _has_bits_[0] |= 0x00000002u;
462  } else {
463  _has_bits_[0] &= ~0x00000002u;
464  }
465  interprocess_ = interprocess;
466  // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.protobuf.GPSDConfig.interprocess)
467 }
468 
469 // required .goby.middleware.protobuf.TCPClientConfig gpsd = 3;
470 inline bool GPSDConfig::_internal_has_gpsd() const {
471  bool value = (_has_bits_[0] & 0x00000004u) != 0;
472  PROTOBUF_ASSUME(!value || gpsd_ != nullptr);
473  return value;
474 }
475 inline bool GPSDConfig::has_gpsd() const {
476  return _internal_has_gpsd();
477 }
478 inline const ::goby::middleware::protobuf::TCPClientConfig& GPSDConfig::_internal_gpsd() const {
479  const ::goby::middleware::protobuf::TCPClientConfig* p = gpsd_;
480  return p != nullptr ? *p : *reinterpret_cast<const ::goby::middleware::protobuf::TCPClientConfig*>(
482 }
483 inline const ::goby::middleware::protobuf::TCPClientConfig& GPSDConfig::gpsd() const {
484  // @@protoc_insertion_point(field_get:goby.apps.zeromq.protobuf.GPSDConfig.gpsd)
485  return _internal_gpsd();
486 }
487 inline void GPSDConfig::unsafe_arena_set_allocated_gpsd(
488  ::goby::middleware::protobuf::TCPClientConfig* gpsd) {
489  if (GetArena() == nullptr) {
490  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(gpsd_);
491  }
492  gpsd_ = gpsd;
493  if (gpsd) {
494  _has_bits_[0] |= 0x00000004u;
495  } else {
496  _has_bits_[0] &= ~0x00000004u;
497  }
498  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.zeromq.protobuf.GPSDConfig.gpsd)
499 }
500 inline ::goby::middleware::protobuf::TCPClientConfig* GPSDConfig::release_gpsd() {
501  auto temp = unsafe_arena_release_gpsd();
502  if (GetArena() != nullptr) {
503  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
504  }
505  return temp;
506 }
507 inline ::goby::middleware::protobuf::TCPClientConfig* GPSDConfig::unsafe_arena_release_gpsd() {
508  // @@protoc_insertion_point(field_release:goby.apps.zeromq.protobuf.GPSDConfig.gpsd)
509  _has_bits_[0] &= ~0x00000004u;
510  ::goby::middleware::protobuf::TCPClientConfig* temp = gpsd_;
511  gpsd_ = nullptr;
512  return temp;
513 }
514 inline ::goby::middleware::protobuf::TCPClientConfig* GPSDConfig::_internal_mutable_gpsd() {
515  _has_bits_[0] |= 0x00000004u;
516  if (gpsd_ == nullptr) {
517  auto* p = CreateMaybeMessage<::goby::middleware::protobuf::TCPClientConfig>(GetArena());
518  gpsd_ = p;
519  }
520  return gpsd_;
521 }
522 inline ::goby::middleware::protobuf::TCPClientConfig* GPSDConfig::mutable_gpsd() {
523  // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.protobuf.GPSDConfig.gpsd)
524  return _internal_mutable_gpsd();
525 }
526 inline void GPSDConfig::set_allocated_gpsd(::goby::middleware::protobuf::TCPClientConfig* gpsd) {
527  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
528  if (message_arena == nullptr) {
529  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(gpsd_);
530  }
531  if (gpsd) {
532  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
533  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(gpsd)->GetArena();
534  if (message_arena != submessage_arena) {
535  gpsd = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
536  message_arena, gpsd, submessage_arena);
537  }
538  _has_bits_[0] |= 0x00000004u;
539  } else {
540  _has_bits_[0] &= ~0x00000004u;
541  }
542  gpsd_ = gpsd;
543  // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.protobuf.GPSDConfig.gpsd)
544 }
545 
546 // repeated string device_name = 5;
547 inline int GPSDConfig::_internal_device_name_size() const {
548  return device_name_.size();
549 }
550 inline int GPSDConfig::device_name_size() const {
551  return _internal_device_name_size();
552 }
553 inline void GPSDConfig::clear_device_name() {
554  device_name_.Clear();
555 }
556 inline std::string* GPSDConfig::add_device_name() {
557  // @@protoc_insertion_point(field_add_mutable:goby.apps.zeromq.protobuf.GPSDConfig.device_name)
558  return _internal_add_device_name();
559 }
560 inline const std::string& GPSDConfig::_internal_device_name(int index) const {
561  return device_name_.Get(index);
562 }
563 inline const std::string& GPSDConfig::device_name(int index) const {
564  // @@protoc_insertion_point(field_get:goby.apps.zeromq.protobuf.GPSDConfig.device_name)
565  return _internal_device_name(index);
566 }
567 inline std::string* GPSDConfig::mutable_device_name(int index) {
568  // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.protobuf.GPSDConfig.device_name)
569  return device_name_.Mutable(index);
570 }
571 inline void GPSDConfig::set_device_name(int index, const std::string& value) {
572  // @@protoc_insertion_point(field_set:goby.apps.zeromq.protobuf.GPSDConfig.device_name)
573  device_name_.Mutable(index)->assign(value);
574 }
575 inline void GPSDConfig::set_device_name(int index, std::string&& value) {
576  // @@protoc_insertion_point(field_set:goby.apps.zeromq.protobuf.GPSDConfig.device_name)
577  device_name_.Mutable(index)->assign(std::move(value));
578 }
579 inline void GPSDConfig::set_device_name(int index, const char* value) {
580  GOOGLE_DCHECK(value != nullptr);
581  device_name_.Mutable(index)->assign(value);
582  // @@protoc_insertion_point(field_set_char:goby.apps.zeromq.protobuf.GPSDConfig.device_name)
583 }
584 inline void GPSDConfig::set_device_name(int index, const char* value, size_t size) {
585  device_name_.Mutable(index)->assign(
586  reinterpret_cast<const char*>(value), size);
587  // @@protoc_insertion_point(field_set_pointer:goby.apps.zeromq.protobuf.GPSDConfig.device_name)
588 }
589 inline std::string* GPSDConfig::_internal_add_device_name() {
590  return device_name_.Add();
591 }
592 inline void GPSDConfig::add_device_name(const std::string& value) {
593  device_name_.Add()->assign(value);
594  // @@protoc_insertion_point(field_add:goby.apps.zeromq.protobuf.GPSDConfig.device_name)
595 }
596 inline void GPSDConfig::add_device_name(std::string&& value) {
597  device_name_.Add(std::move(value));
598  // @@protoc_insertion_point(field_add:goby.apps.zeromq.protobuf.GPSDConfig.device_name)
599 }
600 inline void GPSDConfig::add_device_name(const char* value) {
601  GOOGLE_DCHECK(value != nullptr);
602  device_name_.Add()->assign(value);
603  // @@protoc_insertion_point(field_add_char:goby.apps.zeromq.protobuf.GPSDConfig.device_name)
604 }
605 inline void GPSDConfig::add_device_name(const char* value, size_t size) {
606  device_name_.Add()->assign(reinterpret_cast<const char*>(value), size);
607  // @@protoc_insertion_point(field_add_pointer:goby.apps.zeromq.protobuf.GPSDConfig.device_name)
608 }
609 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
610 GPSDConfig::device_name() const {
611  // @@protoc_insertion_point(field_list:goby.apps.zeromq.protobuf.GPSDConfig.device_name)
612  return device_name_;
613 }
614 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
615 GPSDConfig::mutable_device_name() {
616  // @@protoc_insertion_point(field_mutable_list:goby.apps.zeromq.protobuf.GPSDConfig.device_name)
617  return &device_name_;
618 }
619 
620 #ifdef __GNUC__
621  #pragma GCC diagnostic pop
622 #endif // __GNUC__
623 
624 // @@protoc_insertion_point(namespace_scope)
625 
626 } // namespace protobuf
627 } // namespace zeromq
628 } // namespace apps
629 } // namespace goby
630 
631 // @@protoc_insertion_point(global_scope)
632 
633 #include <google/protobuf/port_undef.inc>
634 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fgps_5fconfig_2eproto
GPSDConfig & operator=(const GPSDConfig &from)
Definition: gps_config.pb.h:98
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
void add_device_name(std::string &&value)
::goby::middleware::protobuf::AppConfig * mutable_app()
const ::goby::middleware::protobuf::TCPClientConfig & gpsd() const
static const GPSDConfig & default_instance()
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
std::string * mutable_device_name(int index)
void unsafe_arena_set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
void set_device_name(int index, std::string &&value)
void unsafe_arena_set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
friend void swap(GPSDConfig &a, GPSDConfig &b)
void set_device_name(int index, const char *value, size_t size)
::goby::middleware::protobuf::TCPClientConfig * unsafe_arena_release_gpsd()
::goby::zeromq::protobuf::InterProcessPortalConfig * release_interprocess()
::goby::middleware::protobuf::AppConfig * unsafe_arena_release_app()
static const GPSDConfig * internal_default_instance()
GPSDConfig & operator=(GPSDConfig &&from) noexcept
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
::goby::middleware::protobuf::TCPClientConfig * mutable_gpsd()
GPSDConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
const std::string & device_name(int index) const
::goby::middleware::protobuf::TCPClientConfig * release_gpsd()
void add_device_name(const char *value, size_t size)
GPSDConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
void CopyFrom(const GPSDConfig &from)
void set_device_name(int index, const std::string &value)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void set_allocated_gpsd(::goby::middleware::protobuf::TCPClientConfig *gpsd)
::goby::zeromq::protobuf::InterProcessPortalConfig * unsafe_arena_release_interprocess()
const ::goby::middleware::protobuf::AppConfig & app() const
void add_device_name(const std::string &value)
void set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
GPSDConfig(GPSDConfig &&from) noexcept
Definition: gps_config.pb.h:93
void set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
::goby::zeromq::protobuf::InterProcessPortalConfig * mutable_interprocess()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
void MergeFrom(const GPSDConfig &from)
void unsafe_arena_set_allocated_gpsd(::goby::middleware::protobuf::TCPClientConfig *gpsd)
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< std::string > * mutable_device_name()
::goby::middleware::protobuf::AppConfig * release_app()
void set_device_name(int index, const char *value)
const ::goby::zeromq::protobuf::InterProcessPortalConfig & interprocess() const
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< std::string > & device_name() const
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fzeromq_2fprotobuf_2fgps_5fconfig_2eproto
@ value
the parser finished reading a JSON value
GPSDConfigDefaultTypeInternal _GPSDConfig_default_instance_
TCPClientConfigDefaultTypeInternal _TCPClientConfig_default_instance_
AppConfigDefaultTypeInternal _AppConfig_default_instance_
InterProcessPortalConfigDefaultTypeInternal _InterProcessPortalConfig_default_instance_
The global namespace for the Goby project.
std::uint32_t uint32
#define ByteSizeLong
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
Definition: gps_config.pb.h:61
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
Definition: gps_config.pb.h:60
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
Definition: gps_config.pb.h:62
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)