4 #ifndef GOOGLE_PROTOBUF_INCLUDED_bin_2ftool_2fconfig_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_bin_2ftool_2fconfig_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>
24 #include <google/protobuf/arena.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>
31 #include <google/protobuf/message.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>
36 #include "goby/middleware/protobuf/app_config.pb.h"
37 #include "goby/protobuf/option_extensions.pb.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_bin_2ftool_2fconfig_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[];
61 static const ::PROTOBUF_NAMESPACE_ID::uint32
offsets[];
67 class ToolDefaultTypeInternal;
71 PROTOBUF_NAMESPACE_OPEN
72 template<> ::jaiabot::config::Tool* Arena::CreateMaybeMessage<::jaiabot::config::Tool>(Arena*);
73 PROTOBUF_NAMESPACE_CLOSE
96 static_assert(::std::is_same<T, Tool_Action>::value ||
97 ::std::is_integral<T>::value,
98 "Incorrect type passed to function Tool_Action_Name.");
99 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
104 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Tool_Action>(
109 class Tool PROTOBUF_FINAL :
110 public ::PROTOBUF_NAMESPACE_ID::Message {
112 inline Tool() : Tool(nullptr) {};
118 *
this = ::std::move(from);
126 if (GetArena() == from.GetArena()) {
127 if (
this != &from) InternalSwap(&from);
135 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
138 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
141 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
142 return GetDescriptor();
145 return GetMetadataStatic().descriptor;
148 return GetMetadataStatic().reflection;
154 return reinterpret_cast<const Tool*
>(
157 static constexpr
int kIndexInFileMessages =
160 friend void swap(Tool& a, Tool& b) {
163 inline void Swap(Tool* other) {
164 if (other ==
this)
return;
165 if (GetArena() == other->GetArena()) {
168 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
172 if (other ==
this)
return;
173 GOOGLE_DCHECK(GetArena() == other->GetArena());
179 inline Tool*
New() const final {
180 return CreateMaybeMessage<Tool>(
nullptr);
183 Tool*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
184 return CreateMaybeMessage<Tool>(arena);
186 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
187 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
190 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
191 bool IsInitialized() const final;
193 size_t ByteSizeLong() const final;
194 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
195 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
196 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
197 int GetCachedSize() const final {
return _cached_size_.Get(); }
200 inline void SharedCtor();
201 inline void SharedDtor();
202 void SetCachedSize(
int size)
const final;
203 void InternalSwap(Tool* other);
204 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
205 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
206 return "jaiabot.config.Tool";
209 explicit Tool(::PROTOBUF_NAMESPACE_ID::Arena* arena);
211 static void ArenaDtor(
void*
object);
212 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
217 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
252 static constexpr
int Action_ARRAYSIZE =
254 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
260 static_assert(::std::is_same<T, Action>::value ||
261 ::std::is_integral<T>::value,
262 "Incorrect type passed to function Action_Name.");
274 kActionFieldNumber = 2,
279 bool _internal_has_app()
const;
282 const ::goby::middleware::protobuf::AppConfig&
app()
const;
287 const ::goby::middleware::protobuf::AppConfig& _internal_app()
const;
288 ::goby::middleware::protobuf::AppConfig* _internal_mutable_app();
291 ::goby::middleware::protobuf::AppConfig* app);
297 bool _internal_has_action()
const;
311 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
312 typedef void InternalArenaConstructable_;
313 typedef void DestructorSkippable_;
314 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
315 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
316 ::goby::middleware::protobuf::AppConfig* app_;
318 friend struct ::TableStruct_bin_2ftool_2fconfig_2eproto;
326 #pragma GCC diagnostic push
327 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
332 inline bool Tool::_internal_has_app()
const {
333 bool value = (_has_bits_[0] & 0x00000001u) != 0;
334 PROTOBUF_ASSUME(!value || app_ !=
nullptr);
337 inline bool Tool::has_app()
const {
338 return _internal_has_app();
340 inline const ::goby::middleware::protobuf::AppConfig& Tool::_internal_app()
const {
341 const ::goby::middleware::protobuf::AppConfig* p = app_;
342 return p !=
nullptr ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::AppConfig*
>(
343 &::goby::middleware::protobuf::_AppConfig_default_instance_);
345 inline const ::goby::middleware::protobuf::AppConfig& Tool::app()
const {
347 return _internal_app();
349 inline void Tool::unsafe_arena_set_allocated_app(
350 ::goby::middleware::protobuf::AppConfig* app) {
351 if (GetArena() ==
nullptr) {
352 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(app_);
356 _has_bits_[0] |= 0x00000001u;
358 _has_bits_[0] &= ~0x00000001u;
362 inline ::goby::middleware::protobuf::AppConfig* Tool::release_app() {
363 auto temp = unsafe_arena_release_app();
364 if (GetArena() !=
nullptr) {
365 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
369 inline ::goby::middleware::protobuf::AppConfig* Tool::unsafe_arena_release_app() {
371 _has_bits_[0] &= ~0x00000001u;
372 ::goby::middleware::protobuf::AppConfig* temp = app_;
376 inline ::goby::middleware::protobuf::AppConfig* Tool::_internal_mutable_app() {
377 _has_bits_[0] |= 0x00000001u;
378 if (app_ ==
nullptr) {
379 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArena());
384 inline ::goby::middleware::protobuf::AppConfig* Tool::mutable_app() {
386 return _internal_mutable_app();
388 inline void Tool::set_allocated_app(::goby::middleware::protobuf::AppConfig* app) {
389 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
390 if (message_arena ==
nullptr) {
391 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(app_);
394 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
395 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(app)->GetArena();
396 if (message_arena != submessage_arena) {
397 app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
398 message_arena, app, submessage_arena);
400 _has_bits_[0] |= 0x00000001u;
402 _has_bits_[0] &= ~0x00000001u;
409 inline bool Tool::_internal_has_action()
const {
410 bool value = (_has_bits_[0] & 0x00000002u) != 0;
413 inline bool Tool::has_action()
const {
414 return _internal_has_action();
416 inline void Tool::clear_action() {
418 _has_bits_[0] &= ~0x00000002u;
425 return _internal_action();
429 _has_bits_[0] |= 0x00000002u;
433 _internal_set_action(value);
438 #pragma GCC diagnostic pop
446 PROTOBUF_NAMESPACE_OPEN
450 inline const EnumDescriptor* GetEnumDescriptor< ::jaiabot::config::Tool_Action>() {
454 PROTOBUF_NAMESPACE_CLOSE
458 #include <google/protobuf/port_undef.inc>
static const Tool * internal_default_instance()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
static bool Action_IsValid(int value)
void CopyFrom(const Tool &from)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
const ::goby::middleware::protobuf::AppConfig & app() const
static void InitAsDefaultInstance()
Tool & operator=(const Tool &from)
::goby::middleware::protobuf::AppConfig * unsafe_arena_release_app()
Tool * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
::goby::middleware::protobuf::AppConfig * release_app()
Tool(::PROTOBUF_NAMESPACE_ID::Arena *arena)
static bool Action_Parse(const std::string &name, Action *value)
::jaiabot::config::Tool_Action action() const
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
static const std::string & Action_Name(T enum_t_value)
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
void MergeFrom(const Tool &from)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void set_action(::jaiabot::config::Tool_Action value)
Tool(Tool &&from) noexcept
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Action_descriptor()
friend void swap(Tool &a, Tool &b)
void UnsafeArenaSwap(Tool *other)
Tool & operator=(Tool &&from) noexcept
::goby::middleware::protobuf::AppConfig * mutable_app()
void unsafe_arena_set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
void set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
static const Tool & default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
constexpr int Tool_Action_Action_ARRAYSIZE
constexpr Tool_Action Tool_Action_Action_MIN
bool Tool_Action_Parse(const std::string &name, Tool_Action *value)
ToolDefaultTypeInternal _Tool_default_instance_
constexpr Tool_Action Tool_Action_Action_MAX
bool Tool_Action_IsValid(int value)
const std::string & Tool_Action_Name(T enum_t_value)
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Tool_Action_descriptor()
extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig, ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::jaiabot::udp::protobuf::Config >, 11, false > config