Goby3  3.1.5
2024.05.14
coroner_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/coroner_config.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fcoroner_5fconfig_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fcoroner_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>
38 #include "dccl/option_extensions.pb.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 
44 #include <boost/units/systems/si.hpp>
45 // @@protoc_insertion_point(includes)
46 #include <google/protobuf/port_def.inc>
47 #define PROTOBUF_INTERNAL_EXPORT_goby_2fzeromq_2fprotobuf_2fcoroner_5fconfig_2eproto
48 PROTOBUF_NAMESPACE_OPEN
49 namespace internal {
50 class AnyMetadata;
51 } // namespace internal
52 PROTOBUF_NAMESPACE_CLOSE
53 
54 // Internal implementation detail -- do not use these members.
56  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
57  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
58  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
59  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
60  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
61  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
62  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
63  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
65 };
66 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fzeromq_2fprotobuf_2fcoroner_5fconfig_2eproto;
67 namespace goby {
68 namespace apps {
69 namespace zeromq {
70 namespace protobuf {
71 class CoronerConfig;
72 class CoronerConfigDefaultTypeInternal;
73 extern CoronerConfigDefaultTypeInternal _CoronerConfig_default_instance_;
74 } // namespace protobuf
75 } // namespace zeromq
76 } // namespace apps
77 } // namespace goby
78 PROTOBUF_NAMESPACE_OPEN
79 template<> ::goby::apps::zeromq::protobuf::CoronerConfig* Arena::CreateMaybeMessage<::goby::apps::zeromq::protobuf::CoronerConfig>(Arena*);
80 PROTOBUF_NAMESPACE_CLOSE
81 namespace goby {
82 namespace apps {
83 namespace zeromq {
84 namespace protobuf {
85 
86 // ===================================================================
87 
88 class CoronerConfig PROTOBUF_FINAL :
89  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.apps.zeromq.protobuf.CoronerConfig) */ {
90  public:
91  inline CoronerConfig() : CoronerConfig(nullptr) {};
92  virtual ~CoronerConfig();
93 
94  CoronerConfig(const CoronerConfig& from);
95  CoronerConfig(CoronerConfig&& from) noexcept
96  : CoronerConfig() {
97  *this = ::std::move(from);
98  }
99 
100  inline CoronerConfig& operator=(const CoronerConfig& from) {
101  CopyFrom(from);
102  return *this;
103  }
104  inline CoronerConfig& operator=(CoronerConfig&& from) noexcept {
105  if (GetArena() == from.GetArena()) {
106  if (this != &from) InternalSwap(&from);
107  } else {
108  CopyFrom(from);
109  }
110  return *this;
111  }
112 
113  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
114  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
115  }
116  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
117  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
118  }
119 
120  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
121  return GetDescriptor();
122  }
123  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
124  return GetMetadataStatic().descriptor;
125  }
126  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
127  return GetMetadataStatic().reflection;
128  }
129  static const CoronerConfig& default_instance();
130 
131  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
132  static inline const CoronerConfig* internal_default_instance() {
133  return reinterpret_cast<const CoronerConfig*>(
135  }
136  static constexpr int kIndexInFileMessages =
137  0;
138 
139  friend void swap(CoronerConfig& a, CoronerConfig& b) {
140  a.Swap(&b);
141  }
142  inline void Swap(CoronerConfig* other) {
143  if (other == this) return;
144  if (GetArena() == other->GetArena()) {
145  InternalSwap(other);
146  } else {
147  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
148  }
149  }
150  void UnsafeArenaSwap(CoronerConfig* other) {
151  if (other == this) return;
152  GOOGLE_DCHECK(GetArena() == other->GetArena());
153  InternalSwap(other);
154  }
155 
156  // implements Message ----------------------------------------------
157 
158  inline CoronerConfig* New() const final {
159  return CreateMaybeMessage<CoronerConfig>(nullptr);
160  }
161 
162  CoronerConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
163  return CreateMaybeMessage<CoronerConfig>(arena);
164  }
165  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
166  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
167  void CopyFrom(const CoronerConfig& from);
168  void MergeFrom(const CoronerConfig& from);
169  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
170  bool IsInitialized() const final;
171 
172  size_t ByteSizeLong() const final;
173  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
174  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
175  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
176  int GetCachedSize() const final { return _cached_size_.Get(); }
177 
178  private:
179  inline void SharedCtor();
180  inline void SharedDtor();
181  void SetCachedSize(int size) const final;
182  void InternalSwap(CoronerConfig* other);
183  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
184  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
185  return "goby.apps.zeromq.protobuf.CoronerConfig";
186  }
187  protected:
188  explicit CoronerConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena);
189  private:
190  static void ArenaDtor(void* object);
191  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
192  public:
193 
194  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
195  private:
196  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
197  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_goby_2fzeromq_2fprotobuf_2fcoroner_5fconfig_2eproto);
199  }
200 
201  public:
202 
203  // nested types ----------------------------------------------------
204 
205  // accessors -------------------------------------------------------
206 
207  enum : int {
208  kExpectedNameFieldNumber = 10,
209  kReportFileFieldNumber = 23,
210  kAppFieldNumber = 1,
211  kInterprocessFieldNumber = 2,
212  kAutoAddNewAppsFieldNumber = 22,
213  kRequestIntervalFieldNumber = 20,
214  kResponseTimeoutFieldNumber = 21,
215  };
216  // repeated string expected_name = 10;
217  int expected_name_size() const;
218  private:
219  int _internal_expected_name_size() const;
220  public:
222  const std::string& expected_name(int index) const;
223  std::string* mutable_expected_name(int index);
224  void set_expected_name(int index, const std::string& value);
225  void set_expected_name(int index, std::string&& value);
226  void set_expected_name(int index, const char* value);
227  void set_expected_name(int index, const char* value, size_t size);
228  std::string* add_expected_name();
229  void add_expected_name(const std::string& value);
230  void add_expected_name(std::string&& value);
231  void add_expected_name(const char* value);
232  void add_expected_name(const char* value, size_t size);
233  const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& expected_name() const;
234  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_expected_name();
235  private:
236  const std::string& _internal_expected_name(int index) const;
237  std::string* _internal_add_expected_name();
238  public:
239 
240  // optional string report_file = 23;
241  bool has_report_file() const;
242  private:
243  bool _internal_has_report_file() const;
244  public:
246  const std::string& report_file() const;
247  void set_report_file(const std::string& value);
248  void set_report_file(std::string&& value);
249  void set_report_file(const char* value);
250  void set_report_file(const char* value, size_t size);
251  std::string* mutable_report_file();
252  std::string* release_report_file();
253  void set_allocated_report_file(std::string* report_file);
254  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
255  " string fields are deprecated and will be removed in a"
256  " future release.")
257  std::string* unsafe_arena_release_report_file();
258  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
259  " string fields are deprecated and will be removed in a"
260  " future release.")
261  void unsafe_arena_set_allocated_report_file(
262  std::string* report_file);
263  private:
264  const std::string& _internal_report_file() const;
265  void _internal_set_report_file(const std::string& value);
266  std::string* _internal_mutable_report_file();
267  public:
268 
269  // optional .goby.middleware.protobuf.AppConfig app = 1;
270  bool has_app() const;
271  private:
272  bool _internal_has_app() const;
273  public:
274  void clear_app();
275  const ::goby::middleware::protobuf::AppConfig& app() const;
276  ::goby::middleware::protobuf::AppConfig* release_app();
277  ::goby::middleware::protobuf::AppConfig* mutable_app();
278  void set_allocated_app(::goby::middleware::protobuf::AppConfig* app);
279  private:
280  const ::goby::middleware::protobuf::AppConfig& _internal_app() const;
281  ::goby::middleware::protobuf::AppConfig* _internal_mutable_app();
282  public:
283  void unsafe_arena_set_allocated_app(
284  ::goby::middleware::protobuf::AppConfig* app);
285  ::goby::middleware::protobuf::AppConfig* unsafe_arena_release_app();
286 
287  // optional .goby.zeromq.protobuf.InterProcessPortalConfig interprocess = 2 [(.goby.field) = {
288  bool has_interprocess() const;
289  private:
290  bool _internal_has_interprocess() const;
291  public:
292  void clear_interprocess();
293  const ::goby::zeromq::protobuf::InterProcessPortalConfig& interprocess() const;
294  ::goby::zeromq::protobuf::InterProcessPortalConfig* release_interprocess();
295  ::goby::zeromq::protobuf::InterProcessPortalConfig* mutable_interprocess();
296  void set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess);
297  private:
298  const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess() const;
299  ::goby::zeromq::protobuf::InterProcessPortalConfig* _internal_mutable_interprocess();
300  public:
301  void unsafe_arena_set_allocated_interprocess(
302  ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess);
303  ::goby::zeromq::protobuf::InterProcessPortalConfig* unsafe_arena_release_interprocess();
304 
305  // optional bool auto_add_new_apps = 22 [default = false];
306  bool has_auto_add_new_apps() const;
307  private:
308  bool _internal_has_auto_add_new_apps() const;
309  public:
310  void clear_auto_add_new_apps();
311  bool auto_add_new_apps() const;
312  void set_auto_add_new_apps(bool value);
313  private:
314  bool _internal_auto_add_new_apps() const;
315  void _internal_set_auto_add_new_apps(bool value);
316  public:
317 
318  // optional float request_interval = 20 [default = 10, (.dccl.field) = {
319  bool has_request_interval() const;
320  private:
321  bool _internal_has_request_interval() const;
322  public:
323  void clear_request_interval();
324  float request_interval() const;
325  void set_request_interval(float value);
326  private:
327  float _internal_request_interval() const;
328  void _internal_set_request_interval(float value);
329  public:
330 
331  // optional float response_timeout = 21 [default = 5, (.dccl.field) = {
332  bool has_response_timeout() const;
333  private:
334  bool _internal_has_response_timeout() const;
335  public:
336  void clear_response_timeout();
337  float response_timeout() const;
338  void set_response_timeout(float value);
339  private:
340  float _internal_response_timeout() const;
341  void _internal_set_response_timeout(float value);
342  public:
343 
344  typedef boost::units::derived_dimension< boost::units::time_base_dimension,1 >::type request_interval_dimension;
345 
347 
348  template<typename Quantity >
349  void set_request_interval_with_units(Quantity value_w_units)
350  { set_request_interval(boost::units::quantity<request_interval_unit,float >(value_w_units).value() ); };
351 
352  template<typename Quantity >
354  { return Quantity(request_interval() * request_interval_unit()); };
355 
356  boost::units::quantity< request_interval_unit,float > request_interval_with_units() const
357  { return request_interval_with_units<boost::units::quantity< request_interval_unit,float > >(); };
358 
360 
361  typedef boost::units::unit<response_timeout_dimension,boost::units::si::system> response_timeout_unit;
362 
363  template<typename Quantity >
364  void set_response_timeout_with_units(Quantity value_w_units)
365  { set_response_timeout(boost::units::quantity<response_timeout_unit,float >(value_w_units).value() ); };
366 
367  template<typename Quantity >
369  { return Quantity(response_timeout() * response_timeout_unit()); };
370 
371  boost::units::quantity< response_timeout_unit,float > response_timeout_with_units() const
372  { return response_timeout_with_units<boost::units::quantity< response_timeout_unit,float > >(); };
373 
374  // @@protoc_insertion_point(class_scope:goby.apps.zeromq.protobuf.CoronerConfig)
375  private:
376  class _Internal;
377 
378  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
379  typedef void InternalArenaConstructable_;
380  typedef void DestructorSkippable_;
381  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
382  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
383  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> expected_name_;
384  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr report_file_;
385  ::goby::middleware::protobuf::AppConfig* app_;
386  ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess_;
387  bool auto_add_new_apps_;
388  float request_interval_;
389  float response_timeout_;
390  friend struct ::TableStruct_goby_2fzeromq_2fprotobuf_2fcoroner_5fconfig_2eproto;
391 };
392 // ===================================================================
393 
394 
395 // ===================================================================
396 
397 #ifdef __GNUC__
398  #pragma GCC diagnostic push
399  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
400 #endif // __GNUC__
401 // CoronerConfig
402 
403 // optional .goby.middleware.protobuf.AppConfig app = 1;
404 inline bool CoronerConfig::_internal_has_app() const {
405  bool value = (_has_bits_[0] & 0x00000002u) != 0;
406  PROTOBUF_ASSUME(!value || app_ != nullptr);
407  return value;
408 }
409 inline bool CoronerConfig::has_app() const {
410  return _internal_has_app();
411 }
412 inline const ::goby::middleware::protobuf::AppConfig& CoronerConfig::_internal_app() const {
413  const ::goby::middleware::protobuf::AppConfig* p = app_;
414  return p != nullptr ? *p : *reinterpret_cast<const ::goby::middleware::protobuf::AppConfig*>(
416 }
417 inline const ::goby::middleware::protobuf::AppConfig& CoronerConfig::app() const {
418  // @@protoc_insertion_point(field_get:goby.apps.zeromq.protobuf.CoronerConfig.app)
419  return _internal_app();
420 }
421 inline void CoronerConfig::unsafe_arena_set_allocated_app(
422  ::goby::middleware::protobuf::AppConfig* app) {
423  if (GetArena() == nullptr) {
424  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(app_);
425  }
426  app_ = app;
427  if (app) {
428  _has_bits_[0] |= 0x00000002u;
429  } else {
430  _has_bits_[0] &= ~0x00000002u;
431  }
432  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.zeromq.protobuf.CoronerConfig.app)
433 }
434 inline ::goby::middleware::protobuf::AppConfig* CoronerConfig::release_app() {
435  auto temp = unsafe_arena_release_app();
436  if (GetArena() != nullptr) {
437  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
438  }
439  return temp;
440 }
441 inline ::goby::middleware::protobuf::AppConfig* CoronerConfig::unsafe_arena_release_app() {
442  // @@protoc_insertion_point(field_release:goby.apps.zeromq.protobuf.CoronerConfig.app)
443  _has_bits_[0] &= ~0x00000002u;
444  ::goby::middleware::protobuf::AppConfig* temp = app_;
445  app_ = nullptr;
446  return temp;
447 }
448 inline ::goby::middleware::protobuf::AppConfig* CoronerConfig::_internal_mutable_app() {
449  _has_bits_[0] |= 0x00000002u;
450  if (app_ == nullptr) {
451  auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArena());
452  app_ = p;
453  }
454  return app_;
455 }
456 inline ::goby::middleware::protobuf::AppConfig* CoronerConfig::mutable_app() {
457  // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.protobuf.CoronerConfig.app)
458  return _internal_mutable_app();
459 }
460 inline void CoronerConfig::set_allocated_app(::goby::middleware::protobuf::AppConfig* app) {
461  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
462  if (message_arena == nullptr) {
463  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(app_);
464  }
465  if (app) {
466  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
467  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(app)->GetArena();
468  if (message_arena != submessage_arena) {
469  app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
470  message_arena, app, submessage_arena);
471  }
472  _has_bits_[0] |= 0x00000002u;
473  } else {
474  _has_bits_[0] &= ~0x00000002u;
475  }
476  app_ = app;
477  // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.protobuf.CoronerConfig.app)
478 }
479 
480 // optional .goby.zeromq.protobuf.InterProcessPortalConfig interprocess = 2 [(.goby.field) = {
481 inline bool CoronerConfig::_internal_has_interprocess() const {
482  bool value = (_has_bits_[0] & 0x00000004u) != 0;
483  PROTOBUF_ASSUME(!value || interprocess_ != nullptr);
484  return value;
485 }
486 inline bool CoronerConfig::has_interprocess() const {
487  return _internal_has_interprocess();
488 }
489 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& CoronerConfig::_internal_interprocess() const {
490  const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
491  return p != nullptr ? *p : *reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig*>(
493 }
494 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& CoronerConfig::interprocess() const {
495  // @@protoc_insertion_point(field_get:goby.apps.zeromq.protobuf.CoronerConfig.interprocess)
496  return _internal_interprocess();
497 }
498 inline void CoronerConfig::unsafe_arena_set_allocated_interprocess(
499  ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess) {
500  if (GetArena() == nullptr) {
501  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(interprocess_);
502  }
503  interprocess_ = interprocess;
504  if (interprocess) {
505  _has_bits_[0] |= 0x00000004u;
506  } else {
507  _has_bits_[0] &= ~0x00000004u;
508  }
509  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.zeromq.protobuf.CoronerConfig.interprocess)
510 }
511 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* CoronerConfig::release_interprocess() {
512  auto temp = unsafe_arena_release_interprocess();
513  if (GetArena() != nullptr) {
514  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
515  }
516  return temp;
517 }
518 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* CoronerConfig::unsafe_arena_release_interprocess() {
519  // @@protoc_insertion_point(field_release:goby.apps.zeromq.protobuf.CoronerConfig.interprocess)
520  _has_bits_[0] &= ~0x00000004u;
521  ::goby::zeromq::protobuf::InterProcessPortalConfig* temp = interprocess_;
522  interprocess_ = nullptr;
523  return temp;
524 }
525 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* CoronerConfig::_internal_mutable_interprocess() {
526  _has_bits_[0] |= 0x00000004u;
527  if (interprocess_ == nullptr) {
528  auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArena());
529  interprocess_ = p;
530  }
531  return interprocess_;
532 }
533 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* CoronerConfig::mutable_interprocess() {
534  // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.protobuf.CoronerConfig.interprocess)
535  return _internal_mutable_interprocess();
536 }
537 inline void CoronerConfig::set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess) {
538  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
539  if (message_arena == nullptr) {
540  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(interprocess_);
541  }
542  if (interprocess) {
543  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
544  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(interprocess)->GetArena();
545  if (message_arena != submessage_arena) {
546  interprocess = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
547  message_arena, interprocess, submessage_arena);
548  }
549  _has_bits_[0] |= 0x00000004u;
550  } else {
551  _has_bits_[0] &= ~0x00000004u;
552  }
553  interprocess_ = interprocess;
554  // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.protobuf.CoronerConfig.interprocess)
555 }
556 
557 // repeated string expected_name = 10;
558 inline int CoronerConfig::_internal_expected_name_size() const {
559  return expected_name_.size();
560 }
561 inline int CoronerConfig::expected_name_size() const {
562  return _internal_expected_name_size();
563 }
564 inline void CoronerConfig::clear_expected_name() {
565  expected_name_.Clear();
566 }
567 inline std::string* CoronerConfig::add_expected_name() {
568  // @@protoc_insertion_point(field_add_mutable:goby.apps.zeromq.protobuf.CoronerConfig.expected_name)
569  return _internal_add_expected_name();
570 }
571 inline const std::string& CoronerConfig::_internal_expected_name(int index) const {
572  return expected_name_.Get(index);
573 }
574 inline const std::string& CoronerConfig::expected_name(int index) const {
575  // @@protoc_insertion_point(field_get:goby.apps.zeromq.protobuf.CoronerConfig.expected_name)
576  return _internal_expected_name(index);
577 }
578 inline std::string* CoronerConfig::mutable_expected_name(int index) {
579  // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.protobuf.CoronerConfig.expected_name)
580  return expected_name_.Mutable(index);
581 }
582 inline void CoronerConfig::set_expected_name(int index, const std::string& value) {
583  // @@protoc_insertion_point(field_set:goby.apps.zeromq.protobuf.CoronerConfig.expected_name)
584  expected_name_.Mutable(index)->assign(value);
585 }
586 inline void CoronerConfig::set_expected_name(int index, std::string&& value) {
587  // @@protoc_insertion_point(field_set:goby.apps.zeromq.protobuf.CoronerConfig.expected_name)
588  expected_name_.Mutable(index)->assign(std::move(value));
589 }
590 inline void CoronerConfig::set_expected_name(int index, const char* value) {
591  GOOGLE_DCHECK(value != nullptr);
592  expected_name_.Mutable(index)->assign(value);
593  // @@protoc_insertion_point(field_set_char:goby.apps.zeromq.protobuf.CoronerConfig.expected_name)
594 }
595 inline void CoronerConfig::set_expected_name(int index, const char* value, size_t size) {
596  expected_name_.Mutable(index)->assign(
597  reinterpret_cast<const char*>(value), size);
598  // @@protoc_insertion_point(field_set_pointer:goby.apps.zeromq.protobuf.CoronerConfig.expected_name)
599 }
600 inline std::string* CoronerConfig::_internal_add_expected_name() {
601  return expected_name_.Add();
602 }
603 inline void CoronerConfig::add_expected_name(const std::string& value) {
604  expected_name_.Add()->assign(value);
605  // @@protoc_insertion_point(field_add:goby.apps.zeromq.protobuf.CoronerConfig.expected_name)
606 }
607 inline void CoronerConfig::add_expected_name(std::string&& value) {
608  expected_name_.Add(std::move(value));
609  // @@protoc_insertion_point(field_add:goby.apps.zeromq.protobuf.CoronerConfig.expected_name)
610 }
611 inline void CoronerConfig::add_expected_name(const char* value) {
612  GOOGLE_DCHECK(value != nullptr);
613  expected_name_.Add()->assign(value);
614  // @@protoc_insertion_point(field_add_char:goby.apps.zeromq.protobuf.CoronerConfig.expected_name)
615 }
616 inline void CoronerConfig::add_expected_name(const char* value, size_t size) {
617  expected_name_.Add()->assign(reinterpret_cast<const char*>(value), size);
618  // @@protoc_insertion_point(field_add_pointer:goby.apps.zeromq.protobuf.CoronerConfig.expected_name)
619 }
620 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
621 CoronerConfig::expected_name() const {
622  // @@protoc_insertion_point(field_list:goby.apps.zeromq.protobuf.CoronerConfig.expected_name)
623  return expected_name_;
624 }
625 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
626 CoronerConfig::mutable_expected_name() {
627  // @@protoc_insertion_point(field_mutable_list:goby.apps.zeromq.protobuf.CoronerConfig.expected_name)
628  return &expected_name_;
629 }
630 
631 // optional float request_interval = 20 [default = 10, (.dccl.field) = {
632 inline bool CoronerConfig::_internal_has_request_interval() const {
633  bool value = (_has_bits_[0] & 0x00000010u) != 0;
634  return value;
635 }
636 inline bool CoronerConfig::has_request_interval() const {
637  return _internal_has_request_interval();
638 }
639 inline void CoronerConfig::clear_request_interval() {
640  request_interval_ = 10;
641  _has_bits_[0] &= ~0x00000010u;
642 }
643 inline float CoronerConfig::_internal_request_interval() const {
644  return request_interval_;
645 }
646 inline float CoronerConfig::request_interval() const {
647  // @@protoc_insertion_point(field_get:goby.apps.zeromq.protobuf.CoronerConfig.request_interval)
648  return _internal_request_interval();
649 }
650 inline void CoronerConfig::_internal_set_request_interval(float value) {
651  _has_bits_[0] |= 0x00000010u;
652  request_interval_ = value;
653 }
654 inline void CoronerConfig::set_request_interval(float value) {
655  _internal_set_request_interval(value);
656  // @@protoc_insertion_point(field_set:goby.apps.zeromq.protobuf.CoronerConfig.request_interval)
657 }
658 
659 // optional float response_timeout = 21 [default = 5, (.dccl.field) = {
660 inline bool CoronerConfig::_internal_has_response_timeout() const {
661  bool value = (_has_bits_[0] & 0x00000020u) != 0;
662  return value;
663 }
664 inline bool CoronerConfig::has_response_timeout() const {
665  return _internal_has_response_timeout();
666 }
667 inline void CoronerConfig::clear_response_timeout() {
668  response_timeout_ = 5;
669  _has_bits_[0] &= ~0x00000020u;
670 }
671 inline float CoronerConfig::_internal_response_timeout() const {
672  return response_timeout_;
673 }
674 inline float CoronerConfig::response_timeout() const {
675  // @@protoc_insertion_point(field_get:goby.apps.zeromq.protobuf.CoronerConfig.response_timeout)
676  return _internal_response_timeout();
677 }
678 inline void CoronerConfig::_internal_set_response_timeout(float value) {
679  _has_bits_[0] |= 0x00000020u;
680  response_timeout_ = value;
681 }
682 inline void CoronerConfig::set_response_timeout(float value) {
683  _internal_set_response_timeout(value);
684  // @@protoc_insertion_point(field_set:goby.apps.zeromq.protobuf.CoronerConfig.response_timeout)
685 }
686 
687 // optional bool auto_add_new_apps = 22 [default = false];
688 inline bool CoronerConfig::_internal_has_auto_add_new_apps() const {
689  bool value = (_has_bits_[0] & 0x00000008u) != 0;
690  return value;
691 }
692 inline bool CoronerConfig::has_auto_add_new_apps() const {
693  return _internal_has_auto_add_new_apps();
694 }
695 inline void CoronerConfig::clear_auto_add_new_apps() {
696  auto_add_new_apps_ = false;
697  _has_bits_[0] &= ~0x00000008u;
698 }
699 inline bool CoronerConfig::_internal_auto_add_new_apps() const {
700  return auto_add_new_apps_;
701 }
702 inline bool CoronerConfig::auto_add_new_apps() const {
703  // @@protoc_insertion_point(field_get:goby.apps.zeromq.protobuf.CoronerConfig.auto_add_new_apps)
704  return _internal_auto_add_new_apps();
705 }
706 inline void CoronerConfig::_internal_set_auto_add_new_apps(bool value) {
707  _has_bits_[0] |= 0x00000008u;
708  auto_add_new_apps_ = value;
709 }
710 inline void CoronerConfig::set_auto_add_new_apps(bool value) {
711  _internal_set_auto_add_new_apps(value);
712  // @@protoc_insertion_point(field_set:goby.apps.zeromq.protobuf.CoronerConfig.auto_add_new_apps)
713 }
714 
715 // optional string report_file = 23;
716 inline bool CoronerConfig::_internal_has_report_file() const {
717  bool value = (_has_bits_[0] & 0x00000001u) != 0;
718  return value;
719 }
720 inline bool CoronerConfig::has_report_file() const {
721  return _internal_has_report_file();
722 }
723 inline void CoronerConfig::clear_report_file() {
724  report_file_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
725  _has_bits_[0] &= ~0x00000001u;
726 }
727 inline const std::string& CoronerConfig::report_file() const {
728  // @@protoc_insertion_point(field_get:goby.apps.zeromq.protobuf.CoronerConfig.report_file)
729  return _internal_report_file();
730 }
731 inline void CoronerConfig::set_report_file(const std::string& value) {
732  _internal_set_report_file(value);
733  // @@protoc_insertion_point(field_set:goby.apps.zeromq.protobuf.CoronerConfig.report_file)
734 }
735 inline std::string* CoronerConfig::mutable_report_file() {
736  // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.protobuf.CoronerConfig.report_file)
737  return _internal_mutable_report_file();
738 }
739 inline const std::string& CoronerConfig::_internal_report_file() const {
740  return report_file_.Get();
741 }
742 inline void CoronerConfig::_internal_set_report_file(const std::string& value) {
743  _has_bits_[0] |= 0x00000001u;
744  report_file_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
745 }
746 inline void CoronerConfig::set_report_file(std::string&& value) {
747  _has_bits_[0] |= 0x00000001u;
748  report_file_.Set(
749  &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
750  // @@protoc_insertion_point(field_set_rvalue:goby.apps.zeromq.protobuf.CoronerConfig.report_file)
751 }
752 inline void CoronerConfig::set_report_file(const char* value) {
753  GOOGLE_DCHECK(value != nullptr);
754  _has_bits_[0] |= 0x00000001u;
755  report_file_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
756  GetArena());
757  // @@protoc_insertion_point(field_set_char:goby.apps.zeromq.protobuf.CoronerConfig.report_file)
758 }
759 inline void CoronerConfig::set_report_file(const char* value,
760  size_t size) {
761  _has_bits_[0] |= 0x00000001u;
762  report_file_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
763  reinterpret_cast<const char*>(value), size), GetArena());
764  // @@protoc_insertion_point(field_set_pointer:goby.apps.zeromq.protobuf.CoronerConfig.report_file)
765 }
766 inline std::string* CoronerConfig::_internal_mutable_report_file() {
767  _has_bits_[0] |= 0x00000001u;
768  return report_file_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
769 }
770 inline std::string* CoronerConfig::release_report_file() {
771  // @@protoc_insertion_point(field_release:goby.apps.zeromq.protobuf.CoronerConfig.report_file)
772  if (!_internal_has_report_file()) {
773  return nullptr;
774  }
775  _has_bits_[0] &= ~0x00000001u;
776  return report_file_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
777 }
778 inline void CoronerConfig::set_allocated_report_file(std::string* report_file) {
779  if (report_file != nullptr) {
780  _has_bits_[0] |= 0x00000001u;
781  } else {
782  _has_bits_[0] &= ~0x00000001u;
783  }
784  report_file_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), report_file,
785  GetArena());
786  // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.protobuf.CoronerConfig.report_file)
787 }
788 inline std::string* CoronerConfig::unsafe_arena_release_report_file() {
789  // @@protoc_insertion_point(field_unsafe_arena_release:goby.apps.zeromq.protobuf.CoronerConfig.report_file)
790  GOOGLE_DCHECK(GetArena() != nullptr);
791  _has_bits_[0] &= ~0x00000001u;
792  return report_file_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
793  GetArena());
794 }
795 inline void CoronerConfig::unsafe_arena_set_allocated_report_file(
796  std::string* report_file) {
797  GOOGLE_DCHECK(GetArena() != nullptr);
798  if (report_file != nullptr) {
799  _has_bits_[0] |= 0x00000001u;
800  } else {
801  _has_bits_[0] &= ~0x00000001u;
802  }
803  report_file_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
804  report_file, GetArena());
805  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.zeromq.protobuf.CoronerConfig.report_file)
806 }
807 
808 #ifdef __GNUC__
809  #pragma GCC diagnostic pop
810 #endif // __GNUC__
811 
812 // @@protoc_insertion_point(namespace_scope)
813 
814 } // namespace protobuf
815 } // namespace zeromq
816 } // namespace apps
817 } // namespace goby
818 
819 // @@protoc_insertion_point(global_scope)
820 
821 #include <google/protobuf/port_undef.inc>
822 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fcoroner_5fconfig_2eproto
void set_expected_name(int index, const std::string &value)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< std::string > * mutable_expected_name()
void add_expected_name(std::string &&value)
friend void swap(CoronerConfig &a, CoronerConfig &b)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
CoronerConfig(CoronerConfig &&from) noexcept
boost::units::quantity< response_timeout_unit, float > response_timeout_with_units() const
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< std::string > & expected_name() const
void set_response_timeout_with_units(Quantity value_w_units)
void set_allocated_report_file(std::string *report_file)
void add_expected_name(const char *value, size_t size)
void set_report_file(std::string &&value)
void set_expected_name(int index, const char *value, size_t size)
const std::string & report_file() const
CoronerConfig & operator=(CoronerConfig &&from) noexcept
boost::units::unit< response_timeout_dimension, boost::units::si::system > response_timeout_unit
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void set_expected_name(int index, const char *value)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
boost::units::unit< request_interval_dimension, boost::units::si::system > request_interval_unit
static const CoronerConfig & default_instance()
boost::units::quantity< request_interval_unit, float > request_interval_with_units() const
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
void MergeFrom(const CoronerConfig &from)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
CoronerConfig(const CoronerConfig &from)
void CopyFrom(const CoronerConfig &from)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void add_expected_name(const std::string &value)
void set_expected_name(int index, std::string &&value)
const std::string & expected_name(int index) const
boost::units::derived_dimension< boost::units::time_base_dimension, 1 >::type request_interval_dimension
CoronerConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void set_report_file(const std::string &value)
static const CoronerConfig * internal_default_instance()
CoronerConfig & operator=(const CoronerConfig &from)
void set_report_file(const char *value, size_t size)
CoronerConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
std::string * mutable_expected_name(int index)
boost::units::derived_dimension< boost::units::time_base_dimension, 1 >::type response_timeout_dimension
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fzeromq_2fprotobuf_2fcoroner_5fconfig_2eproto
@ value
the parser finished reading a JSON value
CoronerConfigDefaultTypeInternal _CoronerConfig_default_instance_
AppConfigDefaultTypeInternal _AppConfig_default_instance_
boost::units::make_system< boost::units::angle::revolution_base_unit, boost::units::metric::minute_base_unit >::type system
Definition: system.hpp:45
InterProcessPortalConfigDefaultTypeInternal _InterProcessPortalConfig_default_instance_
The global namespace for the Goby project.
std::uint32_t uint32
PROTOBUF_EXPORT const std::string & GetEmptyStringAlreadyInited()
Definition: message_lite.h:154
type
Generic JSON types used in JWTs.
Definition: jwt.h:2072
#define ByteSizeLong
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]