Goby3 3.7.0
2026.11.12
Loading...
Searching...
No Matches
tool.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: goby/apps/middleware/goby_tool/tool.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fapps_2fmiddleware_2fgoby_5ftool_2ftool_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2fapps_2fmiddleware_2fgoby_5ftool_2ftool_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/generated_enum_reflection.h>
33#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_2fapps_2fmiddleware_2fgoby_5ftool_2ftool_2eproto
43PROTOBUF_NAMESPACE_OPEN
44namespace internal {
45class AnyMetadata;
46} // namespace internal
47PROTOBUF_NAMESPACE_CLOSE
48
49// Internal implementation detail -- do not use these members.
53extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fapps_2fmiddleware_2fgoby_5ftool_2ftool_2eproto;
54namespace goby {
55namespace apps {
56namespace middleware {
57namespace protobuf {
58class GobyToolConfig;
59struct GobyToolConfigDefaultTypeInternal;
60extern GobyToolConfigDefaultTypeInternal _GobyToolConfig_default_instance_;
61} // namespace protobuf
62} // namespace middleware
63} // namespace apps
64} // namespace goby
65PROTOBUF_NAMESPACE_OPEN
66template<> ::goby::apps::middleware::protobuf::GobyToolConfig* Arena::CreateMaybeMessage<::goby::apps::middleware::protobuf::GobyToolConfig>(Arena*);
67PROTOBUF_NAMESPACE_CLOSE
68namespace goby {
69namespace apps {
70namespace middleware {
71namespace protobuf {
72
88
89const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* GobyToolConfig_Action_descriptor();
90template<typename T>
91inline const std::string& GobyToolConfig_Action_Name(T enum_t_value) {
92 static_assert(::std::is_same<T, GobyToolConfig_Action>::value ||
93 ::std::is_integral<T>::value,
94 "Incorrect type passed to function GobyToolConfig_Action_Name.");
95 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
96 GobyToolConfig_Action_descriptor(), enum_t_value);
97}
99 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, GobyToolConfig_Action* value) {
100 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<GobyToolConfig_Action>(
101 GobyToolConfig_Action_descriptor(), name, value);
102}
103// ===================================================================
104
105class GobyToolConfig final :
106 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.apps.middleware.protobuf.GobyToolConfig) */ {
107 public:
108 inline GobyToolConfig() : GobyToolConfig(nullptr) {}
109 ~GobyToolConfig() override;
110 explicit PROTOBUF_CONSTEXPR GobyToolConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
111
114 : GobyToolConfig() {
115 *this = ::std::move(from);
116 }
117
119 CopyFrom(from);
120 return *this;
121 }
122 inline GobyToolConfig& operator=(GobyToolConfig&& from) noexcept {
123 if (this == &from) return *this;
124 if (GetOwningArena() == from.GetOwningArena()
125 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
126 && GetOwningArena() != nullptr
127 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
128 ) {
129 InternalSwap(&from);
130 } else {
131 CopyFrom(from);
132 }
133 return *this;
134 }
135
136 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
137 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
138 }
139 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
140 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
141 }
142
143 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
144 return GetDescriptor();
145 }
146 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
147 return default_instance().GetMetadata().descriptor;
148 }
149 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
150 return default_instance().GetMetadata().reflection;
151 }
154 }
156 return reinterpret_cast<const GobyToolConfig*>(
158 }
159 static constexpr int kIndexInFileMessages =
160 0;
161
162 friend void swap(GobyToolConfig& a, GobyToolConfig& b) {
163 a.Swap(&b);
164 }
165 inline void Swap(GobyToolConfig* other) {
166 if (other == this) return;
167 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
168 if (GetOwningArena() != nullptr &&
169 GetOwningArena() == other->GetOwningArena()) {
170 #else // PROTOBUF_FORCE_COPY_IN_SWAP
171 if (GetOwningArena() == other->GetOwningArena()) {
172 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
173 InternalSwap(other);
174 } else {
175 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
176 }
177 }
179 if (other == this) return;
180 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
181 InternalSwap(other);
182 }
183
184 // implements Message ----------------------------------------------
185
186 GobyToolConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
187 return CreateMaybeMessage<GobyToolConfig>(arena);
188 }
189 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
190 void CopyFrom(const GobyToolConfig& from);
191 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
192 void MergeFrom( const GobyToolConfig& from) {
193 GobyToolConfig::MergeImpl(*this, from);
194 }
195 private:
196 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
197 public:
198 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
199 bool IsInitialized() const final;
200
201 size_t ByteSizeLong() const final;
202 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
204 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
205 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
206
207 private:
208 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
209 void SharedDtor();
210 void SetCachedSize(int size) const final;
211 void InternalSwap(GobyToolConfig* other);
212
213 private:
214 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
215 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
216 return "goby.apps.middleware.protobuf.GobyToolConfig";
217 }
218 protected:
219 explicit GobyToolConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena,
220 bool is_message_owned = false);
221 public:
222
223 static const ClassData _class_data_;
224 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
225
226 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
227
228 // nested types ----------------------------------------------------
229
231 static constexpr Action help =
233 static constexpr Action log =
235 static constexpr Action launch =
237 static constexpr Action test =
239 static constexpr Action interface =
241 static constexpr Action zeromq =
243 static constexpr Action udpm =
245 static constexpr Action zenoh =
247 static constexpr Action protobuf =
249 static inline bool Action_IsValid(int value) {
250 return GobyToolConfig_Action_IsValid(value);
251 }
252 static constexpr Action Action_MIN =
254 static constexpr Action Action_MAX =
256 static constexpr int Action_ARRAYSIZE =
258 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
262 template<typename T>
263 static inline const std::string& Action_Name(T enum_t_value) {
264 static_assert(::std::is_same<T, Action>::value ||
265 ::std::is_integral<T>::value,
266 "Incorrect type passed to function Action_Name.");
267 return GobyToolConfig_Action_Name(enum_t_value);
268 }
269 static inline bool Action_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
270 Action* value) {
271 return GobyToolConfig_Action_Parse(name, value);
272 }
273
274 // accessors -------------------------------------------------------
275
276 enum : int {
279 };
280 // optional .goby.middleware.protobuf.AppConfig app = 1 [(.goby.field) = {
281 bool has_app() const;
282 private:
283 bool _internal_has_app() const;
284 public:
285 void clear_app();
286 const ::goby::middleware::protobuf::AppConfig& app() const;
287 PROTOBUF_NODISCARD ::goby::middleware::protobuf::AppConfig* release_app();
290 private:
291 const ::goby::middleware::protobuf::AppConfig& _internal_app() const;
292 ::goby::middleware::protobuf::AppConfig* _internal_mutable_app();
293 public:
297
298 // optional .goby.apps.middleware.protobuf.GobyToolConfig.Action action = 2 [default = help, (.goby.field) = {
299 bool has_action() const;
300 private:
301 bool _internal_has_action() const;
302 public:
303 void clear_action();
306 private:
308 void _internal_set_action(::goby::apps::middleware::protobuf::GobyToolConfig_Action value);
309 public:
310
311 // @@protoc_insertion_point(class_scope:goby.apps.middleware.protobuf.GobyToolConfig)
312 private:
313 class _Internal;
314
315 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
316 typedef void InternalArenaConstructable_;
317 typedef void DestructorSkippable_;
318 struct Impl_ {
319 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
320 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
322 int action_;
323 };
324 union { Impl_ _impl_; };
325 friend struct ::TableStruct_goby_2fapps_2fmiddleware_2fgoby_5ftool_2ftool_2eproto;
326};
327// ===================================================================
328
329
330// ===================================================================
331
332#ifdef __GNUC__
333 #pragma GCC diagnostic push
334 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
335#endif // __GNUC__
336// GobyToolConfig
337
338// optional .goby.middleware.protobuf.AppConfig app = 1 [(.goby.field) = {
339inline bool GobyToolConfig::_internal_has_app() const {
340 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
341 PROTOBUF_ASSUME(!value || _impl_.app_ != nullptr);
342 return value;
343}
344inline bool GobyToolConfig::has_app() const {
345 return _internal_has_app();
346}
347inline const ::goby::middleware::protobuf::AppConfig& GobyToolConfig::_internal_app() const {
348 const ::goby::middleware::protobuf::AppConfig* p = _impl_.app_;
349 return p != nullptr ? *p : reinterpret_cast<const ::goby::middleware::protobuf::AppConfig&>(
351}
352inline const ::goby::middleware::protobuf::AppConfig& GobyToolConfig::app() const {
353 // @@protoc_insertion_point(field_get:goby.apps.middleware.protobuf.GobyToolConfig.app)
354 return _internal_app();
355}
358 if (GetArenaForAllocation() == nullptr) {
359 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.app_);
360 }
361 _impl_.app_ = app;
362 if (app) {
363 _impl_._has_bits_[0] |= 0x00000001u;
364 } else {
365 _impl_._has_bits_[0] &= ~0x00000001u;
366 }
367 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.middleware.protobuf.GobyToolConfig.app)
368}
369inline ::goby::middleware::protobuf::AppConfig* GobyToolConfig::release_app() {
370 _impl_._has_bits_[0] &= ~0x00000001u;
372 _impl_.app_ = nullptr;
373#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
374 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
375 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
376 if (GetArenaForAllocation() == nullptr) { delete old; }
377#else // PROTOBUF_FORCE_COPY_IN_RELEASE
378 if (GetArenaForAllocation() != nullptr) {
379 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
380 }
381#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
382 return temp;
383}
384inline ::goby::middleware::protobuf::AppConfig* GobyToolConfig::unsafe_arena_release_app() {
385 // @@protoc_insertion_point(field_release:goby.apps.middleware.protobuf.GobyToolConfig.app)
386 _impl_._has_bits_[0] &= ~0x00000001u;
388 _impl_.app_ = nullptr;
389 return temp;
390}
391inline ::goby::middleware::protobuf::AppConfig* GobyToolConfig::_internal_mutable_app() {
392 _impl_._has_bits_[0] |= 0x00000001u;
393 if (_impl_.app_ == nullptr) {
394 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaForAllocation());
395 _impl_.app_ = p;
396 }
397 return _impl_.app_;
398}
399inline ::goby::middleware::protobuf::AppConfig* GobyToolConfig::mutable_app() {
400 ::goby::middleware::protobuf::AppConfig* _msg = _internal_mutable_app();
401 // @@protoc_insertion_point(field_mutable:goby.apps.middleware.protobuf.GobyToolConfig.app)
402 return _msg;
403}
405 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
406 if (message_arena == nullptr) {
407 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.app_);
408 }
409 if (app) {
410 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
411 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
412 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(app));
413 if (message_arena != submessage_arena) {
414 app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
415 message_arena, app, submessage_arena);
416 }
417 _impl_._has_bits_[0] |= 0x00000001u;
418 } else {
419 _impl_._has_bits_[0] &= ~0x00000001u;
420 }
421 _impl_.app_ = app;
422 // @@protoc_insertion_point(field_set_allocated:goby.apps.middleware.protobuf.GobyToolConfig.app)
423}
424
425// optional .goby.apps.middleware.protobuf.GobyToolConfig.Action action = 2 [default = help, (.goby.field) = {
426inline bool GobyToolConfig::_internal_has_action() const {
427 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
428 return value;
429}
430inline bool GobyToolConfig::has_action() const {
431 return _internal_has_action();
432}
434 _impl_.action_ = 0;
435 _impl_._has_bits_[0] &= ~0x00000002u;
436}
437inline ::goby::apps::middleware::protobuf::GobyToolConfig_Action GobyToolConfig::_internal_action() const {
439}
440inline ::goby::apps::middleware::protobuf::GobyToolConfig_Action GobyToolConfig::action() const {
441 // @@protoc_insertion_point(field_get:goby.apps.middleware.protobuf.GobyToolConfig.action)
442 return _internal_action();
443}
444inline void GobyToolConfig::_internal_set_action(::goby::apps::middleware::protobuf::GobyToolConfig_Action value) {
446 _impl_._has_bits_[0] |= 0x00000002u;
447 _impl_.action_ = value;
448}
450 _internal_set_action(value);
451 // @@protoc_insertion_point(field_set:goby.apps.middleware.protobuf.GobyToolConfig.action)
452}
453
454#ifdef __GNUC__
455 #pragma GCC diagnostic pop
456#endif // __GNUC__
457
458// @@protoc_insertion_point(namespace_scope)
459
460} // namespace protobuf
461} // namespace middleware
462} // namespace apps
463} // namespace goby
464
465PROTOBUF_NAMESPACE_OPEN
466
467template <> struct is_proto_enum< ::goby::apps::middleware::protobuf::GobyToolConfig_Action> : ::std::true_type {};
468template <>
470 return ::goby::apps::middleware::protobuf::GobyToolConfig_Action_descriptor();
471}
472
473PROTOBUF_NAMESPACE_CLOSE
474
475// @@protoc_insertion_point(global_scope)
476
477#include <google/protobuf/port_undef.inc>
478#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2fapps_2fmiddleware_2fgoby_5ftool_2ftool_2eproto
PROTOBUF_NAMESPACE_OPEN ::goby::middleware::protobuf::AppConfig * Arena::CreateMaybeMessage<::goby::middleware::protobuf::AppConfig >(Arena *)
static const GobyToolConfig & default_instance()
Definition tool.pb.h:152
static const std::string & Action_Name(T enum_t_value)
Definition tool.pb.h:263
void set_action(::goby::apps::middleware::protobuf::GobyToolConfig_Action value)
Definition tool.pb.h:449
PROTOBUF_CONSTEXPR GobyToolConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition tool.pb.h:136
::goby::middleware::protobuf::AppConfig * mutable_app()
Definition tool.pb.h:399
void MergeFrom(const GobyToolConfig &from)
Definition tool.pb.h:192
GobyToolConfig(GobyToolConfig &&from) noexcept
Definition tool.pb.h:113
PROTOBUF_NODISCARD::goby::middleware::protobuf::AppConfig * release_app()
Definition tool.pb.h:369
const ::goby::middleware::protobuf::AppConfig & app() const
Definition tool.pb.h:352
GobyToolConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition tool.pb.h:186
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
GobyToolConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
void CopyFrom(const GobyToolConfig &from)
void UnsafeArenaSwap(GobyToolConfig *other)
Definition tool.pb.h:178
void unsafe_arena_set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
Definition tool.pb.h:356
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
friend void swap(GobyToolConfig &a, GobyToolConfig &b)
Definition tool.pb.h:162
GobyToolConfig & operator=(GobyToolConfig &&from) noexcept
Definition tool.pb.h:122
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition tool.pb.h:149
void set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
Definition tool.pb.h:404
::goby::apps::middleware::protobuf::GobyToolConfig_Action action() const
Definition tool.pb.h:440
::goby::middleware::protobuf::AppConfig * unsafe_arena_release_app()
Definition tool.pb.h:384
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const GobyToolConfig * internal_default_instance()
Definition tool.pb.h:155
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
GobyToolConfig & operator=(const GobyToolConfig &from)
Definition tool.pb.h:118
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition tool.pb.h:146
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Action_descriptor()
Definition tool.pb.h:259
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition tool.pb.h:143
static bool Action_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Action *value)
Definition tool.pb.h:269
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition tool.pb.h:139
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * GobyToolConfig_Action_descriptor()
constexpr int GobyToolConfig_Action_Action_ARRAYSIZE
Definition tool.pb.h:87
const std::string & GobyToolConfig_Action_Name(T enum_t_value)
Definition tool.pb.h:91
bool GobyToolConfig_Action_IsValid(int value)
constexpr GobyToolConfig_Action GobyToolConfig_Action_Action_MIN
Definition tool.pb.h:85
constexpr GobyToolConfig_Action GobyToolConfig_Action_Action_MAX
Definition tool.pb.h:86
GobyToolConfigDefaultTypeInternal _GobyToolConfig_default_instance_
bool GobyToolConfig_Action_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, GobyToolConfig_Action *value)
Definition tool.pb.h:98
AppConfigDefaultTypeInternal _AppConfig_default_instance_
The global namespace for the Goby project.
const EnumDescriptor * GetEnumDescriptor< ::goby::apps::middleware::protobuf::GobyToolConfig_Action >()
Definition tool.pb.h:469
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fapps_2fmiddleware_2fgoby_5ftool_2ftool_2eproto