diff --git a/indexer/feature.pb.cc b/indexer/feature.pb.cc deleted file mode 100644 index 08c62725d5..0000000000 --- a/indexer/feature.pb.cc +++ /dev/null @@ -1,572 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! - -#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION -#include "feature.pb.h" -#include -#include -#include -// @@protoc_insertion_point(includes) - -void protobuf_ShutdownFile_feature_2eproto() { - delete NameProto::default_instance_; - delete FeatureProto::default_instance_; -} - -void protobuf_AddDesc_feature_2eproto() { - static bool already_here = false; - if (already_here) return; - already_here = true; - GOOGLE_PROTOBUF_VERIFY_VERSION; - - NameProto::default_instance_ = new NameProto(); - FeatureProto::default_instance_ = new FeatureProto(); - NameProto::default_instance_->InitAsDefaultInstance(); - FeatureProto::default_instance_->InitAsDefaultInstance(); - ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_feature_2eproto); -} - -// Force AddDescriptors() to be called at static initialization time. -struct StaticDescriptorInitializer_feature_2eproto { - StaticDescriptorInitializer_feature_2eproto() { - protobuf_AddDesc_feature_2eproto(); - } -} static_descriptor_initializer_feature_2eproto_; - - -// =================================================================== - -const ::std::string NameProto::_default_text_; -const ::std::string NameProto::_default_lang_; -#ifndef _MSC_VER -const int NameProto::kTextFieldNumber; -const int NameProto::kLangFieldNumber; -#endif // !_MSC_VER - -NameProto::NameProto() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void NameProto::InitAsDefaultInstance() { -} - -NameProto::NameProto(const NameProto& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void NameProto::SharedCtor() { - _cached_size_ = 0; - text_ = const_cast< ::std::string*>(&_default_text_); - lang_ = const_cast< ::std::string*>(&_default_lang_); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -NameProto::~NameProto() { - SharedDtor(); -} - -void NameProto::SharedDtor() { - if (text_ != &_default_text_) { - delete text_; - } - if (lang_ != &_default_lang_) { - delete lang_; - } - if (this != default_instance_) { - } -} - -void NameProto::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const NameProto& NameProto::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_feature_2eproto(); return *default_instance_; -} - -NameProto* NameProto::default_instance_ = NULL; - -NameProto* NameProto::New() const { - return new NameProto; -} - -void NameProto::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (_has_bit(0)) { - if (text_ != &_default_text_) { - text_->clear(); - } - } - if (_has_bit(1)) { - if (lang_ != &_default_lang_) { - lang_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool NameProto::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional string text = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_text())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_lang; - break; - } - - // optional string lang = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_lang: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_lang())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void NameProto::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional string text = 1; - if (_has_bit(0)) { - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->text(), output); - } - - // optional string lang = 2; - if (_has_bit(1)) { - ::google::protobuf::internal::WireFormatLite::WriteString( - 2, this->lang(), output); - } - -} - -int NameProto::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string text = 1; - if (has_text()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->text()); - } - - // optional string lang = 2; - if (has_lang()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->lang()); - } - - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void NameProto::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void NameProto::MergeFrom(const NameProto& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from._has_bit(0)) { - set_text(from.text()); - } - if (from._has_bit(1)) { - set_lang(from.lang()); - } - } -} - -void NameProto::CopyFrom(const NameProto& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NameProto::IsInitialized() const { - - return true; -} - -void NameProto::Swap(NameProto* other) { - if (other != this) { - std::swap(text_, other->text_); - std::swap(lang_, other->lang_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string NameProto::GetTypeName() const { - return "NameProto"; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int FeatureProto::kTypeFieldNumber; -const int FeatureProto::kNameFieldNumber; -const int FeatureProto::kGeometryFieldNumber; -const int FeatureProto::kPolygonsFieldNumber; -const int FeatureProto::kLayerFieldNumber; -#endif // !_MSC_VER - -FeatureProto::FeatureProto() - : ::google::protobuf::MessageLite() { - SharedCtor(); -} - -void FeatureProto::InitAsDefaultInstance() { -} - -FeatureProto::FeatureProto(const FeatureProto& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); -} - -void FeatureProto::SharedCtor() { - _cached_size_ = 0; - type_ = 0; - layer_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -FeatureProto::~FeatureProto() { - SharedDtor(); -} - -void FeatureProto::SharedDtor() { - if (this != default_instance_) { - } -} - -void FeatureProto::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const FeatureProto& FeatureProto::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_feature_2eproto(); return *default_instance_; -} - -FeatureProto* FeatureProto::default_instance_ = NULL; - -FeatureProto* FeatureProto::New() const { - return new FeatureProto; -} - -void FeatureProto::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - type_ = 0; - layer_ = 0; - } - name_.Clear(); - geometry_.Clear(); - polygons_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -bool FeatureProto::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required int32 type = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &type_))); - _set_bit(0); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_name; - break; - } - - // repeated .NameProto name = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_name())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_name; - if (input->ExpectTag(26)) goto parse_geometry; - break; - } - - // repeated sint64 geometry = 3 [packed = true]; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_geometry: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>( - input, this->mutable_geometry()))); - } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>( - 1, 26, input, this->mutable_geometry()))); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(34)) goto parse_polygons; - break; - } - - // repeated sint64 polygons = 4 [packed = true]; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_polygons: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>( - input, this->mutable_polygons()))); - } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>( - 1, 34, input, this->mutable_polygons()))); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(40)) goto parse_layer; - break; - } - - // optional int32 layer = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_layer: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &layer_))); - _set_bit(4); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); - break; - } - } - } - return true; -#undef DO_ -} - -void FeatureProto::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required int32 type = 1; - if (_has_bit(0)) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->type(), output); - } - - // repeated .NameProto name = 2; - for (int i = 0; i < this->name_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 2, this->name(i), output); - } - - // repeated sint64 geometry = 3 [packed = true]; - if (this->geometry_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_geometry_cached_byte_size_); - } - for (int i = 0; i < this->geometry_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteSInt64NoTag( - this->geometry(i), output); - } - - // repeated sint64 polygons = 4 [packed = true]; - if (this->polygons_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(4, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_polygons_cached_byte_size_); - } - for (int i = 0; i < this->polygons_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteSInt64NoTag( - this->polygons(i), output); - } - - // optional int32 layer = 5; - if (_has_bit(4)) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->layer(), output); - } - -} - -int FeatureProto::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required int32 type = 1; - if (has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->type()); - } - - // optional int32 layer = 5; - if (has_layer()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->layer()); - } - - } - // repeated .NameProto name = 2; - total_size += 1 * this->name_size(); - for (int i = 0; i < this->name_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->name(i)); - } - - // repeated sint64 geometry = 3 [packed = true]; - { - int data_size = 0; - for (int i = 0; i < this->geometry_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - SInt64Size(this->geometry(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - _geometry_cached_byte_size_ = data_size; - total_size += data_size; - } - - // repeated sint64 polygons = 4 [packed = true]; - { - int data_size = 0; - for (int i = 0; i < this->polygons_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - SInt64Size(this->polygons(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - _polygons_cached_byte_size_ = data_size; - total_size += data_size; - } - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void FeatureProto::CheckTypeAndMergeFrom( - const ::google::protobuf::MessageLite& from) { - MergeFrom(*::google::protobuf::down_cast(&from)); -} - -void FeatureProto::MergeFrom(const FeatureProto& from) { - GOOGLE_CHECK_NE(&from, this); - name_.MergeFrom(from.name_); - geometry_.MergeFrom(from.geometry_); - polygons_.MergeFrom(from.polygons_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from._has_bit(0)) { - set_type(from.type()); - } - if (from._has_bit(4)) { - set_layer(from.layer()); - } - } -} - -void FeatureProto::CopyFrom(const FeatureProto& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FeatureProto::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - return true; -} - -void FeatureProto::Swap(FeatureProto* other) { - if (other != this) { - std::swap(type_, other->type_); - name_.Swap(&other->name_); - geometry_.Swap(&other->geometry_); - polygons_.Swap(&other->polygons_); - std::swap(layer_, other->layer_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string FeatureProto::GetTypeName() const { - return "FeatureProto"; -} - - -// @@protoc_insertion_point(namespace_scope) - -// @@protoc_insertion_point(global_scope) diff --git a/indexer/feature.pb.h b/indexer/feature.pb.h deleted file mode 100644 index e7f8fc783e..0000000000 --- a/indexer/feature.pb.h +++ /dev/null @@ -1,461 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: feature.proto - -#ifndef PROTOBUF_feature_2eproto__INCLUDED -#define PROTOBUF_feature_2eproto__INCLUDED - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 2003000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 2003000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -// @@protoc_insertion_point(includes) - -// Internal implementation detail -- do not call these. -void protobuf_AddDesc_feature_2eproto(); -void protobuf_AssignDesc_feature_2eproto(); -void protobuf_ShutdownFile_feature_2eproto(); - -class NameProto; -class FeatureProto; - -// =================================================================== - -class NameProto : public ::google::protobuf::MessageLite { - public: - NameProto(); - virtual ~NameProto(); - - NameProto(const NameProto& from); - - inline NameProto& operator=(const NameProto& from) { - CopyFrom(from); - return *this; - } - - static const NameProto& default_instance(); - - void Swap(NameProto* other); - - // implements Message ---------------------------------------------- - - NameProto* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); - void CopyFrom(const NameProto& from); - void MergeFrom(const NameProto& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::std::string GetTypeName() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // optional string text = 1; - inline bool has_text() const; - inline void clear_text(); - static const int kTextFieldNumber = 1; - inline const ::std::string& text() const; - inline void set_text(const ::std::string& value); - inline void set_text(const char* value); - inline void set_text(const char* value, size_t size); - inline ::std::string* mutable_text(); - - // optional string lang = 2; - inline bool has_lang() const; - inline void clear_lang(); - static const int kLangFieldNumber = 2; - inline const ::std::string& lang() const; - inline void set_lang(const ::std::string& value); - inline void set_lang(const char* value); - inline void set_lang(const char* value, size_t size); - inline ::std::string* mutable_lang(); - - // @@protoc_insertion_point(class_scope:NameProto) - private: - mutable int _cached_size_; - - ::std::string* text_; - static const ::std::string _default_text_; - ::std::string* lang_; - static const ::std::string _default_lang_; - friend void protobuf_AddDesc_feature_2eproto(); - friend void protobuf_AssignDesc_feature_2eproto(); - friend void protobuf_ShutdownFile_feature_2eproto(); - - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - // WHY DOES & HAVE LOWER PRECEDENCE THAN != !? - inline bool _has_bit(int index) const { - return (_has_bits_[index / 32] & (1u << (index % 32))) != 0; - } - inline void _set_bit(int index) { - _has_bits_[index / 32] |= (1u << (index % 32)); - } - inline void _clear_bit(int index) { - _has_bits_[index / 32] &= ~(1u << (index % 32)); - } - - void InitAsDefaultInstance(); - static NameProto* default_instance_; -}; -// ------------------------------------------------------------------- - -class FeatureProto : public ::google::protobuf::MessageLite { - public: - FeatureProto(); - virtual ~FeatureProto(); - - FeatureProto(const FeatureProto& from); - - inline FeatureProto& operator=(const FeatureProto& from) { - CopyFrom(from); - return *this; - } - - static const FeatureProto& default_instance(); - - void Swap(FeatureProto* other); - - // implements Message ---------------------------------------------- - - FeatureProto* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); - void CopyFrom(const FeatureProto& from); - void MergeFrom(const FeatureProto& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::std::string GetTypeName() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // required int32 type = 1; - inline bool has_type() const; - inline void clear_type(); - static const int kTypeFieldNumber = 1; - inline ::google::protobuf::int32 type() const; - inline void set_type(::google::protobuf::int32 value); - - // repeated .NameProto name = 2; - inline int name_size() const; - inline void clear_name(); - static const int kNameFieldNumber = 2; - inline const ::NameProto& name(int index) const; - inline ::NameProto* mutable_name(int index); - inline ::NameProto* add_name(); - inline const ::google::protobuf::RepeatedPtrField< ::NameProto >& - name() const; - inline ::google::protobuf::RepeatedPtrField< ::NameProto >* - mutable_name(); - - // repeated sint64 geometry = 3 [packed = true]; - inline int geometry_size() const; - inline void clear_geometry(); - static const int kGeometryFieldNumber = 3; - inline ::google::protobuf::int64 geometry(int index) const; - inline void set_geometry(int index, ::google::protobuf::int64 value); - inline void add_geometry(::google::protobuf::int64 value); - inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - geometry() const; - inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_geometry(); - - // repeated sint64 polygons = 4 [packed = true]; - inline int polygons_size() const; - inline void clear_polygons(); - static const int kPolygonsFieldNumber = 4; - inline ::google::protobuf::int64 polygons(int index) const; - inline void set_polygons(int index, ::google::protobuf::int64 value); - inline void add_polygons(::google::protobuf::int64 value); - inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - polygons() const; - inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_polygons(); - - // optional int32 layer = 5; - inline bool has_layer() const; - inline void clear_layer(); - static const int kLayerFieldNumber = 5; - inline ::google::protobuf::int32 layer() const; - inline void set_layer(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:FeatureProto) - private: - mutable int _cached_size_; - - ::google::protobuf::int32 type_; - ::google::protobuf::RepeatedPtrField< ::NameProto > name_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > geometry_; - mutable int _geometry_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > polygons_; - mutable int _polygons_cached_byte_size_; - ::google::protobuf::int32 layer_; - friend void protobuf_AddDesc_feature_2eproto(); - friend void protobuf_AssignDesc_feature_2eproto(); - friend void protobuf_ShutdownFile_feature_2eproto(); - - ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; - - // WHY DOES & HAVE LOWER PRECEDENCE THAN != !? - inline bool _has_bit(int index) const { - return (_has_bits_[index / 32] & (1u << (index % 32))) != 0; - } - inline void _set_bit(int index) { - _has_bits_[index / 32] |= (1u << (index % 32)); - } - inline void _clear_bit(int index) { - _has_bits_[index / 32] &= ~(1u << (index % 32)); - } - - void InitAsDefaultInstance(); - static FeatureProto* default_instance_; -}; -// =================================================================== - - -// =================================================================== - -// NameProto - -// optional string text = 1; -inline bool NameProto::has_text() const { - return _has_bit(0); -} -inline void NameProto::clear_text() { - if (text_ != &_default_text_) { - text_->clear(); - } - _clear_bit(0); -} -inline const ::std::string& NameProto::text() const { - return *text_; -} -inline void NameProto::set_text(const ::std::string& value) { - _set_bit(0); - if (text_ == &_default_text_) { - text_ = new ::std::string; - } - text_->assign(value); -} -inline void NameProto::set_text(const char* value) { - _set_bit(0); - if (text_ == &_default_text_) { - text_ = new ::std::string; - } - text_->assign(value); -} -inline void NameProto::set_text(const char* value, size_t size) { - _set_bit(0); - if (text_ == &_default_text_) { - text_ = new ::std::string; - } - text_->assign(reinterpret_cast(value), size); -} -inline ::std::string* NameProto::mutable_text() { - _set_bit(0); - if (text_ == &_default_text_) { - text_ = new ::std::string; - } - return text_; -} - -// optional string lang = 2; -inline bool NameProto::has_lang() const { - return _has_bit(1); -} -inline void NameProto::clear_lang() { - if (lang_ != &_default_lang_) { - lang_->clear(); - } - _clear_bit(1); -} -inline const ::std::string& NameProto::lang() const { - return *lang_; -} -inline void NameProto::set_lang(const ::std::string& value) { - _set_bit(1); - if (lang_ == &_default_lang_) { - lang_ = new ::std::string; - } - lang_->assign(value); -} -inline void NameProto::set_lang(const char* value) { - _set_bit(1); - if (lang_ == &_default_lang_) { - lang_ = new ::std::string; - } - lang_->assign(value); -} -inline void NameProto::set_lang(const char* value, size_t size) { - _set_bit(1); - if (lang_ == &_default_lang_) { - lang_ = new ::std::string; - } - lang_->assign(reinterpret_cast(value), size); -} -inline ::std::string* NameProto::mutable_lang() { - _set_bit(1); - if (lang_ == &_default_lang_) { - lang_ = new ::std::string; - } - return lang_; -} - -// ------------------------------------------------------------------- - -// FeatureProto - -// required int32 type = 1; -inline bool FeatureProto::has_type() const { - return _has_bit(0); -} -inline void FeatureProto::clear_type() { - type_ = 0; - _clear_bit(0); -} -inline ::google::protobuf::int32 FeatureProto::type() const { - return type_; -} -inline void FeatureProto::set_type(::google::protobuf::int32 value) { - _set_bit(0); - type_ = value; -} - -// repeated .NameProto name = 2; -inline int FeatureProto::name_size() const { - return name_.size(); -} -inline void FeatureProto::clear_name() { - name_.Clear(); -} -inline const ::NameProto& FeatureProto::name(int index) const { - return name_.Get(index); -} -inline ::NameProto* FeatureProto::mutable_name(int index) { - return name_.Mutable(index); -} -inline ::NameProto* FeatureProto::add_name() { - return name_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::NameProto >& -FeatureProto::name() const { - return name_; -} -inline ::google::protobuf::RepeatedPtrField< ::NameProto >* -FeatureProto::mutable_name() { - return &name_; -} - -// repeated sint64 geometry = 3 [packed = true]; -inline int FeatureProto::geometry_size() const { - return geometry_.size(); -} -inline void FeatureProto::clear_geometry() { - geometry_.Clear(); -} -inline ::google::protobuf::int64 FeatureProto::geometry(int index) const { - return geometry_.Get(index); -} -inline void FeatureProto::set_geometry(int index, ::google::protobuf::int64 value) { - geometry_.Set(index, value); -} -inline void FeatureProto::add_geometry(::google::protobuf::int64 value) { - geometry_.Add(value); -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -FeatureProto::geometry() const { - return geometry_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -FeatureProto::mutable_geometry() { - return &geometry_; -} - -// repeated sint64 polygons = 4 [packed = true]; -inline int FeatureProto::polygons_size() const { - return polygons_.size(); -} -inline void FeatureProto::clear_polygons() { - polygons_.Clear(); -} -inline ::google::protobuf::int64 FeatureProto::polygons(int index) const { - return polygons_.Get(index); -} -inline void FeatureProto::set_polygons(int index, ::google::protobuf::int64 value) { - polygons_.Set(index, value); -} -inline void FeatureProto::add_polygons(::google::protobuf::int64 value) { - polygons_.Add(value); -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -FeatureProto::polygons() const { - return polygons_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -FeatureProto::mutable_polygons() { - return &polygons_; -} - -// optional int32 layer = 5; -inline bool FeatureProto::has_layer() const { - return _has_bit(4); -} -inline void FeatureProto::clear_layer() { - layer_ = 0; - _clear_bit(4); -} -inline ::google::protobuf::int32 FeatureProto::layer() const { - return layer_; -} -inline void FeatureProto::set_layer(::google::protobuf::int32 value) { - _set_bit(4); - layer_ = value; -} - - -// @@protoc_insertion_point(namespace_scope) - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_feature_2eproto__INCLUDED