Goby3 3.1.5a
2024.05.23
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>
33#include "dccl/option_extensions.pb.h"
35#include <boost/units/quantity.hpp>
36#include <boost/units/absolute.hpp>
37#include <boost/units/dimensionless_type.hpp>
38#include <boost/units/make_scaled_unit.hpp>
39// @@protoc_insertion_point(includes)
40#include <google/protobuf/port_def.inc>
41#define PROTOBUF_INTERNAL_EXPORT_goby_2fmiddleware_2fprotobuf_2ftransporter_5fconfig_2eproto
42PROTOBUF_NAMESPACE_OPEN
43namespace internal {
44class AnyMetadata;
45} // namespace internal
46PROTOBUF_NAMESPACE_CLOSE
47
48// Internal implementation detail -- do not use these members.
52extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmiddleware_2fprotobuf_2ftransporter_5fconfig_2eproto;
53namespace goby {
54namespace middleware {
55namespace protobuf {
56class TransporterConfig;
57struct TransporterConfigDefaultTypeInternal;
58extern TransporterConfigDefaultTypeInternal _TransporterConfig_default_instance_;
59} // namespace protobuf
60} // namespace middleware
61} // namespace goby
62PROTOBUF_NAMESPACE_OPEN
63template<> ::goby::middleware::protobuf::TransporterConfig* Arena::CreateMaybeMessage<::goby::middleware::protobuf::TransporterConfig>(Arena*);
64PROTOBUF_NAMESPACE_CLOSE
65namespace goby {
66namespace middleware {
67namespace protobuf {
68
69// ===================================================================
70
71class TransporterConfig final :
72 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.middleware.protobuf.TransporterConfig) */ {
73 public:
74 inline TransporterConfig() : TransporterConfig(nullptr) {}
76 explicit PROTOBUF_CONSTEXPR TransporterConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
77
81 *this = ::std::move(from);
82 }
83
85 CopyFrom(from);
86 return *this;
87 }
89 if (this == &from) return *this;
90 if (GetOwningArena() == from.GetOwningArena()
91 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
92 && GetOwningArena() != nullptr
93 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
94 ) {
95 InternalSwap(&from);
96 } else {
97 CopyFrom(from);
98 }
99 return *this;
100 }
101
102 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
103 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
104 }
105 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
106 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
107 }
108
109 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
110 return GetDescriptor();
111 }
112 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
113 return default_instance().GetMetadata().descriptor;
114 }
115 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
116 return default_instance().GetMetadata().reflection;
117 }
120 }
122 return reinterpret_cast<const TransporterConfig*>(
124 }
125 static constexpr int kIndexInFileMessages =
126 0;
127
129 a.Swap(&b);
130 }
131 inline void Swap(TransporterConfig* other) {
132 if (other == this) return;
133 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
134 if (GetOwningArena() != nullptr &&
135 GetOwningArena() == other->GetOwningArena()) {
136 #else // PROTOBUF_FORCE_COPY_IN_SWAP
137 if (GetOwningArena() == other->GetOwningArena()) {
138 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
139 InternalSwap(other);
140 } else {
141 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
142 }
143 }
145 if (other == this) return;
146 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
147 InternalSwap(other);
148 }
149
150 // implements Message ----------------------------------------------
151
152 TransporterConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
153 return CreateMaybeMessage<TransporterConfig>(arena);
154 }
155 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
156 void CopyFrom(const TransporterConfig& from);
157 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
158 void MergeFrom( const TransporterConfig& from) {
159 TransporterConfig::MergeImpl(*this, from);
160 }
161 private:
162 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
163 public:
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;
170 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
171 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
172
173 private:
174 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
175 void SharedDtor();
176 void SetCachedSize(int size) const final;
177 void InternalSwap(TransporterConfig* other);
178
179 private:
180 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
181 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
182 return "goby.middleware.protobuf.TransporterConfig";
183 }
184 protected:
185 explicit TransporterConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena,
186 bool is_message_owned = false);
187 public:
188
189 static const ClassData _class_data_;
190 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
191
192 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
193
194 // nested types ----------------------------------------------------
195
196 // accessors -------------------------------------------------------
197
198 enum : int {
201 };
202 // optional .goby.middleware.intervehicle.protobuf.TransporterConfig intervehicle = 10;
203 bool has_intervehicle() const;
204 private:
205 bool _internal_has_intervehicle() const;
206 public:
208 const ::goby::middleware::intervehicle::protobuf::TransporterConfig& intervehicle() const;
209 PROTOBUF_NODISCARD ::goby::middleware::intervehicle::protobuf::TransporterConfig* release_intervehicle();
212 private:
213 const ::goby::middleware::intervehicle::protobuf::TransporterConfig& _internal_intervehicle() const;
215 public:
219
220 // optional bool echo = 1 [default = false];
221 bool has_echo() const;
222 private:
223 bool _internal_has_echo() const;
224 public:
225 void clear_echo();
226 bool echo() const;
227 void set_echo(bool value);
228 private:
229 bool _internal_echo() const;
230 void _internal_set_echo(bool value);
231 public:
232
233 // @@protoc_insertion_point(class_scope:goby.middleware.protobuf.TransporterConfig)
234 private:
235 class _Internal;
236
237 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
238 typedef void InternalArenaConstructable_;
239 typedef void DestructorSkippable_;
240 struct Impl_ {
241 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
242 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
244 bool echo_;
245 };
246 union { Impl_ _impl_; };
247 friend struct ::TableStruct_goby_2fmiddleware_2fprotobuf_2ftransporter_5fconfig_2eproto;
248};
249// ===================================================================
250
251
252// ===================================================================
253
254#ifdef __GNUC__
255 #pragma GCC diagnostic push
256 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
257#endif // __GNUC__
258// TransporterConfig
259
260// optional bool echo = 1 [default = false];
261inline bool TransporterConfig::_internal_has_echo() const {
262 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
263 return value;
264}
265inline bool TransporterConfig::has_echo() const {
266 return _internal_has_echo();
267}
269 _impl_.echo_ = false;
270 _impl_._has_bits_[0] &= ~0x00000002u;
271}
272inline bool TransporterConfig::_internal_echo() const {
273 return _impl_.echo_;
274}
275inline bool TransporterConfig::echo() const {
276 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.TransporterConfig.echo)
277 return _internal_echo();
278}
279inline void TransporterConfig::_internal_set_echo(bool value) {
280 _impl_._has_bits_[0] |= 0x00000002u;
281 _impl_.echo_ = value;
282}
283inline void TransporterConfig::set_echo(bool value) {
284 _internal_set_echo(value);
285 // @@protoc_insertion_point(field_set:goby.middleware.protobuf.TransporterConfig.echo)
286}
287
288// optional .goby.middleware.intervehicle.protobuf.TransporterConfig intervehicle = 10;
289inline bool TransporterConfig::_internal_has_intervehicle() const {
290 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
291 PROTOBUF_ASSUME(!value || _impl_.intervehicle_ != nullptr);
292 return value;
293}
295 return _internal_has_intervehicle();
296}
297inline const ::goby::middleware::intervehicle::protobuf::TransporterConfig& TransporterConfig::_internal_intervehicle() const {
298 const ::goby::middleware::intervehicle::protobuf::TransporterConfig* p = _impl_.intervehicle_;
299 return p != nullptr ? *p : reinterpret_cast<const ::goby::middleware::intervehicle::protobuf::TransporterConfig&>(
301}
302inline const ::goby::middleware::intervehicle::protobuf::TransporterConfig& TransporterConfig::intervehicle() const {
303 // @@protoc_insertion_point(field_get:goby.middleware.protobuf.TransporterConfig.intervehicle)
304 return _internal_intervehicle();
305}
308 if (GetArenaForAllocation() == nullptr) {
309 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.intervehicle_);
310 }
311 _impl_.intervehicle_ = intervehicle;
312 if (intervehicle) {
313 _impl_._has_bits_[0] |= 0x00000001u;
314 } else {
315 _impl_._has_bits_[0] &= ~0x00000001u;
316 }
317 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.middleware.protobuf.TransporterConfig.intervehicle)
318}
319inline ::goby::middleware::intervehicle::protobuf::TransporterConfig* TransporterConfig::release_intervehicle() {
320 _impl_._has_bits_[0] &= ~0x00000001u;
322 _impl_.intervehicle_ = nullptr;
323#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
324 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
325 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
326 if (GetArenaForAllocation() == nullptr) { delete old; }
327#else // PROTOBUF_FORCE_COPY_IN_RELEASE
328 if (GetArenaForAllocation() != nullptr) {
329 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
330 }
331#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
332 return temp;
333}
334inline ::goby::middleware::intervehicle::protobuf::TransporterConfig* TransporterConfig::unsafe_arena_release_intervehicle() {
335 // @@protoc_insertion_point(field_release:goby.middleware.protobuf.TransporterConfig.intervehicle)
336 _impl_._has_bits_[0] &= ~0x00000001u;
338 _impl_.intervehicle_ = nullptr;
339 return temp;
340}
341inline ::goby::middleware::intervehicle::protobuf::TransporterConfig* TransporterConfig::_internal_mutable_intervehicle() {
342 _impl_._has_bits_[0] |= 0x00000001u;
343 if (_impl_.intervehicle_ == nullptr) {
345 _impl_.intervehicle_ = p;
346 }
347 return _impl_.intervehicle_;
348}
349inline ::goby::middleware::intervehicle::protobuf::TransporterConfig* TransporterConfig::mutable_intervehicle() {
350 ::goby::middleware::intervehicle::protobuf::TransporterConfig* _msg = _internal_mutable_intervehicle();
351 // @@protoc_insertion_point(field_mutable:goby.middleware.protobuf.TransporterConfig.intervehicle)
352 return _msg;
353}
355 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
356 if (message_arena == nullptr) {
357 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.intervehicle_);
358 }
359 if (intervehicle) {
360 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
361 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
362 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(intervehicle));
363 if (message_arena != submessage_arena) {
364 intervehicle = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
365 message_arena, intervehicle, submessage_arena);
366 }
367 _impl_._has_bits_[0] |= 0x00000001u;
368 } else {
369 _impl_._has_bits_[0] &= ~0x00000001u;
370 }
371 _impl_.intervehicle_ = intervehicle;
372 // @@protoc_insertion_point(field_set_allocated:goby.middleware.protobuf.TransporterConfig.intervehicle)
373}
374
375#ifdef __GNUC__
376 #pragma GCC diagnostic pop
377#endif // __GNUC__
378
379// @@protoc_insertion_point(namespace_scope)
380
381} // namespace protobuf
382} // namespace middleware
383} // namespace goby
384
385// @@protoc_insertion_point(global_scope)
386
387#include <google/protobuf/port_undef.inc>
388#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