Goby3 3.2.3
2025.05.13
Loading...
Searching...
No Matches
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 < 3021000
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 3021012 < 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>
25#include <google/protobuf/arenastring.h>
26#include <google/protobuf/generated_message_util.h>
27#include <google/protobuf/metadata_lite.h>
28#include <google/protobuf/generated_message_reflection.h>
30#include <google/protobuf/repeated_field.h> // IWYU pragma: export
31#include <google/protobuf/extension_set.h> // IWYU pragma: export
32#include <google/protobuf/unknown_field_set.h>
34#include <boost/units/quantity.hpp>
35#include <boost/units/absolute.hpp>
36#include <boost/units/dimensionless_type.hpp>
37#include <boost/units/make_scaled_unit.hpp>
38// @@protoc_insertion_point(includes)
39#include <google/protobuf/port_def.inc>
40#define PROTOBUF_INTERNAL_EXPORT_goby_2fmiddleware_2fprotobuf_2ftransporter_5fconfig_2eproto
41PROTOBUF_NAMESPACE_OPEN
42namespace internal {
43class AnyMetadata;
44} // namespace internal
45PROTOBUF_NAMESPACE_CLOSE
46
47// Internal implementation detail -- do not use these members.
51extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmiddleware_2fprotobuf_2ftransporter_5fconfig_2eproto;
52namespace goby {
53namespace middleware {
54namespace protobuf {
55class TransporterConfig;
56struct TransporterConfigDefaultTypeInternal;
57extern TransporterConfigDefaultTypeInternal _TransporterConfig_default_instance_;
58} // namespace protobuf
59} // namespace middleware
60} // namespace goby
61PROTOBUF_NAMESPACE_OPEN
62template<> ::goby::middleware::protobuf::TransporterConfig* Arena::CreateMaybeMessage<::goby::middleware::protobuf::TransporterConfig>(Arena*);
63PROTOBUF_NAMESPACE_CLOSE
64namespace goby {
65namespace middleware {
66namespace protobuf {
67
68// ===================================================================
69
70class TransporterConfig final :
71 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.middleware.protobuf.TransporterConfig) */ {
72 public:
73 inline TransporterConfig() : TransporterConfig(nullptr) {}
75 explicit PROTOBUF_CONSTEXPR TransporterConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
76
80 *this = ::std::move(from);
81 }
82
84 CopyFrom(from);
85 return *this;
86 }
88 if (this == &from) return *this;
89 if (GetOwningArena() == from.GetOwningArena()
90 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
91 && GetOwningArena() != nullptr
92 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
93 ) {
94 InternalSwap(&from);
95 } else {
96 CopyFrom(from);
97 }
98 return *this;
99 }
100
101 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
102 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
103 }
104 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
105 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
106 }
107
108 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
109 return GetDescriptor();
110 }
111 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
112 return default_instance().GetMetadata().descriptor;
113 }
114 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
115 return default_instance().GetMetadata().reflection;
116 }
119 }
121 return reinterpret_cast<const TransporterConfig*>(
123 }
124 static constexpr int kIndexInFileMessages =
125 0;
126
128 a.Swap(&b);
129 }
130 inline void Swap(TransporterConfig* other) {
131 if (other == this) return;
132 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
133 if (GetOwningArena() != nullptr &&
134 GetOwningArena() == other->GetOwningArena()) {
135 #else // PROTOBUF_FORCE_COPY_IN_SWAP
136 if (GetOwningArena() == other->GetOwningArena()) {
137 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
138 InternalSwap(other);
139 } else {
140 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
141 }
142 }
144 if (other == this) return;
145 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
146 InternalSwap(other);
147 }
148
149 // implements Message ----------------------------------------------
150
151 TransporterConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
152 return CreateMaybeMessage<TransporterConfig>(arena);
153 }
154 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
155 void CopyFrom(const TransporterConfig& from);
156 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
157 void MergeFrom( const TransporterConfig& from) {
158 TransporterConfig::MergeImpl(*this, from);
159 }
160 private:
161 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
162 public:
163 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
164 bool IsInitialized() const final;
165
166 size_t ByteSizeLong() const final;
167 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
169 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
170 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
171
172 private:
173 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
174 void SharedDtor();
175 void SetCachedSize(int size) const final;
176 void InternalSwap(TransporterConfig* other);
177
178 private:
179 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
180 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
181 return "goby.middleware.protobuf.TransporterConfig";
182 }
183 protected:
184 explicit TransporterConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena,
185 bool is_message_owned = false);
186 public:
187
188 static const ClassData _class_data_;
189 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
190
191 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
192
193 // nested types ----------------------------------------------------
194
195 // accessors -------------------------------------------------------
196
197 enum : int {
200 };
201 // optional .goby.middleware.intervehicle.protobuf.TransporterConfig intervehicle = 10;
202 bool has_intervehicle() const;
203 private:
204 bool _internal_has_intervehicle() const;
205 public:
207 const ::goby::middleware::intervehicle::protobuf::TransporterConfig& intervehicle() const;
208 PROTOBUF_NODISCARD ::goby::middleware::intervehicle::protobuf::TransporterConfig* release_intervehicle();
211 private:
212 const ::goby::middleware::intervehicle::protobuf::TransporterConfig& _internal_intervehicle() const;
214 public:
218
219 // optional bool echo = 1 [default = false];
220 bool has_echo() const;
221 private:
222 bool _internal_has_echo() const;
223 public:
224 void clear_echo();
225 bool echo() const;
226 void set_echo(bool value);
227 private:
228 bool _internal_echo() const;
229 void _internal_set_echo(bool value);
230 public:
231
232 // @@protoc_insertion_point(class_scope:goby.middleware.protobuf.TransporterConfig)
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 struct Impl_ {
240 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
241 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
243 bool echo_;
244 };
245 union { Impl_ _impl_; };
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];
260inline bool TransporterConfig::_internal_has_echo() const {
261 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
262 return value;
263}
264inline bool TransporterConfig::has_echo() const {
265 return _internal_has_echo();
266}
268 _impl_.echo_ = false;
269 _impl_._has_bits_[0] &= ~0x00000002u;
270}
271inline bool TransporterConfig::_internal_echo() const {
272 return _impl_.echo_;
273}
274inline bool TransporterConfig::echo() const {
275 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.TransporterConfig.echo)
276 return _internal_echo();
277}
278inline void TransporterConfig::_internal_set_echo(bool value) {
279 _impl_._has_bits_[0] |= 0x00000002u;
280 _impl_.echo_ = value;
281}
282inline 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;
288inline bool TransporterConfig::_internal_has_intervehicle() const {
289 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
290 PROTOBUF_ASSUME(!value || _impl_.intervehicle_ != nullptr);
291 return value;
292}
294 return _internal_has_intervehicle();
295}
296inline const ::goby::middleware::intervehicle::protobuf::TransporterConfig& TransporterConfig::_internal_intervehicle() const {
297 const ::goby::middleware::intervehicle::protobuf::TransporterConfig* p = _impl_.intervehicle_;
298 return p != nullptr ? *p : reinterpret_cast<const ::goby::middleware::intervehicle::protobuf::TransporterConfig&>(
300}
301inline 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}
307 if (GetArenaForAllocation() == nullptr) {
308 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.intervehicle_);
309 }
310 _impl_.intervehicle_ = intervehicle;
311 if (intervehicle) {
312 _impl_._has_bits_[0] |= 0x00000001u;
313 } else {
314 _impl_._has_bits_[0] &= ~0x00000001u;
315 }
316 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.middleware.protobuf.TransporterConfig.intervehicle)
317}
318inline ::goby::middleware::intervehicle::protobuf::TransporterConfig* TransporterConfig::release_intervehicle() {
319 _impl_._has_bits_[0] &= ~0x00000001u;
321 _impl_.intervehicle_ = nullptr;
322#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
323 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
324 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
325 if (GetArenaForAllocation() == nullptr) { delete old; }
326#else // PROTOBUF_FORCE_COPY_IN_RELEASE
327 if (GetArenaForAllocation() != nullptr) {
328 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
329 }
330#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
331 return temp;
332}
333inline ::goby::middleware::intervehicle::protobuf::TransporterConfig* TransporterConfig::unsafe_arena_release_intervehicle() {
334 // @@protoc_insertion_point(field_release:goby.middleware.protobuf.TransporterConfig.intervehicle)
335 _impl_._has_bits_[0] &= ~0x00000001u;
337 _impl_.intervehicle_ = nullptr;
338 return temp;
339}
340inline ::goby::middleware::intervehicle::protobuf::TransporterConfig* TransporterConfig::_internal_mutable_intervehicle() {
341 _impl_._has_bits_[0] |= 0x00000001u;
342 if (_impl_.intervehicle_ == nullptr) {
344 _impl_.intervehicle_ = p;
345 }
346 return _impl_.intervehicle_;
347}
348inline ::goby::middleware::intervehicle::protobuf::TransporterConfig* TransporterConfig::mutable_intervehicle() {
349 ::goby::middleware::intervehicle::protobuf::TransporterConfig* _msg = _internal_mutable_intervehicle();
350 // @@protoc_insertion_point(field_mutable:goby.middleware.protobuf.TransporterConfig.intervehicle)
351 return _msg;
352}
354 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
355 if (message_arena == nullptr) {
356 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.intervehicle_);
357 }
358 if (intervehicle) {
359 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
360 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
361 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(intervehicle));
362 if (message_arena != submessage_arena) {
363 intervehicle = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
364 message_arena, intervehicle, submessage_arena);
365 }
366 _impl_._has_bits_[0] |= 0x00000001u;
367 } else {
368 _impl_._has_bits_[0] &= ~0x00000001u;
369 }
370 _impl_.intervehicle_ = intervehicle;
371 // @@protoc_insertion_point(field_set_allocated:goby.middleware.protobuf.TransporterConfig.intervehicle)
372}
373
374#ifdef __GNUC__
375 #pragma GCC diagnostic pop
376#endif // __GNUC__
377
378// @@protoc_insertion_point(namespace_scope)
379
380} // namespace protobuf
381} // namespace middleware
382} // namespace goby
383
384// @@protoc_insertion_point(global_scope)
385
386#include <google/protobuf/port_undef.inc>
387#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2ftransporter_5fconfig_2eproto
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void CopyFrom(const TransporterConfig &from)
PROTOBUF_NODISCARD::goby::middleware::intervehicle::protobuf::TransporterConfig * release_intervehicle()
static const TransporterConfig & default_instance()
TransporterConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
PROTOBUF_CONSTEXPR TransporterConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
void unsafe_arena_set_allocated_intervehicle(::goby::middleware::intervehicle::protobuf::TransporterConfig *intervehicle)
friend void swap(TransporterConfig &a, TransporterConfig &b)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
void set_allocated_intervehicle(::goby::middleware::intervehicle::protobuf::TransporterConfig *intervehicle)
::goby::middleware::intervehicle::protobuf::TransporterConfig * unsafe_arena_release_intervehicle()
TransporterConfig & operator=(const TransporterConfig &from)
void MergeFrom(const TransporterConfig &from)
TransporterConfig(const TransporterConfig &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
TransporterConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
TransporterConfig & operator=(TransporterConfig &&from) noexcept
TransporterConfig(TransporterConfig &&from) noexcept
const ::goby::middleware::intervehicle::protobuf::TransporterConfig & intervehicle() const
::goby::middleware::intervehicle::protobuf::TransporterConfig * mutable_intervehicle()
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
static const TransporterConfig * internal_default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
PROTOBUF_NAMESPACE_OPEN ::goby::middleware::intervehicle::protobuf::TransporterConfig * Arena::CreateMaybeMessage<::goby::middleware::intervehicle::protobuf::TransporterConfig >(Arena *)
TransporterConfigDefaultTypeInternal _TransporterConfig_default_instance_
TransporterConfigDefaultTypeInternal _TransporterConfig_default_instance_
The global namespace for the Goby project.
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmiddleware_2fprotobuf_2ftransporter_5fconfig_2eproto