4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fparticle_5femitter_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fparticle_5femitter_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/boolean.pb.h"
35 #include "gz/msgs/color.pb.h"
36 #include "gz/msgs/float.pb.h"
37 #include "gz/msgs/header.pb.h"
38 #include "gz/msgs/material.pb.h"
39 #include "gz/msgs/pose.pb.h"
40 #include "gz/msgs/stringmsg.pb.h"
41 #include "gz/msgs/vector3d.pb.h"
43 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fparticle_5femitter_2eproto GZ_MSGS_VISIBLE
48 static const ::google::protobuf::internal::ParseTableField entries[];
49 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
50 static const ::google::protobuf::internal::ParseTable schema[1];
51 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
52 static const ::google::protobuf::internal::SerializationTable serialization_table[];
53 static const ::google::protobuf::uint32 offsets[];
59 class ParticleEmitter;
60 class ParticleEmitterDefaultTypeInternal;
66 template<> GZ_MSGS_VISIBLE ::gz::msgs::ParticleEmitter* Arena::CreateMaybeMessage<::gz::msgs::ParticleEmitter>(Arena*);
87 return ::google::protobuf::internal::NameOfEnum(
92 return ::google::protobuf::internal::ParseNamedEnum<ParticleEmitter_EmitterType>(
111 *
this = ::std::move(from);
114 inline ParticleEmitter& operator=(ParticleEmitter&& from) noexcept {
115 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
116 if (
this != &from) InternalSwap(&from);
123 static const ::google::protobuf::Descriptor* descriptor();
124 static const ParticleEmitter& default_instance();
126 static void InitAsDefaultInstance();
131 static constexpr
int kIndexInFileMessages =
142 return CreateMaybeMessage<ParticleEmitter>(NULL);
146 return CreateMaybeMessage<ParticleEmitter>(arena);
148 void CopyFrom(const ::google::protobuf::Message& from)
final;
149 void MergeFrom(const ::google::protobuf::Message& from)
final;
153 bool IsInitialized() const final;
155 size_t ByteSizeLong() const final;
156 bool MergePartialFromCodedStream(
157 ::
google::protobuf::io::CodedInputStream* input) final;
158 void SerializeWithCachedSizes(
159 ::
google::protobuf::io::CodedOutputStream* output) const final;
160 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
161 bool deterministic, ::
google::protobuf::uint8* target) const final;
162 int GetCachedSize() const final {
return _cached_size_.Get(); }
167 void SetCachedSize(
int size)
const final;
170 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
173 inline void* MaybeArenaPtr()
const {
178 ::google::protobuf::Metadata GetMetadata() const final;
191 static inline
bool EmitterType_IsValid(
int value) {
198 static const int EmitterType_ARRAYSIZE =
200 static inline const ::google::protobuf::EnumDescriptor*
216 static const int kNameFieldNumber = 2;
217 const ::std::string& name()
const;
218 void set_name(const ::std::string& value);
222 void set_name(
const char* value);
223 void set_name(
const char* value,
size_t size);
229 bool has_header()
const;
231 static const int kHeaderFieldNumber = 1;
233 const ::gz::msgs::Header& _internal_header()
const;
235 const ::gz::msgs::Header& header()
const;
241 bool has_pose()
const;
243 static const int kPoseFieldNumber = 5;
245 const ::gz::msgs::Pose& _internal_pose()
const;
247 const ::gz::msgs::Pose& pose()
const;
253 bool has_size()
const;
255 static const int kSizeFieldNumber = 6;
257 const ::gz::msgs::Vector3d& _internal_size()
const;
259 const ::gz::msgs::Vector3d& size()
const;
265 bool has_rate()
const;
267 static const int kRateFieldNumber = 7;
269 const ::gz::msgs::Float& _internal_rate()
const;
271 const ::gz::msgs::Float& rate()
const;
277 bool has_duration()
const;
278 void clear_duration();
279 static const int kDurationFieldNumber = 8;
281 const ::gz::msgs::Float& _internal_duration()
const;
283 const ::gz::msgs::Float& duration()
const;
289 bool has_emitting()
const;
290 void clear_emitting();
291 static const int kEmittingFieldNumber = 9;
293 const ::gz::msgs::Boolean& _internal_emitting()
const;
295 const ::gz::msgs::Boolean& emitting()
const;
301 bool has_particle_size()
const;
302 void clear_particle_size();
303 static const int kParticleSizeFieldNumber = 10;
305 const ::gz::msgs::Vector3d& _internal_particle_size()
const;
307 const ::gz::msgs::Vector3d& particle_size()
const;
313 bool has_lifetime()
const;
314 void clear_lifetime();
315 static const int kLifetimeFieldNumber = 11;
317 const ::gz::msgs::Float& _internal_lifetime()
const;
319 const ::gz::msgs::Float& lifetime()
const;
325 bool has_material()
const;
326 void clear_material();
327 static const int kMaterialFieldNumber = 12;
329 const ::gz::msgs::Material& _internal_material()
const;
331 const ::gz::msgs::Material& material()
const;
337 bool has_min_velocity()
const;
338 void clear_min_velocity();
339 static const int kMinVelocityFieldNumber = 13;
341 const ::gz::msgs::Float& _internal_min_velocity()
const;
343 const ::gz::msgs::Float& min_velocity()
const;
349 bool has_max_velocity()
const;
350 void clear_max_velocity();
351 static const int kMaxVelocityFieldNumber = 14;
353 const ::gz::msgs::Float& _internal_max_velocity()
const;
355 const ::gz::msgs::Float& max_velocity()
const;
361 bool has_color_start()
const;
362 void clear_color_start();
363 static const int kColorStartFieldNumber = 15;
365 const ::gz::msgs::Color& _internal_color_start()
const;
367 const ::gz::msgs::Color& color_start()
const;
373 bool has_color_end()
const;
374 void clear_color_end();
375 static const int kColorEndFieldNumber = 16;
377 const ::gz::msgs::Color& _internal_color_end()
const;
379 const ::gz::msgs::Color& color_end()
const;
385 bool has_scale_rate()
const;
386 void clear_scale_rate();
387 static const int kScaleRateFieldNumber = 17;
389 const ::gz::msgs::Float& _internal_scale_rate()
const;
391 const ::gz::msgs::Float& scale_rate()
const;
397 bool has_color_range_image()
const;
398 void clear_color_range_image();
399 static const int kColorRangeImageFieldNumber = 18;
401 const ::gz::msgs::StringMsg& _internal_color_range_image()
const;
403 const ::gz::msgs::StringMsg& color_range_image()
const;
409 bool has_topic()
const;
411 static const int kTopicFieldNumber = 19;
413 const ::gz::msgs::StringMsg& _internal_topic()
const;
415 const ::gz::msgs::StringMsg& topic()
const;
421 bool has_particle_scatter_ratio()
const;
422 void clear_particle_scatter_ratio();
423 static const int kParticleScatterRatioFieldNumber = 20;
425 const ::gz::msgs::Float& _internal_particle_scatter_ratio()
const;
427 const ::gz::msgs::Float& particle_scatter_ratio()
const;
430 void set_allocated_particle_scatter_ratio(::
gz::msgs::Float* particle_scatter_ratio);
434 static const int kIdFieldNumber = 3;
435 ::google::protobuf::uint32 id()
const;
436 void set_id(::google::protobuf::uint32 value);
440 static const int kTypeFieldNumber = 4;
447 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
448 ::google::protobuf::internal::ArenaStringPtr name_;
466 ::google::protobuf::uint32 id_;
468 mutable ::google::protobuf::internal::CachedSize _cached_size_;
469 friend struct ::protobuf_gz_2fmsgs_2fparticle_5femitter_2eproto::TableStruct;
477 #pragma GCC diagnostic push
478 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
486 inline const ::gz::msgs::Header& ParticleEmitter::_internal_header()
const {
490 const ::gz::msgs::Header* p = header_;
504 if (header_ == NULL) {
505 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
512 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
513 if (message_arena == NULL) {
514 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
517 ::google::protobuf::Arena* submessage_arena = NULL;
518 if (message_arena != submessage_arena) {
519 header = ::google::protobuf::internal::GetOwnedMessage(
520 message_arena,
header, submessage_arena);
532 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
536 return name_.GetNoArena();
540 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
547 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
552 GOOGLE_DCHECK(value != NULL);
554 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
559 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
566 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
571 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
579 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name);
615 inline const ::gz::msgs::Pose& ParticleEmitter::_internal_pose()
const {
619 const ::gz::msgs::Pose* p = pose_;
621 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::Pose*
>(
634 auto* p = CreateMaybeMessage<::gz::msgs::Pose>(GetArenaNoVirtual());
641 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
642 if (message_arena == NULL) {
643 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(pose_);
646 ::google::protobuf::Arena* submessage_arena = NULL;
647 if (message_arena != submessage_arena) {
648 pose = ::google::protobuf::internal::GetOwnedMessage(
649 message_arena,
pose, submessage_arena);
663 inline const ::gz::msgs::Vector3d& ParticleEmitter::_internal_size()
const {
667 const ::gz::msgs::Vector3d* p = size_;
682 auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
689 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
690 if (message_arena == NULL) {
691 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(size_);
694 ::google::protobuf::Arena* submessage_arena = NULL;
695 if (message_arena != submessage_arena) {
696 size = ::google::protobuf::internal::GetOwnedMessage(
697 message_arena,
size, submessage_arena);
711 inline const ::gz::msgs::Float& ParticleEmitter::_internal_rate()
const {
715 const ::gz::msgs::Float* p = rate_;
730 auto* p = CreateMaybeMessage<::gz::msgs::Float>(GetArenaNoVirtual());
737 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
738 if (message_arena == NULL) {
739 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(rate_);
742 ::google::protobuf::Arena* submessage_arena = NULL;
743 if (message_arena != submessage_arena) {
744 rate = ::google::protobuf::internal::GetOwnedMessage(
745 message_arena,
rate, submessage_arena);
759 inline const ::gz::msgs::Float& ParticleEmitter::_internal_duration()
const {
763 const ::gz::msgs::Float* p = duration_;
777 if (duration_ == NULL) {
778 auto* p = CreateMaybeMessage<::gz::msgs::Float>(GetArenaNoVirtual());
785 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
786 if (message_arena == NULL) {
787 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(duration_);
790 ::google::protobuf::Arena* submessage_arena = NULL;
791 if (message_arena != submessage_arena) {
792 duration = ::google::protobuf::internal::GetOwnedMessage(
793 message_arena,
duration, submessage_arena);
807 inline const ::gz::msgs::Boolean& ParticleEmitter::_internal_emitting()
const {
811 const ::gz::msgs::Boolean* p = emitting_;
825 if (emitting_ == NULL) {
826 auto* p = CreateMaybeMessage<::gz::msgs::Boolean>(GetArenaNoVirtual());
833 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
834 if (message_arena == NULL) {
835 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(emitting_);
838 ::google::protobuf::Arena* submessage_arena = NULL;
839 if (message_arena != submessage_arena) {
840 emitting = ::google::protobuf::internal::GetOwnedMessage(
841 message_arena,
emitting, submessage_arena);
855 inline const ::gz::msgs::Vector3d& ParticleEmitter::_internal_particle_size()
const {
856 return *particle_size_;
859 const ::gz::msgs::Vector3d* p = particle_size_;
868 particle_size_ = NULL;
873 if (particle_size_ == NULL) {
874 auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
878 return particle_size_;
881 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
882 if (message_arena == NULL) {
883 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(particle_size_);
886 ::google::protobuf::Arena* submessage_arena = NULL;
887 if (message_arena != submessage_arena) {
888 particle_size = ::google::protobuf::internal::GetOwnedMessage(
903 inline const ::gz::msgs::Float& ParticleEmitter::_internal_lifetime()
const {
907 const ::gz::msgs::Float* p = lifetime_;
921 if (lifetime_ == NULL) {
922 auto* p = CreateMaybeMessage<::gz::msgs::Float>(GetArenaNoVirtual());
929 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
930 if (message_arena == NULL) {
931 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(lifetime_);
934 ::google::protobuf::Arena* submessage_arena = NULL;
935 if (message_arena != submessage_arena) {
936 lifetime = ::google::protobuf::internal::GetOwnedMessage(
937 message_arena,
lifetime, submessage_arena);
951 inline const ::gz::msgs::Material& ParticleEmitter::_internal_material()
const {
955 const ::gz::msgs::Material* p = material_;
969 if (material_ == NULL) {
970 auto* p = CreateMaybeMessage<::gz::msgs::Material>(GetArenaNoVirtual());
977 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
978 if (message_arena == NULL) {
979 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(material_);
982 ::google::protobuf::Arena* submessage_arena = NULL;
983 if (message_arena != submessage_arena) {
984 material = ::google::protobuf::internal::GetOwnedMessage(
985 message_arena,
material, submessage_arena);
999 inline const ::gz::msgs::Float& ParticleEmitter::_internal_min_velocity()
const {
1000 return *min_velocity_;
1003 const ::gz::msgs::Float* p = min_velocity_;
1012 min_velocity_ = NULL;
1017 if (min_velocity_ == NULL) {
1018 auto* p = CreateMaybeMessage<::gz::msgs::Float>(GetArenaNoVirtual());
1022 return min_velocity_;
1025 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1026 if (message_arena == NULL) {
1027 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(min_velocity_);
1030 ::google::protobuf::Arena* submessage_arena = NULL;
1031 if (message_arena != submessage_arena) {
1032 min_velocity = ::google::protobuf::internal::GetOwnedMessage(
1047 inline const ::gz::msgs::Float& ParticleEmitter::_internal_max_velocity()
const {
1048 return *max_velocity_;
1051 const ::gz::msgs::Float* p = max_velocity_;
1060 max_velocity_ = NULL;
1065 if (max_velocity_ == NULL) {
1066 auto* p = CreateMaybeMessage<::gz::msgs::Float>(GetArenaNoVirtual());
1070 return max_velocity_;
1073 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1074 if (message_arena == NULL) {
1075 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(max_velocity_);
1078 ::google::protobuf::Arena* submessage_arena = NULL;
1079 if (message_arena != submessage_arena) {
1080 max_velocity = ::google::protobuf::internal::GetOwnedMessage(
1095 inline const ::gz::msgs::Color& ParticleEmitter::_internal_color_start()
const {
1096 return *color_start_;
1099 const ::gz::msgs::Color* p = color_start_;
1108 color_start_ = NULL;
1113 if (color_start_ == NULL) {
1114 auto* p = CreateMaybeMessage<::gz::msgs::Color>(GetArenaNoVirtual());
1118 return color_start_;
1121 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1122 if (message_arena == NULL) {
1123 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(color_start_);
1126 ::google::protobuf::Arena* submessage_arena = NULL;
1127 if (message_arena != submessage_arena) {
1128 color_start = ::google::protobuf::internal::GetOwnedMessage(
1143 inline const ::gz::msgs::Color& ParticleEmitter::_internal_color_end()
const {
1147 const ::gz::msgs::Color* p = color_end_;
1161 if (color_end_ == NULL) {
1162 auto* p = CreateMaybeMessage<::gz::msgs::Color>(GetArenaNoVirtual());
1169 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1170 if (message_arena == NULL) {
1171 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(color_end_);
1174 ::google::protobuf::Arena* submessage_arena = NULL;
1175 if (message_arena != submessage_arena) {
1176 color_end = ::google::protobuf::internal::GetOwnedMessage(
1177 message_arena,
color_end, submessage_arena);
1191 inline const ::gz::msgs::Float& ParticleEmitter::_internal_scale_rate()
const {
1192 return *scale_rate_;
1195 const ::gz::msgs::Float* p = scale_rate_;
1209 if (scale_rate_ == NULL) {
1210 auto* p = CreateMaybeMessage<::gz::msgs::Float>(GetArenaNoVirtual());
1217 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1218 if (message_arena == NULL) {
1219 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(scale_rate_);
1222 ::google::protobuf::Arena* submessage_arena = NULL;
1223 if (message_arena != submessage_arena) {
1224 scale_rate = ::google::protobuf::internal::GetOwnedMessage(
1225 message_arena,
scale_rate, submessage_arena);
1239 inline const ::gz::msgs::StringMsg& ParticleEmitter::_internal_color_range_image()
const {
1240 return *color_range_image_;
1243 const ::gz::msgs::StringMsg* p = color_range_image_;
1252 color_range_image_ = NULL;
1257 if (color_range_image_ == NULL) {
1258 auto* p = CreateMaybeMessage<::gz::msgs::StringMsg>(GetArenaNoVirtual());
1259 color_range_image_ = p;
1262 return color_range_image_;
1265 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1266 if (message_arena == NULL) {
1267 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(color_range_image_);
1270 ::google::protobuf::Arena* submessage_arena = NULL;
1271 if (message_arena != submessage_arena) {
1287 inline const ::gz::msgs::StringMsg& ParticleEmitter::_internal_topic()
const {
1291 const ::gz::msgs::StringMsg* p = topic_;
1305 if (topic_ == NULL) {
1306 auto* p = CreateMaybeMessage<::gz::msgs::StringMsg>(GetArenaNoVirtual());
1313 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1314 if (message_arena == NULL) {
1315 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(topic_);
1318 ::google::protobuf::Arena* submessage_arena = NULL;
1319 if (message_arena != submessage_arena) {
1320 topic = ::google::protobuf::internal::GetOwnedMessage(
1321 message_arena,
topic, submessage_arena);
1335 inline const ::gz::msgs::Float& ParticleEmitter::_internal_particle_scatter_ratio()
const {
1336 return *particle_scatter_ratio_;
1339 const ::gz::msgs::Float* p = particle_scatter_ratio_;
1348 particle_scatter_ratio_ = NULL;
1353 if (particle_scatter_ratio_ == NULL) {
1354 auto* p = CreateMaybeMessage<::gz::msgs::Float>(GetArenaNoVirtual());
1355 particle_scatter_ratio_ = p;
1358 return particle_scatter_ratio_;
1361 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1362 if (message_arena == NULL) {
1363 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(particle_scatter_ratio_);
1366 ::google::protobuf::Arena* submessage_arena = NULL;
1367 if (message_arena != submessage_arena) {
1380 #pragma GCC diagnostic pop
1389 namespace protobuf {
1393 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::ParticleEmitter_EmitterType>() {
1402 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fparticle_5femitter_2eproto