4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fentity_5ffactory_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fentity_5ffactory_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/unknown_field_set.h>
33 #include "gz/msgs/header.pb.h"
34 #include "gz/msgs/light.pb.h"
35 #include "gz/msgs/model.pb.h"
36 #include "gz/msgs/pose.pb.h"
37 #include "gz/msgs/spherical_coordinates.pb.h"
39 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fentity_5ffactory_2eproto GZ_MSGS_VISIBLE
44 static const ::google::protobuf::internal::ParseTableField entries[];
45 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
46 static const ::google::protobuf::internal::ParseTable schema[1];
47 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
48 static const ::google::protobuf::internal::SerializationTable serialization_table[];
49 static const ::google::protobuf::uint32 offsets[];
56 class EntityFactoryDefaultTypeInternal;
62 template<> GZ_MSGS_VISIBLE ::gz::msgs::EntityFactory* Arena::CreateMaybeMessage<::gz::msgs::EntityFactory>(Arena*);
70 class GZ_MSGS_VISIBLE
EntityFactory :
public ::google::protobuf::Message {
84 *
this = ::std::move(from);
87 inline EntityFactory& operator=(EntityFactory&& from) noexcept {
88 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
89 if (
this != &from) InternalSwap(&from);
96 static const ::google::protobuf::Descriptor* descriptor();
97 static const EntityFactory& default_instance();
108 static void InitAsDefaultInstance();
113 static constexpr
int kIndexInFileMessages =
124 return CreateMaybeMessage<EntityFactory>(NULL);
128 return CreateMaybeMessage<EntityFactory>(arena);
130 void CopyFrom(const ::google::protobuf::Message& from)
final;
131 void MergeFrom(const ::google::protobuf::Message& from)
final;
135 bool IsInitialized() const final;
137 size_t ByteSizeLong() const final;
138 bool MergePartialFromCodedStream(
139 ::
google::protobuf::io::CodedInputStream* input) final;
140 void SerializeWithCachedSizes(
141 ::
google::protobuf::io::CodedOutputStream* output) const final;
142 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
143 bool deterministic, ::
google::protobuf::uint8* target) const final;
144 int GetCachedSize() const final {
return _cached_size_.Get(); }
149 void SetCachedSize(
int size)
const final;
152 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
155 inline void* MaybeArenaPtr()
const {
160 ::google::protobuf::Metadata GetMetadata() const final;
168 static const
int kNameFieldNumber = 8;
169 const ::
std::
string& name() const;
170 void set_name(const ::
std::
string& value);
174 void set_name(
const char* value);
175 void set_name(
const char* value,
size_t size);
181 void clear_relative_to();
182 static const int kRelativeToFieldNumber = 10;
183 const ::std::string& relative_to()
const;
184 void set_relative_to(const ::std::string& value);
188 void set_relative_to(
const char* value);
189 void set_relative_to(
const char* value,
size_t size);
192 void set_allocated_relative_to(::
std::string* relative_to);
195 bool has_header()
const;
197 static const int kHeaderFieldNumber = 1;
199 const ::gz::msgs::Header& _internal_header()
const;
201 const ::gz::msgs::Header& header()
const;
207 bool has_pose()
const;
209 static const int kPoseFieldNumber = 7;
211 const ::gz::msgs::Pose& _internal_pose()
const;
213 const ::gz::msgs::Pose& pose()
const;
219 bool has_spherical_coordinates()
const;
220 void clear_spherical_coordinates();
221 static const int kSphericalCoordinatesFieldNumber = 11;
223 const ::gz::msgs::SphericalCoordinates& _internal_spherical_coordinates()
const;
225 const ::gz::msgs::SphericalCoordinates& spherical_coordinates()
const;
231 void clear_allow_renaming();
232 static const int kAllowRenamingFieldNumber = 9;
233 bool allow_renaming()
const;
234 void set_allow_renaming(
bool value);
238 bool has_sdf()
const;
241 static const int kSdfFieldNumber = 2;
242 const ::std::string& sdf()
const;
243 void set_sdf(const ::std::string& value);
247 void set_sdf(
const char* value);
248 void set_sdf(
const char* value,
size_t size);
255 bool has_sdf_filename()
const;
257 void clear_sdf_filename();
258 static const int kSdfFilenameFieldNumber = 3;
259 const ::std::string& sdf_filename()
const;
260 void set_sdf_filename(const ::std::string& value);
264 void set_sdf_filename(
const char* value);
265 void set_sdf_filename(
const char* value,
size_t size);
268 void set_allocated_sdf_filename(::
std::string* sdf_filename);
271 bool has_model()
const;
273 static const int kModelFieldNumber = 4;
275 const ::gz::msgs::Model& _internal_model()
const;
277 const ::gz::msgs::Model& model()
const;
283 bool has_light()
const;
285 static const int kLightFieldNumber = 5;
287 const ::gz::msgs::Light& _internal_light()
const;
289 const ::gz::msgs::Light& light()
const;
296 bool has_clone_name()
const;
298 void clear_clone_name();
299 static const int kCloneNameFieldNumber = 6;
300 const ::std::string& clone_name()
const;
301 void set_clone_name(const ::std::string& value);
305 void set_clone_name(
const char* value);
306 void set_clone_name(
const char* value,
size_t size);
309 void set_allocated_clone_name(::
std::string* clone_name);
316 void set_has_sdf_filename();
317 void set_has_model();
318 void set_has_light();
319 void set_has_clone_name();
321 inline bool has_from()
const;
322 inline void clear_has_from();
324 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
325 ::google::protobuf::internal::ArenaStringPtr name_;
326 ::google::protobuf::internal::ArenaStringPtr relative_to_;
330 bool allow_renaming_;
333 ::google::protobuf::internal::ArenaStringPtr sdf_;
334 ::google::protobuf::internal::ArenaStringPtr sdf_filename_;
337 ::google::protobuf::internal::ArenaStringPtr clone_name_;
339 mutable ::google::protobuf::internal::CachedSize _cached_size_;
340 ::google::protobuf::uint32 _oneof_case_[1];
342 friend struct ::protobuf_gz_2fmsgs_2fentity_5ffactory_2eproto::TableStruct;
350 #pragma GCC diagnostic push
351 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
359 inline const ::gz::msgs::Header& EntityFactory::_internal_header()
const {
363 const ::gz::msgs::Header* p = header_;
377 if (header_ == NULL) {
378 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
385 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
386 if (message_arena == NULL) {
387 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
390 ::google::protobuf::Arena* submessage_arena = NULL;
391 if (message_arena != submessage_arena) {
392 header = ::google::protobuf::internal::GetOwnedMessage(
393 message_arena,
header, submessage_arena);
404 inline bool EntityFactory::has_sdf()
const {
407 inline void EntityFactory::set_has_sdf() {
408 _oneof_case_[0] =
kSdf;
412 from_.sdf_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
419 return from_.sdf_.GetNoArena();
421 return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
428 from_.sdf_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
430 from_.sdf_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
439 from_.sdf_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
441 from_.sdf_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
446 GOOGLE_DCHECK(value != NULL);
450 from_.sdf_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
452 from_.sdf_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
460 from_.sdf_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
462 from_.sdf_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(
463 reinterpret_cast<const char*
>(value), size));
470 from_.sdf_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
473 return from_.sdf_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
479 return from_.sdf_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
486 from_.sdf_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
491 from_.sdf_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
sdf);
497 inline bool EntityFactory::has_sdf_filename()
const {
500 inline void EntityFactory::set_has_sdf_filename() {
504 if (has_sdf_filename()) {
505 from_.sdf_filename_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
511 if (has_sdf_filename()) {
512 return from_.sdf_filename_.GetNoArena();
514 return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
518 if (!has_sdf_filename()) {
520 set_has_sdf_filename();
521 from_.sdf_filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
523 from_.sdf_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
529 if (!has_sdf_filename()) {
531 set_has_sdf_filename();
532 from_.sdf_filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
534 from_.sdf_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
539 GOOGLE_DCHECK(value != NULL);
540 if (!has_sdf_filename()) {
542 set_has_sdf_filename();
543 from_.sdf_filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
545 from_.sdf_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
550 if (!has_sdf_filename()) {
552 set_has_sdf_filename();
553 from_.sdf_filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
555 from_.sdf_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(
556 reinterpret_cast<const char*
>(value), size));
560 if (!has_sdf_filename()) {
562 set_has_sdf_filename();
563 from_.sdf_filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
566 return from_.sdf_filename_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
570 if (has_sdf_filename()) {
572 return from_.sdf_filename_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
578 if (!has_sdf_filename()) {
579 from_.sdf_filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
583 set_has_sdf_filename();
584 from_.sdf_filename_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
sdf_filename);
593 inline void EntityFactory::set_has_model() {
596 inline const ::gz::msgs::Model& EntityFactory::_internal_model()
const {
597 return *from_.model_;
620 from_.model_ = CreateMaybeMessage< ::gz::msgs::Model >(
621 GetArenaNoVirtual());
631 inline void EntityFactory::set_has_light() {
634 inline const ::gz::msgs::Light& EntityFactory::_internal_light()
const {
635 return *from_.light_;
658 from_.light_ = CreateMaybeMessage< ::gz::msgs::Light >(
659 GetArenaNoVirtual());
666 inline bool EntityFactory::has_clone_name()
const {
669 inline void EntityFactory::set_has_clone_name() {
673 if (has_clone_name()) {
674 from_.clone_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
680 if (has_clone_name()) {
681 return from_.clone_name_.GetNoArena();
683 return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
687 if (!has_clone_name()) {
689 set_has_clone_name();
690 from_.clone_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
692 from_.clone_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
698 if (!has_clone_name()) {
700 set_has_clone_name();
701 from_.clone_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
703 from_.clone_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
708 GOOGLE_DCHECK(value != NULL);
709 if (!has_clone_name()) {
711 set_has_clone_name();
712 from_.clone_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
714 from_.clone_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
719 if (!has_clone_name()) {
721 set_has_clone_name();
722 from_.clone_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
724 from_.clone_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(
725 reinterpret_cast<const char*
>(value), size));
729 if (!has_clone_name()) {
731 set_has_clone_name();
732 from_.clone_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
735 return from_.clone_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
739 if (has_clone_name()) {
741 return from_.clone_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
747 if (!has_clone_name()) {
748 from_.clone_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
752 set_has_clone_name();
753 from_.clone_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
clone_name);
762 inline const ::gz::msgs::Pose& EntityFactory::_internal_pose()
const {
766 const ::gz::msgs::Pose* p = pose_;
768 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::Pose*
>(
781 auto* p = CreateMaybeMessage<::gz::msgs::Pose>(GetArenaNoVirtual());
788 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
789 if (message_arena == NULL) {
790 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(pose_);
793 ::google::protobuf::Arena* submessage_arena = NULL;
794 if (message_arena != submessage_arena) {
795 pose = ::google::protobuf::internal::GetOwnedMessage(
796 message_arena,
pose, submessage_arena);
808 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
812 return name_.GetNoArena();
816 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
823 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
828 GOOGLE_DCHECK(value != NULL);
830 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
835 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
836 ::
std::string(
reinterpret_cast<const char*
>(value), size));
842 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
847 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
855 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name);
861 allow_renaming_ =
false;
865 return allow_renaming_;
869 allow_renaming_ = value;
875 relative_to_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
879 return relative_to_.GetNoArena();
883 relative_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
889 relative_to_.SetNoArena(
890 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
895 GOOGLE_DCHECK(value != NULL);
897 relative_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
902 relative_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
903 ::
std::string(
reinterpret_cast<const char*
>(value), size));
909 return relative_to_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
914 return relative_to_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
922 relative_to_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
relative_to);
930 inline const ::gz::msgs::SphericalCoordinates& EntityFactory::_internal_spherical_coordinates()
const {
931 return *spherical_coordinates_;
934 const ::gz::msgs::SphericalCoordinates* p = spherical_coordinates_;
943 spherical_coordinates_ = NULL;
948 if (spherical_coordinates_ == NULL) {
949 auto* p = CreateMaybeMessage<::gz::msgs::SphericalCoordinates>(GetArenaNoVirtual());
950 spherical_coordinates_ = p;
953 return spherical_coordinates_;
956 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
957 if (message_arena == NULL) {
958 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(spherical_coordinates_);
961 ::google::protobuf::Arena* submessage_arena = NULL;
962 if (message_arena != submessage_arena) {
974 inline bool EntityFactory::has_from()
const {
977 inline void EntityFactory::clear_has_from() {
984 #pragma GCC diagnostic pop
994 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fentity_5ffactory_2eproto