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