4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2foccupancy_5fgrid_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2foccupancy_5fgrid_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/header.pb.h"
34 #include "gz/msgs/pose.pb.h"
35 #include "gz/msgs/time.pb.h"
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2foccupancy_5fgrid_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[2];
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 OccupancyGridDefaultTypeInternal;
56 class OccupancyGrid_MapMetaInfo;
57 class OccupancyGrid_MapMetaInfoDefaultTypeInternal;
63 template<> GZ_MSGS_VISIBLE ::gz::msgs::OccupancyGrid* Arena::CreateMaybeMessage<::gz::msgs::OccupancyGrid>(Arena*);
64 template<> GZ_MSGS_VISIBLE ::gz::msgs::OccupancyGrid_MapMetaInfo* Arena::CreateMaybeMessage<::gz::msgs::OccupancyGrid_MapMetaInfo>(Arena*);
86 *
this = ::std::move(from);
89 inline OccupancyGrid_MapMetaInfo& operator=(OccupancyGrid_MapMetaInfo&& from) noexcept {
90 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
91 if (
this != &from) InternalSwap(&from);
98 static const ::google::protobuf::Descriptor* descriptor();
99 static const OccupancyGrid_MapMetaInfo& default_instance();
101 static void InitAsDefaultInstance();
106 static constexpr
int kIndexInFileMessages =
117 return CreateMaybeMessage<OccupancyGrid_MapMetaInfo>(NULL);
121 return CreateMaybeMessage<OccupancyGrid_MapMetaInfo>(arena);
123 void CopyFrom(const ::google::protobuf::Message& from)
final;
124 void MergeFrom(const ::google::protobuf::Message& from)
final;
128 bool IsInitialized() const final;
130 size_t ByteSizeLong() const final;
131 bool MergePartialFromCodedStream(
132 ::
google::protobuf::io::CodedInputStream* input) final;
133 void SerializeWithCachedSizes(
134 ::
google::protobuf::io::CodedOutputStream* output) const final;
135 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
136 bool deterministic, ::
google::protobuf::uint8* target) const final;
137 int GetCachedSize() const final {
return _cached_size_.Get(); }
142 void SetCachedSize(
int size)
const final;
145 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
148 inline void* MaybeArenaPtr()
const {
153 ::google::protobuf::Metadata GetMetadata() const final;
160 bool has_map_load_time() const;
161 void clear_map_load_time();
162 static const
int kMapLoadTimeFieldNumber = 1;
164 const ::
gz::msgs::
Time& _internal_map_load_time() const;
166 const ::
gz::msgs::
Time& map_load_time() const;
167 ::
gz::msgs::
Time* release_map_load_time();
168 ::
gz::msgs::
Time* mutable_map_load_time();
169 void set_allocated_map_load_time(::
gz::msgs::
Time* map_load_time);
172 bool has_origin() const;
174 static const
int kOriginFieldNumber = 5;
176 const ::
gz::msgs::
Pose& _internal_origin() const;
178 const ::
gz::msgs::
Pose& origin() const;
179 ::
gz::msgs::
Pose* release_origin();
180 ::
gz::msgs::
Pose* mutable_origin();
181 void set_allocated_origin(::
gz::msgs::
Pose* origin);
184 void clear_resolution();
185 static const
int kResolutionFieldNumber = 2;
186 double resolution() const;
187 void set_resolution(
double value);
191 static const
int kWidthFieldNumber = 3;
192 ::
google::protobuf::uint32 width() const;
193 void set_width(::
google::protobuf::uint32 value);
197 static const
int kHeightFieldNumber = 4;
198 ::
google::protobuf::uint32 height() const;
199 void set_height(::
google::protobuf::uint32 value);
204 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
205 ::
gz::msgs::
Time* map_load_time_;
206 ::
gz::msgs::
Pose* origin_;
208 ::
google::protobuf::uint32 width_;
209 ::
google::protobuf::uint32 height_;
210 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
229 *
this = ::std::move(from);
232 inline OccupancyGrid& operator=(OccupancyGrid&& from) noexcept {
233 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
234 if (
this != &from) InternalSwap(&from);
241 static const ::google::protobuf::Descriptor* descriptor();
242 static const OccupancyGrid& default_instance();
244 static void InitAsDefaultInstance();
249 static constexpr
int kIndexInFileMessages =
260 return CreateMaybeMessage<OccupancyGrid>(NULL);
264 return CreateMaybeMessage<OccupancyGrid>(arena);
266 void CopyFrom(const ::google::protobuf::Message& from)
final;
267 void MergeFrom(const ::google::protobuf::Message& from)
final;
271 bool IsInitialized() const final;
273 size_t ByteSizeLong() const final;
274 bool MergePartialFromCodedStream(
275 ::
google::protobuf::io::CodedInputStream* input) final;
276 void SerializeWithCachedSizes(
277 ::
google::protobuf::io::CodedOutputStream* output) const final;
278 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
279 bool deterministic, ::
google::protobuf::uint8* target) const final;
280 int GetCachedSize() const final {
return _cached_size_.Get(); }
285 void SetCachedSize(
int size)
const final;
288 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
291 inline void* MaybeArenaPtr()
const {
296 ::google::protobuf::Metadata GetMetadata() const final;
306 static const
int kDataFieldNumber = 3;
307 const ::
std::
string& data() const;
308 void set_data(const ::
std::
string& value);
312 void set_data(
const char* value);
313 void set_data(
const void* value,
size_t size);
319 bool has_header()
const;
321 static const int kHeaderFieldNumber = 1;
323 const ::gz::msgs::Header& _internal_header()
const;
325 const ::gz::msgs::Header& header()
const;
331 bool has_info()
const;
333 static const int kInfoFieldNumber = 2;
335 const ::gz::msgs::OccupancyGrid_MapMetaInfo& _internal_info()
const;
337 const ::gz::msgs::OccupancyGrid_MapMetaInfo& info()
const;
345 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
346 ::google::protobuf::internal::ArenaStringPtr data_;
349 mutable ::google::protobuf::internal::CachedSize _cached_size_;
350 friend struct ::protobuf_gz_2fmsgs_2foccupancy_5fgrid_2eproto::TableStruct;
358 #pragma GCC diagnostic push
359 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
365 return this != internal_default_instance() && map_load_time_ != NULL;
367 inline const ::gz::msgs::Time& OccupancyGrid_MapMetaInfo::_internal_map_load_time()
const {
368 return *map_load_time_;
371 const ::gz::msgs::Time* p = map_load_time_;
373 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::Time*
>(
380 map_load_time_ = NULL;
385 if (map_load_time_ == NULL) {
386 auto* p = CreateMaybeMessage<::gz::msgs::Time>(GetArenaNoVirtual());
390 return map_load_time_;
393 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
394 if (message_arena == NULL) {
395 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(map_load_time_);
398 ::google::protobuf::Arena* submessage_arena = NULL;
399 if (message_arena != submessage_arena) {
400 map_load_time = ::google::protobuf::internal::GetOwnedMessage(
401 message_arena, map_load_time, submessage_arena);
407 map_load_time_ = map_load_time;
455 return this != internal_default_instance() && origin_ != NULL;
457 inline const ::gz::msgs::Pose& OccupancyGrid_MapMetaInfo::_internal_origin()
const {
461 const ::gz::msgs::Pose* p = origin_;
463 return p != NULL ? *p : *
reinterpret_cast<const ::
gz::msgs::Pose*
>(
475 if (origin_ == NULL) {
476 auto* p = CreateMaybeMessage<::gz::msgs::Pose>(GetArenaNoVirtual());
483 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
484 if (message_arena == NULL) {
485 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(origin_);
488 ::google::protobuf::Arena* submessage_arena = NULL;
489 if (message_arena != submessage_arena) {
490 origin = ::google::protobuf::internal::GetOwnedMessage(
491 message_arena, origin, submessage_arena);
507 return this != internal_default_instance() && header_ != NULL;
509 inline const ::gz::msgs::Header& OccupancyGrid::_internal_header()
const {
513 const ::gz::msgs::Header* p = header_;
527 if (header_ == NULL) {
528 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
535 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
536 if (message_arena == NULL) {
537 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
540 ::google::protobuf::Arena* submessage_arena = NULL;
541 if (message_arena != submessage_arena) {
542 header = ::google::protobuf::internal::GetOwnedMessage(
543 message_arena, header, submessage_arena);
555 return this != internal_default_instance() && info_ != NULL;
558 if (GetArenaNoVirtual() == NULL && info_ != NULL) {
563 inline const ::gz::msgs::OccupancyGrid_MapMetaInfo& OccupancyGrid::_internal_info()
const {
567 const ::gz::msgs::OccupancyGrid_MapMetaInfo* p = info_;
582 auto* p = CreateMaybeMessage<::gz::msgs::OccupancyGrid_MapMetaInfo>(GetArenaNoVirtual());
589 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
590 if (message_arena == NULL) {
594 ::google::protobuf::Arena* submessage_arena = NULL;
595 if (message_arena != submessage_arena) {
596 info = ::google::protobuf::internal::GetOwnedMessage(
597 message_arena, info, submessage_arena);
609 data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
613 return data_.GetNoArena();
617 data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
624 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
629 GOOGLE_DCHECK(value != NULL);
631 data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
636 data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
637 ::
std::string(
reinterpret_cast<const char*
>(value), size));
643 return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
648 return data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
656 data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data);
661 #pragma GCC diagnostic pop
673 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2foccupancy_5fgrid_2eproto