4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fmeshgeom_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fmeshgeom_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3012000
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 3012004 < 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/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
31 #include <google/protobuf/message.h>
32 #include <google/protobuf/repeated_field.h>
33 #include <google/protobuf/extension_set.h>
34 #include <google/protobuf/unknown_field_set.h>
38 #pragma GCC system_header
41 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
44 #include <sys/sysmacros.h>
49 #include <google/protobuf/port_def.inc>
50 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fmeshgeom_2eproto IGNITION_MSGS_VISIBLE
51 PROTOBUF_NAMESPACE_OPEN
55 PROTOBUF_NAMESPACE_CLOSE
59 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
61 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
63 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
65 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
66 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
67 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
73 class MeshGeomDefaultTypeInternal;
77 PROTOBUF_NAMESPACE_OPEN
78 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::MeshGeom* Arena::CreateMaybeMessage<::ignition::msgs::MeshGeom>(Arena*);
79 PROTOBUF_NAMESPACE_CLOSE
85 class IGNITION_MSGS_VISIBLE MeshGeom PROTOBUF_FINAL :
86 public ::PROTOBUF_NAMESPACE_ID::Message {
94 *
this = ::std::move(from);
102 if (GetArena() == from.GetArena()) {
103 if (
this != &from) InternalSwap(&from);
110 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
111 return GetDescriptor();
114 return GetMetadataStatic().descriptor;
117 return GetMetadataStatic().reflection;
123 return reinterpret_cast<const MeshGeom*
>(
126 static constexpr
int kIndexInFileMessages =
129 friend void swap(MeshGeom& a, MeshGeom& b) {
132 inline void Swap(MeshGeom* other) {
133 if (other ==
this)
return;
134 if (GetArena() == other->GetArena()) {
137 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
141 if (other ==
this)
return;
142 GOOGLE_DCHECK(GetArena() == other->GetArena());
148 inline MeshGeom*
New() const final {
149 return CreateMaybeMessage<MeshGeom>(
nullptr);
152 MeshGeom*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
153 return CreateMaybeMessage<MeshGeom>(arena);
155 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
156 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
159 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
160 bool IsInitialized() const final;
162 size_t ByteSizeLong() const final;
163 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
164 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
165 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
166 int GetCachedSize() const final {
return _cached_size_.Get(); }
169 inline void SharedCtor();
170 inline void SharedDtor();
171 void SetCachedSize(
int size)
const final;
172 void InternalSwap(MeshGeom* other);
173 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
174 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
175 return "ignition.msgs.MeshGeom";
178 explicit MeshGeom(::PROTOBUF_NAMESPACE_ID::Arena* arena);
180 static void ArenaDtor(
void*
object);
181 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
186 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
198 kFilenameFieldNumber = 2,
199 kSubmeshFieldNumber = 4,
200 kHeaderFieldNumber = 1,
201 kScaleFieldNumber = 3,
202 kCenterSubmeshFieldNumber = 5,
214 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(
"The unsafe_arena_ accessors for"
215 " string fields are deprecated and will be removed in a"
217 std::
string* unsafe_arena_release_filename();
218 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
219 "
string fields are deprecated and will be removed in a"
221 void unsafe_arena_set_allocated_filename(
222 std::
string* filename);
224 const
std::
string& _internal_filename() const;
225 void _internal_set_filename(const
std::
string& value);
226 std::
string* _internal_mutable_filename();
230 void clear_submesh();
231 const
std::
string& submesh() const;
232 void set_submesh(const
std::
string& value);
233 void set_submesh(
std::
string&& value);
234 void set_submesh(const
char* value);
235 void set_submesh(const
char* value,
size_t size);
236 std::
string* mutable_submesh();
237 std::
string* release_submesh();
238 void set_allocated_submesh(
std::
string* submesh);
239 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
240 "
string fields are deprecated and will be removed in a"
242 std::
string* unsafe_arena_release_submesh();
243 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
244 "
string fields are deprecated and will be removed in a"
246 void unsafe_arena_set_allocated_submesh(
247 std::
string* submesh);
249 const
std::
string& _internal_submesh() const;
250 void _internal_set_submesh(const
std::
string& value);
251 std::
string* _internal_mutable_submesh();
255 bool has_header() const;
257 bool _internal_has_header() const;
263 void set_allocated_header(::
ignition::msgs::Header* header);
265 const ::
ignition::msgs::Header& _internal_header() const;
266 ::
ignition::msgs::Header* _internal_mutable_header();
268 void unsafe_arena_set_allocated_header(
270 ::
ignition::msgs::Header* unsafe_arena_release_header();
273 bool has_scale() const;
275 bool _internal_has_scale() const;
286 void unsafe_arena_set_allocated_scale(
291 void clear_center_submesh();
292 bool center_submesh() const;
293 void set_center_submesh(
bool value);
295 bool _internal_center_submesh() const;
296 void _internal_set_center_submesh(
bool value);
303 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
304 typedef
void InternalArenaConstructable_;
305 typedef
void DestructorSkippable_;
306 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr filename_;
307 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr submesh_;
310 bool center_submesh_;
311 mutable ::PROTOBUF_NAMESPACE_ID::
internal::CachedSize _cached_size_;
320 #pragma GCC diagnostic push
321 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
326 inline bool MeshGeom::_internal_has_header()
const {
327 return this != internal_default_instance() && header_ !=
nullptr;
329 inline bool MeshGeom::has_header()
const {
330 return _internal_has_header();
332 inline const ::ignition::msgs::Header& MeshGeom::_internal_header()
const {
333 const ::ignition::msgs::Header* p = header_;
334 return p !=
nullptr ? *p : *
reinterpret_cast<const ::ignition::msgs::Header*
>(
337 inline const ::ignition::msgs::Header& MeshGeom::header()
const {
339 return _internal_header();
341 inline void MeshGeom::unsafe_arena_set_allocated_header(
342 ::ignition::msgs::Header* header) {
343 if (GetArena() ==
nullptr) {
344 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
354 inline ::ignition::msgs::Header* MeshGeom::release_header() {
355 auto temp = unsafe_arena_release_header();
356 if (GetArena() !=
nullptr) {
357 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
361 inline ::ignition::msgs::Header* MeshGeom::unsafe_arena_release_header() {
364 ::ignition::msgs::Header* temp = header_;
368 inline ::ignition::msgs::Header* MeshGeom::_internal_mutable_header() {
370 if (header_ ==
nullptr) {
371 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
376 inline ::ignition::msgs::Header* MeshGeom::mutable_header() {
378 return _internal_mutable_header();
380 inline void MeshGeom::set_allocated_header(::ignition::msgs::Header* header) {
381 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
382 if (message_arena ==
nullptr) {
383 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header_);
386 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
387 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(header)->GetArena();
388 if (message_arena != submessage_arena) {
389 header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
390 message_arena, header, submessage_arena);
401 inline void MeshGeom::clear_filename() {
402 filename_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
404 inline const std::string& MeshGeom::filename()
const {
406 return _internal_filename();
408 inline void MeshGeom::set_filename(
const std::string& value) {
409 _internal_set_filename(value);
414 return _internal_mutable_filename();
416 inline const std::string& MeshGeom::_internal_filename()
const {
417 return filename_.Get();
419 inline void MeshGeom::_internal_set_filename(
const std::string& value) {
421 filename_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
423 inline void MeshGeom::set_filename(
std::string&& value) {
426 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::move(value), GetArena());
429 inline void MeshGeom::set_filename(
const char* value) {
430 GOOGLE_DCHECK(value !=
nullptr);
432 filename_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::string(value),
436 inline void MeshGeom::set_filename(
const char* value,
439 filename_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::string(
440 reinterpret_cast<const char*
>(value), size), GetArena());
443 inline std::string* MeshGeom::_internal_mutable_filename() {
445 return filename_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
449 return filename_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
451 inline void MeshGeom::set_allocated_filename(
std::string* filename) {
452 if (filename !=
nullptr) {
457 filename_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), filename,
461 inline std::string* MeshGeom::unsafe_arena_release_filename() {
463 GOOGLE_DCHECK(GetArena() !=
nullptr);
465 return filename_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
468 inline void MeshGeom::unsafe_arena_set_allocated_filename(
470 GOOGLE_DCHECK(GetArena() !=
nullptr);
471 if (filename !=
nullptr) {
476 filename_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
477 filename, GetArena());
482 inline bool MeshGeom::_internal_has_scale()
const {
483 return this != internal_default_instance() && scale_ !=
nullptr;
485 inline bool MeshGeom::has_scale()
const {
486 return _internal_has_scale();
488 inline const ::ignition::msgs::Vector3d& MeshGeom::_internal_scale()
const {
489 const ::ignition::msgs::Vector3d* p = scale_;
490 return p !=
nullptr ? *p : *
reinterpret_cast<const ::ignition::msgs::Vector3d*
>(
493 inline const ::ignition::msgs::Vector3d& MeshGeom::scale()
const {
495 return _internal_scale();
497 inline void MeshGeom::unsafe_arena_set_allocated_scale(
498 ::ignition::msgs::Vector3d* scale) {
499 if (GetArena() ==
nullptr) {
500 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(scale_);
510 inline ::ignition::msgs::Vector3d* MeshGeom::release_scale() {
511 auto temp = unsafe_arena_release_scale();
512 if (GetArena() !=
nullptr) {
513 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
517 inline ::ignition::msgs::Vector3d* MeshGeom::unsafe_arena_release_scale() {
520 ::ignition::msgs::Vector3d* temp = scale_;
524 inline ::ignition::msgs::Vector3d* MeshGeom::_internal_mutable_scale() {
526 if (scale_ ==
nullptr) {
527 auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArena());
532 inline ::ignition::msgs::Vector3d* MeshGeom::mutable_scale() {
534 return _internal_mutable_scale();
536 inline void MeshGeom::set_allocated_scale(::ignition::msgs::Vector3d* scale) {
537 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
538 if (message_arena ==
nullptr) {
539 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(scale_);
542 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
543 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(scale)->GetArena();
544 if (message_arena != submessage_arena) {
545 scale = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
546 message_arena, scale, submessage_arena);
557 inline void MeshGeom::clear_submesh() {
558 submesh_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
560 inline const std::string& MeshGeom::submesh()
const {
562 return _internal_submesh();
564 inline void MeshGeom::set_submesh(
const std::string& value) {
565 _internal_set_submesh(value);
570 return _internal_mutable_submesh();
572 inline const std::string& MeshGeom::_internal_submesh()
const {
573 return submesh_.Get();
575 inline void MeshGeom::_internal_set_submesh(
const std::string& value) {
577 submesh_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
579 inline void MeshGeom::set_submesh(
std::string&& value) {
582 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::move(value), GetArena());
585 inline void MeshGeom::set_submesh(
const char* value) {
586 GOOGLE_DCHECK(value !=
nullptr);
588 submesh_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::string(value),
592 inline void MeshGeom::set_submesh(
const char* value,
595 submesh_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::
std::string(
596 reinterpret_cast<const char*
>(value), size), GetArena());
599 inline std::string* MeshGeom::_internal_mutable_submesh() {
601 return submesh_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
605 return submesh_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
607 inline void MeshGeom::set_allocated_submesh(
std::string* submesh) {
608 if (submesh !=
nullptr) {
613 submesh_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), submesh,
617 inline std::string* MeshGeom::unsafe_arena_release_submesh() {
619 GOOGLE_DCHECK(GetArena() !=
nullptr);
621 return submesh_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
624 inline void MeshGeom::unsafe_arena_set_allocated_submesh(
626 GOOGLE_DCHECK(GetArena() !=
nullptr);
627 if (submesh !=
nullptr) {
632 submesh_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
633 submesh, GetArena());
638 inline void MeshGeom::clear_center_submesh() {
639 center_submesh_ =
false;
641 inline bool MeshGeom::_internal_center_submesh()
const {
642 return center_submesh_;
644 inline bool MeshGeom::center_submesh()
const {
646 return _internal_center_submesh();
648 inline void MeshGeom::_internal_set_center_submesh(
bool value) {
650 center_submesh_ = value;
652 inline void MeshGeom::set_center_submesh(
bool value) {
653 _internal_set_center_submesh(value);
658 #pragma GCC diagnostic pop
675 #include <google/protobuf/port_undef.inc>
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fmeshgeom_2eproto
static void InitAsDefaultInstance()
void set_filename(const std::string &value)
MeshGeom(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void CopyFrom(const MeshGeom &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: build/ignition-msgs8/include/ignition/msgs/meshgeom.pb.h:116
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
std::string * mutable_filename()
MeshGeom()
Definition: build/ignition-msgs8/include/ignition/msgs/meshgeom.pb.h:88
MeshGeom & operator=(const MeshGeom &from)
Definition: build/ignition-msgs8/include/ignition/msgs/meshgeom.pb.h:97
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/meshgeom.pb.h:110
MeshGeom * New() const final
Definition: build/ignition-msgs8/include/ignition/msgs/meshgeom.pb.h:148
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void set_filename(std::string &&value)
MeshGeom & operator=(MeshGeom &&from) noexcept
Definition: build/ignition-msgs8/include/ignition/msgs/meshgeom.pb.h:101
void set_filename(const char *value)
const std::string & filename() const
MeshGeom(const MeshGeom &from)
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void UnsafeArenaSwap(MeshGeom *other)
Definition: build/ignition-msgs8/include/ignition/msgs/meshgeom.pb.h:140
static const MeshGeom * internal_default_instance()
Definition: build/ignition-msgs8/include/ignition/msgs/meshgeom.pb.h:122
MeshGeom(MeshGeom &&from) noexcept
Definition: build/ignition-msgs8/include/ignition/msgs/meshgeom.pb.h:92
static const MeshGeom & default_instance()
void set_filename(const char *value, size_t size)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/meshgeom.pb.h:113
friend void swap(MeshGeom &a, MeshGeom &b)
Definition: build/ignition-msgs8/include/ignition/msgs/meshgeom.pb.h:129
MeshGeom * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: build/ignition-msgs8/include/ignition/msgs/meshgeom.pb.h:152
void MergeFrom(const MeshGeom &from)
std::string * release_filename()
void Swap(MeshGeom *other)
Definition: build/ignition-msgs8/include/ignition/msgs/meshgeom.pb.h:132
void set_allocated_filename(std::string *filename)
Vector3< double > Vector3d
std::unique_ptr< MeshGeom > MeshGeomUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/meshgeom.pb.h:661
IGNITION_MSGS_VISIBLE Vector3dDefaultTypeInternal _Vector3d_default_instance_
std::unique_ptr< const MeshGeom > ConstMeshGeomUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/meshgeom.pb.h:662
std::shared_ptr< const MeshGeom > ConstMeshGeomSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/meshgeom.pb.h:664
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::shared_ptr< MeshGeom > MeshGeomSharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/meshgeom.pb.h:663
IGNITION_MSGS_VISIBLE MeshGeomDefaultTypeInternal _MeshGeom_default_instance_
Definition: build/ignition-msgs8/include/ignition/msgs/actor.pb.h:53
Definition: build/ignition-msgs8/include/ignition/msgs/meshgeom.pb.h:58
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)