4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fuser_5fcmd_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fuser_5fcmd_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < GOOGLE_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/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.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>
34 #include "gz/msgs/light.pb.h"
35 #include "gz/msgs/model.pb.h"
36 #include "gz/msgs/world_control.pb.h"
37 #include "gz/msgs/wrench.pb.h"
38 #include "gz/msgs/header.pb.h"
40 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fuser_5fcmd_2eproto GZ_MSGS_VISIBLE
45 static const ::google::protobuf::internal::ParseTableField entries[];
46 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
47 static const ::google::protobuf::internal::ParseTable schema[1];
48 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
49 static const ::google::protobuf::internal::SerializationTable serialization_table[];
50 static const ::google::protobuf::uint32 offsets[];
57 class UserCmdDefaultTypeInternal;
63 template<> GZ_MSGS_VISIBLE ::gz::msgs::UserCmd* Arena::CreateMaybeMessage<::gz::msgs::UserCmd>(Arena*);
84 return ::google::protobuf::internal::NameOfEnum(
89 return ::google::protobuf::internal::ParseNamedEnum<UserCmd_Type>(
94 class GZ_MSGS_VISIBLE
UserCmd :
public ::google::protobuf::Message {
108 *
this = ::std::move(from);
111 inline UserCmd& operator=(UserCmd&& from) noexcept {
112 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
113 if (
this != &from) InternalSwap(&from);
120 static const ::google::protobuf::Descriptor* descriptor();
121 static const UserCmd& default_instance();
123 static void InitAsDefaultInstance();
125 return reinterpret_cast<const UserCmd*
>(
128 static constexpr
int kIndexInFileMessages =
139 return CreateMaybeMessage<UserCmd>(NULL);
143 return CreateMaybeMessage<UserCmd>(arena);
145 void CopyFrom(const ::google::protobuf::Message& from)
final;
146 void MergeFrom(const ::google::protobuf::Message& from)
final;
147 void CopyFrom(
const UserCmd& from);
148 void MergeFrom(
const UserCmd& from);
150 bool IsInitialized() const final;
152 size_t ByteSizeLong() const final;
153 bool MergePartialFromCodedStream(
154 ::
google::protobuf::io::CodedInputStream* input) final;
155 void SerializeWithCachedSizes(
156 ::
google::protobuf::io::CodedOutputStream* output) const final;
157 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
158 bool deterministic, ::
google::protobuf::uint8* target) const final;
159 int GetCachedSize() const final {
return _cached_size_.Get(); }
164 void SetCachedSize(
int size)
const final;
165 void InternalSwap(
UserCmd* other);
167 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
170 inline void* MaybeArenaPtr()
const {
175 ::google::protobuf::Metadata GetMetadata() const final;
182 static const
Type WORLD_CONTROL =
188 static inline
bool Type_IsValid(
int value) {
195 static const int Type_ARRAYSIZE =
197 static inline const ::google::protobuf::EnumDescriptor*
212 int model_size()
const;
214 static const int kModelFieldNumber = 5;
216 ::google::protobuf::RepeatedPtrField< ::gz::msgs::Model >*
218 const ::gz::msgs::Model& model(
int index)
const;
220 const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Model >&
224 int light_size()
const;
226 static const int kLightFieldNumber = 6;
228 ::google::protobuf::RepeatedPtrField< ::gz::msgs::Light >*
230 const ::gz::msgs::Light& light(
int index)
const;
232 const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Light >&
236 void clear_description();
237 static const int kDescriptionFieldNumber = 3;
238 const ::std::string& description()
const;
239 void set_description(const ::std::string& value);
243 void set_description(
const char* value);
244 void set_description(
const char* value,
size_t size);
247 void set_allocated_description(::
std::string* description);
250 void clear_entity_name();
251 static const int kEntityNameFieldNumber = 7;
252 const ::std::string& entity_name()
const;
253 void set_entity_name(const ::std::string& value);
257 void set_entity_name(
const char* value);
258 void set_entity_name(
const char* value,
size_t size);
261 void set_allocated_entity_name(::
std::string* entity_name);
264 bool has_header()
const;
266 static const int kHeaderFieldNumber = 1;
268 const ::gz::msgs::Header& _internal_header()
const;
270 const ::gz::msgs::Header& header()
const;
276 bool has_world_control()
const;
277 void clear_world_control();
278 static const int kWorldControlFieldNumber = 8;
280 const ::gz::msgs::WorldControl& _internal_world_control()
const;
282 const ::gz::msgs::WorldControl& world_control()
const;
288 bool has_wrench()
const;
290 static const int kWrenchFieldNumber = 9;
292 const ::gz::msgs::Wrench& _internal_wrench()
const;
294 const ::gz::msgs::Wrench& wrench()
const;
301 static const int kIdFieldNumber = 2;
302 ::google::protobuf::uint32 id()
const;
303 void set_id(::google::protobuf::uint32 value);
307 static const int kTypeFieldNumber = 4;
314 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
315 ::google::protobuf::RepeatedPtrField< ::gz::msgs::Model > model_;
316 ::google::protobuf::RepeatedPtrField< ::gz::msgs::Light > light_;
317 ::google::protobuf::internal::ArenaStringPtr description_;
318 ::google::protobuf::internal::ArenaStringPtr entity_name_;
322 ::google::protobuf::uint32 id_;
324 mutable ::google::protobuf::internal::CachedSize _cached_size_;
325 friend struct ::protobuf_gz_2fmsgs_2fuser_5fcmd_2eproto::TableStruct;
333 #pragma GCC diagnostic push
334 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
342 inline const ::gz::msgs::Header& UserCmd::_internal_header()
const {
346 const ::gz::msgs::Header* p = header_;
360 if (header_ == NULL) {
361 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
368 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
369 if (message_arena == NULL) {
370 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
373 ::google::protobuf::Arena* submessage_arena = NULL;
374 if (message_arena != submessage_arena) {
375 header = ::google::protobuf::internal::GetOwnedMessage(
376 message_arena,
header, submessage_arena);
402 description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
406 return description_.GetNoArena();
410 description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
416 description_.SetNoArena(
417 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
422 GOOGLE_DCHECK(value != NULL);
424 description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
429 description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
430 ::
std::string(
reinterpret_cast<const char*
>(value), size));
436 return description_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
441 return description_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
449 description_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
description);
469 return model_.size();
473 return model_.Mutable(index);
475 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Model >*
482 return model_.Get(index);
488 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Model >&
496 return light_.size();
500 return light_.Mutable(index);
502 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Light >*
509 return light_.Get(index);
515 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Light >&
523 entity_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
527 return entity_name_.GetNoArena();
531 entity_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
537 entity_name_.SetNoArena(
538 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
543 GOOGLE_DCHECK(value != NULL);
545 entity_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
550 entity_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
551 ::
std::string(
reinterpret_cast<const char*
>(value), size));
557 return entity_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
562 return entity_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
570 entity_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
entity_name);
578 inline const ::gz::msgs::WorldControl& UserCmd::_internal_world_control()
const {
579 return *world_control_;
582 const ::gz::msgs::WorldControl* p = world_control_;
591 world_control_ = NULL;
596 if (world_control_ == NULL) {
597 auto* p = CreateMaybeMessage<::gz::msgs::WorldControl>(GetArenaNoVirtual());
601 return world_control_;
604 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
605 if (message_arena == NULL) {
606 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(world_control_);
609 ::google::protobuf::Arena* submessage_arena = NULL;
610 if (message_arena != submessage_arena) {
611 world_control = ::google::protobuf::internal::GetOwnedMessage(
626 inline const ::gz::msgs::Wrench& UserCmd::_internal_wrench()
const {
630 const ::gz::msgs::Wrench* p = wrench_;
644 if (wrench_ == NULL) {
645 auto* p = CreateMaybeMessage<::gz::msgs::Wrench>(GetArenaNoVirtual());
652 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
653 if (message_arena == NULL) {
654 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(wrench_);
657 ::google::protobuf::Arena* submessage_arena = NULL;
658 if (message_arena != submessage_arena) {
659 wrench = ::google::protobuf::internal::GetOwnedMessage(
660 message_arena,
wrench, submessage_arena);
671 #pragma GCC diagnostic pop
684 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::UserCmd_Type>() {
693 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fuser_5fcmd_2eproto