Goby3  3.1.5
2024.05.14
transporter_config.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/middleware/protobuf/transporter_config.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2ftransporter_5fconfig_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2ftransporter_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>
35 #include "dccl/option_extensions.pb.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>
41 // @@protoc_insertion_point(includes)
42 #include <google/protobuf/port_def.inc>
43 #define PROTOBUF_INTERNAL_EXPORT_goby_2fmiddleware_2fprotobuf_2ftransporter_5fconfig_2eproto
44 PROTOBUF_NAMESPACE_OPEN
45 namespace internal {
46 class AnyMetadata;
47 } // namespace internal
48 PROTOBUF_NAMESPACE_CLOSE
49 
50 // Internal implementation detail -- do not use these members.
52  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
53  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
54  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
55  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
56  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
57  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
58  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
59  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
61 };
62 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmiddleware_2fprotobuf_2ftransporter_5fconfig_2eproto;
63 namespace goby {
64 namespace middleware {
65 namespace protobuf {
66 class TransporterConfig;
67 class TransporterConfigDefaultTypeInternal;
68 extern TransporterConfigDefaultTypeInternal _TransporterConfig_default_instance_;
69 } // namespace protobuf
70 } // namespace middleware
71 } // namespace goby
72 PROTOBUF_NAMESPACE_OPEN
73 template<> ::goby::middleware::protobuf::TransporterConfig* Arena::CreateMaybeMessage<::goby::middleware::protobuf::TransporterConfig>(Arena*);
74 PROTOBUF_NAMESPACE_CLOSE
75 namespace goby {
76 namespace middleware {
77 namespace protobuf {
78 
79 // ===================================================================
80 
81 class TransporterConfig PROTOBUF_FINAL :
82  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.middleware.protobuf.TransporterConfig) */ {
83  public:
84  inline TransporterConfig() : TransporterConfig(nullptr) {};
85  virtual ~TransporterConfig();
86 
87  TransporterConfig(const TransporterConfig& from);
88  TransporterConfig(TransporterConfig&& from) noexcept
89  : TransporterConfig() {
90  *this = ::std::move(from);
91  }
92 
93  inline TransporterConfig& operator=(const TransporterConfig& from) {
94  CopyFrom(from);
95  return *this;
96  }
97  inline TransporterConfig& operator=(TransporterConfig&& from) noexcept {
98  if (GetArena() == from.GetArena()) {
99  if (this != &from) InternalSwap(&from);
100  } else {
101  CopyFrom(from);
102  }
103  return *this;
104  }
105 
106  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
107  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
108  }
109  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
110  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
111  }
112 
113  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
114  return GetDescriptor();
115  }
116  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
117  return GetMetadataStatic().descriptor;
118  }
119  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
120  return GetMetadataStatic().reflection;
121  }
122  static const TransporterConfig& default_instance();
123 
124  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
125  static inline const TransporterConfig* internal_default_instance() {
126  return reinterpret_cast<const TransporterConfig*>(
128  }
129  static constexpr int kIndexInFileMessages =
130  0;
131 
132  friend void swap(TransporterConfig& a, TransporterConfig& b) {
133  a.Swap(&b);
134  }
135  inline void Swap(TransporterConfig* other) {
136  if (other == this) return;
137  if (GetArena() == other->GetArena()) {
138  InternalSwap(other);
139  } else {
140  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
141  }
142  }
143  void UnsafeArenaSwap(TransporterConfig* other) {
144  if (other == this) return;
145  GOOGLE_DCHECK(GetArena() == other->GetArena());
146  InternalSwap(other);
147  }
148 
149  // implements Message ----------------------------------------------
150 
151  inline TransporterConfig* New() const final {
152  return CreateMaybeMessage<TransporterConfig>(nullptr);
153  }
154 
155  TransporterConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
156  return CreateMaybeMessage<TransporterConfig>(arena);
157  }
158  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
159  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
160  void CopyFrom(const TransporterConfig& from);
161  void MergeFrom(const TransporterConfig& from);
162  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
163  bool IsInitialized() const final;
164 
165  size_t ByteSizeLong() const final;
166  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
167  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
168  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
169  int GetCachedSize() const final { return _cached_size_.Get(); }
170 
171  private:
172  inline void SharedCtor();
173  inline void SharedDtor();
174  void SetCachedSize(int size) const final;
175  void InternalSwap(TransporterConfig* other);
176  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
177  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
178  return "goby.middleware.protobuf.TransporterConfig";
179  }
180  protected:
181  explicit TransporterConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena);
182  private:
183  static void ArenaDtor(void* object);
184  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
185  public:
186 
187  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
188  private:
189  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
190  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_goby_2fmiddleware_2fprotobuf_2ftransporter_5fconfig_2eproto);
192  }
193 
194  public:
195 
196  // nested types ----------------------------------------------------
197 
198  // accessors -------------------------------------------------------
199 
200  enum : int {
201  kIntervehicleFieldNumber = 10,
202  kEchoFieldNumber = 1,
203  };
204  // optional .goby.middleware.intervehicle.protobuf.TransporterConfig intervehicle = 10;
205  bool has_intervehicle() const;
206  private:
207  bool _internal_has_intervehicle() const;
208  public:
210  const ::goby::middleware::intervehicle::protobuf::TransporterConfig& intervehicle() const;
211  ::goby::middleware::intervehicle::protobuf::TransporterConfig* release_intervehicle();
212  ::goby::middleware::intervehicle::protobuf::TransporterConfig* mutable_intervehicle();
213  void set_allocated_intervehicle(::goby::middleware::intervehicle::protobuf::TransporterConfig* intervehicle);
214  private:
215  const ::goby::middleware::intervehicle::protobuf::TransporterConfig& _internal_intervehicle() const;
216  ::goby::middleware::intervehicle::protobuf::TransporterConfig* _internal_mutable_intervehicle();
217  public:
219  ::goby::middleware::intervehicle::protobuf::TransporterConfig* intervehicle);
220  ::goby::middleware::intervehicle::protobuf::TransporterConfig* unsafe_arena_release_intervehicle();
221 
222  // optional bool echo = 1 [default = false];
223  bool has_echo() const;
224  private:
225  bool _internal_has_echo() const;
226  public:
227  void clear_echo();
228  bool echo() const;
229  void set_echo(bool value);
230  private:
231  bool _internal_echo() const;
232  void _internal_set_echo(bool value);
233  public:
234 
235  // @@protoc_insertion_point(class_scope:goby.middleware.protobuf.TransporterConfig)
236  private:
237  class _Internal;
238 
239  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
240  typedef void InternalArenaConstructable_;
241  typedef void DestructorSkippable_;
242  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
243  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
244  ::goby::middleware::intervehicle::protobuf::TransporterConfig* intervehicle_;
245  bool echo_;
246  friend struct ::TableStruct_goby_2fmiddleware_2fprotobuf_2ftransporter_5fconfig_2eproto;
247 };
248 // ===================================================================
249 
250 
251 // ===================================================================
252 
253 #ifdef __GNUC__
254  #pragma GCC diagnostic push
255  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
256 #endif // __GNUC__
257 // TransporterConfig
258 
259 // optional bool echo = 1 [default = false];
260 inline bool TransporterConfig::_internal_has_echo() const {
261  bool value = (_has_bits_[0] & 0x00000002u) != 0;
262  return value;
263 }
264 inline bool TransporterConfig::has_echo() const {
265  return _internal_has_echo();
266 }
267 inline void TransporterConfig::clear_echo() {
268  echo_ = false;
269  _has_bits_[0] &= ~0x00000002u;
270 }
271 inline bool TransporterConfig::_internal_echo() const {
272  return echo_;
273 }
274 inline bool TransporterConfig::echo() const {
275  // @@protoc_insertion_point(field_get:goby.middleware.protobuf.TransporterConfig.echo)
276  return _internal_echo();
277 }
278 inline void TransporterConfig::_internal_set_echo(bool value) {
279  _has_bits_[0] |= 0x00000002u;
280  echo_ = value;
281 }
282 inline void TransporterConfig::set_echo(bool value) {
283  _internal_set_echo(value);
284  // @@protoc_insertion_point(field_set:goby.middleware.protobuf.TransporterConfig.echo)
285 }
286 
287 // optional .goby.middleware.intervehicle.protobuf.TransporterConfig intervehicle = 10;
288 inline bool TransporterConfig::_internal_has_intervehicle() const {
289  bool value = (_has_bits_[0] & 0x00000001u) != 0;
290  PROTOBUF_ASSUME(!value || intervehicle_ != nullptr);
291  return value;
292 }
293 inline bool TransporterConfig::has_intervehicle() const {
294  return _internal_has_intervehicle();
295 }
296 inline const ::goby::middleware::intervehicle::protobuf::TransporterConfig& TransporterConfig::_internal_intervehicle() const {
297  const ::goby::middleware::intervehicle::protobuf::TransporterConfig* p = intervehicle_;
298  return p != nullptr ? *p : *reinterpret_cast<const ::goby::middleware::intervehicle::protobuf::TransporterConfig*>(
300 }
301 inline const ::goby::middleware::intervehicle::protobuf::TransporterConfig& TransporterConfig::intervehicle() const {
302  // @@protoc_insertion_point(field_get:goby.middleware.protobuf.TransporterConfig.intervehicle)
303  return _internal_intervehicle();
304 }
305 inline void TransporterConfig::unsafe_arena_set_allocated_intervehicle(
306  ::goby::middleware::intervehicle::protobuf::TransporterConfig* intervehicle) {
307  if (GetArena() == nullptr) {
308  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(intervehicle_);
309  }
310  intervehicle_ = intervehicle;
311  if (intervehicle) {
312  _has_bits_[0] |= 0x00000001u;
313  } else {
314  _has_bits_[0] &= ~0x00000001u;
315  }
316  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.middleware.protobuf.TransporterConfig.intervehicle)
317 }
318 inline ::goby::middleware::intervehicle::protobuf::TransporterConfig* TransporterConfig::release_intervehicle() {
319  auto temp = unsafe_arena_release_intervehicle();
320  if (GetArena() != nullptr) {
321  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
322  }
323  return temp;
324 }
325 inline ::goby::middleware::intervehicle::protobuf::TransporterConfig* TransporterConfig::unsafe_arena_release_intervehicle() {
326  // @@protoc_insertion_point(field_release:goby.middleware.protobuf.TransporterConfig.intervehicle)
327  _has_bits_[0] &= ~0x00000001u;
328  ::goby::middleware::intervehicle::protobuf::TransporterConfig* temp = intervehicle_;
329  intervehicle_ = nullptr;
330  return temp;
331 }
332 inline ::goby::middleware::intervehicle::protobuf::TransporterConfig* TransporterConfig::_internal_mutable_intervehicle() {
333  _has_bits_[0] |= 0x00000001u;
334  if (intervehicle_ == nullptr) {
335  auto* p = CreateMaybeMessage<::goby::middleware::intervehicle::protobuf::TransporterConfig>(GetArena());
336  intervehicle_ = p;
337  }
338  return intervehicle_;
339 }
340 inline ::goby::middleware::intervehicle::protobuf::TransporterConfig* TransporterConfig::mutable_intervehicle() {
341  // @@protoc_insertion_point(field_mutable:goby.middleware.protobuf.TransporterConfig.intervehicle)
342  return _internal_mutable_intervehicle();
343 }
344 inline void TransporterConfig::set_allocated_intervehicle(::goby::middleware::intervehicle::protobuf::TransporterConfig* intervehicle) {
345  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
346  if (message_arena == nullptr) {
347  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(intervehicle_);
348  }
349  if (intervehicle) {
350  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
351  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(intervehicle)->GetArena();
352  if (message_arena != submessage_arena) {
353  intervehicle = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
354  message_arena, intervehicle, submessage_arena);
355  }
356  _has_bits_[0] |= 0x00000001u;
357  } else {
358  _has_bits_[0] &= ~0x00000001u;
359  }
360  intervehicle_ = intervehicle;
361  // @@protoc_insertion_point(field_set_allocated:goby.middleware.protobuf.TransporterConfig.intervehicle)
362 }
363 
364 #ifdef __GNUC__
365  #pragma GCC diagnostic pop
366 #endif // __GNUC__
367 
368 // @@protoc_insertion_point(namespace_scope)
369 
370 } // namespace protobuf
371 } // namespace middleware
372 } // namespace goby
373 
374 // @@protoc_insertion_point(global_scope)
375 
376 #include <google/protobuf/port_undef.inc>
377 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2ftransporter_5fconfig_2eproto
::goby::middleware::intervehicle::protobuf::TransporterConfig * release_intervehicle()
TransporterConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
static const TransporterConfig * internal_default_instance()
TransporterConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
void CopyFrom(const TransporterConfig &from)
friend void swap(TransporterConfig &a, TransporterConfig &b)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
TransporterConfig & operator=(TransporterConfig &&from) noexcept
const ::goby::middleware::intervehicle::protobuf::TransporterConfig & intervehicle() const
TransporterConfig(TransporterConfig &&from) noexcept
::goby::middleware::intervehicle::protobuf::TransporterConfig * unsafe_arena_release_intervehicle()
::goby::middleware::intervehicle::protobuf::TransporterConfig * mutable_intervehicle()
void set_allocated_intervehicle(::goby::middleware::intervehicle::protobuf::TransporterConfig *intervehicle)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const TransporterConfig & default_instance()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
void MergeFrom(const TransporterConfig &from)
void UnsafeArenaSwap(TransporterConfig *other)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
void unsafe_arena_set_allocated_intervehicle(::goby::middleware::intervehicle::protobuf::TransporterConfig *intervehicle)
TransporterConfig & operator=(const TransporterConfig &from)
TransporterConfig(const TransporterConfig &from)
@ value
the parser finished reading a JSON value
TransporterConfigDefaultTypeInternal _TransporterConfig_default_instance_
The global namespace for the Goby project.
std::uint32_t uint32
#define ByteSizeLong
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmiddleware_2fprotobuf_2ftransporter_5fconfig_2eproto