4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fapps_2fmiddleware_2fgoby_5ftool_2ftool_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2fapps_2fmiddleware_2fgoby_5ftool_2ftool_2eproto
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
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.
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>
31#include <google/protobuf/extension_set.h>
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>
41#include <google/protobuf/port_def.inc>
42#define PROTOBUF_INTERNAL_EXPORT_goby_2fapps_2fmiddleware_2fgoby_5ftool_2ftool_2eproto
43PROTOBUF_NAMESPACE_OPEN
47PROTOBUF_NAMESPACE_CLOSE
59struct GobyToolConfigDefaultTypeInternal;
65PROTOBUF_NAMESPACE_OPEN
67PROTOBUF_NAMESPACE_CLOSE
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(
100 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<GobyToolConfig_Action>(
106 public ::PROTOBUF_NAMESPACE_ID::Message {
110 explicit PROTOBUF_CONSTEXPR
GobyToolConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
115 *
this = ::std::move(from);
123 if (
this == &from)
return *
this;
124 if (GetOwningArena() == from.GetOwningArena()
125 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
126 && GetOwningArena() !=
nullptr
137 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
140 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
143 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
166 if (other ==
this)
return;
167 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
168 if (GetOwningArena() !=
nullptr &&
169 GetOwningArena() == other->GetOwningArena()) {
171 if (GetOwningArena() == other->GetOwningArena()) {
175 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
179 if (other ==
this)
return;
180 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
187 return CreateMaybeMessage<GobyToolConfig>(arena);
189 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
191 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
193 GobyToolConfig::MergeImpl(*
this, from);
196 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
198 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
204 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
208 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
210 void SetCachedSize(
int size)
const final;
214 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
215 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
216 return "goby.apps.middleware.protobuf.GobyToolConfig";
220 bool is_message_owned =
false);
224 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
258 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
264 static_assert(::std::is_same<T, Action>::value ||
265 ::std::is_integral<T>::value,
266 "Incorrect type passed to function Action_Name.");
269 static inline bool Action_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
283 bool _internal_has_app()
const;
286 const ::goby::middleware::protobuf::AppConfig&
app()
const;
287 PROTOBUF_NODISCARD ::goby::middleware::protobuf::AppConfig*
release_app();
291 const ::goby::middleware::protobuf::AppConfig& _internal_app()
const;
301 bool _internal_has_action()
const;
315 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
316 typedef void InternalArenaConstructable_;
317 typedef void DestructorSkippable_;
319 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
320 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
325 friend struct ::TableStruct_goby_2fapps_2fmiddleware_2fgoby_5ftool_2ftool_2eproto;
333 #pragma GCC diagnostic push
334 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
339inline bool GobyToolConfig::_internal_has_app()
const {
340 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
341 PROTOBUF_ASSUME(!value ||
_impl_.app_ !=
nullptr);
345 return _internal_has_app();
347inline const ::goby::middleware::protobuf::AppConfig& GobyToolConfig::_internal_app()
const {
348 const ::goby::middleware::protobuf::AppConfig* p =
_impl_.app_;
354 return _internal_app();
358 if (GetArenaForAllocation() ==
nullptr) {
359 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.app_);
363 _impl_._has_bits_[0] |= 0x00000001u;
365 _impl_._has_bits_[0] &= ~0x00000001u;
370 _impl_._has_bits_[0] &= ~0x00000001u;
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; }
378 if (GetArenaForAllocation() !=
nullptr) {
379 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
386 _impl_._has_bits_[0] &= ~0x00000001u;
391inline ::goby::middleware::protobuf::AppConfig* GobyToolConfig::_internal_mutable_app() {
392 _impl_._has_bits_[0] |= 0x00000001u;
393 if (
_impl_.app_ ==
nullptr) {
405 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
406 if (message_arena ==
nullptr) {
407 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.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);
417 _impl_._has_bits_[0] |= 0x00000001u;
419 _impl_._has_bits_[0] &= ~0x00000001u;
426inline bool GobyToolConfig::_internal_has_action()
const {
427 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
431 return _internal_has_action();
435 _impl_._has_bits_[0] &= ~0x00000002u;
437inline ::goby::apps::middleware::protobuf::GobyToolConfig_Action GobyToolConfig::_internal_action()
const {
442 return _internal_action();
446 _impl_._has_bits_[0] |= 0x00000002u;
450 _internal_set_action(value);
455 #pragma GCC diagnostic pop
465PROTOBUF_NAMESPACE_OPEN
470 return ::goby::apps::middleware::protobuf::GobyToolConfig_Action_descriptor();
473PROTOBUF_NAMESPACE_CLOSE
477#include <google/protobuf/port_undef.inc>
PROTOBUF_NAMESPACE_OPEN ::goby::middleware::protobuf::AppConfig * Arena::CreateMaybeMessage<::goby::middleware::protobuf::AppConfig >(Arena *)
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * GobyToolConfig_Action_descriptor()
constexpr int GobyToolConfig_Action_Action_ARRAYSIZE
const std::string & GobyToolConfig_Action_Name(T enum_t_value)
@ GobyToolConfig_Action_interface
@ GobyToolConfig_Action_protobuf
@ GobyToolConfig_Action_udpm
@ GobyToolConfig_Action_launch
@ GobyToolConfig_Action_test
@ GobyToolConfig_Action_help
@ GobyToolConfig_Action_zenoh
@ GobyToolConfig_Action_zeromq
@ GobyToolConfig_Action_log
bool GobyToolConfig_Action_IsValid(int value)
constexpr GobyToolConfig_Action GobyToolConfig_Action_Action_MIN
constexpr GobyToolConfig_Action GobyToolConfig_Action_Action_MAX
GobyToolConfigDefaultTypeInternal _GobyToolConfig_default_instance_
bool GobyToolConfig_Action_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, GobyToolConfig_Action *value)
AppConfigDefaultTypeInternal _AppConfig_default_instance_
The global namespace for the Goby project.