4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fpose_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fpose_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/vector3d.pb.h"
34 #include "gz/msgs/quaternion.pb.h"
35 #include "gz/msgs/header.pb.h"
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fpose_2eproto GZ_MSGS_VISIBLE
42 static const ::google::protobuf::internal::ParseTableField entries[];
43 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
44 static const ::google::protobuf::internal::ParseTable schema[1];
45 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
46 static const ::google::protobuf::internal::SerializationTable serialization_table[];
47 static const ::google::protobuf::uint32 offsets[];
54 class PoseDefaultTypeInternal;
60 template<> GZ_MSGS_VISIBLE ::gz::msgs::Pose* Arena::CreateMaybeMessage<::gz::msgs::Pose>(Arena*);
68 class GZ_MSGS_VISIBLE
Pose :
public ::google::protobuf::Message {
82 *
this = ::std::move(from);
85 inline Pose& operator=(Pose&& from) noexcept {
86 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
87 if (
this != &from) InternalSwap(&from);
94 static const ::google::protobuf::Descriptor* descriptor();
95 static const Pose& default_instance();
97 static void InitAsDefaultInstance();
99 return reinterpret_cast<const Pose*
>(
102 static constexpr
int kIndexInFileMessages =
105 void Swap(
Pose* other);
113 return CreateMaybeMessage<Pose>(NULL);
116 Pose*
New(::google::protobuf::Arena* arena)
const final {
117 return CreateMaybeMessage<Pose>(arena);
119 void CopyFrom(const ::google::protobuf::Message& from)
final;
120 void MergeFrom(const ::google::protobuf::Message& from)
final;
121 void CopyFrom(
const Pose& from);
122 void MergeFrom(
const Pose& from);
124 bool IsInitialized() const final;
126 size_t ByteSizeLong() const final;
127 bool MergePartialFromCodedStream(
128 ::
google::protobuf::io::CodedInputStream* input) final;
129 void SerializeWithCachedSizes(
130 ::
google::protobuf::io::CodedOutputStream* output) const final;
131 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
132 bool deterministic, ::
google::protobuf::uint8* target) const final;
133 int GetCachedSize() const final {
return _cached_size_.Get(); }
138 void SetCachedSize(
int size)
const final;
139 void InternalSwap(
Pose* other);
141 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
144 inline void* MaybeArenaPtr()
const {
149 ::google::protobuf::Metadata GetMetadata() const final;
157 static const
int kNameFieldNumber = 2;
158 const ::
std::
string& name() const;
159 void set_name(const ::
std::
string& value);
163 void set_name(
const char* value);
164 void set_name(
const char* value,
size_t size);
170 bool has_header()
const;
172 static const int kHeaderFieldNumber = 1;
174 const ::gz::msgs::Header& _internal_header()
const;
176 const ::gz::msgs::Header& header()
const;
182 bool has_position()
const;
183 void clear_position();
184 static const int kPositionFieldNumber = 4;
186 const ::gz::msgs::Vector3d& _internal_position()
const;
188 const ::gz::msgs::Vector3d& position()
const;
194 bool has_orientation()
const;
195 void clear_orientation();
196 static const int kOrientationFieldNumber = 5;
198 const ::gz::msgs::Quaternion& _internal_orientation()
const;
200 const ::gz::msgs::Quaternion& orientation()
const;
207 static const int kIdFieldNumber = 3;
208 ::google::protobuf::uint32 id()
const;
209 void set_id(::google::protobuf::uint32 value);
214 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
215 ::google::protobuf::internal::ArenaStringPtr name_;
219 ::google::protobuf::uint32 id_;
220 mutable ::google::protobuf::internal::CachedSize _cached_size_;
221 friend struct ::protobuf_gz_2fmsgs_2fpose_2eproto::TableStruct;
229 #pragma GCC diagnostic push
230 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
238 inline const ::gz::msgs::Header& Pose::_internal_header()
const {
242 const ::gz::msgs::Header* p = header_;
256 if (header_ == NULL) {
257 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
264 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
265 if (message_arena == NULL) {
266 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
269 ::google::protobuf::Arena* submessage_arena = NULL;
270 if (message_arena != submessage_arena) {
271 header = ::google::protobuf::internal::GetOwnedMessage(
272 message_arena,
header, submessage_arena);
284 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
288 return name_.GetNoArena();
292 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
299 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
304 GOOGLE_DCHECK(value != NULL);
306 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
311 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
312 ::
std::string(
reinterpret_cast<const char*
>(value), size));
318 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
323 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
331 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name);
339 inline ::google::protobuf::uint32
Pose::id()
const {
353 inline const ::gz::msgs::Vector3d& Pose::_internal_position()
const {
357 const ::gz::msgs::Vector3d* p = position_;
371 if (position_ == NULL) {
372 auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
379 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
380 if (message_arena == NULL) {
381 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(position_);
384 ::google::protobuf::Arena* submessage_arena = NULL;
385 if (message_arena != submessage_arena) {
386 position = ::google::protobuf::internal::GetOwnedMessage(
387 message_arena,
position, submessage_arena);
401 inline const ::gz::msgs::Quaternion& Pose::_internal_orientation()
const {
402 return *orientation_;
405 const ::gz::msgs::Quaternion* p = orientation_;
419 if (orientation_ == NULL) {
420 auto* p = CreateMaybeMessage<::gz::msgs::Quaternion>(GetArenaNoVirtual());
427 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
428 if (message_arena == NULL) {
429 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(orientation_);
432 ::google::protobuf::Arena* submessage_arena = NULL;
433 if (message_arena != submessage_arena) {
434 orientation = ::google::protobuf::internal::GetOwnedMessage(
446 #pragma GCC diagnostic pop
456 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fpose_2eproto