4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fheightmapgeom_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fheightmapgeom_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/image.pb.h"
34 #include "gz/msgs/vector3d.pb.h"
35 #include "gz/msgs/header.pb.h"
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fheightmapgeom_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[3];
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 HeightmapGeomDefaultTypeInternal;
56 class HeightmapGeom_Blend;
57 class HeightmapGeom_BlendDefaultTypeInternal;
59 class HeightmapGeom_Texture;
60 class HeightmapGeom_TextureDefaultTypeInternal;
66 template<> GZ_MSGS_VISIBLE ::gz::msgs::HeightmapGeom* Arena::CreateMaybeMessage<::gz::msgs::HeightmapGeom>(Arena*);
67 template<> GZ_MSGS_VISIBLE ::gz::msgs::HeightmapGeom_Blend* Arena::CreateMaybeMessage<::gz::msgs::HeightmapGeom_Blend>(Arena*);
68 template<> GZ_MSGS_VISIBLE ::gz::msgs::HeightmapGeom_Texture* Arena::CreateMaybeMessage<::gz::msgs::HeightmapGeom_Texture>(Arena*);
90 *
this = ::std::move(from);
93 inline HeightmapGeom_Texture& operator=(HeightmapGeom_Texture&& from) noexcept {
94 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
95 if (
this != &from) InternalSwap(&from);
102 static const ::google::protobuf::Descriptor* descriptor();
103 static const HeightmapGeom_Texture& default_instance();
105 static void InitAsDefaultInstance();
110 static constexpr
int kIndexInFileMessages =
121 return CreateMaybeMessage<HeightmapGeom_Texture>(NULL);
125 return CreateMaybeMessage<HeightmapGeom_Texture>(arena);
127 void CopyFrom(const ::google::protobuf::Message& from)
final;
128 void MergeFrom(const ::google::protobuf::Message& from)
final;
132 bool IsInitialized() const final;
134 size_t ByteSizeLong() const final;
135 bool MergePartialFromCodedStream(
136 ::
google::protobuf::io::CodedInputStream* input) final;
137 void SerializeWithCachedSizes(
138 ::
google::protobuf::io::CodedOutputStream* output) const final;
139 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
140 bool deterministic, ::
google::protobuf::uint8* target) const final;
141 int GetCachedSize() const final {
return _cached_size_.Get(); }
146 void SetCachedSize(
int size)
const final;
149 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
152 inline void* MaybeArenaPtr()
const {
157 ::google::protobuf::Metadata GetMetadata() const final;
164 void clear_diffuse();
165 static const
int kDiffuseFieldNumber = 1;
166 const ::
std::
string& diffuse() const;
167 void set_diffuse(const ::
std::
string& value);
171 void set_diffuse(
const char* value);
172 void set_diffuse(
const char* value,
size_t size);
175 void set_allocated_diffuse(::
std::string* diffuse);
179 static const int kNormalFieldNumber = 2;
180 const ::std::string& normal()
const;
181 void set_normal(const ::std::string& value);
185 void set_normal(
const char* value);
186 void set_normal(
const char* value,
size_t size);
193 static const int kSizeFieldNumber = 3;
195 void set_size(
double value);
200 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
201 ::google::protobuf::internal::ArenaStringPtr diffuse_;
202 ::google::protobuf::internal::ArenaStringPtr normal_;
204 mutable ::google::protobuf::internal::CachedSize _cached_size_;
205 friend struct ::protobuf_gz_2fmsgs_2fheightmapgeom_2eproto::TableStruct;
223 *
this = ::std::move(from);
226 inline HeightmapGeom_Blend& operator=(HeightmapGeom_Blend&& from) noexcept {
227 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
228 if (
this != &from) InternalSwap(&from);
235 static const ::google::protobuf::Descriptor* descriptor();
236 static const HeightmapGeom_Blend& default_instance();
238 static void InitAsDefaultInstance();
243 static constexpr
int kIndexInFileMessages =
254 return CreateMaybeMessage<HeightmapGeom_Blend>(NULL);
258 return CreateMaybeMessage<HeightmapGeom_Blend>(arena);
260 void CopyFrom(const ::google::protobuf::Message& from)
final;
261 void MergeFrom(const ::google::protobuf::Message& from)
final;
265 bool IsInitialized() const final;
267 size_t ByteSizeLong() const final;
268 bool MergePartialFromCodedStream(
269 ::
google::protobuf::io::CodedInputStream* input) final;
270 void SerializeWithCachedSizes(
271 ::
google::protobuf::io::CodedOutputStream* output) const final;
272 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
273 bool deterministic, ::
google::protobuf::uint8* target) const final;
274 int GetCachedSize() const final {
return _cached_size_.Get(); }
279 void SetCachedSize(
int size)
const final;
282 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
285 inline void* MaybeArenaPtr()
const {
290 ::google::protobuf::Metadata GetMetadata() const final;
297 void clear_min_height();
298 static const
int kMinHeightFieldNumber = 1;
299 double min_height() const;
300 void set_min_height(
double value);
303 void clear_fade_dist();
304 static const
int kFadeDistFieldNumber = 2;
305 double fade_dist() const;
306 void set_fade_dist(
double value);
311 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
314 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
333 *
this = ::std::move(from);
336 inline HeightmapGeom& operator=(HeightmapGeom&& from) noexcept {
337 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
338 if (
this != &from) InternalSwap(&from);
345 static const ::google::protobuf::Descriptor* descriptor();
346 static const HeightmapGeom& default_instance();
348 static void InitAsDefaultInstance();
353 static constexpr
int kIndexInFileMessages =
364 return CreateMaybeMessage<HeightmapGeom>(NULL);
368 return CreateMaybeMessage<HeightmapGeom>(arena);
370 void CopyFrom(const ::google::protobuf::Message& from)
final;
371 void MergeFrom(const ::google::protobuf::Message& from)
final;
375 bool IsInitialized() const final;
377 size_t ByteSizeLong() const final;
378 bool MergePartialFromCodedStream(
379 ::
google::protobuf::io::CodedInputStream* input) final;
380 void SerializeWithCachedSizes(
381 ::
google::protobuf::io::CodedOutputStream* output) const final;
382 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
383 bool deterministic, ::
google::protobuf::uint8* target) const final;
384 int GetCachedSize() const final {
return _cached_size_.Get(); }
389 void SetCachedSize(
int size)
const final;
392 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
395 inline void* MaybeArenaPtr()
const {
400 ::google::protobuf::Metadata GetMetadata() const final;
410 int heights_size() const;
411 void clear_heights();
412 static const
int kHeightsFieldNumber = 5;
413 float heights(
int index) const;
414 void set_heights(
int index,
float value);
415 void add_heights(
float value);
416 const ::
google::protobuf::RepeatedField<
float >&
418 ::
google::protobuf::RepeatedField<
float >*
422 int texture_size() const;
423 void clear_texture();
424 static const
int kTextureFieldNumber = 8;
434 int blend_size() const;
436 static const
int kBlendFieldNumber = 9;
446 void clear_filename();
447 static const
int kFilenameFieldNumber = 11;
448 const ::
std::
string& filename() const;
449 void set_filename(const ::
std::
string& value);
453 void set_filename(
const char* value);
454 void set_filename(
const char* value,
size_t size);
457 void set_allocated_filename(::
std::string* filename);
460 bool has_header()
const;
462 static const int kHeaderFieldNumber = 1;
464 const ::gz::msgs::Header& _internal_header()
const;
466 const ::gz::msgs::Header& header()
const;
472 bool has_image()
const;
474 static const int kImageFieldNumber = 2;
476 const ::gz::msgs::Image& _internal_image()
const;
478 const ::gz::msgs::Image& image()
const;
484 bool has_size()
const;
486 static const int kSizeFieldNumber = 3;
488 const ::gz::msgs::Vector3d& _internal_size()
const;
490 const ::gz::msgs::Vector3d& size()
const;
496 bool has_origin()
const;
498 static const int kOriginFieldNumber = 4;
500 const ::gz::msgs::Vector3d& _internal_origin()
const;
502 const ::gz::msgs::Vector3d& origin()
const;
509 static const int kWidthFieldNumber = 6;
510 ::google::protobuf::int32 width()
const;
511 void set_width(::google::protobuf::int32 value);
515 static const int kHeightFieldNumber = 7;
516 ::google::protobuf::int32 height()
const;
517 void set_height(::google::protobuf::int32 value);
520 void clear_use_terrain_paging();
521 static const int kUseTerrainPagingFieldNumber = 10;
522 bool use_terrain_paging()
const;
523 void set_use_terrain_paging(
bool value);
526 void clear_sampling();
527 static const int kSamplingFieldNumber = 12;
528 ::google::protobuf::uint32 sampling()
const;
529 void set_sampling(::google::protobuf::uint32 value);
534 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
535 ::google::protobuf::RepeatedField< float > heights_;
536 mutable int _heights_cached_byte_size_;
537 ::google::protobuf::RepeatedPtrField< ::gz::msgs::HeightmapGeom_Texture > texture_;
538 ::google::protobuf::RepeatedPtrField< ::gz::msgs::HeightmapGeom_Blend > blend_;
539 ::google::protobuf::internal::ArenaStringPtr filename_;
544 ::google::protobuf::int32 width_;
545 ::google::protobuf::int32 height_;
546 bool use_terrain_paging_;
547 ::google::protobuf::uint32 sampling_;
548 mutable ::google::protobuf::internal::CachedSize _cached_size_;
549 friend struct ::protobuf_gz_2fmsgs_2fheightmapgeom_2eproto::TableStruct;
557 #pragma GCC diagnostic push
558 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
564 diffuse_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
568 return diffuse_.GetNoArena();
572 diffuse_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
579 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
584 GOOGLE_DCHECK(value != NULL);
586 diffuse_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
591 diffuse_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
592 ::
std::string(
reinterpret_cast<const char*
>(value), size));
598 return diffuse_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
603 return diffuse_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
606 if (diffuse != NULL) {
611 diffuse_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), diffuse);
617 normal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
621 return normal_.GetNoArena();
625 normal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
632 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
637 GOOGLE_DCHECK(value != NULL);
639 normal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
644 normal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
645 ::
std::string(
reinterpret_cast<const char*
>(value), size));
651 return normal_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
656 return normal_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
659 if (normal != NULL) {
664 normal_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), normal);
720 return this != internal_default_instance() && header_ != NULL;
722 inline const ::gz::msgs::Header& HeightmapGeom::_internal_header()
const {
726 const ::gz::msgs::Header* p = header_;
740 if (header_ == NULL) {
741 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
748 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
749 if (message_arena == NULL) {
750 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
753 ::google::protobuf::Arena* submessage_arena = NULL;
754 if (message_arena != submessage_arena) {
755 header = ::google::protobuf::internal::GetOwnedMessage(
756 message_arena, header, submessage_arena);
768 return this != internal_default_instance() && image_ != NULL;
770 inline const ::gz::msgs::Image& HeightmapGeom::_internal_image()
const {
774 const ::gz::msgs::Image* p = image_;
788 if (image_ == NULL) {
789 auto* p = CreateMaybeMessage<::gz::msgs::Image>(GetArenaNoVirtual());
796 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
797 if (message_arena == NULL) {
798 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(image_);
801 ::google::protobuf::Arena* submessage_arena = NULL;
802 if (message_arena != submessage_arena) {
803 image = ::google::protobuf::internal::GetOwnedMessage(
804 message_arena, image, submessage_arena);
816 return this != internal_default_instance() && size_ != NULL;
818 inline const ::gz::msgs::Vector3d& HeightmapGeom::_internal_size()
const {
822 const ::gz::msgs::Vector3d* p = size_;
837 auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
844 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
845 if (message_arena == NULL) {
846 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(size_);
849 ::google::protobuf::Arena* submessage_arena = NULL;
850 if (message_arena != submessage_arena) {
851 size = ::google::protobuf::internal::GetOwnedMessage(
852 message_arena, size, submessage_arena);
864 return this != internal_default_instance() && origin_ != NULL;
866 inline const ::gz::msgs::Vector3d& HeightmapGeom::_internal_origin()
const {
870 const ::gz::msgs::Vector3d* p = origin_;
884 if (origin_ == NULL) {
885 auto* p = CreateMaybeMessage<::gz::msgs::Vector3d>(GetArenaNoVirtual());
892 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
893 if (message_arena == NULL) {
894 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(origin_);
897 ::google::protobuf::Arena* submessage_arena = NULL;
898 if (message_arena != submessage_arena) {
899 origin = ::google::protobuf::internal::GetOwnedMessage(
900 message_arena, origin, submessage_arena);
912 return heights_.size();
919 return heights_.Get(index);
922 heights_.Set(index, value);
929 inline const ::google::protobuf::RepeatedField< float >&
934 inline ::google::protobuf::RepeatedField< float >*
970 return texture_.size();
977 return texture_.Mutable(index);
979 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::HeightmapGeom_Texture >*
986 return texture_.Get(index);
990 return texture_.Add();
992 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::HeightmapGeom_Texture >&
1000 return blend_.size();
1007 return blend_.Mutable(index);
1009 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::HeightmapGeom_Blend >*
1016 return blend_.Get(index);
1020 return blend_.Add();
1022 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::HeightmapGeom_Blend >&
1030 use_terrain_paging_ =
false;
1034 return use_terrain_paging_;
1038 use_terrain_paging_ = value;
1044 filename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1048 return filename_.GetNoArena();
1052 filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1058 filename_.SetNoArena(
1059 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
1064 GOOGLE_DCHECK(value != NULL);
1066 filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
1071 filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1072 ::
std::string(
reinterpret_cast<const char*
>(value), size));
1078 return filename_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1083 return filename_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1086 if (filename != NULL) {
1091 filename_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filename);
1110 #pragma GCC diagnostic pop
1124 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fheightmapgeom_2eproto