4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fmarker_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fmarker_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/time.pb.h"
35 #include "gz/msgs/pose.pb.h"
36 #include "gz/msgs/vector3d.pb.h"
37 #include "gz/msgs/material.pb.h"
38 #include "gz/msgs/header.pb.h"
40 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fmarker_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 MarkerDefaultTypeInternal;
63 template<> GZ_MSGS_VISIBLE ::gz::msgs::Marker* Arena::CreateMaybeMessage<::gz::msgs::Marker>(Arena*);
96 return ::google::protobuf::internal::NameOfEnum(
101 return ::google::protobuf::internal::ParseNamedEnum<Marker_Type>(
117 return ::google::protobuf::internal::NameOfEnum(
122 return ::google::protobuf::internal::ParseNamedEnum<Marker_Visibility>(
139 return ::google::protobuf::internal::NameOfEnum(
144 return ::google::protobuf::internal::ParseNamedEnum<Marker_Action>(
149 class GZ_MSGS_VISIBLE
Marker :
public ::google::protobuf::Message {
163 *
this = ::std::move(from);
166 inline Marker& operator=(Marker&& from) noexcept {
167 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
168 if (
this != &from) InternalSwap(&from);
175 static const ::google::protobuf::Descriptor* descriptor();
176 static const Marker& default_instance();
178 static void InitAsDefaultInstance();
180 return reinterpret_cast<const Marker*
>(
183 static constexpr
int kIndexInFileMessages =
194 return CreateMaybeMessage<Marker>(NULL);
197 Marker*
New(::google::protobuf::Arena* arena)
const final {
198 return CreateMaybeMessage<Marker>(arena);
200 void CopyFrom(const ::google::protobuf::Message& from)
final;
201 void MergeFrom(const ::google::protobuf::Message& from)
final;
202 void CopyFrom(
const Marker& from);
203 void MergeFrom(
const Marker& from);
205 bool IsInitialized() const final;
207 size_t ByteSizeLong() const final;
208 bool MergePartialFromCodedStream(
209 ::
google::protobuf::io::CodedInputStream* input) final;
210 void SerializeWithCachedSizes(
211 ::
google::protobuf::io::CodedOutputStream* output) const final;
212 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
213 bool deterministic, ::
google::protobuf::uint8* target) const final;
214 int GetCachedSize() const final {
return _cached_size_.Get(); }
219 void SetCachedSize(
int size)
const final;
220 void InternalSwap(
Marker* other);
222 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
225 inline void* MaybeArenaPtr()
const {
230 ::google::protobuf::Metadata GetMetadata() const final;
251 static const
Type TRIANGLE_FAN =
253 static const
Type TRIANGLE_LIST =
255 static const
Type TRIANGLE_STRIP =
267 static inline
bool Type_IsValid(
int value) {
274 static const int Type_ARRAYSIZE =
276 static inline const ::google::protobuf::EnumDescriptor*
300 static const int Visibility_ARRAYSIZE =
302 static inline const ::google::protobuf::EnumDescriptor*
328 static const int Action_ARRAYSIZE =
330 static inline const ::google::protobuf::EnumDescriptor*
345 int point_size()
const;
347 static const int kPointFieldNumber = 11;
349 ::google::protobuf::RepeatedPtrField< ::gz::msgs::Vector3d >*
351 const ::gz::msgs::Vector3d& point(
int index)
const;
353 const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Vector3d >&
357 int materials_size()
const;
358 void clear_materials();
359 static const int kMaterialsFieldNumber = 15;
361 ::google::protobuf::RepeatedPtrField< ::gz::msgs::Material >*
363 const ::gz::msgs::Material& materials(
int index)
const;
365 const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Material >&
370 static const int kNsFieldNumber = 3;
371 const ::std::string& ns()
const;
372 void set_ns(const ::std::string& value);
376 void set_ns(
const char* value);
377 void set_ns(
const char* value,
size_t size);
384 static const int kTextFieldNumber = 12;
385 const ::std::string& text()
const;
386 void set_text(const ::std::string& value);
390 void set_text(
const char* value);
391 void set_text(
const char* value,
size_t size);
398 static const int kParentFieldNumber = 13;
399 const ::std::string& parent()
const;
400 void set_parent(const ::std::string& value);
404 void set_parent(
const char* value);
405 void set_parent(
const char* value,
size_t size);
411 bool has_header()
const;
413 static const int kHeaderFieldNumber = 1;
415 const ::gz::msgs::Header& _internal_header()
const;
417 const ::gz::msgs::Header& header()
const;
423 bool has_lifetime()
const;
424 void clear_lifetime();
425 static const int kLifetimeFieldNumber = 7;
427 const ::gz::msgs::Time& _internal_lifetime()
const;
429 const ::gz::msgs::Time& lifetime()
const;
435 bool has_pose()
const;
437 static const int kPoseFieldNumber = 8;
439 const ::gz::msgs::Pose& _internal_pose()
const;
441 const ::gz::msgs::Pose& pose()
const;
447 bool has_scale()
const;
449 static const int kScaleFieldNumber = 9;
451 const ::gz::msgs::Vector3d& _internal_scale()
const;
453 const ::gz::msgs::Vector3d& scale()
const;
459 bool has_material()
const;
460 void clear_material();
461 static const int kMaterialFieldNumber = 10;
463 const ::gz::msgs::Material& _internal_material()
const;
465 const ::gz::msgs::Material& material()
const;
472 static const int kActionFieldNumber = 2;
478 static const int kLayerFieldNumber = 5;
479 ::google::protobuf::int32 layer()
const;
480 void set_layer(::google::protobuf::int32 value);
484 static const int kIdFieldNumber = 4;
485 ::google::protobuf::uint64 id()
const;
486 void set_id(::google::protobuf::uint64 value);
490 static const int kTypeFieldNumber = 6;
495 void clear_visibility();
496 static const int kVisibilityFieldNumber = 14;
503 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
504 ::google::protobuf::RepeatedPtrField< ::gz::msgs::Vector3d > point_;
505 ::google::protobuf::RepeatedPtrField< ::gz::msgs::Material > materials_;
506 ::google::protobuf::internal::ArenaStringPtr ns_;
507 ::google::protobuf::internal::ArenaStringPtr text_;
508 ::google::protobuf::internal::ArenaStringPtr parent_;
515 ::google::protobuf::int32 layer_;
516 ::google::protobuf::uint64 id_;
519 mutable ::google::protobuf::internal::CachedSize _cached_size_;
520 friend struct ::protobuf_gz_2fmsgs_2fmarker_2eproto::TableStruct;
528 #pragma GCC diagnostic push
529 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
537 inline const ::gz::msgs::Header& Marker::_internal_header()
const {
541 const ::gz::msgs::Header* p = header_;
555 if (header_ == NULL) {
556 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
563 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
564 if (message_arena == NULL) {
565 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
568 ::google::protobuf::Arena* submessage_arena = NULL;
569 if (message_arena != submessage_arena) {
570 header = ::google::protobuf::internal::GetOwnedMessage(
571 message_arena,
header, submessage_arena);
597 ns_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
601 return ns_.GetNoArena();
605 ns_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
612 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
617 GOOGLE_DCHECK(value != NULL);
619 ns_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
624 ns_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
625 ::
std::string(
reinterpret_cast<const char*
>(value), size));
631 return ns_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
636 return ns_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
644 ns_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
ns);
650 id_ = GOOGLE_ULONGLONG(0);
694 inline const ::gz::msgs::Time& Marker::_internal_lifetime()
const {
698 const ::gz::msgs::Time* p = lifetime_;
700 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::Time*
>(
712 if (lifetime_ == NULL) {
713 auto* p = CreateMaybeMessage<::gz::msgs::Time>(GetArenaNoVirtual());
720 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
721 if (message_arena == NULL) {
722 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(lifetime_);
725 ::google::protobuf::Arena* submessage_arena = NULL;
726 if (message_arena != submessage_arena) {
727 lifetime = ::google::protobuf::internal::GetOwnedMessage(
728 message_arena,
lifetime, submessage_arena);
742 inline const ::gz::msgs::Pose& Marker::_internal_pose()
const {
746 const ::gz::msgs::Pose* p = pose_;
748 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::Pose*
>(
761 auto* p = CreateMaybeMessage<::gz::msgs::Pose>(GetArenaNoVirtual());
768 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
769 if (message_arena == NULL) {
770 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(pose_);
773 ::google::protobuf::Arena* submessage_arena = NULL;
774 if (message_arena != submessage_arena) {
775 pose = ::google::protobuf::internal::GetOwnedMessage(
776 message_arena,
pose, submessage_arena);
790 inline const ::gz::msgs::Vector3d& Marker::_internal_scale()
const {
794 const ::gz::msgs::Vector3d* p = scale_;
808 if (scale_ == NULL) {
809 auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
816 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
817 if (message_arena == NULL) {
818 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(scale_);
821 ::google::protobuf::Arena* submessage_arena = NULL;
822 if (message_arena != submessage_arena) {
823 scale = ::google::protobuf::internal::GetOwnedMessage(
824 message_arena,
scale, submessage_arena);
838 inline const ::gz::msgs::Material& Marker::_internal_material()
const {
842 const ::gz::msgs::Material* p = material_;
856 if (material_ == NULL) {
857 auto* p = CreateMaybeMessage<::gz::msgs::Material>(GetArenaNoVirtual());
864 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
865 if (message_arena == NULL) {
866 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(material_);
869 ::google::protobuf::Arena* submessage_arena = NULL;
870 if (message_arena != submessage_arena) {
871 material = ::google::protobuf::internal::GetOwnedMessage(
872 message_arena,
material, submessage_arena);
884 return point_.size();
888 return point_.Mutable(index);
890 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Vector3d >*
897 return point_.Get(index);
903 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Vector3d >&
911 text_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
915 return text_.GetNoArena();
919 text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
926 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
931 GOOGLE_DCHECK(value != NULL);
933 text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
938 text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
939 ::
std::string(
reinterpret_cast<const char*
>(value), size));
945 return text_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
950 return text_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
958 text_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
text);
964 parent_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
968 return parent_.GetNoArena();
972 parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
979 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
984 GOOGLE_DCHECK(value != NULL);
986 parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
991 parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
992 ::
std::string(
reinterpret_cast<const char*
>(value), size));
998 return parent_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1003 return parent_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1011 parent_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
parent);
1025 visibility_ = value;
1031 return materials_.size();
1035 return materials_.Mutable(index);
1037 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Material >*
1044 return materials_.Get(index);
1048 return materials_.Add();
1050 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Material >&
1057 #pragma GCC diagnostic pop
1066 namespace protobuf {
1070 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::Marker_Type>() {
1075 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::Marker_Visibility>() {
1080 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::Marker_Action>() {
1089 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fmarker_2eproto