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