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 < 3012000
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 3012004 < 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_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
32 #include <google/protobuf/repeated_field.h>
33 #include <google/protobuf/extension_set.h>
34 #include <google/protobuf/generated_enum_reflection.h>
35 #include <google/protobuf/unknown_field_set.h>
38 #include <boost/units/quantity.hpp>
39 #include <boost/units/absolute.hpp>
40 #include <boost/units/dimensionless_type.hpp>
41 #include <boost/units/make_scaled_unit.hpp>
43 #include <google/protobuf/port_def.inc>
44 #define PROTOBUF_INTERNAL_EXPORT_goby_2fapps_2fmiddleware_2fgoby_5ftool_2ftool_2eproto
45 PROTOBUF_NAMESPACE_OPEN
49 PROTOBUF_NAMESPACE_CLOSE
53 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
55 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
57 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
59 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata
field_metadata[];
66 namespace middleware {
69 class GobyToolConfigDefaultTypeInternal;
75 PROTOBUF_NAMESPACE_OPEN
76 template<> ::goby::apps::middleware::protobuf::GobyToolConfig* Arena::CreateMaybeMessage<::goby::apps::middleware::protobuf::GobyToolConfig>(Arena*);
77 PROTOBUF_NAMESPACE_CLOSE
80 namespace middleware {
98 static_assert(::std::is_same<T, GobyToolConfig_Action>::value ||
99 ::std::is_integral<T>::value,
100 "Incorrect type passed to function GobyToolConfig_Action_Name.");
101 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
106 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<GobyToolConfig_Action>(
112 public ::PROTOBUF_NAMESPACE_ID::Message {
120 *
this = ::std::move(from);
123 inline GobyToolConfig&
operator=(
const GobyToolConfig& from) {
127 inline GobyToolConfig&
operator=(GobyToolConfig&& from) noexcept {
128 if (GetArena() == from.GetArena()) {
129 if (
this != &from) InternalSwap(&from);
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() {
144 return GetDescriptor();
147 return GetMetadataStatic().descriptor;
150 return GetMetadataStatic().reflection;
156 return reinterpret_cast<const GobyToolConfig*
>(
159 static constexpr
int kIndexInFileMessages =
162 friend void swap(GobyToolConfig& a, GobyToolConfig& b) {
165 inline void Swap(GobyToolConfig* other) {
166 if (other ==
this)
return;
167 if (GetArena() == other->GetArena()) {
170 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
174 if (other ==
this)
return;
175 GOOGLE_DCHECK(GetArena() == other->GetArena());
181 inline GobyToolConfig*
New() const final {
182 return CreateMaybeMessage<GobyToolConfig>(
nullptr);
185 GobyToolConfig*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
186 return CreateMaybeMessage<GobyToolConfig>(arena);
188 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
189 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
192 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
193 bool IsInitialized() const final;
196 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
197 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
198 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
199 int GetCachedSize() const final {
return _cached_size_.Get(); }
202 inline void SharedCtor();
203 inline void SharedDtor();
204 void SetCachedSize(
int size)
const final;
205 void InternalSwap(GobyToolConfig* other);
206 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
207 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
208 return "goby.apps.middleware.protobuf.GobyToolConfig";
213 static void ArenaDtor(
void*
object);
214 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
219 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
229 static constexpr
Action help =
242 static constexpr Action Action_MIN =
244 static constexpr Action Action_MAX =
246 static constexpr
int Action_ARRAYSIZE =
248 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
254 static_assert(::std::is_same<T, Action>::value ||
255 ::std::is_integral<T>::value,
256 "Incorrect type passed to function Action_Name.");
268 kActionFieldNumber = 2,
273 bool _internal_has_app()
const;
276 const ::goby::middleware::protobuf::AppConfig&
app()
const;
281 const ::goby::middleware::protobuf::AppConfig& _internal_app()
const;
282 ::goby::middleware::protobuf::AppConfig* _internal_mutable_app();
285 ::goby::middleware::protobuf::AppConfig* app);
291 bool _internal_has_action()
const;
305 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
306 typedef void InternalArenaConstructable_;
307 typedef void DestructorSkippable_;
308 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
309 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
310 ::goby::middleware::protobuf::AppConfig* app_;
312 friend struct ::TableStruct_goby_2fapps_2fmiddleware_2fgoby_5ftool_2ftool_2eproto;
320 #pragma GCC diagnostic push
321 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
326 inline bool GobyToolConfig::_internal_has_app()
const {
327 bool value = (_has_bits_[0] & 0x00000001u) != 0;
328 PROTOBUF_ASSUME(!value || app_ !=
nullptr);
331 inline bool GobyToolConfig::has_app()
const {
332 return _internal_has_app();
334 inline const ::goby::middleware::protobuf::AppConfig& GobyToolConfig::_internal_app()
const {
335 const ::goby::middleware::protobuf::AppConfig* p = app_;
336 return p !=
nullptr ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::AppConfig*
>(
339 inline const ::goby::middleware::protobuf::AppConfig& GobyToolConfig::app()
const {
341 return _internal_app();
343 inline void GobyToolConfig::unsafe_arena_set_allocated_app(
344 ::goby::middleware::protobuf::AppConfig* app) {
345 if (GetArena() ==
nullptr) {
346 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(app_);
350 _has_bits_[0] |= 0x00000001u;
352 _has_bits_[0] &= ~0x00000001u;
356 inline ::goby::middleware::protobuf::AppConfig* GobyToolConfig::release_app() {
357 auto temp = unsafe_arena_release_app();
358 if (GetArena() !=
nullptr) {
359 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
363 inline ::goby::middleware::protobuf::AppConfig* GobyToolConfig::unsafe_arena_release_app() {
365 _has_bits_[0] &= ~0x00000001u;
366 ::goby::middleware::protobuf::AppConfig* temp = app_;
370 inline ::goby::middleware::protobuf::AppConfig* GobyToolConfig::_internal_mutable_app() {
371 _has_bits_[0] |= 0x00000001u;
372 if (app_ ==
nullptr) {
373 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArena());
378 inline ::goby::middleware::protobuf::AppConfig* GobyToolConfig::mutable_app() {
380 return _internal_mutable_app();
382 inline void GobyToolConfig::set_allocated_app(::goby::middleware::protobuf::AppConfig* app) {
383 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
384 if (message_arena ==
nullptr) {
385 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(app_);
388 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
389 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(app)->GetArena();
390 if (message_arena != submessage_arena) {
391 app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
392 message_arena, app, submessage_arena);
394 _has_bits_[0] |= 0x00000001u;
396 _has_bits_[0] &= ~0x00000001u;
403 inline bool GobyToolConfig::_internal_has_action()
const {
404 bool value = (_has_bits_[0] & 0x00000002u) != 0;
407 inline bool GobyToolConfig::has_action()
const {
408 return _internal_has_action();
410 inline void GobyToolConfig::clear_action() {
412 _has_bits_[0] &= ~0x00000002u;
419 return _internal_action();
423 _has_bits_[0] |= 0x00000002u;
427 _internal_set_action(value);
432 #pragma GCC diagnostic pop
442 PROTOBUF_NAMESPACE_OPEN
446 inline const EnumDescriptor* GetEnumDescriptor< ::goby::apps::middleware::protobuf::GobyToolConfig_Action>() {
450 PROTOBUF_NAMESPACE_CLOSE
454 #include <google/protobuf/port_undef.inc>
void set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
GobyToolConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
static const GobyToolConfig & default_instance()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void MergeFrom(const GobyToolConfig &from)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
virtual ~GobyToolConfig()
void unsafe_arena_set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
void set_action(::goby::apps::middleware::protobuf::GobyToolConfig_Action value)
static const std::string & Action_Name(T enum_t_value)
static bool Action_IsValid(int value)
void CopyFrom(const GobyToolConfig &from)
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Action_descriptor()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
friend void swap(GobyToolConfig &a, GobyToolConfig &b)
static const GobyToolConfig * internal_default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
static void InitAsDefaultInstance()
GobyToolConfig_Action Action
GobyToolConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena)
GobyToolConfig & operator=(const GobyToolConfig &from)
::goby::middleware::protobuf::AppConfig * release_app()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
GobyToolConfig & operator=(GobyToolConfig &&from) noexcept
GobyToolConfig(const GobyToolConfig &from)
GobyToolConfig(GobyToolConfig &&from) noexcept
::goby::middleware::protobuf::AppConfig * mutable_app()
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void Swap(GobyToolConfig *other)
static bool Action_Parse(const std::string &name, Action *value)
::goby::apps::middleware::protobuf::GobyToolConfig_Action action() const
const ::goby::middleware::protobuf::AppConfig & app() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
void UnsafeArenaSwap(GobyToolConfig *other)
::goby::middleware::protobuf::AppConfig * unsafe_arena_release_app()
GobyToolConfig * New() const final
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
@ value
the parser finished reading a JSON value
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * GobyToolConfig_Action_descriptor()
UnifiedLogToolConfig_Action
constexpr int GobyToolConfig_Action_Action_ARRAYSIZE
const std::string & GobyToolConfig_Action_Name(T enum_t_value)
@ GobyToolConfig_Action_protobuf
@ GobyToolConfig_Action_launch
@ GobyToolConfig_Action_help
@ 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
bool GobyToolConfig_Action_Parse(const std::string &name, GobyToolConfig_Action *value)
GobyToolConfigDefaultTypeInternal _GobyToolConfig_default_instance_
AppConfigDefaultTypeInternal _AppConfig_default_instance_
The global namespace for the Goby project.