4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2fmeshgeom_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2fmeshgeom_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>
36 #pragma GCC system_header
39 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
42 #include <sys/sysmacros.h>
47 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2fmeshgeom_2eproto IGNITION_MSGS_VISIBLE
52 static const ::google::protobuf::internal::ParseTableField entries[];
53 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
54 static const ::google::protobuf::internal::ParseTable schema[1];
55 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
56 static const ::google::protobuf::internal::SerializationTable serialization_table[];
57 static const ::google::protobuf::uint32 offsets[];
64 class MeshGeomDefaultTypeInternal;
70 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::MeshGeom* Arena::CreateMaybeMessage<::ignition::msgs::MeshGeom>(Arena*);
78 class IGNITION_MSGS_VISIBLE
MeshGeom :
public ::google::protobuf::Message {
92 *
this = ::std::move(from);
95 inline MeshGeom& operator=(MeshGeom&& from) noexcept {
96 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
97 if (
this != &from) InternalSwap(&from);
104 static const ::google::protobuf::Descriptor* descriptor();
105 static const MeshGeom& default_instance();
107 static void InitAsDefaultInstance();
109 return reinterpret_cast<const MeshGeom*
>(
112 static constexpr
int kIndexInFileMessages =
123 return CreateMaybeMessage<MeshGeom>(NULL);
127 return CreateMaybeMessage<MeshGeom>(arena);
129 void CopyFrom(const ::google::protobuf::Message& from)
final;
130 void MergeFrom(const ::google::protobuf::Message& from)
final;
131 void CopyFrom(
const MeshGeom& from);
132 void MergeFrom(
const MeshGeom& from);
134 bool IsInitialized() const final;
136 size_t ByteSizeLong() const final;
137 bool MergePartialFromCodedStream(
138 ::
google::protobuf::io::CodedInputStream* input) final;
139 void SerializeWithCachedSizes(
140 ::
google::protobuf::io::CodedOutputStream* output) const final;
141 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
142 bool deterministic, ::
google::protobuf::uint8* target) const final;
143 int GetCachedSize() const final {
return _cached_size_.Get(); }
148 void SetCachedSize(
int size)
const final;
151 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
154 inline void* MaybeArenaPtr()
const {
159 ::google::protobuf::Metadata GetMetadata() const final;
166 void clear_filename();
167 static const
int kFilenameFieldNumber = 2;
168 const ::
std::
string& filename() const;
169 void set_filename(const ::
std::
string& value);
173 void set_filename(
const char* value);
174 void set_filename(
const char* value,
size_t size);
177 void set_allocated_filename(::
std::string* filename);
180 void clear_submesh();
181 static const int kSubmeshFieldNumber = 4;
182 const ::std::string& submesh()
const;
183 void set_submesh(const ::std::string& value);
187 void set_submesh(
const char* value);
188 void set_submesh(
const char* value,
size_t size);
191 void set_allocated_submesh(::
std::string* submesh);
194 bool has_header()
const;
196 static const int kHeaderFieldNumber = 1;
198 const ::ignition::msgs::Header& _internal_header()
const;
200 const ::ignition::msgs::Header& header()
const;
206 bool has_scale()
const;
208 static const int kScaleFieldNumber = 3;
210 const ::ignition::msgs::Vector3d& _internal_scale()
const;
212 const ::ignition::msgs::Vector3d& scale()
const;
218 void clear_center_submesh();
219 static const int kCenterSubmeshFieldNumber = 5;
220 bool center_submesh()
const;
221 void set_center_submesh(
bool value);
226 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
227 ::google::protobuf::internal::ArenaStringPtr filename_;
228 ::google::protobuf::internal::ArenaStringPtr submesh_;
231 bool center_submesh_;
232 mutable ::google::protobuf::internal::CachedSize _cached_size_;
233 friend struct ::protobuf_ignition_2fmsgs_2fmeshgeom_2eproto::TableStruct;
241 #pragma GCC diagnostic push
242 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
250 inline const ::ignition::msgs::Header& MeshGeom::_internal_header()
const {
254 const ::ignition::msgs::Header* p = header_;
268 if (header_ == NULL) {
269 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
276 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
277 if (message_arena == NULL) {
278 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
281 ::google::protobuf::Arena* submessage_arena = NULL;
282 if (message_arena != submessage_arena) {
283 header = ::google::protobuf::internal::GetOwnedMessage(
284 message_arena,
header, submessage_arena);
296 filename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
300 return filename_.GetNoArena();
304 filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
310 filename_.SetNoArena(
311 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
316 GOOGLE_DCHECK(value != NULL);
318 filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
323 filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
324 ::
std::string(
reinterpret_cast<const char*
>(value), size));
330 return filename_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
335 return filename_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
343 filename_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
filename);
351 inline const ::ignition::msgs::Vector3d& MeshGeom::_internal_scale()
const {
355 const ::ignition::msgs::Vector3d* p = scale_;
369 if (scale_ == NULL) {
370 auto* p = CreateMaybeMessage<::ignition::msgs::Vector3d>(GetArenaNoVirtual());
377 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
378 if (message_arena == NULL) {
379 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(scale_);
382 ::google::protobuf::Arena* submessage_arena = NULL;
383 if (message_arena != submessage_arena) {
384 scale = ::google::protobuf::internal::GetOwnedMessage(
385 message_arena,
scale, submessage_arena);
397 submesh_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
401 return submesh_.GetNoArena();
405 submesh_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
412 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
417 GOOGLE_DCHECK(value != NULL);
419 submesh_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
424 submesh_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
425 ::
std::string(
reinterpret_cast<const char*
>(value), size));
431 return submesh_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
436 return submesh_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
444 submesh_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
submesh);
450 center_submesh_ =
false;
454 return center_submesh_;
458 center_submesh_ = value;
463 #pragma GCC diagnostic pop
480 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fmeshgeom_2eproto