4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fuser_5fcmd_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fuser_5fcmd_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>
42 #pragma GCC system_header
45 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
48 #include <sys/sysmacros.h>
53 #include <google/protobuf/port_def.inc>
54 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fuser_5fcmd_2eproto IGNITION_MSGS_VISIBLE
55 PROTOBUF_NAMESPACE_OPEN
59 PROTOBUF_NAMESPACE_CLOSE
63 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
65 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
67 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
69 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
70 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
71 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
77 class UserCmdDefaultTypeInternal;
81 PROTOBUF_NAMESPACE_OPEN
82 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::UserCmd* Arena::CreateMaybeMessage<::ignition::msgs::UserCmd>(Arena*);
83 PROTOBUF_NAMESPACE_CLOSE
105 "Incorrect type passed to function UserCmd_Type_Name.");
106 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
111 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<UserCmd_Type>(
116 class IGNITION_MSGS_VISIBLE UserCmd PROTOBUF_FINAL :
117 public ::PROTOBUF_NAMESPACE_ID::Message {
125 *
this = ::std::move(from);
133 if (GetArena() == from.GetArena()) {
134 if (
this != &from) InternalSwap(&from);
141 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
142 return GetDescriptor();
145 return GetMetadataStatic().descriptor;
148 return GetMetadataStatic().reflection;
154 return reinterpret_cast<const UserCmd*
>(
157 static constexpr
int kIndexInFileMessages =
160 friend void swap(UserCmd& a, UserCmd& b) {
163 inline void Swap(UserCmd* 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 UserCmd*
New() const final {
180 return CreateMaybeMessage<UserCmd>(
nullptr);
183 UserCmd*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
184 return CreateMaybeMessage<UserCmd>(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(UserCmd* other);
204 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
205 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
206 return "ignition.msgs.UserCmd";
209 explicit UserCmd(::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() {
229 static constexpr
Type WORLD_CONTROL =
233 static constexpr
Type SCALING =
238 static constexpr Type Type_MIN =
240 static constexpr Type Type_MAX =
242 static constexpr
int Type_ARRAYSIZE =
244 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
252 "Incorrect type passed to function Type_Name.");
263 kModelFieldNumber = 5,
264 kLightFieldNumber = 6,
265 kDescriptionFieldNumber = 3,
266 kEntityNameFieldNumber = 7,
267 kHeaderFieldNumber = 1,
268 kWorldControlFieldNumber = 8,
269 kWrenchFieldNumber = 9,
271 kTypeFieldNumber = 4,
276 int _internal_model_size()
const;
280 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Model >*
283 const ::ignition::msgs::Model& _internal_model(
int index)
const;
284 ::ignition::msgs::Model* _internal_add_model();
286 const ::ignition::msgs::Model&
model(
int index)
const;
288 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Model >&
294 int _internal_light_size()
const;
298 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Light >*
301 const ::ignition::msgs::Light& _internal_light(
int index)
const;
302 ::ignition::msgs::Light* _internal_add_light();
304 const ::ignition::msgs::Light&
light(
int index)
const;
306 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Light >&
319 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(
"The unsafe_arena_ accessors for"
320 " string fields are deprecated and will be removed in a"
322 std::
string* unsafe_arena_release_description();
323 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
324 "
string fields are deprecated and will be removed in a"
326 void unsafe_arena_set_allocated_description(
327 std::
string* description);
329 const
std::
string& _internal_description() const;
330 void _internal_set_description(const
std::
string& value);
331 std::
string* _internal_mutable_description();
335 void clear_entity_name();
336 const
std::
string& entity_name() const;
337 void set_entity_name(const
std::
string& value);
338 void set_entity_name(
std::
string&& value);
339 void set_entity_name(const
char* value);
340 void set_entity_name(const
char* value,
size_t size);
341 std::
string* mutable_entity_name();
342 std::
string* release_entity_name();
343 void set_allocated_entity_name(
std::
string* entity_name);
344 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
345 "
string fields are deprecated and will be removed in a"
347 std::
string* unsafe_arena_release_entity_name();
348 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
349 "
string fields are deprecated and will be removed in a"
351 void unsafe_arena_set_allocated_entity_name(
352 std::
string* entity_name);
354 const
std::
string& _internal_entity_name() const;
355 void _internal_set_entity_name(const
std::
string& value);
356 std::
string* _internal_mutable_entity_name();
360 bool has_header() const;
362 bool _internal_has_header() const;
368 void set_allocated_header(::
ignition::msgs::Header* header);
370 const ::
ignition::msgs::Header& _internal_header() const;
371 ::
ignition::msgs::Header* _internal_mutable_header();
373 void unsafe_arena_set_allocated_header(
375 ::
ignition::msgs::Header* unsafe_arena_release_header();
378 bool has_world_control() const;
380 bool _internal_has_world_control() const;
382 void clear_world_control();
383 const ::
ignition::msgs::WorldControl& world_control() const;
384 ::
ignition::msgs::WorldControl* release_world_control();
385 ::
ignition::msgs::WorldControl* mutable_world_control();
386 void set_allocated_world_control(::
ignition::msgs::WorldControl* world_control);
388 const ::
ignition::msgs::WorldControl& _internal_world_control() const;
389 ::
ignition::msgs::WorldControl* _internal_mutable_world_control();
391 void unsafe_arena_set_allocated_world_control(
392 ::
ignition::msgs::WorldControl* world_control);
393 ::
ignition::msgs::WorldControl* unsafe_arena_release_world_control();
396 bool has_wrench() const;
398 bool _internal_has_wrench() const;
404 void set_allocated_wrench(::
ignition::msgs::Wrench* wrench);
406 const ::
ignition::msgs::Wrench& _internal_wrench() const;
407 ::
ignition::msgs::Wrench* _internal_mutable_wrench();
409 void unsafe_arena_set_allocated_wrench(
411 ::
ignition::msgs::Wrench* unsafe_arena_release_wrench();
415 ::PROTOBUF_NAMESPACE_ID::uint32
id() const;
416 void set_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
418 ::PROTOBUF_NAMESPACE_ID::uint32 _internal_id() const;
419 void _internal_set_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
435 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
436 typedef
void InternalArenaConstructable_;
437 typedef
void DestructorSkippable_;
438 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::
ignition::msgs::
Model > model_;
439 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::
ignition::msgs::Light > light_;
440 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr description_;
441 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr entity_name_;
443 ::
ignition::msgs::WorldControl* world_control_;
445 ::PROTOBUF_NAMESPACE_ID::uint32 id_;
447 mutable ::PROTOBUF_NAMESPACE_ID::
internal::CachedSize _cached_size_;
456 #pragma GCC diagnostic push
457 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
462 inline bool UserCmd::_internal_has_header()
const {
463 return this != internal_default_instance() && header_ !=
nullptr;
465 inline bool UserCmd::has_header()
const {
466 return _internal_has_header();
468 inline const ::ignition::msgs::Header& UserCmd::_internal_header()
const {
469 const ::ignition::msgs::Header* p = header_;
470 return p !=
nullptr ? *p : *
reinterpret_cast<const ::ignition::msgs::Header*
>(
473 inline const ::ignition::msgs::Header& UserCmd::header()
const {
475 return _internal_header();
477 inline void UserCmd::unsafe_arena_set_allocated_header(
478 ::ignition::msgs::Header* header) {
479 if (GetArena() ==
nullptr) {
480 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
490 inline ::ignition::msgs::Header* UserCmd::release_header() {
491 auto temp = unsafe_arena_release_header();
492 if (GetArena() !=
nullptr) {
493 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
497 inline ::ignition::msgs::Header* UserCmd::unsafe_arena_release_header() {
500 ::ignition::msgs::Header* temp = header_;
504 inline ::ignition::msgs::Header* UserCmd::_internal_mutable_header() {
506 if (header_ ==
nullptr) {
507 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
512 inline ::ignition::msgs::Header* UserCmd::mutable_header() {
514 return _internal_mutable_header();
516 inline void UserCmd::set_allocated_header(::ignition::msgs::Header* header) {
517 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
518 if (message_arena ==
nullptr) {
519 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
522 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
523 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header)->GetArena();
524 if (message_arena != submessage_arena) {
525 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
526 message_arena, header, submessage_arena);
537 inline void UserCmd::clear_id() {
540 inline ::PROTOBUF_NAMESPACE_ID::uint32 UserCmd::_internal_id()
const {
543 inline ::PROTOBUF_NAMESPACE_ID::uint32 UserCmd::id()
const {
545 return _internal_id();
547 inline void UserCmd::_internal_set_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
551 inline void UserCmd::set_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
552 _internal_set_id(value);
557 inline void UserCmd::clear_description() {
558 description_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
560 inline const std::string& UserCmd::description()
const {
562 return _internal_description();
564 inline void UserCmd::set_description(
const std::string& value) {
565 _internal_set_description(value);
568 inline std::string* UserCmd::mutable_description() {
570 return _internal_mutable_description();
572 inline const std::string& UserCmd::_internal_description()
const {
573 return description_.Get();
575 inline void UserCmd::_internal_set_description(
const std::string& value) {
577 description_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
579 inline void UserCmd::set_description(
std::string&& value) {
582 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::move(value), GetArena());
585 inline void UserCmd::set_description(
const char* value) {
586 GOOGLE_DCHECK(value !=
nullptr);
588 description_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::string(value),
592 inline void UserCmd::set_description(
const char* value,
595 description_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::string(
596 reinterpret_cast<const char*
>(value), size), GetArena());
599 inline std::string* UserCmd::_internal_mutable_description() {
601 return description_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
603 inline std::string* UserCmd::release_description() {
605 return description_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
607 inline void UserCmd::set_allocated_description(
std::string* description) {
608 if (description !=
nullptr) {
613 description_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), description,
617 inline std::string* UserCmd::unsafe_arena_release_description() {
619 GOOGLE_DCHECK(GetArena() !=
nullptr);
621 return description_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
624 inline void UserCmd::unsafe_arena_set_allocated_description(
626 GOOGLE_DCHECK(GetArena() !=
nullptr);
627 if (description !=
nullptr) {
632 description_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
633 description, GetArena());
638 inline void UserCmd::clear_type() {
646 return _internal_type();
653 _internal_set_type(value);
658 inline int UserCmd::_internal_model_size()
const {
659 return model_.size();
661 inline int UserCmd::model_size()
const {
662 return _internal_model_size();
664 inline ::ignition::msgs::Model* UserCmd::mutable_model(
int index) {
666 return model_.Mutable(index);
668 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Model >*
669 UserCmd::mutable_model() {
673 inline const ::ignition::msgs::Model& UserCmd::_internal_model(
int index)
const {
674 return model_.Get(index);
676 inline const ::ignition::msgs::Model& UserCmd::model(
int index)
const {
678 return _internal_model(index);
680 inline ::ignition::msgs::Model* UserCmd::_internal_add_model() {
683 inline ::ignition::msgs::Model* UserCmd::add_model() {
685 return _internal_add_model();
687 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Model >&
688 UserCmd::model()
const {
694 inline int UserCmd::_internal_light_size()
const {
695 return light_.size();
697 inline int UserCmd::light_size()
const {
698 return _internal_light_size();
700 inline ::ignition::msgs::Light* UserCmd::mutable_light(
int index) {
702 return light_.Mutable(index);
704 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Light >*
705 UserCmd::mutable_light() {
709 inline const ::ignition::msgs::Light& UserCmd::_internal_light(
int index)
const {
710 return light_.Get(index);
712 inline const ::ignition::msgs::Light& UserCmd::light(
int index)
const {
714 return _internal_light(index);
716 inline ::ignition::msgs::Light* UserCmd::_internal_add_light() {
719 inline ::ignition::msgs::Light* UserCmd::add_light() {
721 return _internal_add_light();
723 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Light >&
724 UserCmd::light()
const {
730 inline void UserCmd::clear_entity_name() {
731 entity_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
733 inline const std::string& UserCmd::entity_name()
const {
735 return _internal_entity_name();
737 inline void UserCmd::set_entity_name(
const std::string& value) {
738 _internal_set_entity_name(value);
741 inline std::string* UserCmd::mutable_entity_name() {
743 return _internal_mutable_entity_name();
745 inline const std::string& UserCmd::_internal_entity_name()
const {
746 return entity_name_.Get();
748 inline void UserCmd::_internal_set_entity_name(
const std::string& value) {
750 entity_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
752 inline void UserCmd::set_entity_name(
std::string&& value) {
755 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::move(value), GetArena());
758 inline void UserCmd::set_entity_name(
const char* value) {
759 GOOGLE_DCHECK(value !=
nullptr);
761 entity_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::string(value),
765 inline void UserCmd::set_entity_name(
const char* value,
768 entity_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::string(
769 reinterpret_cast<const char*
>(value), size), GetArena());
772 inline std::string* UserCmd::_internal_mutable_entity_name() {
774 return entity_name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
776 inline std::string* UserCmd::release_entity_name() {
778 return entity_name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
780 inline void UserCmd::set_allocated_entity_name(
std::string* entity_name) {
781 if (entity_name !=
nullptr) {
786 entity_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), entity_name,
790 inline std::string* UserCmd::unsafe_arena_release_entity_name() {
792 GOOGLE_DCHECK(GetArena() !=
nullptr);
794 return entity_name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
797 inline void UserCmd::unsafe_arena_set_allocated_entity_name(
799 GOOGLE_DCHECK(GetArena() !=
nullptr);
800 if (entity_name !=
nullptr) {
805 entity_name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
806 entity_name, GetArena());
811 inline bool UserCmd::_internal_has_world_control()
const {
812 return this != internal_default_instance() && world_control_ !=
nullptr;
814 inline bool UserCmd::has_world_control()
const {
815 return _internal_has_world_control();
817 inline const ::ignition::msgs::WorldControl& UserCmd::_internal_world_control()
const {
818 const ::ignition::msgs::WorldControl* p = world_control_;
819 return p !=
nullptr ? *p : *
reinterpret_cast<const ::ignition::msgs::WorldControl*
>(
822 inline const ::ignition::msgs::WorldControl& UserCmd::world_control()
const {
824 return _internal_world_control();
826 inline void UserCmd::unsafe_arena_set_allocated_world_control(
827 ::ignition::msgs::WorldControl* world_control) {
828 if (GetArena() ==
nullptr) {
829 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(world_control_);
831 world_control_ = world_control;
839 inline ::ignition::msgs::WorldControl* UserCmd::release_world_control() {
840 auto temp = unsafe_arena_release_world_control();
841 if (GetArena() !=
nullptr) {
842 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
846 inline ::ignition::msgs::WorldControl* UserCmd::unsafe_arena_release_world_control() {
849 ::ignition::msgs::WorldControl* temp = world_control_;
850 world_control_ =
nullptr;
853 inline ::ignition::msgs::WorldControl* UserCmd::_internal_mutable_world_control() {
855 if (world_control_ ==
nullptr) {
856 auto* p = CreateMaybeMessage<::ignition::msgs::WorldControl>(GetArena());
859 return world_control_;
861 inline ::ignition::msgs::WorldControl* UserCmd::mutable_world_control() {
863 return _internal_mutable_world_control();
865 inline void UserCmd::set_allocated_world_control(::ignition::msgs::WorldControl* world_control) {
866 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
867 if (message_arena ==
nullptr) {
868 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(world_control_);
871 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
872 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(world_control)->GetArena();
873 if (message_arena != submessage_arena) {
874 world_control = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
875 message_arena, world_control, submessage_arena);
881 world_control_ = world_control;
886 inline bool UserCmd::_internal_has_wrench()
const {
887 return this != internal_default_instance() && wrench_ !=
nullptr;
889 inline bool UserCmd::has_wrench()
const {
890 return _internal_has_wrench();
892 inline const ::ignition::msgs::Wrench& UserCmd::_internal_wrench()
const {
893 const ::ignition::msgs::Wrench* p = wrench_;
894 return p !=
nullptr ? *p : *
reinterpret_cast<const ::ignition::msgs::Wrench*
>(
897 inline const ::ignition::msgs::Wrench& UserCmd::wrench()
const {
899 return _internal_wrench();
901 inline void UserCmd::unsafe_arena_set_allocated_wrench(
902 ::ignition::msgs::Wrench* wrench) {
903 if (GetArena() ==
nullptr) {
904 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(wrench_);
914 inline ::ignition::msgs::Wrench* UserCmd::release_wrench() {
915 auto temp = unsafe_arena_release_wrench();
916 if (GetArena() !=
nullptr) {
917 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
921 inline ::ignition::msgs::Wrench* UserCmd::unsafe_arena_release_wrench() {
924 ::ignition::msgs::Wrench* temp = wrench_;
928 inline ::ignition::msgs::Wrench* UserCmd::_internal_mutable_wrench() {
930 if (wrench_ ==
nullptr) {
931 auto* p = CreateMaybeMessage<::ignition::msgs::Wrench>(GetArena());
936 inline ::ignition::msgs::Wrench* UserCmd::mutable_wrench() {
938 return _internal_mutable_wrench();
940 inline void UserCmd::set_allocated_wrench(::ignition::msgs::Wrench* wrench) {
941 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
942 if (message_arena ==
nullptr) {
943 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(wrench_);
946 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
947 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(wrench)->GetArena();
948 if (message_arena != submessage_arena) {
949 wrench = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
950 message_arena, wrench, submessage_arena);
961 #pragma GCC diagnostic pop
973 PROTOBUF_NAMESPACE_OPEN
977 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::UserCmd_Type>() {
981 PROTOBUF_NAMESPACE_CLOSE
988 #include <google/protobuf/port_undef.inc>
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fuser_5fcmd_2eproto
UserCmd & operator=(UserCmd &&from) noexcept
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:132
const ::ignition::msgs::Model & model(int index) const
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Model > & model() const
::ignition::msgs::Model * add_model()
void set_description(const std::string &value)
static void InitAsDefaultInstance()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:147
static const std::string & Type_Name(T enum_t_value)
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:249
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void set_description(const char *value, size_t size)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:141
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Type_descriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:245
::ignition::msgs::Model * mutable_model(int index)
FuelMetadata_Model Model
Definition: build/ignition-msgs8/include/ignition/msgs/fuel_metadata.pb.h:1523
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void MergeFrom(const UserCmd &from)
UserCmd()
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:119
static bool Type_IsValid(int value)
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:235
const std::string & description() const
static bool Type_Parse(const std::string &name, Type *value)
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:255
void UnsafeArenaSwap(UserCmd *other)
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:171
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
UserCmd(const UserCmd &from)
std::string * release_description()
::ignition::msgs::Light * mutable_light(int index)
::ignition::msgs::Light * add_light()
void set_description(std::string &&value)
static const UserCmd * internal_default_instance()
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:153
UserCmd & operator=(const UserCmd &from)
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:128
UserCmd(UserCmd &&from) noexcept
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:123
static const UserCmd & default_instance()
UserCmd_Type Type
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:226
void Swap(UserCmd *other)
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:163
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Light > * mutable_light()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
UserCmd * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:183
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:144
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Model > * mutable_model()
void CopyFrom(const UserCmd &from)
void set_description(const char *value)
const ::ignition::msgs::Light & light(int index) const
std::string * mutable_description()
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Light > & light() const
UserCmd(::PROTOBUF_NAMESPACE_ID::Arena *arena)
UserCmd * New() const final
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:179
void set_allocated_description(std::string *description)
friend void swap(UserCmd &a, UserCmd &b)
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:160
std::unique_ptr< const UserCmd > ConstUserCmdUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:965
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * UserCmd_Type_descriptor()
IGNITION_MSGS_VISIBLE WorldControlDefaultTypeInternal _WorldControl_default_instance_
constexpr int UserCmd_Type_Type_ARRAYSIZE
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:98
const std::string & UserCmd_Type_Name(T enum_t_value)
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:102
bool UserCmd_Type_Parse(const std::string &name, UserCmd_Type *value)
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:109
std::unique_ptr< UserCmd > UserCmdUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:964
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
constexpr UserCmd_Type UserCmd_Type_Type_MAX
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:97
IGNITION_MSGS_VISIBLE UserCmdDefaultTypeInternal _UserCmd_default_instance_
IGNITION_MSGS_VISIBLE bool UserCmd_Type_IsValid(int value)
std::shared_ptr< const UserCmd > ConstUserCmdSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:967
UserCmd_Type
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:87
@ UserCmd_Type_WORLD_CONTROL
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:89
@ UserCmd_Type_WRENCH
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:90
@ UserCmd_Type_MOVING
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:88
@ UserCmd_Type_SCALING
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:91
@ UserCmd_Type_UserCmd_Type_INT_MAX_SENTINEL_DO_NOT_USE_
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:93
@ UserCmd_Type_UserCmd_Type_INT_MIN_SENTINEL_DO_NOT_USE_
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:92
Atmosphere_Type
Definition: build/ignition-msgs8/include/ignition/msgs/atmosphere.pb.h:83
std::shared_ptr< UserCmd > UserCmdSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:966
IGNITION_MSGS_VISIBLE WrenchDefaultTypeInternal _Wrench_default_instance_
constexpr UserCmd_Type UserCmd_Type_Type_MIN
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:96
Definition: build/ignition-msgs8/include/ignition/msgs/actor.pb.h:53
Definition: build/ignition-msgs8/include/ignition/msgs/user_cmd.pb.h:62
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)