4 #ifndef PROTOBUF_ignition_2fmsgs_2fuser_5fcmd_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fuser_5fcmd_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 11 #if GOOGLE_PROTOBUF_VERSION < 3000000 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 3000000 < 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/arena.h> 23 #include <google/protobuf/arenastring.h> 24 #include <google/protobuf/generated_message_util.h> 25 #include <google/protobuf/metadata.h> 26 #include <google/protobuf/message.h> 27 #include <google/protobuf/repeated_field.h> 28 #include <google/protobuf/extension_set.h> 29 #include <google/protobuf/generated_enum_reflection.h> 30 #include <google/protobuf/unknown_field_set.h> 37 #pragma GCC system_header 40 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 43 #include <sys/sysmacros.h> 74 return ::google::protobuf::internal::NameOfEnum(
79 return ::google::protobuf::internal::ParseNamedEnum<UserCmd_Type>(
84 class IGNITION_MSGS_VISIBLE
UserCmd :
public ::google::protobuf::Message {
96 static const ::google::protobuf::Descriptor* descriptor();
97 static const UserCmd& default_instance();
105 UserCmd* New(::google::protobuf::Arena* arena)
const;
106 void CopyFrom(const ::google::protobuf::Message& from);
107 void MergeFrom(const ::google::protobuf::Message& from);
108 void CopyFrom(
const UserCmd& from);
109 void MergeFrom(
const UserCmd& from);
111 bool IsInitialized()
const;
113 int ByteSize()
const;
114 bool MergePartialFromCodedStream(
115 ::google::protobuf::io::CodedInputStream* input);
116 void SerializeWithCachedSizes(
117 ::google::protobuf::io::CodedOutputStream* output)
const;
118 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
119 bool deterministic, ::google::protobuf::uint8* output)
const;
121 return InternalSerializeWithCachedSizesToArray(
false, output);
127 void SetCachedSize(
int size)
const;
128 void InternalSwap(
UserCmd* other);
130 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
131 return _internal_metadata_.arena();
133 inline void* MaybeArenaPtr()
const {
134 return _internal_metadata_.raw_arena_ptr();
138 ::google::protobuf::Metadata GetMetadata()
const;
143 static const Type MOVING =
145 static const Type WORLD_CONTROL =
147 static const Type WRENCH =
149 static const Type SCALING =
154 static const Type Type_MIN =
156 static const Type Type_MAX =
158 static const int Type_ARRAYSIZE =
160 static inline const ::google::protobuf::EnumDescriptor*
164 static inline const ::std::string&
Type_Name(Type value) {
175 bool has_header()
const;
177 static const int kHeaderFieldNumber = 1;
178 const ::ignition::msgs::Header& header()
const;
185 static const int kIdFieldNumber = 2;
186 ::google::protobuf::uint32 id()
const;
187 void set_id(::google::protobuf::uint32 value);
190 void clear_description();
191 static const int kDescriptionFieldNumber = 3;
192 const ::std::string& description()
const;
193 void set_description(const ::std::string& value);
194 void set_description(
const char* value);
195 void set_description(
const char* value,
size_t size);
198 void set_allocated_description(::
std::string* description);
202 static const int kTypeFieldNumber = 4;
207 int model_size()
const;
209 static const int kModelFieldNumber = 5;
210 const ::ignition::msgs::Model& model(
int index)
const;
213 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model >*
215 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model >&
219 int light_size()
const;
221 static const int kLightFieldNumber = 6;
222 const ::ignition::msgs::Light& light(
int index)
const;
225 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light >*
227 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light >&
231 void clear_entity_name();
232 static const int kEntityNameFieldNumber = 7;
233 const ::std::string& entity_name()
const;
234 void set_entity_name(const ::std::string& value);
235 void set_entity_name(
const char* value);
236 void set_entity_name(
const char* value,
size_t size);
239 void set_allocated_entity_name(::
std::string* entity_name);
242 bool has_world_control()
const;
243 void clear_world_control();
244 static const int kWorldControlFieldNumber = 8;
245 const ::ignition::msgs::WorldControl& world_control()
const;
251 bool has_wrench()
const;
253 static const int kWrenchFieldNumber = 9;
254 const ::ignition::msgs::Wrench& wrench()
const;
262 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
263 bool _is_default_instance_;
265 ::google::protobuf::internal::ArenaStringPtr description_;
266 ::google::protobuf::uint32 id_;
268 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model > model_;
269 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light > light_;
270 ::google::protobuf::internal::ArenaStringPtr entity_name_;
273 mutable int _cached_size_;
278 void InitAsDefaultInstance();
279 static UserCmd* default_instance_;
286 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 291 return !_is_default_instance_ && header_ != NULL;
294 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
299 return header_ != NULL ? *header_ : *default_instance_->header_;
303 if (header_ == NULL) {
304 header_ = new ::ignition::msgs::Header;
343 description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
347 return description_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
351 description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
356 description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
361 description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
362 ::
std::string(reinterpret_cast<const char*>(value), size));
368 return description_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
373 return description_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
376 if (description != NULL) {
381 description_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description);
401 return model_.size();
408 return model_.Get(index);
412 return model_.Mutable(index);
418 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model >*
423 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model >&
431 return light_.size();
438 return light_.Get(index);
442 return light_.Mutable(index);
448 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light >*
453 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light >&
461 entity_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
465 return entity_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
469 entity_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
474 entity_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
479 entity_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
480 ::
std::string(reinterpret_cast<const char*>(value), size));
486 return entity_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
491 return entity_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
494 if (entity_name != NULL) {
499 entity_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), entity_name);
505 return !_is_default_instance_ && world_control_ != NULL;
508 if (GetArenaNoVirtual() == NULL && world_control_ != NULL)
delete world_control_;
509 world_control_ = NULL;
513 return world_control_ != NULL ? *world_control_ : *default_instance_->world_control_;
517 if (world_control_ == NULL) {
518 world_control_ = new ::ignition::msgs::WorldControl;
521 return world_control_;
527 world_control_ = NULL;
531 delete world_control_;
532 world_control_ = world_control;
543 return !_is_default_instance_ && wrench_ != NULL;
546 if (GetArenaNoVirtual() == NULL && wrench_ != NULL)
delete wrench_;
551 return wrench_ != NULL ? *wrench_ : *default_instance_->wrench_;
555 if (wrench_ == NULL) {
556 wrench_ = new ::ignition::msgs::Wrench;
579 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 596 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::UserCmd_Type>() {
609 #endif // PROTOBUF_ignition_2fmsgs_2fuser_5fcmd_2eproto__INCLUDED ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model > * mutable_model()
Definition: user_cmd.pb.h:419
bool has_world_control() const
Definition: user_cmd.pb.h:504
::std::string * release_entity_name()
Definition: user_cmd.pb.h:488
std::shared_ptr< UserCmd > UserCmdSharedPtr
Definition: user_cmd.pb.h:583
IGNITION_MSGS_VISIBLE bool UserCmd_Type_IsValid(int value)
int model_size() const
Definition: user_cmd.pb.h:400
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light > & light() const
Definition: user_cmd.pb.h:454
void set_id(::google::protobuf::uint32 value)
Definition: user_cmd.pb.h:335
void clear_description()
Definition: user_cmd.pb.h:342
UserCmd * New() const
Definition: user_cmd.pb.h:103
::ignition::msgs::WorldControl * release_world_control()
Definition: user_cmd.pb.h:523
UserCmd & operator=(const UserCmd &from)
Definition: user_cmd.pb.h:91
const int UserCmd_Type_Type_ARRAYSIZE
Definition: user_cmd.pb.h:70
Definition: user_cmd.pb.h:60
void set_entity_name(const ::std::string &value)
Definition: user_cmd.pb.h:467
void protobuf_AssignDesc_ignition_2fmsgs_2fuser_5fcmd_2eproto()
Definition: user_cmd.pb.h:61
int GetCachedSize() const
Definition: user_cmd.pb.h:123
const UserCmd_Type UserCmd_Type_Type_MIN
Definition: user_cmd.pb.h:68
void set_allocated_description(::std::string *description)
Definition: user_cmd.pb.h:375
static const ::google::protobuf::EnumDescriptor * Type_descriptor()
Definition: user_cmd.pb.h:161
Definition: wrench.pb.h:57
::ignition::msgs::Model * add_model()
Definition: user_cmd.pb.h:414
const ::std::string & entity_name() const
Definition: user_cmd.pb.h:463
Definition: light.pb.h:82
void clear_wrench()
Definition: user_cmd.pb.h:545
::ignition::msgs::UserCmd_Type type() const
Definition: user_cmd.pb.h:389
void set_description(const ::std::string &value)
Definition: user_cmd.pb.h:349
UserCmd_Type
Definition: user_cmd.pb.h:59
::std::string * release_description()
Definition: user_cmd.pb.h:370
void protobuf_ShutdownFile_ignition_2fmsgs_2fuser_5fcmd_2eproto()
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Light > * mutable_light()
Definition: user_cmd.pb.h:449
void set_allocated_entity_name(::std::string *entity_name)
Definition: user_cmd.pb.h:493
Definition: user_cmd.pb.h:84
const ::ignition::msgs::Wrench & wrench() const
Definition: user_cmd.pb.h:549
void clear_world_control()
Definition: user_cmd.pb.h:507
::std::string * mutable_entity_name()
Definition: user_cmd.pb.h:483
::ignition::msgs::WorldControl * mutable_world_control()
Definition: user_cmd.pb.h:515
static bool Type_Parse(const ::std::string &name, Type *value)
Definition: user_cmd.pb.h:167
const ::std::string & description() const
Definition: user_cmd.pb.h:345
::google::protobuf::uint32 id() const
Definition: user_cmd.pb.h:331
::std::string * mutable_description()
Definition: user_cmd.pb.h:365
void set_allocated_header(::ignition::msgs::Header *header)
Definition: user_cmd.pb.h:316
::ignition::msgs::Wrench * release_wrench()
Definition: user_cmd.pb.h:561
void set_allocated_world_control(::ignition::msgs::WorldControl *world_control)
Definition: user_cmd.pb.h:530
void clear_header()
Definition: user_cmd.pb.h:293
std::unique_ptr< UserCmd > UserCmdUniquePtr
Definition: user_cmd.pb.h:581
bool has_header() const
Definition: user_cmd.pb.h:290
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fuser_5fcmd_2eproto()
void clear_id()
Definition: user_cmd.pb.h:328
Definition: world_control.pb.h:58
std::unique_ptr< const UserCmd > ConstUserCmdUniquePtr
Definition: user_cmd.pb.h:582
::ignition::msgs::Light * add_light()
Definition: user_cmd.pb.h:444
const UserCmd_Type UserCmd_Type_Type_MAX
Definition: user_cmd.pb.h:69
Definition: user_cmd.pb.h:63
const ::ignition::msgs::Header & header() const
Definition: user_cmd.pb.h:297
void clear_model()
Definition: user_cmd.pb.h:403
static bool Type_IsValid(int value)
Definition: user_cmd.pb.h:151
::ignition::msgs::Header * mutable_header()
Definition: user_cmd.pb.h:301
Definition: model.pb.h:62
UserCmd_Type Type
Definition: user_cmd.pb.h:142
int light_size() const
Definition: user_cmd.pb.h:430
const ::std::string & UserCmd_Type_Name(UserCmd_Type value)
Definition: user_cmd.pb.h:73
Definition: user_cmd.pb.h:65
void set_allocated_wrench(::ignition::msgs::Wrench *wrench)
Definition: user_cmd.pb.h:568
void clear_light()
Definition: user_cmd.pb.h:433
bool UserCmd_Type_Parse(const ::std::string &name, UserCmd_Type *value)
Definition: user_cmd.pb.h:77
void clear_type()
Definition: user_cmd.pb.h:386
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Model > & model() const
Definition: user_cmd.pb.h:424
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: user_cmd.pb.h:120
IGNITION_MSGS_VISIBLEconst ::google::protobuf::EnumDescriptor * UserCmd_Type_descriptor()
static const ::std::string & Type_Name(Type value)
Definition: user_cmd.pb.h:164
bool has_wrench() const
Definition: user_cmd.pb.h:542
void set_type(::ignition::msgs::UserCmd_Type value)
Definition: user_cmd.pb.h:393
Definition: user_cmd.pb.h:62
::ignition::msgs::Wrench * mutable_wrench()
Definition: user_cmd.pb.h:553
void clear_entity_name()
Definition: user_cmd.pb.h:460
Definition: user_cmd.pb.h:64
const ::ignition::msgs::WorldControl & world_control() const
Definition: user_cmd.pb.h:511
::ignition::msgs::Header * release_header()
Definition: user_cmd.pb.h:309
std::shared_ptr< const UserCmd > ConstUserCmdSharedPtr
Definition: user_cmd.pb.h:584