4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fpointcloud_5fpacked_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fpointcloud_5fpacked_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/header.pb.h"
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fpointcloud_5fpacked_2eproto GZ_MSGS_VISIBLE
41 static const ::google::protobuf::internal::ParseTableField entries[];
42 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
43 static const ::google::protobuf::internal::ParseTable schema[2];
44 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
45 static const ::google::protobuf::internal::SerializationTable serialization_table[];
46 static const ::google::protobuf::uint32 offsets[];
52 class PointCloudPacked;
53 class PointCloudPackedDefaultTypeInternal;
55 class PointCloudPacked_Field;
56 class PointCloudPacked_FieldDefaultTypeInternal;
62 template<> GZ_MSGS_VISIBLE ::gz::msgs::PointCloudPacked* Arena::CreateMaybeMessage<::gz::msgs::PointCloudPacked>(Arena*);
63 template<> GZ_MSGS_VISIBLE ::gz::msgs::PointCloudPacked_Field* Arena::CreateMaybeMessage<::gz::msgs::PointCloudPacked_Field>(Arena*);
88 return ::google::protobuf::internal::NameOfEnum(
93 return ::google::protobuf::internal::ParseNamedEnum<PointCloudPacked_Field_DataType>(
112 *
this = ::std::move(from);
115 inline PointCloudPacked_Field& operator=(PointCloudPacked_Field&& from) noexcept {
116 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
117 if (
this != &from) InternalSwap(&from);
124 static const ::google::protobuf::Descriptor* descriptor();
125 static const PointCloudPacked_Field& default_instance();
127 static void InitAsDefaultInstance();
132 static constexpr
int kIndexInFileMessages =
143 return CreateMaybeMessage<PointCloudPacked_Field>(NULL);
147 return CreateMaybeMessage<PointCloudPacked_Field>(arena);
149 void CopyFrom(const ::google::protobuf::Message& from)
final;
150 void MergeFrom(const ::google::protobuf::Message& from)
final;
154 bool IsInitialized() const final;
156 size_t ByteSizeLong() const final;
157 bool MergePartialFromCodedStream(
158 ::
google::protobuf::io::CodedInputStream* input) final;
159 void SerializeWithCachedSizes(
160 ::
google::protobuf::io::CodedOutputStream* output) const final;
161 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
162 bool deterministic, ::
google::protobuf::uint8* target) const final;
163 int GetCachedSize() const final {
return _cached_size_.Get(); }
168 void SetCachedSize(
int size)
const final;
171 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
174 inline void* MaybeArenaPtr()
const {
179 ::google::protobuf::Metadata GetMetadata() const final;
200 static inline
bool DataType_IsValid(
int value) {
207 static const int DataType_ARRAYSIZE =
209 static inline const ::google::protobuf::EnumDescriptor*
225 static const int kNameFieldNumber = 1;
226 const ::std::string& name()
const;
227 void set_name(const ::std::string& value);
231 void set_name(
const char* value);
232 void set_name(
const char* value,
size_t size);
239 static const int kOffsetFieldNumber = 2;
240 ::google::protobuf::uint32 offset()
const;
241 void set_offset(::google::protobuf::uint32 value);
244 void clear_datatype();
245 static const int kDatatypeFieldNumber = 3;
251 static const int kCountFieldNumber = 4;
252 ::google::protobuf::uint32 count()
const;
253 void set_count(::google::protobuf::uint32 value);
258 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
259 ::google::protobuf::internal::ArenaStringPtr name_;
260 ::google::protobuf::uint32 offset_;
262 ::google::protobuf::uint32 count_;
263 mutable ::google::protobuf::internal::CachedSize _cached_size_;
264 friend struct ::protobuf_gz_2fmsgs_2fpointcloud_5fpacked_2eproto::TableStruct;
282 *
this = ::std::move(from);
285 inline PointCloudPacked& operator=(PointCloudPacked&& from) noexcept {
286 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
287 if (
this != &from) InternalSwap(&from);
294 static const ::google::protobuf::Descriptor* descriptor();
295 static const PointCloudPacked& default_instance();
297 static void InitAsDefaultInstance();
302 static constexpr
int kIndexInFileMessages =
313 return CreateMaybeMessage<PointCloudPacked>(NULL);
317 return CreateMaybeMessage<PointCloudPacked>(arena);
319 void CopyFrom(const ::google::protobuf::Message& from)
final;
320 void MergeFrom(const ::google::protobuf::Message& from)
final;
324 bool IsInitialized() const final;
326 size_t ByteSizeLong() const final;
327 bool MergePartialFromCodedStream(
328 ::
google::protobuf::io::CodedInputStream* input) final;
329 void SerializeWithCachedSizes(
330 ::
google::protobuf::io::CodedOutputStream* output) const final;
331 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
332 bool deterministic, ::
google::protobuf::uint8* target) const final;
333 int GetCachedSize() const final {
return _cached_size_.Get(); }
338 void SetCachedSize(
int size)
const final;
341 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
344 inline void* MaybeArenaPtr()
const {
349 ::google::protobuf::Metadata GetMetadata() const final;
358 int field_size() const;
360 static const
int kFieldFieldNumber = 2;
371 static const
int kDataFieldNumber = 8;
372 const ::
std::
string& data() const;
373 void set_data(const ::
std::
string& value);
377 void set_data(
const char* value);
378 void set_data(
const void* value,
size_t size);
384 bool has_header()
const;
386 static const int kHeaderFieldNumber = 1;
388 const ::gz::msgs::Header& _internal_header()
const;
390 const ::gz::msgs::Header& header()
const;
397 static const int kHeightFieldNumber = 3;
398 ::google::protobuf::uint32 height()
const;
399 void set_height(::google::protobuf::uint32 value);
403 static const int kWidthFieldNumber = 4;
404 ::google::protobuf::uint32 width()
const;
405 void set_width(::google::protobuf::uint32 value);
408 void clear_point_step();
409 static const int kPointStepFieldNumber = 6;
410 ::google::protobuf::uint32 point_step()
const;
411 void set_point_step(::google::protobuf::uint32 value);
414 void clear_row_step();
415 static const int kRowStepFieldNumber = 7;
416 ::google::protobuf::uint32 row_step()
const;
417 void set_row_step(::google::protobuf::uint32 value);
420 void clear_is_bigendian();
421 static const int kIsBigendianFieldNumber = 5;
422 bool is_bigendian()
const;
423 void set_is_bigendian(
bool value);
426 void clear_is_dense();
427 static const int kIsDenseFieldNumber = 9;
428 bool is_dense()
const;
429 void set_is_dense(
bool value);
434 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
435 ::google::protobuf::RepeatedPtrField< ::gz::msgs::PointCloudPacked_Field > field_;
436 ::google::protobuf::internal::ArenaStringPtr data_;
438 ::google::protobuf::uint32 height_;
439 ::google::protobuf::uint32 width_;
440 ::google::protobuf::uint32 point_step_;
441 ::google::protobuf::uint32 row_step_;
444 mutable ::google::protobuf::internal::CachedSize _cached_size_;
445 friend struct ::protobuf_gz_2fmsgs_2fpointcloud_5fpacked_2eproto::TableStruct;
453 #pragma GCC diagnostic push
454 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
460 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
464 return name_.GetNoArena();
468 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
475 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
480 GOOGLE_DCHECK(value != NULL);
482 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
487 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
488 ::
std::string(
reinterpret_cast<const char*
>(value), size));
494 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
499 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
507 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name);
561 inline const ::gz::msgs::Header& PointCloudPacked::_internal_header()
const {
565 const ::gz::msgs::Header* p = header_;
579 if (header_ == NULL) {
580 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
587 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
588 if (message_arena == NULL) {
589 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
592 ::google::protobuf::Arena* submessage_arena = NULL;
593 if (message_arena != submessage_arena) {
594 header = ::google::protobuf::internal::GetOwnedMessage(
595 message_arena,
header, submessage_arena);
607 return field_.size();
614 return field_.Mutable(index);
616 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::PointCloudPacked_Field >*
623 return field_.Get(index);
629 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::PointCloudPacked_Field >&
665 is_bigendian_ =
false;
669 return is_bigendian_;
673 is_bigendian_ = value;
707 data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
711 return data_.GetNoArena();
715 data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
722 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
727 GOOGLE_DCHECK(value != NULL);
729 data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
734 data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
735 ::
std::string(
reinterpret_cast<const char*
>(value), size));
741 return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
746 return data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
754 data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
data);
773 #pragma GCC diagnostic pop
788 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::PointCloudPacked_Field_DataType>() {
797 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fpointcloud_5fpacked_2eproto