Goby3  3.1.5
2024.05.14
abc_driver.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/acomms/protobuf/abc_driver.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fabc_5fdriver_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fabc_5fdriver_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>
36 #include <boost/units/quantity.hpp>
37 #include <boost/units/absolute.hpp>
38 #include <boost/units/dimensionless_type.hpp>
39 #include <boost/units/make_scaled_unit.hpp>
40 // @@protoc_insertion_point(includes)
41 #include <google/protobuf/port_def.inc>
42 #define PROTOBUF_INTERNAL_EXPORT_goby_2facomms_2fprotobuf_2fabc_5fdriver_2eproto
43 PROTOBUF_NAMESPACE_OPEN
44 namespace internal {
45 class AnyMetadata;
46 } // namespace internal
47 PROTOBUF_NAMESPACE_CLOSE
48 
49 // Internal implementation detail -- do not use these members.
51  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
52  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
53  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
54  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
55  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
56  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
57  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
58  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
60 };
61 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2fabc_5fdriver_2eproto;
62 namespace goby {
63 namespace acomms {
64 namespace abc {
65 namespace protobuf {
66 class Config;
67 class ConfigDefaultTypeInternal;
68 extern ConfigDefaultTypeInternal _Config_default_instance_;
69 } // namespace protobuf
70 } // namespace abc
71 } // namespace acomms
72 } // namespace goby
73 PROTOBUF_NAMESPACE_OPEN
74 template<> ::goby::acomms::abc::protobuf::Config* Arena::CreateMaybeMessage<::goby::acomms::abc::protobuf::Config>(Arena*);
75 PROTOBUF_NAMESPACE_CLOSE
76 namespace goby {
77 namespace acomms {
78 namespace abc {
79 namespace protobuf {
80 
81 // ===================================================================
82 
83 class Config PROTOBUF_FINAL :
84  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.acomms.abc.protobuf.Config) */ {
85  public:
86  inline Config() : Config(nullptr) {};
87  virtual ~Config();
88 
89  Config(const Config& from);
90  Config(Config&& from) noexcept
91  : Config() {
92  *this = ::std::move(from);
93  }
94 
95  inline Config& operator=(const Config& from) {
96  CopyFrom(from);
97  return *this;
98  }
99  inline Config& operator=(Config&& from) noexcept {
100  if (GetArena() == from.GetArena()) {
101  if (this != &from) InternalSwap(&from);
102  } else {
103  CopyFrom(from);
104  }
105  return *this;
106  }
107 
108  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
109  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
110  }
111  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
112  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
113  }
114 
115  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
116  return GetDescriptor();
117  }
118  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
119  return GetMetadataStatic().descriptor;
120  }
121  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
122  return GetMetadataStatic().reflection;
123  }
124  static const Config& default_instance();
125 
126  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
127  static inline const Config* internal_default_instance() {
128  return reinterpret_cast<const Config*>(
130  }
131  static constexpr int kIndexInFileMessages =
132  0;
133 
134  friend void swap(Config& a, Config& b) {
135  a.Swap(&b);
136  }
137  inline void Swap(Config* other) {
138  if (other == this) return;
139  if (GetArena() == other->GetArena()) {
140  InternalSwap(other);
141  } else {
142  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
143  }
144  }
145  void UnsafeArenaSwap(Config* other) {
146  if (other == this) return;
147  GOOGLE_DCHECK(GetArena() == other->GetArena());
148  InternalSwap(other);
149  }
150 
151  // implements Message ----------------------------------------------
152 
153  inline Config* New() const final {
154  return CreateMaybeMessage<Config>(nullptr);
155  }
156 
157  Config* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
158  return CreateMaybeMessage<Config>(arena);
159  }
160  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
161  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
162  void CopyFrom(const Config& from);
163  void MergeFrom(const Config& from);
164  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
165  bool IsInitialized() const final;
166 
167  size_t ByteSizeLong() const final;
168  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
169  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
170  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
171  int GetCachedSize() const final { return _cached_size_.Get(); }
172 
173  private:
174  inline void SharedCtor();
175  inline void SharedDtor();
176  void SetCachedSize(int size) const final;
177  void InternalSwap(Config* other);
178  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
179  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
180  return "goby.acomms.abc.protobuf.Config";
181  }
182  protected:
183  explicit Config(::PROTOBUF_NAMESPACE_ID::Arena* arena);
184  private:
185  static void ArenaDtor(void* object);
186  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
187  public:
188 
189  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
190  private:
191  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
192  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_goby_2facomms_2fprotobuf_2fabc_5fdriver_2eproto);
193  return ::descriptor_table_goby_2facomms_2fprotobuf_2fabc_5fdriver_2eproto.file_level_metadata[kIndexInFileMessages];
194  }
195 
196  public:
197 
198  // nested types ----------------------------------------------------
199 
200  // accessors -------------------------------------------------------
201 
202  enum : int {
203  kEnableBarFieldNumber = 2,
204  kEnableFooFieldNumber = 1,
205  };
206  // optional bool enable_bar = 2 [default = false];
207  bool has_enable_bar() const;
208  private:
209  bool _internal_has_enable_bar() const;
210  public:
212  bool enable_bar() const;
213  void set_enable_bar(bool value);
214  private:
215  bool _internal_enable_bar() const;
216  void _internal_set_enable_bar(bool value);
217  public:
218 
219  // optional bool enable_foo = 1 [default = true];
220  bool has_enable_foo() const;
221  private:
222  bool _internal_has_enable_foo() const;
223  public:
225  bool enable_foo() const;
226  void set_enable_foo(bool value);
227  private:
228  bool _internal_enable_foo() const;
229  void _internal_set_enable_foo(bool value);
230  public:
231 
232  // @@protoc_insertion_point(class_scope:goby.acomms.abc.protobuf.Config)
233  private:
234  class _Internal;
235 
236  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
237  typedef void InternalArenaConstructable_;
238  typedef void DestructorSkippable_;
239  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
240  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
241  bool enable_bar_;
242  bool enable_foo_;
243  friend struct ::TableStruct_goby_2facomms_2fprotobuf_2fabc_5fdriver_2eproto;
244 };
245 // ===================================================================
246 
247 static const int kConfigFieldNumber = 1201;
248 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
249  ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::goby::acomms::abc::protobuf::Config >, 11, false >
251 
252 // ===================================================================
253 
254 #ifdef __GNUC__
255  #pragma GCC diagnostic push
256  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
257 #endif // __GNUC__
258 // Config
259 
260 // optional bool enable_foo = 1 [default = true];
261 inline bool Config::_internal_has_enable_foo() const {
262  bool value = (_has_bits_[0] & 0x00000002u) != 0;
263  return value;
264 }
265 inline bool Config::has_enable_foo() const {
266  return _internal_has_enable_foo();
267 }
268 inline void Config::clear_enable_foo() {
269  enable_foo_ = true;
270  _has_bits_[0] &= ~0x00000002u;
271 }
272 inline bool Config::_internal_enable_foo() const {
273  return enable_foo_;
274 }
275 inline bool Config::enable_foo() const {
276  // @@protoc_insertion_point(field_get:goby.acomms.abc.protobuf.Config.enable_foo)
277  return _internal_enable_foo();
278 }
279 inline void Config::_internal_set_enable_foo(bool value) {
280  _has_bits_[0] |= 0x00000002u;
281  enable_foo_ = value;
282 }
283 inline void Config::set_enable_foo(bool value) {
284  _internal_set_enable_foo(value);
285  // @@protoc_insertion_point(field_set:goby.acomms.abc.protobuf.Config.enable_foo)
286 }
287 
288 // optional bool enable_bar = 2 [default = false];
289 inline bool Config::_internal_has_enable_bar() const {
290  bool value = (_has_bits_[0] & 0x00000001u) != 0;
291  return value;
292 }
293 inline bool Config::has_enable_bar() const {
294  return _internal_has_enable_bar();
295 }
296 inline void Config::clear_enable_bar() {
297  enable_bar_ = false;
298  _has_bits_[0] &= ~0x00000001u;
299 }
300 inline bool Config::_internal_enable_bar() const {
301  return enable_bar_;
302 }
303 inline bool Config::enable_bar() const {
304  // @@protoc_insertion_point(field_get:goby.acomms.abc.protobuf.Config.enable_bar)
305  return _internal_enable_bar();
306 }
307 inline void Config::_internal_set_enable_bar(bool value) {
308  _has_bits_[0] |= 0x00000001u;
309  enable_bar_ = value;
310 }
311 inline void Config::set_enable_bar(bool value) {
312  _internal_set_enable_bar(value);
313  // @@protoc_insertion_point(field_set:goby.acomms.abc.protobuf.Config.enable_bar)
314 }
315 
316 #ifdef __GNUC__
317  #pragma GCC diagnostic pop
318 #endif // __GNUC__
319 
320 // @@protoc_insertion_point(namespace_scope)
321 
322 } // namespace protobuf
323 } // namespace abc
324 } // namespace acomms
325 } // namespace goby
326 
327 // @@protoc_insertion_point(global_scope)
328 
329 #include <google/protobuf/port_undef.inc>
330 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fabc_5fdriver_2eproto
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2fabc_5fdriver_2eproto
Config(::PROTOBUF_NAMESPACE_ID::Arena *arena)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
Config * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Config & operator=(Config &&from) noexcept
Definition: abc_driver.pb.h:99
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
friend void swap(Config &a, Config &b)
static const Config * internal_default_instance()
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Config & operator=(const Config &from)
Definition: abc_driver.pb.h:95
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
@ value
the parser finished reading a JSON value
static const int kConfigFieldNumber
extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig, ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::goby::acomms::abc::protobuf::Config >, 11, false > config
ConfigDefaultTypeInternal _Config_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::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::internal::FieldMetadata field_metadata[]
Definition: abc_driver.pb.h:57
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
Definition: abc_driver.pb.h:58
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
Definition: abc_driver.pb.h:59