4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fvisual_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fvisual_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/header.pb.h"
35 #include "gz/msgs/pose.pb.h"
36 #include "gz/msgs/geometry.pb.h"
37 #include "gz/msgs/material.pb.h"
38 #include "gz/msgs/plugin.pb.h"
39 #include "gz/msgs/vector3d.pb.h"
41 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fvisual_2eproto GZ_MSGS_VISIBLE
46 static const ::google::protobuf::internal::ParseTableField entries[];
47 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
48 static const ::google::protobuf::internal::ParseTable schema[2];
49 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
50 static const ::google::protobuf::internal::SerializationTable serialization_table[];
51 static const ::google::protobuf::uint32 offsets[];
58 class VisualDefaultTypeInternal;
61 class Visual_MetaDefaultTypeInternal;
67 template<> GZ_MSGS_VISIBLE ::gz::msgs::Visual* Arena::CreateMaybeMessage<::gz::msgs::Visual>(Arena*);
68 template<> GZ_MSGS_VISIBLE ::gz::msgs::Visual_Meta* Arena::CreateMaybeMessage<::gz::msgs::Visual_Meta>(Arena*);
93 return ::google::protobuf::internal::NameOfEnum(
98 return ::google::protobuf::internal::ParseNamedEnum<Visual_Type>(
103 class GZ_MSGS_VISIBLE
Visual_Meta :
public ::google::protobuf::Message {
117 *
this = ::std::move(from);
120 inline Visual_Meta& operator=(Visual_Meta&& from) noexcept {
121 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
122 if (
this != &from) InternalSwap(&from);
129 static const ::google::protobuf::Descriptor* descriptor();
130 static const Visual_Meta& default_instance();
132 static void InitAsDefaultInstance();
137 static constexpr
int kIndexInFileMessages =
148 return CreateMaybeMessage<Visual_Meta>(NULL);
152 return CreateMaybeMessage<Visual_Meta>(arena);
154 void CopyFrom(const ::google::protobuf::Message& from)
final;
155 void MergeFrom(const ::google::protobuf::Message& from)
final;
159 bool IsInitialized() const final;
161 size_t ByteSizeLong() const final;
162 bool MergePartialFromCodedStream(
163 ::
google::protobuf::io::CodedInputStream* input) final;
164 void SerializeWithCachedSizes(
165 ::
google::protobuf::io::CodedOutputStream* output) const final;
166 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
167 bool deterministic, ::
google::protobuf::uint8* target) const final;
168 int GetCachedSize() const final {
return _cached_size_.Get(); }
173 void SetCachedSize(
int size)
const final;
176 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
179 inline void* MaybeArenaPtr()
const {
184 ::google::protobuf::Metadata GetMetadata() const final;
192 static const
int kLayerFieldNumber = 1;
193 ::
google::protobuf::int32 layer() const;
194 void set_layer(::
google::protobuf::int32 value);
199 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
200 ::
google::protobuf::int32 layer_;
201 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
220 *
this = ::std::move(from);
223 inline Visual& operator=(Visual&& from) noexcept {
224 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
225 if (
this != &from) InternalSwap(&from);
232 static const ::google::protobuf::Descriptor* descriptor();
233 static const Visual& default_instance();
235 static void InitAsDefaultInstance();
237 return reinterpret_cast<const Visual*
>(
240 static constexpr
int kIndexInFileMessages =
251 return CreateMaybeMessage<Visual>(NULL);
254 Visual*
New(::google::protobuf::Arena* arena)
const final {
255 return CreateMaybeMessage<Visual>(arena);
257 void CopyFrom(const ::google::protobuf::Message& from)
final;
258 void MergeFrom(const ::google::protobuf::Message& from)
final;
259 void CopyFrom(
const Visual& from);
260 void MergeFrom(
const Visual& from);
262 bool IsInitialized() const final;
264 size_t ByteSizeLong() const final;
265 bool MergePartialFromCodedStream(
266 ::
google::protobuf::io::CodedInputStream* input) final;
267 void SerializeWithCachedSizes(
268 ::
google::protobuf::io::CodedOutputStream* output) const final;
269 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
270 bool deterministic, ::
google::protobuf::uint8* target) const final;
271 int GetCachedSize() const final {
return _cached_size_.Get(); }
276 void SetCachedSize(
int size)
const final;
277 void InternalSwap(
Visual* other);
279 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
282 inline void* MaybeArenaPtr()
const {
287 ::google::protobuf::Metadata GetMetadata() const final;
310 static inline
bool Type_IsValid(
int value) {
317 static const int Type_ARRAYSIZE =
319 static inline const ::google::protobuf::EnumDescriptor*
334 int plugin_size()
const;
336 static const int kPluginFieldNumber = 15;
338 ::google::protobuf::RepeatedPtrField< ::gz::msgs::Plugin >*
340 const ::gz::msgs::Plugin& plugin(
int index)
const;
342 const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Plugin >&
347 static const int kNameFieldNumber = 2;
348 const ::std::string& name()
const;
349 void set_name(const ::std::string& value);
353 void set_name(
const char* value);
354 void set_name(
const char* value,
size_t size);
360 void clear_parent_name();
361 static const int kParentNameFieldNumber = 4;
362 const ::std::string& parent_name()
const;
363 void set_parent_name(const ::std::string& value);
367 void set_parent_name(
const char* value);
368 void set_parent_name(
const char* value,
size_t size);
371 void set_allocated_parent_name(::
std::string* parent_name);
374 bool has_header()
const;
376 static const int kHeaderFieldNumber = 1;
378 const ::gz::msgs::Header& _internal_header()
const;
380 const ::gz::msgs::Header& header()
const;
386 bool has_pose()
const;
388 static const int kPoseFieldNumber = 9;
390 const ::gz::msgs::Pose& _internal_pose()
const;
392 const ::gz::msgs::Pose& pose()
const;
398 bool has_geometry()
const;
399 void clear_geometry();
400 static const int kGeometryFieldNumber = 10;
402 const ::gz::msgs::Geometry& _internal_geometry()
const;
404 const ::gz::msgs::Geometry& geometry()
const;
410 bool has_material()
const;
411 void clear_material();
412 static const int kMaterialFieldNumber = 11;
414 const ::gz::msgs::Material& _internal_material()
const;
416 const ::gz::msgs::Material& material()
const;
422 bool has_scale()
const;
424 static const int kScaleFieldNumber = 16;
426 const ::gz::msgs::Vector3d& _internal_scale()
const;
428 const ::gz::msgs::Vector3d& scale()
const;
434 bool has_meta()
const;
436 static const int kMetaFieldNumber = 17;
438 const ::gz::msgs::Visual_Meta& _internal_meta()
const;
440 const ::gz::msgs::Visual_Meta& meta()
const;
447 static const int kIdFieldNumber = 3;
448 ::google::protobuf::uint32 id()
const;
449 void set_id(::google::protobuf::uint32 value);
452 void clear_parent_id();
453 static const int kParentIdFieldNumber = 5;
454 ::google::protobuf::uint32 parent_id()
const;
455 void set_parent_id(::google::protobuf::uint32 value);
458 void clear_transparency();
459 static const int kTransparencyFieldNumber = 7;
460 double transparency()
const;
461 void set_transparency(
double value);
464 void clear_laser_retro();
465 static const int kLaserRetroFieldNumber = 8;
466 double laser_retro()
const;
467 void set_laser_retro(
double value);
470 void clear_cast_shadows();
471 static const int kCastShadowsFieldNumber = 6;
472 bool cast_shadows()
const;
473 void set_cast_shadows(
bool value);
476 void clear_visible();
477 static const int kVisibleFieldNumber = 12;
478 bool visible()
const;
479 void set_visible(
bool value);
482 void clear_delete_me();
483 static const int kDeleteMeFieldNumber = 13;
484 bool delete_me()
const;
485 void set_delete_me(
bool value);
488 void clear_is_static();
489 static const int kIsStaticFieldNumber = 14;
490 bool is_static()
const;
491 void set_is_static(
bool value);
495 static const int kTypeFieldNumber = 18;
502 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
503 ::google::protobuf::RepeatedPtrField< ::gz::msgs::Plugin > plugin_;
504 ::google::protobuf::internal::ArenaStringPtr name_;
505 ::google::protobuf::internal::ArenaStringPtr parent_name_;
512 ::google::protobuf::uint32 id_;
513 ::google::protobuf::uint32 parent_id_;
514 double transparency_;
521 mutable ::google::protobuf::internal::CachedSize _cached_size_;
522 friend struct ::protobuf_gz_2fmsgs_2fvisual_2eproto::TableStruct;
530 #pragma GCC diagnostic push
531 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
555 return this != internal_default_instance() && header_ != NULL;
557 inline const ::gz::msgs::Header& Visual::_internal_header()
const {
561 const ::gz::msgs::Header* p = header_;
575 if (header_ == NULL) {
576 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
583 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
584 if (message_arena == NULL) {
585 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
588 ::google::protobuf::Arena* submessage_arena = NULL;
589 if (message_arena != submessage_arena) {
590 header = ::google::protobuf::internal::GetOwnedMessage(
591 message_arena, header, submessage_arena);
603 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
607 return name_.GetNoArena();
611 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
618 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
623 GOOGLE_DCHECK(value != NULL);
625 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
630 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
631 ::
std::string(
reinterpret_cast<const char*
>(value), size));
637 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
642 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
650 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
670 parent_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
674 return parent_name_.GetNoArena();
678 parent_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
684 parent_name_.SetNoArena(
685 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
690 GOOGLE_DCHECK(value != NULL);
692 parent_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
697 parent_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
698 ::
std::string(
reinterpret_cast<const char*
>(value), size));
704 return parent_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
709 return parent_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
712 if (parent_name != NULL) {
717 parent_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), parent_name);
737 cast_shadows_ =
false;
741 return cast_shadows_;
745 cast_shadows_ = value;
755 return transparency_;
759 transparency_ = value;
773 laser_retro_ = value;
779 return this != internal_default_instance() && pose_ != NULL;
781 inline const ::gz::msgs::Pose& Visual::_internal_pose()
const {
785 const ::gz::msgs::Pose* p = pose_;
787 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::Pose*
>(
800 auto* p = CreateMaybeMessage<::gz::msgs::Pose>(GetArenaNoVirtual());
807 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
808 if (message_arena == NULL) {
809 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(pose_);
812 ::google::protobuf::Arena* submessage_arena = NULL;
813 if (message_arena != submessage_arena) {
814 pose = ::google::protobuf::internal::GetOwnedMessage(
815 message_arena, pose, submessage_arena);
827 return this != internal_default_instance() && geometry_ != NULL;
829 inline const ::gz::msgs::Geometry& Visual::_internal_geometry()
const {
833 const ::gz::msgs::Geometry* p = geometry_;
847 if (geometry_ == NULL) {
848 auto* p = CreateMaybeMessage<::gz::msgs::Geometry>(GetArenaNoVirtual());
855 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
856 if (message_arena == NULL) {
857 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(geometry_);
860 ::google::protobuf::Arena* submessage_arena = NULL;
861 if (message_arena != submessage_arena) {
862 geometry = ::google::protobuf::internal::GetOwnedMessage(
863 message_arena, geometry, submessage_arena);
869 geometry_ = geometry;
875 return this != internal_default_instance() && material_ != NULL;
877 inline const ::gz::msgs::Material& Visual::_internal_material()
const {
881 const ::gz::msgs::Material* p = material_;
895 if (material_ == NULL) {
896 auto* p = CreateMaybeMessage<::gz::msgs::Material>(GetArenaNoVirtual());
903 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
904 if (message_arena == NULL) {
905 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(material_);
908 ::google::protobuf::Arena* submessage_arena = NULL;
909 if (message_arena != submessage_arena) {
910 material = ::google::protobuf::internal::GetOwnedMessage(
911 message_arena, material, submessage_arena);
917 material_ = material;
965 return plugin_.size();
969 return plugin_.Mutable(index);
971 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Plugin >*
978 return plugin_.Get(index);
982 return plugin_.Add();
984 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Plugin >&
992 return this != internal_default_instance() && scale_ != NULL;
994 inline const ::gz::msgs::Vector3d& Visual::_internal_scale()
const {
998 const ::gz::msgs::Vector3d* p = scale_;
1012 if (scale_ == NULL) {
1013 auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
1020 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1021 if (message_arena == NULL) {
1022 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(scale_);
1025 ::google::protobuf::Arena* submessage_arena = NULL;
1026 if (message_arena != submessage_arena) {
1027 scale = ::google::protobuf::internal::GetOwnedMessage(
1028 message_arena, scale, submessage_arena);
1040 return this != internal_default_instance() && meta_ != NULL;
1043 if (GetArenaNoVirtual() == NULL && meta_ != NULL) {
1048 inline const ::gz::msgs::Visual_Meta& Visual::_internal_meta()
const {
1052 const ::gz::msgs::Visual_Meta* p = meta_;
1066 if (meta_ == NULL) {
1067 auto* p = CreateMaybeMessage<::gz::msgs::Visual_Meta>(GetArenaNoVirtual());
1074 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1075 if (message_arena == NULL) {
1079 ::google::protobuf::Arena* submessage_arena = NULL;
1080 if (message_arena != submessage_arena) {
1081 meta = ::google::protobuf::internal::GetOwnedMessage(
1082 message_arena, meta, submessage_arena);
1107 #pragma GCC diagnostic pop
1118 namespace protobuf {
1122 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::Visual_Type>() {
1131 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fvisual_2eproto