osrm-backend/DataStructures/pbf-proto/osmformat.pb.cc

5240 lines
176 KiB
C++
Raw Normal View History

// Generated by the protocol buffer compiler. DO NOT EDIT!
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "osmformat.pb.h"
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_format_lite_inl.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
// @@protoc_insertion_point(includes)
namespace OSMPBF {
namespace {
const ::google::protobuf::Descriptor* HeaderBlock_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
HeaderBlock_reflection_ = NULL;
const ::google::protobuf::Descriptor* HeaderBBox_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
HeaderBBox_reflection_ = NULL;
const ::google::protobuf::Descriptor* PrimitiveBlock_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
PrimitiveBlock_reflection_ = NULL;
const ::google::protobuf::Descriptor* PrimitiveGroup_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
PrimitiveGroup_reflection_ = NULL;
const ::google::protobuf::Descriptor* StringTable_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
StringTable_reflection_ = NULL;
const ::google::protobuf::Descriptor* Info_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
Info_reflection_ = NULL;
const ::google::protobuf::Descriptor* DenseInfo_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
DenseInfo_reflection_ = NULL;
const ::google::protobuf::Descriptor* ChangeSet_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
ChangeSet_reflection_ = NULL;
const ::google::protobuf::Descriptor* Node_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
Node_reflection_ = NULL;
const ::google::protobuf::Descriptor* DenseNodes_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
DenseNodes_reflection_ = NULL;
const ::google::protobuf::Descriptor* Way_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
Way_reflection_ = NULL;
const ::google::protobuf::Descriptor* Relation_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
Relation_reflection_ = NULL;
const ::google::protobuf::EnumDescriptor* Relation_MemberType_descriptor_ = NULL;
} // namespace
void protobuf_AssignDesc_osmformat_2eproto() {
protobuf_AddDesc_osmformat_2eproto();
const ::google::protobuf::FileDescriptor* file =
::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
"osmformat.proto");
GOOGLE_CHECK(file != NULL);
HeaderBlock_descriptor_ = file->message_type(0);
static const int HeaderBlock_offsets_[5] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HeaderBlock, bbox_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HeaderBlock, required_features_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HeaderBlock, optional_features_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HeaderBlock, writingprogram_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HeaderBlock, source_),
};
HeaderBlock_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
HeaderBlock_descriptor_,
HeaderBlock::default_instance_,
HeaderBlock_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HeaderBlock, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HeaderBlock, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(HeaderBlock));
HeaderBBox_descriptor_ = file->message_type(1);
static const int HeaderBBox_offsets_[4] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HeaderBBox, left_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HeaderBBox, right_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HeaderBBox, top_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HeaderBBox, bottom_),
};
HeaderBBox_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
HeaderBBox_descriptor_,
HeaderBBox::default_instance_,
HeaderBBox_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HeaderBBox, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HeaderBBox, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(HeaderBBox));
PrimitiveBlock_descriptor_ = file->message_type(2);
static const int PrimitiveBlock_offsets_[6] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PrimitiveBlock, stringtable_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PrimitiveBlock, primitivegroup_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PrimitiveBlock, granularity_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PrimitiveBlock, lat_offset_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PrimitiveBlock, lon_offset_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PrimitiveBlock, date_granularity_),
};
PrimitiveBlock_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
PrimitiveBlock_descriptor_,
PrimitiveBlock::default_instance_,
PrimitiveBlock_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PrimitiveBlock, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PrimitiveBlock, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(PrimitiveBlock));
PrimitiveGroup_descriptor_ = file->message_type(3);
static const int PrimitiveGroup_offsets_[5] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PrimitiveGroup, nodes_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PrimitiveGroup, dense_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PrimitiveGroup, ways_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PrimitiveGroup, relations_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PrimitiveGroup, changesets_),
};
PrimitiveGroup_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
PrimitiveGroup_descriptor_,
PrimitiveGroup::default_instance_,
PrimitiveGroup_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PrimitiveGroup, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PrimitiveGroup, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(PrimitiveGroup));
StringTable_descriptor_ = file->message_type(4);
static const int StringTable_offsets_[1] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StringTable, s_),
};
StringTable_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
StringTable_descriptor_,
StringTable::default_instance_,
StringTable_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StringTable, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StringTable, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(StringTable));
Info_descriptor_ = file->message_type(5);
static const int Info_offsets_[5] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Info, version_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Info, timestamp_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Info, changeset_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Info, uid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Info, user_sid_),
};
Info_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
Info_descriptor_,
Info::default_instance_,
Info_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Info, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Info, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(Info));
DenseInfo_descriptor_ = file->message_type(6);
static const int DenseInfo_offsets_[5] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DenseInfo, version_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DenseInfo, timestamp_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DenseInfo, changeset_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DenseInfo, uid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DenseInfo, user_sid_),
};
DenseInfo_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
DenseInfo_descriptor_,
DenseInfo::default_instance_,
DenseInfo_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DenseInfo, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DenseInfo, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(DenseInfo));
ChangeSet_descriptor_ = file->message_type(7);
static const int ChangeSet_offsets_[1] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChangeSet, id_),
};
ChangeSet_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
ChangeSet_descriptor_,
ChangeSet::default_instance_,
ChangeSet_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChangeSet, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChangeSet, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(ChangeSet));
Node_descriptor_ = file->message_type(8);
static const int Node_offsets_[6] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Node, id_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Node, keys_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Node, vals_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Node, info_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Node, lat_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Node, lon_),
};
Node_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
Node_descriptor_,
Node::default_instance_,
Node_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Node, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Node, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(Node));
DenseNodes_descriptor_ = file->message_type(9);
static const int DenseNodes_offsets_[5] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DenseNodes, id_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DenseNodes, denseinfo_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DenseNodes, lat_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DenseNodes, lon_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DenseNodes, keys_vals_),
};
DenseNodes_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
DenseNodes_descriptor_,
DenseNodes::default_instance_,
DenseNodes_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DenseNodes, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DenseNodes, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(DenseNodes));
Way_descriptor_ = file->message_type(10);
static const int Way_offsets_[5] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Way, id_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Way, keys_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Way, vals_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Way, info_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Way, refs_),
};
Way_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
Way_descriptor_,
Way::default_instance_,
Way_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Way, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Way, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(Way));
Relation_descriptor_ = file->message_type(11);
static const int Relation_offsets_[7] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Relation, id_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Relation, keys_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Relation, vals_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Relation, info_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Relation, roles_sid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Relation, memids_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Relation, types_),
};
Relation_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
Relation_descriptor_,
Relation::default_instance_,
Relation_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Relation, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Relation, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(Relation));
Relation_MemberType_descriptor_ = Relation_descriptor_->enum_type(0);
}
namespace {
GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
inline void protobuf_AssignDescriptorsOnce() {
::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
&protobuf_AssignDesc_osmformat_2eproto);
}
void protobuf_RegisterTypes(const ::std::string&) {
protobuf_AssignDescriptorsOnce();
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
HeaderBlock_descriptor_, &HeaderBlock::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
HeaderBBox_descriptor_, &HeaderBBox::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
PrimitiveBlock_descriptor_, &PrimitiveBlock::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
PrimitiveGroup_descriptor_, &PrimitiveGroup::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
StringTable_descriptor_, &StringTable::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Info_descriptor_, &Info::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
DenseInfo_descriptor_, &DenseInfo::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
ChangeSet_descriptor_, &ChangeSet::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Node_descriptor_, &Node::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
DenseNodes_descriptor_, &DenseNodes::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Way_descriptor_, &Way::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Relation_descriptor_, &Relation::default_instance());
}
} // namespace
void protobuf_ShutdownFile_osmformat_2eproto() {
delete HeaderBlock::default_instance_;
delete HeaderBlock_reflection_;
delete HeaderBBox::default_instance_;
delete HeaderBBox_reflection_;
delete PrimitiveBlock::default_instance_;
delete PrimitiveBlock_reflection_;
delete PrimitiveGroup::default_instance_;
delete PrimitiveGroup_reflection_;
delete StringTable::default_instance_;
delete StringTable_reflection_;
delete Info::default_instance_;
delete Info_reflection_;
delete DenseInfo::default_instance_;
delete DenseInfo_reflection_;
delete ChangeSet::default_instance_;
delete ChangeSet_reflection_;
delete Node::default_instance_;
delete Node_reflection_;
delete DenseNodes::default_instance_;
delete DenseNodes_reflection_;
delete Way::default_instance_;
delete Way_reflection_;
delete Relation::default_instance_;
delete Relation_reflection_;
}
void protobuf_AddDesc_osmformat_2eproto() {
static bool already_here = false;
if (already_here) return;
already_here = true;
GOOGLE_PROTOBUF_VERIFY_VERSION;
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
"\n\017osmformat.proto\022\006OSMPBF\"\215\001\n\013HeaderBloc"
"k\022 \n\004bbox\030\001 \001(\0132\022.OSMPBF.HeaderBBox\022\031\n\021r"
"equired_features\030\004 \003(\t\022\031\n\021optional_featu"
"res\030\005 \003(\t\022\026\n\016writingprogram\030\020 \001(\t\022\016\n\006sou"
"rce\030\021 \001(\t\"F\n\nHeaderBBox\022\014\n\004left\030\001 \002(\022\022\r\n"
"\005right\030\002 \002(\022\022\013\n\003top\030\003 \002(\022\022\016\n\006bottom\030\004 \002("
"\022\"\322\001\n\016PrimitiveBlock\022(\n\013stringtable\030\001 \002("
"\0132\023.OSMPBF.StringTable\022.\n\016primitivegroup"
"\030\002 \003(\0132\026.OSMPBF.PrimitiveGroup\022\030\n\013granul"
"arity\030\021 \001(\005:\003100\022\025\n\nlat_offset\030\023 \001(\003:\0010\022"
"\025\n\nlon_offset\030\024 \001(\003:\0010\022\036\n\020date_granulari"
"ty\030\022 \001(\005:\0041000\"\267\001\n\016PrimitiveGroup\022\033\n\005nod"
"es\030\001 \003(\0132\014.OSMPBF.Node\022!\n\005dense\030\002 \001(\0132\022."
"OSMPBF.DenseNodes\022\031\n\004ways\030\003 \003(\0132\013.OSMPBF"
".Way\022#\n\trelations\030\004 \003(\0132\020.OSMPBF.Relatio"
"n\022%\n\nchangesets\030\005 \003(\0132\021.OSMPBF.ChangeSet"
"\"\030\n\013StringTable\022\t\n\001s\030\001 \003(\014\"`\n\004Info\022\023\n\007ve"
"rsion\030\001 \001(\005:\002-1\022\021\n\ttimestamp\030\002 \001(\003\022\021\n\tch"
"angeset\030\003 \001(\003\022\013\n\003uid\030\004 \001(\005\022\020\n\010user_sid\030\005"
" \001(\r\"u\n\tDenseInfo\022\023\n\007version\030\001 \003(\005B\002\020\001\022\025"
"\n\ttimestamp\030\002 \003(\022B\002\020\001\022\025\n\tchangeset\030\003 \003(\022"
"B\002\020\001\022\017\n\003uid\030\004 \003(\021B\002\020\001\022\024\n\010user_sid\030\005 \003(\021B"
"\002\020\001\"\027\n\tChangeSet\022\n\n\002id\030\001 \002(\003\"l\n\004Node\022\n\n\002"
"id\030\001 \002(\022\022\020\n\004keys\030\002 \003(\rB\002\020\001\022\020\n\004vals\030\003 \003(\r"
"B\002\020\001\022\032\n\004info\030\004 \001(\0132\014.OSMPBF.Info\022\013\n\003lat\030"
"\010 \002(\022\022\013\n\003lon\030\t \002(\022\"{\n\nDenseNodes\022\016\n\002id\030\001"
" \003(\022B\002\020\001\022$\n\tdenseinfo\030\005 \001(\0132\021.OSMPBF.Den"
"seInfo\022\017\n\003lat\030\010 \003(\022B\002\020\001\022\017\n\003lon\030\t \003(\022B\002\020\001"
"\022\025\n\tkeys_vals\030\n \003(\005B\002\020\001\"c\n\003Way\022\n\n\002id\030\001 \002"
"(\003\022\020\n\004keys\030\002 \003(\rB\002\020\001\022\020\n\004vals\030\003 \003(\rB\002\020\001\022\032"
"\n\004info\030\004 \001(\0132\014.OSMPBF.Info\022\020\n\004refs\030\010 \003(\022"
"B\002\020\001\"\340\001\n\010Relation\022\n\n\002id\030\001 \002(\003\022\020\n\004keys\030\002 "
"\003(\rB\002\020\001\022\020\n\004vals\030\003 \003(\rB\002\020\001\022\032\n\004info\030\004 \001(\0132"
"\014.OSMPBF.Info\022\025\n\troles_sid\030\010 \003(\005B\002\020\001\022\022\n\006"
"memids\030\t \003(\022B\002\020\001\022.\n\005types\030\n \003(\0162\033.OSMPBF"
".Relation.MemberTypeB\002\020\001\"-\n\nMemberType\022\010"
"\n\004NODE\020\000\022\007\n\003WAY\020\001\022\014\n\010RELATION\020\002B\017\n\rcrosb"
"y.binary", 1488);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"osmformat.proto", &protobuf_RegisterTypes);
HeaderBlock::default_instance_ = new HeaderBlock();
HeaderBBox::default_instance_ = new HeaderBBox();
PrimitiveBlock::default_instance_ = new PrimitiveBlock();
PrimitiveGroup::default_instance_ = new PrimitiveGroup();
StringTable::default_instance_ = new StringTable();
Info::default_instance_ = new Info();
DenseInfo::default_instance_ = new DenseInfo();
ChangeSet::default_instance_ = new ChangeSet();
Node::default_instance_ = new Node();
DenseNodes::default_instance_ = new DenseNodes();
Way::default_instance_ = new Way();
Relation::default_instance_ = new Relation();
HeaderBlock::default_instance_->InitAsDefaultInstance();
HeaderBBox::default_instance_->InitAsDefaultInstance();
PrimitiveBlock::default_instance_->InitAsDefaultInstance();
PrimitiveGroup::default_instance_->InitAsDefaultInstance();
StringTable::default_instance_->InitAsDefaultInstance();
Info::default_instance_->InitAsDefaultInstance();
DenseInfo::default_instance_->InitAsDefaultInstance();
ChangeSet::default_instance_->InitAsDefaultInstance();
Node::default_instance_->InitAsDefaultInstance();
DenseNodes::default_instance_->InitAsDefaultInstance();
Way::default_instance_->InitAsDefaultInstance();
Relation::default_instance_->InitAsDefaultInstance();
::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_osmformat_2eproto);
}
// Force AddDescriptors() to be called at static initialization time.
struct StaticDescriptorInitializer_osmformat_2eproto {
StaticDescriptorInitializer_osmformat_2eproto() {
protobuf_AddDesc_osmformat_2eproto();
}
} static_descriptor_initializer_osmformat_2eproto_;
// ===================================================================
const ::std::string HeaderBlock::_default_writingprogram_;
const ::std::string HeaderBlock::_default_source_;
#ifndef _MSC_VER
const int HeaderBlock::kBboxFieldNumber;
const int HeaderBlock::kRequiredFeaturesFieldNumber;
const int HeaderBlock::kOptionalFeaturesFieldNumber;
const int HeaderBlock::kWritingprogramFieldNumber;
const int HeaderBlock::kSourceFieldNumber;
#endif // !_MSC_VER
HeaderBlock::HeaderBlock()
: ::google::protobuf::Message() {
SharedCtor();
}
void HeaderBlock::InitAsDefaultInstance() {
bbox_ = const_cast< ::OSMPBF::HeaderBBox*>(&::OSMPBF::HeaderBBox::default_instance());
}
HeaderBlock::HeaderBlock(const HeaderBlock& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void HeaderBlock::SharedCtor() {
_cached_size_ = 0;
bbox_ = NULL;
writingprogram_ = const_cast< ::std::string*>(&_default_writingprogram_);
source_ = const_cast< ::std::string*>(&_default_source_);
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
HeaderBlock::~HeaderBlock() {
SharedDtor();
}
void HeaderBlock::SharedDtor() {
if (writingprogram_ != &_default_writingprogram_) {
delete writingprogram_;
}
if (source_ != &_default_source_) {
delete source_;
}
if (this != default_instance_) {
delete bbox_;
}
}
void HeaderBlock::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* HeaderBlock::descriptor() {
protobuf_AssignDescriptorsOnce();
return HeaderBlock_descriptor_;
}
const HeaderBlock& HeaderBlock::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_osmformat_2eproto(); return *default_instance_;
}
HeaderBlock* HeaderBlock::default_instance_ = NULL;
HeaderBlock* HeaderBlock::New() const {
return new HeaderBlock;
}
void HeaderBlock::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (_has_bit(0)) {
if (bbox_ != NULL) bbox_->::OSMPBF::HeaderBBox::Clear();
}
if (_has_bit(3)) {
if (writingprogram_ != &_default_writingprogram_) {
writingprogram_->clear();
}
}
if (_has_bit(4)) {
if (source_ != &_default_source_) {
source_->clear();
}
}
}
required_features_.Clear();
optional_features_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool HeaderBlock::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 .OSMPBF.HeaderBBox bbox = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_bbox()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(34)) goto parse_required_features;
break;
}
// repeated string required_features = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_required_features:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->add_required_features()));
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->required_features(0).data(), this->required_features(0).length(),
::google::protobuf::internal::WireFormat::PARSE);
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(34)) goto parse_required_features;
if (input->ExpectTag(42)) goto parse_optional_features;
break;
}
// repeated string optional_features = 5;
case 5: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_optional_features:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->add_optional_features()));
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->optional_features(0).data(), this->optional_features(0).length(),
::google::protobuf::internal::WireFormat::PARSE);
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(42)) goto parse_optional_features;
if (input->ExpectTag(130)) goto parse_writingprogram;
break;
}
// optional string writingprogram = 16;
case 16: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_writingprogram:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_writingprogram()));
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->writingprogram().data(), this->writingprogram().length(),
::google::protobuf::internal::WireFormat::PARSE);
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(138)) goto parse_source;
break;
}
// optional string source = 17;
case 17: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_source:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_source()));
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->source().data(), this->source().length(),
::google::protobuf::internal::WireFormat::PARSE);
} 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::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void HeaderBlock::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// optional .OSMPBF.HeaderBBox bbox = 1;
if (_has_bit(0)) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->bbox(), output);
}
// repeated string required_features = 4;
for (int i = 0; i < this->required_features_size(); i++) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->required_features(i).data(), this->required_features(i).length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
::google::protobuf::internal::WireFormatLite::WriteString(
4, this->required_features(i), output);
}
// repeated string optional_features = 5;
for (int i = 0; i < this->optional_features_size(); i++) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->optional_features(i).data(), this->optional_features(i).length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
::google::protobuf::internal::WireFormatLite::WriteString(
5, this->optional_features(i), output);
}
// optional string writingprogram = 16;
if (_has_bit(3)) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->writingprogram().data(), this->writingprogram().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
::google::protobuf::internal::WireFormatLite::WriteString(
16, this->writingprogram(), output);
}
// optional string source = 17;
if (_has_bit(4)) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->source().data(), this->source().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
::google::protobuf::internal::WireFormatLite::WriteString(
17, this->source(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* HeaderBlock::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// optional .OSMPBF.HeaderBBox bbox = 1;
if (_has_bit(0)) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->bbox(), target);
}
// repeated string required_features = 4;
for (int i = 0; i < this->required_features_size(); i++) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->required_features(i).data(), this->required_features(i).length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
target = ::google::protobuf::internal::WireFormatLite::
WriteStringToArray(4, this->required_features(i), target);
}
// repeated string optional_features = 5;
for (int i = 0; i < this->optional_features_size(); i++) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->optional_features(i).data(), this->optional_features(i).length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
target = ::google::protobuf::internal::WireFormatLite::
WriteStringToArray(5, this->optional_features(i), target);
}
// optional string writingprogram = 16;
if (_has_bit(3)) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->writingprogram().data(), this->writingprogram().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
16, this->writingprogram(), target);
}
// optional string source = 17;
if (_has_bit(4)) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->source().data(), this->source().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
17, this->source(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int HeaderBlock::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// optional .OSMPBF.HeaderBBox bbox = 1;
if (has_bbox()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->bbox());
}
// optional string writingprogram = 16;
if (has_writingprogram()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->writingprogram());
}
// optional string source = 17;
if (has_source()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->source());
}
}
// repeated string required_features = 4;
total_size += 1 * this->required_features_size();
for (int i = 0; i < this->required_features_size(); i++) {
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
this->required_features(i));
}
// repeated string optional_features = 5;
total_size += 1 * this->optional_features_size();
for (int i = 0; i < this->optional_features_size(); i++) {
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
this->optional_features(i));
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void HeaderBlock::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const HeaderBlock* source =
::google::protobuf::internal::dynamic_cast_if_available<const HeaderBlock*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void HeaderBlock::MergeFrom(const HeaderBlock& from) {
GOOGLE_CHECK_NE(&from, this);
required_features_.MergeFrom(from.required_features_);
optional_features_.MergeFrom(from.optional_features_);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from._has_bit(0)) {
mutable_bbox()->::OSMPBF::HeaderBBox::MergeFrom(from.bbox());
}
if (from._has_bit(3)) {
set_writingprogram(from.writingprogram());
}
if (from._has_bit(4)) {
set_source(from.source());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void HeaderBlock::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void HeaderBlock::CopyFrom(const HeaderBlock& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool HeaderBlock::IsInitialized() const {
if (has_bbox()) {
if (!this->bbox().IsInitialized()) return false;
}
return true;
}
void HeaderBlock::Swap(HeaderBlock* other) {
if (other != this) {
std::swap(bbox_, other->bbox_);
required_features_.Swap(&other->required_features_);
optional_features_.Swap(&other->optional_features_);
std::swap(writingprogram_, other->writingprogram_);
std::swap(source_, other->source_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata HeaderBlock::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = HeaderBlock_descriptor_;
metadata.reflection = HeaderBlock_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int HeaderBBox::kLeftFieldNumber;
const int HeaderBBox::kRightFieldNumber;
const int HeaderBBox::kTopFieldNumber;
const int HeaderBBox::kBottomFieldNumber;
#endif // !_MSC_VER
HeaderBBox::HeaderBBox()
: ::google::protobuf::Message() {
SharedCtor();
}
void HeaderBBox::InitAsDefaultInstance() {
}
HeaderBBox::HeaderBBox(const HeaderBBox& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void HeaderBBox::SharedCtor() {
_cached_size_ = 0;
left_ = GOOGLE_LONGLONG(0);
right_ = GOOGLE_LONGLONG(0);
top_ = GOOGLE_LONGLONG(0);
bottom_ = GOOGLE_LONGLONG(0);
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
HeaderBBox::~HeaderBBox() {
SharedDtor();
}
void HeaderBBox::SharedDtor() {
if (this != default_instance_) {
}
}
void HeaderBBox::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* HeaderBBox::descriptor() {
protobuf_AssignDescriptorsOnce();
return HeaderBBox_descriptor_;
}
const HeaderBBox& HeaderBBox::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_osmformat_2eproto(); return *default_instance_;
}
HeaderBBox* HeaderBBox::default_instance_ = NULL;
HeaderBBox* HeaderBBox::New() const {
return new HeaderBBox;
}
void HeaderBBox::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
left_ = GOOGLE_LONGLONG(0);
right_ = GOOGLE_LONGLONG(0);
top_ = GOOGLE_LONGLONG(0);
bottom_ = GOOGLE_LONGLONG(0);
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool HeaderBBox::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 sint64 left = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
input, &left_)));
_set_bit(0);
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(16)) goto parse_right;
break;
}
// required sint64 right = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_right:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
input, &right_)));
_set_bit(1);
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(24)) goto parse_top;
break;
}
// required sint64 top = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_top:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
input, &top_)));
_set_bit(2);
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(32)) goto parse_bottom;
break;
}
// required sint64 bottom = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_bottom:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
input, &bottom_)));
_set_bit(3);
} 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::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void HeaderBBox::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required sint64 left = 1;
if (_has_bit(0)) {
::google::protobuf::internal::WireFormatLite::WriteSInt64(1, this->left(), output);
}
// required sint64 right = 2;
if (_has_bit(1)) {
::google::protobuf::internal::WireFormatLite::WriteSInt64(2, this->right(), output);
}
// required sint64 top = 3;
if (_has_bit(2)) {
::google::protobuf::internal::WireFormatLite::WriteSInt64(3, this->top(), output);
}
// required sint64 bottom = 4;
if (_has_bit(3)) {
::google::protobuf::internal::WireFormatLite::WriteSInt64(4, this->bottom(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* HeaderBBox::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required sint64 left = 1;
if (_has_bit(0)) {
target = ::google::protobuf::internal::WireFormatLite::WriteSInt64ToArray(1, this->left(), target);
}
// required sint64 right = 2;
if (_has_bit(1)) {
target = ::google::protobuf::internal::WireFormatLite::WriteSInt64ToArray(2, this->right(), target);
}
// required sint64 top = 3;
if (_has_bit(2)) {
target = ::google::protobuf::internal::WireFormatLite::WriteSInt64ToArray(3, this->top(), target);
}
// required sint64 bottom = 4;
if (_has_bit(3)) {
target = ::google::protobuf::internal::WireFormatLite::WriteSInt64ToArray(4, this->bottom(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int HeaderBBox::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required sint64 left = 1;
if (has_left()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::SInt64Size(
this->left());
}
// required sint64 right = 2;
if (has_right()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::SInt64Size(
this->right());
}
// required sint64 top = 3;
if (has_top()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::SInt64Size(
this->top());
}
// required sint64 bottom = 4;
if (has_bottom()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::SInt64Size(
this->bottom());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void HeaderBBox::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const HeaderBBox* source =
::google::protobuf::internal::dynamic_cast_if_available<const HeaderBBox*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void HeaderBBox::MergeFrom(const HeaderBBox& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from._has_bit(0)) {
set_left(from.left());
}
if (from._has_bit(1)) {
set_right(from.right());
}
if (from._has_bit(2)) {
set_top(from.top());
}
if (from._has_bit(3)) {
set_bottom(from.bottom());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void HeaderBBox::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void HeaderBBox::CopyFrom(const HeaderBBox& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool HeaderBBox::IsInitialized() const {
if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
return true;
}
void HeaderBBox::Swap(HeaderBBox* other) {
if (other != this) {
std::swap(left_, other->left_);
std::swap(right_, other->right_);
std::swap(top_, other->top_);
std::swap(bottom_, other->bottom_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata HeaderBBox::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = HeaderBBox_descriptor_;
metadata.reflection = HeaderBBox_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int PrimitiveBlock::kStringtableFieldNumber;
const int PrimitiveBlock::kPrimitivegroupFieldNumber;
const int PrimitiveBlock::kGranularityFieldNumber;
const int PrimitiveBlock::kLatOffsetFieldNumber;
const int PrimitiveBlock::kLonOffsetFieldNumber;
const int PrimitiveBlock::kDateGranularityFieldNumber;
#endif // !_MSC_VER
PrimitiveBlock::PrimitiveBlock()
: ::google::protobuf::Message() {
SharedCtor();
}
void PrimitiveBlock::InitAsDefaultInstance() {
stringtable_ = const_cast< ::OSMPBF::StringTable*>(&::OSMPBF::StringTable::default_instance());
}
PrimitiveBlock::PrimitiveBlock(const PrimitiveBlock& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void PrimitiveBlock::SharedCtor() {
_cached_size_ = 0;
stringtable_ = NULL;
granularity_ = 100;
lat_offset_ = GOOGLE_LONGLONG(0);
lon_offset_ = GOOGLE_LONGLONG(0);
date_granularity_ = 1000;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
PrimitiveBlock::~PrimitiveBlock() {
SharedDtor();
}
void PrimitiveBlock::SharedDtor() {
if (this != default_instance_) {
delete stringtable_;
}
}
void PrimitiveBlock::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* PrimitiveBlock::descriptor() {
protobuf_AssignDescriptorsOnce();
return PrimitiveBlock_descriptor_;
}
const PrimitiveBlock& PrimitiveBlock::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_osmformat_2eproto(); return *default_instance_;
}
PrimitiveBlock* PrimitiveBlock::default_instance_ = NULL;
PrimitiveBlock* PrimitiveBlock::New() const {
return new PrimitiveBlock;
}
void PrimitiveBlock::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (_has_bit(0)) {
if (stringtable_ != NULL) stringtable_->::OSMPBF::StringTable::Clear();
}
granularity_ = 100;
lat_offset_ = GOOGLE_LONGLONG(0);
lon_offset_ = GOOGLE_LONGLONG(0);
date_granularity_ = 1000;
}
primitivegroup_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool PrimitiveBlock::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 .OSMPBF.StringTable stringtable = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_stringtable()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_primitivegroup;
break;
}
// repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_primitivegroup:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_primitivegroup()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_primitivegroup;
if (input->ExpectTag(136)) goto parse_granularity;
break;
}
// optional int32 granularity = 17 [default = 100];
case 17: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_granularity:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &granularity_)));
_set_bit(2);
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(144)) goto parse_date_granularity;
break;
}
// optional int32 date_granularity = 18 [default = 1000];
case 18: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_date_granularity:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &date_granularity_)));
_set_bit(5);
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(152)) goto parse_lat_offset;
break;
}
// optional int64 lat_offset = 19 [default = 0];
case 19: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_lat_offset:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &lat_offset_)));
_set_bit(3);
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(160)) goto parse_lon_offset;
break;
}
// optional int64 lon_offset = 20 [default = 0];
case 20: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_lon_offset:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &lon_offset_)));
_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::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void PrimitiveBlock::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .OSMPBF.StringTable stringtable = 1;
if (_has_bit(0)) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->stringtable(), output);
}
// repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;
for (int i = 0; i < this->primitivegroup_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->primitivegroup(i), output);
}
// optional int32 granularity = 17 [default = 100];
if (_has_bit(2)) {
::google::protobuf::internal::WireFormatLite::WriteInt32(17, this->granularity(), output);
}
// optional int32 date_granularity = 18 [default = 1000];
if (_has_bit(5)) {
::google::protobuf::internal::WireFormatLite::WriteInt32(18, this->date_granularity(), output);
}
// optional int64 lat_offset = 19 [default = 0];
if (_has_bit(3)) {
::google::protobuf::internal::WireFormatLite::WriteInt64(19, this->lat_offset(), output);
}
// optional int64 lon_offset = 20 [default = 0];
if (_has_bit(4)) {
::google::protobuf::internal::WireFormatLite::WriteInt64(20, this->lon_offset(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* PrimitiveBlock::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .OSMPBF.StringTable stringtable = 1;
if (_has_bit(0)) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->stringtable(), target);
}
// repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;
for (int i = 0; i < this->primitivegroup_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->primitivegroup(i), target);
}
// optional int32 granularity = 17 [default = 100];
if (_has_bit(2)) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(17, this->granularity(), target);
}
// optional int32 date_granularity = 18 [default = 1000];
if (_has_bit(5)) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(18, this->date_granularity(), target);
}
// optional int64 lat_offset = 19 [default = 0];
if (_has_bit(3)) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(19, this->lat_offset(), target);
}
// optional int64 lon_offset = 20 [default = 0];
if (_has_bit(4)) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(20, this->lon_offset(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int PrimitiveBlock::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .OSMPBF.StringTable stringtable = 1;
if (has_stringtable()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->stringtable());
}
// optional int32 granularity = 17 [default = 100];
if (has_granularity()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->granularity());
}
// optional int64 lat_offset = 19 [default = 0];
if (has_lat_offset()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::Int64Size(
this->lat_offset());
}
// optional int64 lon_offset = 20 [default = 0];
if (has_lon_offset()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::Int64Size(
this->lon_offset());
}
// optional int32 date_granularity = 18 [default = 1000];
if (has_date_granularity()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->date_granularity());
}
}
// repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;
total_size += 1 * this->primitivegroup_size();
for (int i = 0; i < this->primitivegroup_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->primitivegroup(i));
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void PrimitiveBlock::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const PrimitiveBlock* source =
::google::protobuf::internal::dynamic_cast_if_available<const PrimitiveBlock*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void PrimitiveBlock::MergeFrom(const PrimitiveBlock& from) {
GOOGLE_CHECK_NE(&from, this);
primitivegroup_.MergeFrom(from.primitivegroup_);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from._has_bit(0)) {
mutable_stringtable()->::OSMPBF::StringTable::MergeFrom(from.stringtable());
}
if (from._has_bit(2)) {
set_granularity(from.granularity());
}
if (from._has_bit(3)) {
set_lat_offset(from.lat_offset());
}
if (from._has_bit(4)) {
set_lon_offset(from.lon_offset());
}
if (from._has_bit(5)) {
set_date_granularity(from.date_granularity());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void PrimitiveBlock::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void PrimitiveBlock::CopyFrom(const PrimitiveBlock& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool PrimitiveBlock::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
for (int i = 0; i < primitivegroup_size(); i++) {
if (!this->primitivegroup(i).IsInitialized()) return false;
}
return true;
}
void PrimitiveBlock::Swap(PrimitiveBlock* other) {
if (other != this) {
std::swap(stringtable_, other->stringtable_);
primitivegroup_.Swap(&other->primitivegroup_);
std::swap(granularity_, other->granularity_);
std::swap(lat_offset_, other->lat_offset_);
std::swap(lon_offset_, other->lon_offset_);
std::swap(date_granularity_, other->date_granularity_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata PrimitiveBlock::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = PrimitiveBlock_descriptor_;
metadata.reflection = PrimitiveBlock_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int PrimitiveGroup::kNodesFieldNumber;
const int PrimitiveGroup::kDenseFieldNumber;
const int PrimitiveGroup::kWaysFieldNumber;
const int PrimitiveGroup::kRelationsFieldNumber;
const int PrimitiveGroup::kChangesetsFieldNumber;
#endif // !_MSC_VER
PrimitiveGroup::PrimitiveGroup()
: ::google::protobuf::Message() {
SharedCtor();
}
void PrimitiveGroup::InitAsDefaultInstance() {
dense_ = const_cast< ::OSMPBF::DenseNodes*>(&::OSMPBF::DenseNodes::default_instance());
}
PrimitiveGroup::PrimitiveGroup(const PrimitiveGroup& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void PrimitiveGroup::SharedCtor() {
_cached_size_ = 0;
dense_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
PrimitiveGroup::~PrimitiveGroup() {
SharedDtor();
}
void PrimitiveGroup::SharedDtor() {
if (this != default_instance_) {
delete dense_;
}
}
void PrimitiveGroup::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* PrimitiveGroup::descriptor() {
protobuf_AssignDescriptorsOnce();
return PrimitiveGroup_descriptor_;
}
const PrimitiveGroup& PrimitiveGroup::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_osmformat_2eproto(); return *default_instance_;
}
PrimitiveGroup* PrimitiveGroup::default_instance_ = NULL;
PrimitiveGroup* PrimitiveGroup::New() const {
return new PrimitiveGroup;
}
void PrimitiveGroup::Clear() {
if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) {
if (_has_bit(1)) {
if (dense_ != NULL) dense_->::OSMPBF::DenseNodes::Clear();
}
}
nodes_.Clear();
ways_.Clear();
relations_.Clear();
changesets_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool PrimitiveGroup::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)) {
// repeated .OSMPBF.Node nodes = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_nodes:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_nodes()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(10)) goto parse_nodes;
if (input->ExpectTag(18)) goto parse_dense;
break;
}
// optional .OSMPBF.DenseNodes dense = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_dense:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_dense()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_ways;
break;
}
// repeated .OSMPBF.Way ways = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_ways:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_ways()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_ways;
if (input->ExpectTag(34)) goto parse_relations;
break;
}
// repeated .OSMPBF.Relation relations = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_relations:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_relations()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(34)) goto parse_relations;
if (input->ExpectTag(42)) goto parse_changesets;
break;
}
// repeated .OSMPBF.ChangeSet changesets = 5;
case 5: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_changesets:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_changesets()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(42)) goto parse_changesets;
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::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void PrimitiveGroup::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// repeated .OSMPBF.Node nodes = 1;
for (int i = 0; i < this->nodes_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->nodes(i), output);
}
// optional .OSMPBF.DenseNodes dense = 2;
if (_has_bit(1)) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->dense(), output);
}
// repeated .OSMPBF.Way ways = 3;
for (int i = 0; i < this->ways_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, this->ways(i), output);
}
// repeated .OSMPBF.Relation relations = 4;
for (int i = 0; i < this->relations_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4, this->relations(i), output);
}
// repeated .OSMPBF.ChangeSet changesets = 5;
for (int i = 0; i < this->changesets_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5, this->changesets(i), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* PrimitiveGroup::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// repeated .OSMPBF.Node nodes = 1;
for (int i = 0; i < this->nodes_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->nodes(i), target);
}
// optional .OSMPBF.DenseNodes dense = 2;
if (_has_bit(1)) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->dense(), target);
}
// repeated .OSMPBF.Way ways = 3;
for (int i = 0; i < this->ways_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
3, this->ways(i), target);
}
// repeated .OSMPBF.Relation relations = 4;
for (int i = 0; i < this->relations_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
4, this->relations(i), target);
}
// repeated .OSMPBF.ChangeSet changesets = 5;
for (int i = 0; i < this->changesets_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
5, this->changesets(i), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int PrimitiveGroup::ByteSize() const {
int total_size = 0;
if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) {
// optional .OSMPBF.DenseNodes dense = 2;
if (has_dense()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->dense());
}
}
// repeated .OSMPBF.Node nodes = 1;
total_size += 1 * this->nodes_size();
for (int i = 0; i < this->nodes_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->nodes(i));
}
// repeated .OSMPBF.Way ways = 3;
total_size += 1 * this->ways_size();
for (int i = 0; i < this->ways_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->ways(i));
}
// repeated .OSMPBF.Relation relations = 4;
total_size += 1 * this->relations_size();
for (int i = 0; i < this->relations_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->relations(i));
}
// repeated .OSMPBF.ChangeSet changesets = 5;
total_size += 1 * this->changesets_size();
for (int i = 0; i < this->changesets_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->changesets(i));
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void PrimitiveGroup::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const PrimitiveGroup* source =
::google::protobuf::internal::dynamic_cast_if_available<const PrimitiveGroup*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void PrimitiveGroup::MergeFrom(const PrimitiveGroup& from) {
GOOGLE_CHECK_NE(&from, this);
nodes_.MergeFrom(from.nodes_);
ways_.MergeFrom(from.ways_);
relations_.MergeFrom(from.relations_);
changesets_.MergeFrom(from.changesets_);
if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) {
if (from._has_bit(1)) {
mutable_dense()->::OSMPBF::DenseNodes::MergeFrom(from.dense());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void PrimitiveGroup::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void PrimitiveGroup::CopyFrom(const PrimitiveGroup& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool PrimitiveGroup::IsInitialized() const {
for (int i = 0; i < nodes_size(); i++) {
if (!this->nodes(i).IsInitialized()) return false;
}
for (int i = 0; i < ways_size(); i++) {
if (!this->ways(i).IsInitialized()) return false;
}
for (int i = 0; i < relations_size(); i++) {
if (!this->relations(i).IsInitialized()) return false;
}
for (int i = 0; i < changesets_size(); i++) {
if (!this->changesets(i).IsInitialized()) return false;
}
return true;
}
void PrimitiveGroup::Swap(PrimitiveGroup* other) {
if (other != this) {
nodes_.Swap(&other->nodes_);
std::swap(dense_, other->dense_);
ways_.Swap(&other->ways_);
relations_.Swap(&other->relations_);
changesets_.Swap(&other->changesets_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata PrimitiveGroup::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = PrimitiveGroup_descriptor_;
metadata.reflection = PrimitiveGroup_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int StringTable::kSFieldNumber;
#endif // !_MSC_VER
StringTable::StringTable()
: ::google::protobuf::Message() {
SharedCtor();
}
void StringTable::InitAsDefaultInstance() {
}
StringTable::StringTable(const StringTable& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void StringTable::SharedCtor() {
_cached_size_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
StringTable::~StringTable() {
SharedDtor();
}
void StringTable::SharedDtor() {
if (this != default_instance_) {
}
}
void StringTable::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* StringTable::descriptor() {
protobuf_AssignDescriptorsOnce();
return StringTable_descriptor_;
}
const StringTable& StringTable::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_osmformat_2eproto(); return *default_instance_;
}
StringTable* StringTable::default_instance_ = NULL;
StringTable* StringTable::New() const {
return new StringTable;
}
void StringTable::Clear() {
s_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool StringTable::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)) {
// repeated bytes s = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_s:
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
input, this->add_s()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(10)) goto parse_s;
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::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void StringTable::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// repeated bytes s = 1;
for (int i = 0; i < this->s_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteBytes(
1, this->s(i), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* StringTable::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// repeated bytes s = 1;
for (int i = 0; i < this->s_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteBytesToArray(1, this->s(i), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int StringTable::ByteSize() const {
int total_size = 0;
// repeated bytes s = 1;
total_size += 1 * this->s_size();
for (int i = 0; i < this->s_size(); i++) {
total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
this->s(i));
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void StringTable::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const StringTable* source =
::google::protobuf::internal::dynamic_cast_if_available<const StringTable*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void StringTable::MergeFrom(const StringTable& from) {
GOOGLE_CHECK_NE(&from, this);
s_.MergeFrom(from.s_);
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void StringTable::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void StringTable::CopyFrom(const StringTable& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool StringTable::IsInitialized() const {
return true;
}
void StringTable::Swap(StringTable* other) {
if (other != this) {
s_.Swap(&other->s_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata StringTable::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = StringTable_descriptor_;
metadata.reflection = StringTable_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int Info::kVersionFieldNumber;
const int Info::kTimestampFieldNumber;
const int Info::kChangesetFieldNumber;
const int Info::kUidFieldNumber;
const int Info::kUserSidFieldNumber;
#endif // !_MSC_VER
Info::Info()
: ::google::protobuf::Message() {
SharedCtor();
}
void Info::InitAsDefaultInstance() {
}
Info::Info(const Info& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void Info::SharedCtor() {
_cached_size_ = 0;
version_ = -1;
timestamp_ = GOOGLE_LONGLONG(0);
changeset_ = GOOGLE_LONGLONG(0);
uid_ = 0;
user_sid_ = 0u;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Info::~Info() {
SharedDtor();
}
void Info::SharedDtor() {
if (this != default_instance_) {
}
}
void Info::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Info::descriptor() {
protobuf_AssignDescriptorsOnce();
return Info_descriptor_;
}
const Info& Info::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_osmformat_2eproto(); return *default_instance_;
}
Info* Info::default_instance_ = NULL;
Info* Info::New() const {
return new Info;
}
void Info::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
version_ = -1;
timestamp_ = GOOGLE_LONGLONG(0);
changeset_ = GOOGLE_LONGLONG(0);
uid_ = 0;
user_sid_ = 0u;
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool Info::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 int32 version = 1 [default = -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, &version_)));
_set_bit(0);
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(16)) goto parse_timestamp;
break;
}
// optional int64 timestamp = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_timestamp:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &timestamp_)));
_set_bit(1);
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(24)) goto parse_changeset;
break;
}
// optional int64 changeset = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_changeset:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &changeset_)));
_set_bit(2);
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(32)) goto parse_uid;
break;
}
// optional int32 uid = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_uid:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &uid_)));
_set_bit(3);
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(40)) goto parse_user_sid;
break;
}
// optional uint32 user_sid = 5;
case 5: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_user_sid:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &user_sid_)));
_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::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void Info::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// optional int32 version = 1 [default = -1];
if (_has_bit(0)) {
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->version(), output);
}
// optional int64 timestamp = 2;
if (_has_bit(1)) {
::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->timestamp(), output);
}
// optional int64 changeset = 3;
if (_has_bit(2)) {
::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->changeset(), output);
}
// optional int32 uid = 4;
if (_has_bit(3)) {
::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->uid(), output);
}
// optional uint32 user_sid = 5;
if (_has_bit(4)) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->user_sid(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* Info::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// optional int32 version = 1 [default = -1];
if (_has_bit(0)) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->version(), target);
}
// optional int64 timestamp = 2;
if (_has_bit(1)) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->timestamp(), target);
}
// optional int64 changeset = 3;
if (_has_bit(2)) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->changeset(), target);
}
// optional int32 uid = 4;
if (_has_bit(3)) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->uid(), target);
}
// optional uint32 user_sid = 5;
if (_has_bit(4)) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->user_sid(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int Info::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// optional int32 version = 1 [default = -1];
if (has_version()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->version());
}
// optional int64 timestamp = 2;
if (has_timestamp()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int64Size(
this->timestamp());
}
// optional int64 changeset = 3;
if (has_changeset()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int64Size(
this->changeset());
}
// optional int32 uid = 4;
if (has_uid()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->uid());
}
// optional uint32 user_sid = 5;
if (has_user_sid()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->user_sid());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Info::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const Info* source =
::google::protobuf::internal::dynamic_cast_if_available<const Info*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void Info::MergeFrom(const Info& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from._has_bit(0)) {
set_version(from.version());
}
if (from._has_bit(1)) {
set_timestamp(from.timestamp());
}
if (from._has_bit(2)) {
set_changeset(from.changeset());
}
if (from._has_bit(3)) {
set_uid(from.uid());
}
if (from._has_bit(4)) {
set_user_sid(from.user_sid());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Info::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Info::CopyFrom(const Info& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Info::IsInitialized() const {
return true;
}
void Info::Swap(Info* other) {
if (other != this) {
std::swap(version_, other->version_);
std::swap(timestamp_, other->timestamp_);
std::swap(changeset_, other->changeset_);
std::swap(uid_, other->uid_);
std::swap(user_sid_, other->user_sid_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata Info::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = Info_descriptor_;
metadata.reflection = Info_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int DenseInfo::kVersionFieldNumber;
const int DenseInfo::kTimestampFieldNumber;
const int DenseInfo::kChangesetFieldNumber;
const int DenseInfo::kUidFieldNumber;
const int DenseInfo::kUserSidFieldNumber;
#endif // !_MSC_VER
DenseInfo::DenseInfo()
: ::google::protobuf::Message() {
SharedCtor();
}
void DenseInfo::InitAsDefaultInstance() {
}
DenseInfo::DenseInfo(const DenseInfo& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void DenseInfo::SharedCtor() {
_cached_size_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
DenseInfo::~DenseInfo() {
SharedDtor();
}
void DenseInfo::SharedDtor() {
if (this != default_instance_) {
}
}
void DenseInfo::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* DenseInfo::descriptor() {
protobuf_AssignDescriptorsOnce();
return DenseInfo_descriptor_;
}
const DenseInfo& DenseInfo::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_osmformat_2eproto(); return *default_instance_;
}
DenseInfo* DenseInfo::default_instance_ = NULL;
DenseInfo* DenseInfo::New() const {
return new DenseInfo;
}
void DenseInfo::Clear() {
version_.Clear();
timestamp_.Clear();
changeset_.Clear();
uid_.Clear();
user_sid_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool DenseInfo::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)) {
// repeated int32 version = 1 [packed = true];
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, this->mutable_version())));
} else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
== ::google::protobuf::internal::WireFormatLite::
WIRETYPE_VARINT) {
DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1, 10, input, this->mutable_version())));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_timestamp;
break;
}
// repeated sint64 timestamp = 2 [packed = true];
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_timestamp:
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
input, this->mutable_timestamp())));
} 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, 18, input, this->mutable_timestamp())));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_changeset;
break;
}
// repeated sint64 changeset = 3 [packed = true];
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_changeset:
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
input, this->mutable_changeset())));
} 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_changeset())));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(34)) goto parse_uid;
break;
}
// repeated sint32 uid = 4 [packed = true];
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_uid:
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
input, this->mutable_uid())));
} else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
== ::google::protobuf::internal::WireFormatLite::
WIRETYPE_VARINT) {
DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
1, 34, input, this->mutable_uid())));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(42)) goto parse_user_sid;
break;
}
// repeated sint32 user_sid = 5 [packed = true];
case 5: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_user_sid:
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
input, this->mutable_user_sid())));
} else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
== ::google::protobuf::internal::WireFormatLite::
WIRETYPE_VARINT) {
DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
1, 42, input, this->mutable_user_sid())));
} 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::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void DenseInfo::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// repeated int32 version = 1 [packed = true];
if (this->version_size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
output->WriteVarint32(_version_cached_byte_size_);
}
for (int i = 0; i < this->version_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
this->version(i), output);
}
// repeated sint64 timestamp = 2 [packed = true];
if (this->timestamp_size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
output->WriteVarint32(_timestamp_cached_byte_size_);
}
for (int i = 0; i < this->timestamp_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteSInt64NoTag(
this->timestamp(i), output);
}
// repeated sint64 changeset = 3 [packed = true];
if (this->changeset_size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteTag(3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
output->WriteVarint32(_changeset_cached_byte_size_);
}
for (int i = 0; i < this->changeset_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteSInt64NoTag(
this->changeset(i), output);
}
// repeated sint32 uid = 4 [packed = true];
if (this->uid_size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteTag(4, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
output->WriteVarint32(_uid_cached_byte_size_);
}
for (int i = 0; i < this->uid_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteSInt32NoTag(
this->uid(i), output);
}
// repeated sint32 user_sid = 5 [packed = true];
if (this->user_sid_size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteTag(5, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
output->WriteVarint32(_user_sid_cached_byte_size_);
}
for (int i = 0; i < this->user_sid_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteSInt32NoTag(
this->user_sid(i), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* DenseInfo::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// repeated int32 version = 1 [packed = true];
if (this->version_size() > 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
1,
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
target);
target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
_version_cached_byte_size_, target);
}
for (int i = 0; i < this->version_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32NoTagToArray(this->version(i), target);
}
// repeated sint64 timestamp = 2 [packed = true];
if (this->timestamp_size() > 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
2,
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
target);
target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
_timestamp_cached_byte_size_, target);
}
for (int i = 0; i < this->timestamp_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteSInt64NoTagToArray(this->timestamp(i), target);
}
// repeated sint64 changeset = 3 [packed = true];
if (this->changeset_size() > 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
3,
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
target);
target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
_changeset_cached_byte_size_, target);
}
for (int i = 0; i < this->changeset_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteSInt64NoTagToArray(this->changeset(i), target);
}
// repeated sint32 uid = 4 [packed = true];
if (this->uid_size() > 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
4,
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
target);
target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
_uid_cached_byte_size_, target);
}
for (int i = 0; i < this->uid_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteSInt32NoTagToArray(this->uid(i), target);
}
// repeated sint32 user_sid = 5 [packed = true];
if (this->user_sid_size() > 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
5,
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
target);
target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
_user_sid_cached_byte_size_, target);
}
for (int i = 0; i < this->user_sid_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteSInt32NoTagToArray(this->user_sid(i), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int DenseInfo::ByteSize() const {
int total_size = 0;
// repeated int32 version = 1 [packed = true];
{
int data_size = 0;
for (int i = 0; i < this->version_size(); i++) {
data_size += ::google::protobuf::internal::WireFormatLite::
Int32Size(this->version(i));
}
if (data_size > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
}
_version_cached_byte_size_ = data_size;
total_size += data_size;
}
// repeated sint64 timestamp = 2 [packed = true];
{
int data_size = 0;
for (int i = 0; i < this->timestamp_size(); i++) {
data_size += ::google::protobuf::internal::WireFormatLite::
SInt64Size(this->timestamp(i));
}
if (data_size > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
}
_timestamp_cached_byte_size_ = data_size;
total_size += data_size;
}
// repeated sint64 changeset = 3 [packed = true];
{
int data_size = 0;
for (int i = 0; i < this->changeset_size(); i++) {
data_size += ::google::protobuf::internal::WireFormatLite::
SInt64Size(this->changeset(i));
}
if (data_size > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
}
_changeset_cached_byte_size_ = data_size;
total_size += data_size;
}
// repeated sint32 uid = 4 [packed = true];
{
int data_size = 0;
for (int i = 0; i < this->uid_size(); i++) {
data_size += ::google::protobuf::internal::WireFormatLite::
SInt32Size(this->uid(i));
}
if (data_size > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
}
_uid_cached_byte_size_ = data_size;
total_size += data_size;
}
// repeated sint32 user_sid = 5 [packed = true];
{
int data_size = 0;
for (int i = 0; i < this->user_sid_size(); i++) {
data_size += ::google::protobuf::internal::WireFormatLite::
SInt32Size(this->user_sid(i));
}
if (data_size > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
}
_user_sid_cached_byte_size_ = data_size;
total_size += data_size;
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void DenseInfo::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const DenseInfo* source =
::google::protobuf::internal::dynamic_cast_if_available<const DenseInfo*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void DenseInfo::MergeFrom(const DenseInfo& from) {
GOOGLE_CHECK_NE(&from, this);
version_.MergeFrom(from.version_);
timestamp_.MergeFrom(from.timestamp_);
changeset_.MergeFrom(from.changeset_);
uid_.MergeFrom(from.uid_);
user_sid_.MergeFrom(from.user_sid_);
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void DenseInfo::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void DenseInfo::CopyFrom(const DenseInfo& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool DenseInfo::IsInitialized() const {
return true;
}
void DenseInfo::Swap(DenseInfo* other) {
if (other != this) {
version_.Swap(&other->version_);
timestamp_.Swap(&other->timestamp_);
changeset_.Swap(&other->changeset_);
uid_.Swap(&other->uid_);
user_sid_.Swap(&other->user_sid_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata DenseInfo::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = DenseInfo_descriptor_;
metadata.reflection = DenseInfo_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int ChangeSet::kIdFieldNumber;
#endif // !_MSC_VER
ChangeSet::ChangeSet()
: ::google::protobuf::Message() {
SharedCtor();
}
void ChangeSet::InitAsDefaultInstance() {
}
ChangeSet::ChangeSet(const ChangeSet& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void ChangeSet::SharedCtor() {
_cached_size_ = 0;
id_ = GOOGLE_LONGLONG(0);
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
ChangeSet::~ChangeSet() {
SharedDtor();
}
void ChangeSet::SharedDtor() {
if (this != default_instance_) {
}
}
void ChangeSet::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* ChangeSet::descriptor() {
protobuf_AssignDescriptorsOnce();
return ChangeSet_descriptor_;
}
const ChangeSet& ChangeSet::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_osmformat_2eproto(); return *default_instance_;
}
ChangeSet* ChangeSet::default_instance_ = NULL;
ChangeSet* ChangeSet::New() const {
return new ChangeSet;
}
void ChangeSet::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
id_ = GOOGLE_LONGLONG(0);
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool ChangeSet::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 int64 id = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &id_)));
_set_bit(0);
} 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::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void ChangeSet::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required int64 id = 1;
if (_has_bit(0)) {
::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->id(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* ChangeSet::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required int64 id = 1;
if (_has_bit(0)) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->id(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int ChangeSet::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required int64 id = 1;
if (has_id()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int64Size(
this->id());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void ChangeSet::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const ChangeSet* source =
::google::protobuf::internal::dynamic_cast_if_available<const ChangeSet*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void ChangeSet::MergeFrom(const ChangeSet& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from._has_bit(0)) {
set_id(from.id());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void ChangeSet::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ChangeSet::CopyFrom(const ChangeSet& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ChangeSet::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
return true;
}
void ChangeSet::Swap(ChangeSet* other) {
if (other != this) {
std::swap(id_, other->id_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata ChangeSet::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = ChangeSet_descriptor_;
metadata.reflection = ChangeSet_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int Node::kIdFieldNumber;
const int Node::kKeysFieldNumber;
const int Node::kValsFieldNumber;
const int Node::kInfoFieldNumber;
const int Node::kLatFieldNumber;
const int Node::kLonFieldNumber;
#endif // !_MSC_VER
Node::Node()
: ::google::protobuf::Message() {
SharedCtor();
}
void Node::InitAsDefaultInstance() {
info_ = const_cast< ::OSMPBF::Info*>(&::OSMPBF::Info::default_instance());
}
Node::Node(const Node& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void Node::SharedCtor() {
_cached_size_ = 0;
id_ = GOOGLE_LONGLONG(0);
info_ = NULL;
lat_ = GOOGLE_LONGLONG(0);
lon_ = GOOGLE_LONGLONG(0);
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Node::~Node() {
SharedDtor();
}
void Node::SharedDtor() {
if (this != default_instance_) {
delete info_;
}
}
void Node::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Node::descriptor() {
protobuf_AssignDescriptorsOnce();
return Node_descriptor_;
}
const Node& Node::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_osmformat_2eproto(); return *default_instance_;
}
Node* Node::default_instance_ = NULL;
Node* Node::New() const {
return new Node;
}
void Node::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
id_ = GOOGLE_LONGLONG(0);
if (_has_bit(3)) {
if (info_ != NULL) info_->::OSMPBF::Info::Clear();
}
lat_ = GOOGLE_LONGLONG(0);
lon_ = GOOGLE_LONGLONG(0);
}
keys_.Clear();
vals_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool Node::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 sint64 id = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
input, &id_)));
_set_bit(0);
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_keys;
break;
}
// repeated uint32 keys = 2 [packed = true];
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_keys:
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, this->mutable_keys())));
} else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
== ::google::protobuf::internal::WireFormatLite::
WIRETYPE_VARINT) {
DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1, 18, input, this->mutable_keys())));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_vals;
break;
}
// repeated uint32 vals = 3 [packed = true];
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_vals:
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, this->mutable_vals())));
} else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
== ::google::protobuf::internal::WireFormatLite::
WIRETYPE_VARINT) {
DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1, 26, input, this->mutable_vals())));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(34)) goto parse_info;
break;
}
// optional .OSMPBF.Info info = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_info:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_info()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(64)) goto parse_lat;
break;
}
// required sint64 lat = 8;
case 8: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_lat:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
input, &lat_)));
_set_bit(4);
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(72)) goto parse_lon;
break;
}
// required sint64 lon = 9;
case 9: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_lon:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
input, &lon_)));
_set_bit(5);
} 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::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void Node::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required sint64 id = 1;
if (_has_bit(0)) {
::google::protobuf::internal::WireFormatLite::WriteSInt64(1, this->id(), output);
}
// repeated uint32 keys = 2 [packed = true];
if (this->keys_size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
output->WriteVarint32(_keys_cached_byte_size_);
}
for (int i = 0; i < this->keys_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
this->keys(i), output);
}
// repeated uint32 vals = 3 [packed = true];
if (this->vals_size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteTag(3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
output->WriteVarint32(_vals_cached_byte_size_);
}
for (int i = 0; i < this->vals_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
this->vals(i), output);
}
// optional .OSMPBF.Info info = 4;
if (_has_bit(3)) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4, this->info(), output);
}
// required sint64 lat = 8;
if (_has_bit(4)) {
::google::protobuf::internal::WireFormatLite::WriteSInt64(8, this->lat(), output);
}
// required sint64 lon = 9;
if (_has_bit(5)) {
::google::protobuf::internal::WireFormatLite::WriteSInt64(9, this->lon(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* Node::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required sint64 id = 1;
if (_has_bit(0)) {
target = ::google::protobuf::internal::WireFormatLite::WriteSInt64ToArray(1, this->id(), target);
}
// repeated uint32 keys = 2 [packed = true];
if (this->keys_size() > 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
2,
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
target);
target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
_keys_cached_byte_size_, target);
}
for (int i = 0; i < this->keys_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteUInt32NoTagToArray(this->keys(i), target);
}
// repeated uint32 vals = 3 [packed = true];
if (this->vals_size() > 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
3,
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
target);
target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
_vals_cached_byte_size_, target);
}
for (int i = 0; i < this->vals_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteUInt32NoTagToArray(this->vals(i), target);
}
// optional .OSMPBF.Info info = 4;
if (_has_bit(3)) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
4, this->info(), target);
}
// required sint64 lat = 8;
if (_has_bit(4)) {
target = ::google::protobuf::internal::WireFormatLite::WriteSInt64ToArray(8, this->lat(), target);
}
// required sint64 lon = 9;
if (_has_bit(5)) {
target = ::google::protobuf::internal::WireFormatLite::WriteSInt64ToArray(9, this->lon(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int Node::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required sint64 id = 1;
if (has_id()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::SInt64Size(
this->id());
}
// optional .OSMPBF.Info info = 4;
if (has_info()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->info());
}
// required sint64 lat = 8;
if (has_lat()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::SInt64Size(
this->lat());
}
// required sint64 lon = 9;
if (has_lon()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::SInt64Size(
this->lon());
}
}
// repeated uint32 keys = 2 [packed = true];
{
int data_size = 0;
for (int i = 0; i < this->keys_size(); i++) {
data_size += ::google::protobuf::internal::WireFormatLite::
UInt32Size(this->keys(i));
}
if (data_size > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
}
_keys_cached_byte_size_ = data_size;
total_size += data_size;
}
// repeated uint32 vals = 3 [packed = true];
{
int data_size = 0;
for (int i = 0; i < this->vals_size(); i++) {
data_size += ::google::protobuf::internal::WireFormatLite::
UInt32Size(this->vals(i));
}
if (data_size > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
}
_vals_cached_byte_size_ = data_size;
total_size += data_size;
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Node::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const Node* source =
::google::protobuf::internal::dynamic_cast_if_available<const Node*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void Node::MergeFrom(const Node& from) {
GOOGLE_CHECK_NE(&from, this);
keys_.MergeFrom(from.keys_);
vals_.MergeFrom(from.vals_);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from._has_bit(0)) {
set_id(from.id());
}
if (from._has_bit(3)) {
mutable_info()->::OSMPBF::Info::MergeFrom(from.info());
}
if (from._has_bit(4)) {
set_lat(from.lat());
}
if (from._has_bit(5)) {
set_lon(from.lon());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Node::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Node::CopyFrom(const Node& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Node::IsInitialized() const {
if ((_has_bits_[0] & 0x00000031) != 0x00000031) return false;
return true;
}
void Node::Swap(Node* other) {
if (other != this) {
std::swap(id_, other->id_);
keys_.Swap(&other->keys_);
vals_.Swap(&other->vals_);
std::swap(info_, other->info_);
std::swap(lat_, other->lat_);
std::swap(lon_, other->lon_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata Node::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = Node_descriptor_;
metadata.reflection = Node_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int DenseNodes::kIdFieldNumber;
const int DenseNodes::kDenseinfoFieldNumber;
const int DenseNodes::kLatFieldNumber;
const int DenseNodes::kLonFieldNumber;
const int DenseNodes::kKeysValsFieldNumber;
#endif // !_MSC_VER
DenseNodes::DenseNodes()
: ::google::protobuf::Message() {
SharedCtor();
}
void DenseNodes::InitAsDefaultInstance() {
denseinfo_ = const_cast< ::OSMPBF::DenseInfo*>(&::OSMPBF::DenseInfo::default_instance());
}
DenseNodes::DenseNodes(const DenseNodes& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void DenseNodes::SharedCtor() {
_cached_size_ = 0;
denseinfo_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
DenseNodes::~DenseNodes() {
SharedDtor();
}
void DenseNodes::SharedDtor() {
if (this != default_instance_) {
delete denseinfo_;
}
}
void DenseNodes::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* DenseNodes::descriptor() {
protobuf_AssignDescriptorsOnce();
return DenseNodes_descriptor_;
}
const DenseNodes& DenseNodes::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_osmformat_2eproto(); return *default_instance_;
}
DenseNodes* DenseNodes::default_instance_ = NULL;
DenseNodes* DenseNodes::New() const {
return new DenseNodes;
}
void DenseNodes::Clear() {
if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) {
if (_has_bit(1)) {
if (denseinfo_ != NULL) denseinfo_->::OSMPBF::DenseInfo::Clear();
}
}
id_.Clear();
lat_.Clear();
lon_.Clear();
keys_vals_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool DenseNodes::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)) {
// repeated sint64 id = 1 [packed = true];
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
input, this->mutable_id())));
} 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, 10, input, this->mutable_id())));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(42)) goto parse_denseinfo;
break;
}
// optional .OSMPBF.DenseInfo denseinfo = 5;
case 5: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_denseinfo:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_denseinfo()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(66)) goto parse_lat;
break;
}
// repeated sint64 lat = 8 [packed = true];
case 8: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_lat:
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
input, this->mutable_lat())));
} 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, 66, input, this->mutable_lat())));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(74)) goto parse_lon;
break;
}
// repeated sint64 lon = 9 [packed = true];
case 9: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_lon:
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
input, this->mutable_lon())));
} 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, 74, input, this->mutable_lon())));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(82)) goto parse_keys_vals;
break;
}
// repeated int32 keys_vals = 10 [packed = true];
case 10: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_keys_vals:
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, this->mutable_keys_vals())));
} else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
== ::google::protobuf::internal::WireFormatLite::
WIRETYPE_VARINT) {
DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1, 82, input, this->mutable_keys_vals())));
} 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::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void DenseNodes::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// repeated sint64 id = 1 [packed = true];
if (this->id_size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
output->WriteVarint32(_id_cached_byte_size_);
}
for (int i = 0; i < this->id_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteSInt64NoTag(
this->id(i), output);
}
// optional .OSMPBF.DenseInfo denseinfo = 5;
if (_has_bit(1)) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5, this->denseinfo(), output);
}
// repeated sint64 lat = 8 [packed = true];
if (this->lat_size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteTag(8, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
output->WriteVarint32(_lat_cached_byte_size_);
}
for (int i = 0; i < this->lat_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteSInt64NoTag(
this->lat(i), output);
}
// repeated sint64 lon = 9 [packed = true];
if (this->lon_size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteTag(9, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
output->WriteVarint32(_lon_cached_byte_size_);
}
for (int i = 0; i < this->lon_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteSInt64NoTag(
this->lon(i), output);
}
// repeated int32 keys_vals = 10 [packed = true];
if (this->keys_vals_size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteTag(10, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
output->WriteVarint32(_keys_vals_cached_byte_size_);
}
for (int i = 0; i < this->keys_vals_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
this->keys_vals(i), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* DenseNodes::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// repeated sint64 id = 1 [packed = true];
if (this->id_size() > 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
1,
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
target);
target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
_id_cached_byte_size_, target);
}
for (int i = 0; i < this->id_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteSInt64NoTagToArray(this->id(i), target);
}
// optional .OSMPBF.DenseInfo denseinfo = 5;
if (_has_bit(1)) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
5, this->denseinfo(), target);
}
// repeated sint64 lat = 8 [packed = true];
if (this->lat_size() > 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
8,
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
target);
target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
_lat_cached_byte_size_, target);
}
for (int i = 0; i < this->lat_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteSInt64NoTagToArray(this->lat(i), target);
}
// repeated sint64 lon = 9 [packed = true];
if (this->lon_size() > 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
9,
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
target);
target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
_lon_cached_byte_size_, target);
}
for (int i = 0; i < this->lon_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteSInt64NoTagToArray(this->lon(i), target);
}
// repeated int32 keys_vals = 10 [packed = true];
if (this->keys_vals_size() > 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
10,
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
target);
target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
_keys_vals_cached_byte_size_, target);
}
for (int i = 0; i < this->keys_vals_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32NoTagToArray(this->keys_vals(i), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int DenseNodes::ByteSize() const {
int total_size = 0;
if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) {
// optional .OSMPBF.DenseInfo denseinfo = 5;
if (has_denseinfo()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->denseinfo());
}
}
// repeated sint64 id = 1 [packed = true];
{
int data_size = 0;
for (int i = 0; i < this->id_size(); i++) {
data_size += ::google::protobuf::internal::WireFormatLite::
SInt64Size(this->id(i));
}
if (data_size > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
}
_id_cached_byte_size_ = data_size;
total_size += data_size;
}
// repeated sint64 lat = 8 [packed = true];
{
int data_size = 0;
for (int i = 0; i < this->lat_size(); i++) {
data_size += ::google::protobuf::internal::WireFormatLite::
SInt64Size(this->lat(i));
}
if (data_size > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
}
_lat_cached_byte_size_ = data_size;
total_size += data_size;
}
// repeated sint64 lon = 9 [packed = true];
{
int data_size = 0;
for (int i = 0; i < this->lon_size(); i++) {
data_size += ::google::protobuf::internal::WireFormatLite::
SInt64Size(this->lon(i));
}
if (data_size > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
}
_lon_cached_byte_size_ = data_size;
total_size += data_size;
}
// repeated int32 keys_vals = 10 [packed = true];
{
int data_size = 0;
for (int i = 0; i < this->keys_vals_size(); i++) {
data_size += ::google::protobuf::internal::WireFormatLite::
Int32Size(this->keys_vals(i));
}
if (data_size > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
}
_keys_vals_cached_byte_size_ = data_size;
total_size += data_size;
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void DenseNodes::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const DenseNodes* source =
::google::protobuf::internal::dynamic_cast_if_available<const DenseNodes*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void DenseNodes::MergeFrom(const DenseNodes& from) {
GOOGLE_CHECK_NE(&from, this);
id_.MergeFrom(from.id_);
lat_.MergeFrom(from.lat_);
lon_.MergeFrom(from.lon_);
keys_vals_.MergeFrom(from.keys_vals_);
if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) {
if (from._has_bit(1)) {
mutable_denseinfo()->::OSMPBF::DenseInfo::MergeFrom(from.denseinfo());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void DenseNodes::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void DenseNodes::CopyFrom(const DenseNodes& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool DenseNodes::IsInitialized() const {
return true;
}
void DenseNodes::Swap(DenseNodes* other) {
if (other != this) {
id_.Swap(&other->id_);
std::swap(denseinfo_, other->denseinfo_);
lat_.Swap(&other->lat_);
lon_.Swap(&other->lon_);
keys_vals_.Swap(&other->keys_vals_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata DenseNodes::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = DenseNodes_descriptor_;
metadata.reflection = DenseNodes_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int Way::kIdFieldNumber;
const int Way::kKeysFieldNumber;
const int Way::kValsFieldNumber;
const int Way::kInfoFieldNumber;
const int Way::kRefsFieldNumber;
#endif // !_MSC_VER
Way::Way()
: ::google::protobuf::Message() {
SharedCtor();
}
void Way::InitAsDefaultInstance() {
info_ = const_cast< ::OSMPBF::Info*>(&::OSMPBF::Info::default_instance());
}
Way::Way(const Way& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void Way::SharedCtor() {
_cached_size_ = 0;
id_ = GOOGLE_LONGLONG(0);
info_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Way::~Way() {
SharedDtor();
}
void Way::SharedDtor() {
if (this != default_instance_) {
delete info_;
}
}
void Way::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Way::descriptor() {
protobuf_AssignDescriptorsOnce();
return Way_descriptor_;
}
const Way& Way::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_osmformat_2eproto(); return *default_instance_;
}
Way* Way::default_instance_ = NULL;
Way* Way::New() const {
return new Way;
}
void Way::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
id_ = GOOGLE_LONGLONG(0);
if (_has_bit(3)) {
if (info_ != NULL) info_->::OSMPBF::Info::Clear();
}
}
keys_.Clear();
vals_.Clear();
refs_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool Way::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 int64 id = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &id_)));
_set_bit(0);
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_keys;
break;
}
// repeated uint32 keys = 2 [packed = true];
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_keys:
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, this->mutable_keys())));
} else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
== ::google::protobuf::internal::WireFormatLite::
WIRETYPE_VARINT) {
DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1, 18, input, this->mutable_keys())));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_vals;
break;
}
// repeated uint32 vals = 3 [packed = true];
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_vals:
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, this->mutable_vals())));
} else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
== ::google::protobuf::internal::WireFormatLite::
WIRETYPE_VARINT) {
DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1, 26, input, this->mutable_vals())));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(34)) goto parse_info;
break;
}
// optional .OSMPBF.Info info = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_info:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_info()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(66)) goto parse_refs;
break;
}
// repeated sint64 refs = 8 [packed = true];
case 8: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_refs:
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
input, this->mutable_refs())));
} 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, 66, input, this->mutable_refs())));
} 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::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void Way::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required int64 id = 1;
if (_has_bit(0)) {
::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->id(), output);
}
// repeated uint32 keys = 2 [packed = true];
if (this->keys_size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
output->WriteVarint32(_keys_cached_byte_size_);
}
for (int i = 0; i < this->keys_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
this->keys(i), output);
}
// repeated uint32 vals = 3 [packed = true];
if (this->vals_size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteTag(3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
output->WriteVarint32(_vals_cached_byte_size_);
}
for (int i = 0; i < this->vals_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
this->vals(i), output);
}
// optional .OSMPBF.Info info = 4;
if (_has_bit(3)) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4, this->info(), output);
}
// repeated sint64 refs = 8 [packed = true];
if (this->refs_size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteTag(8, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
output->WriteVarint32(_refs_cached_byte_size_);
}
for (int i = 0; i < this->refs_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteSInt64NoTag(
this->refs(i), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* Way::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required int64 id = 1;
if (_has_bit(0)) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->id(), target);
}
// repeated uint32 keys = 2 [packed = true];
if (this->keys_size() > 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
2,
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
target);
target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
_keys_cached_byte_size_, target);
}
for (int i = 0; i < this->keys_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteUInt32NoTagToArray(this->keys(i), target);
}
// repeated uint32 vals = 3 [packed = true];
if (this->vals_size() > 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
3,
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
target);
target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
_vals_cached_byte_size_, target);
}
for (int i = 0; i < this->vals_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteUInt32NoTagToArray(this->vals(i), target);
}
// optional .OSMPBF.Info info = 4;
if (_has_bit(3)) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
4, this->info(), target);
}
// repeated sint64 refs = 8 [packed = true];
if (this->refs_size() > 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
8,
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
target);
target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
_refs_cached_byte_size_, target);
}
for (int i = 0; i < this->refs_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteSInt64NoTagToArray(this->refs(i), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int Way::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required int64 id = 1;
if (has_id()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int64Size(
this->id());
}
// optional .OSMPBF.Info info = 4;
if (has_info()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->info());
}
}
// repeated uint32 keys = 2 [packed = true];
{
int data_size = 0;
for (int i = 0; i < this->keys_size(); i++) {
data_size += ::google::protobuf::internal::WireFormatLite::
UInt32Size(this->keys(i));
}
if (data_size > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
}
_keys_cached_byte_size_ = data_size;
total_size += data_size;
}
// repeated uint32 vals = 3 [packed = true];
{
int data_size = 0;
for (int i = 0; i < this->vals_size(); i++) {
data_size += ::google::protobuf::internal::WireFormatLite::
UInt32Size(this->vals(i));
}
if (data_size > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
}
_vals_cached_byte_size_ = data_size;
total_size += data_size;
}
// repeated sint64 refs = 8 [packed = true];
{
int data_size = 0;
for (int i = 0; i < this->refs_size(); i++) {
data_size += ::google::protobuf::internal::WireFormatLite::
SInt64Size(this->refs(i));
}
if (data_size > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
}
_refs_cached_byte_size_ = data_size;
total_size += data_size;
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Way::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const Way* source =
::google::protobuf::internal::dynamic_cast_if_available<const Way*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void Way::MergeFrom(const Way& from) {
GOOGLE_CHECK_NE(&from, this);
keys_.MergeFrom(from.keys_);
vals_.MergeFrom(from.vals_);
refs_.MergeFrom(from.refs_);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from._has_bit(0)) {
set_id(from.id());
}
if (from._has_bit(3)) {
mutable_info()->::OSMPBF::Info::MergeFrom(from.info());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Way::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Way::CopyFrom(const Way& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Way::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
return true;
}
void Way::Swap(Way* other) {
if (other != this) {
std::swap(id_, other->id_);
keys_.Swap(&other->keys_);
vals_.Swap(&other->vals_);
std::swap(info_, other->info_);
refs_.Swap(&other->refs_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata Way::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = Way_descriptor_;
metadata.reflection = Way_reflection_;
return metadata;
}
// ===================================================================
const ::google::protobuf::EnumDescriptor* Relation_MemberType_descriptor() {
protobuf_AssignDescriptorsOnce();
return Relation_MemberType_descriptor_;
}
bool Relation_MemberType_IsValid(int value) {
switch(value) {
case 0:
case 1:
case 2:
return true;
default:
return false;
}
}
#ifndef _MSC_VER
const Relation_MemberType Relation::NODE;
const Relation_MemberType Relation::WAY;
const Relation_MemberType Relation::RELATION;
const Relation_MemberType Relation::MemberType_MIN;
const Relation_MemberType Relation::MemberType_MAX;
const int Relation::MemberType_ARRAYSIZE;
#endif // _MSC_VER
#ifndef _MSC_VER
const int Relation::kIdFieldNumber;
const int Relation::kKeysFieldNumber;
const int Relation::kValsFieldNumber;
const int Relation::kInfoFieldNumber;
const int Relation::kRolesSidFieldNumber;
const int Relation::kMemidsFieldNumber;
const int Relation::kTypesFieldNumber;
#endif // !_MSC_VER
Relation::Relation()
: ::google::protobuf::Message() {
SharedCtor();
}
void Relation::InitAsDefaultInstance() {
info_ = const_cast< ::OSMPBF::Info*>(&::OSMPBF::Info::default_instance());
}
Relation::Relation(const Relation& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void Relation::SharedCtor() {
_cached_size_ = 0;
id_ = GOOGLE_LONGLONG(0);
info_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Relation::~Relation() {
SharedDtor();
}
void Relation::SharedDtor() {
if (this != default_instance_) {
delete info_;
}
}
void Relation::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Relation::descriptor() {
protobuf_AssignDescriptorsOnce();
return Relation_descriptor_;
}
const Relation& Relation::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_osmformat_2eproto(); return *default_instance_;
}
Relation* Relation::default_instance_ = NULL;
Relation* Relation::New() const {
return new Relation;
}
void Relation::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
id_ = GOOGLE_LONGLONG(0);
if (_has_bit(3)) {
if (info_ != NULL) info_->::OSMPBF::Info::Clear();
}
}
keys_.Clear();
vals_.Clear();
roles_sid_.Clear();
memids_.Clear();
types_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool Relation::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 int64 id = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &id_)));
_set_bit(0);
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_keys;
break;
}
// repeated uint32 keys = 2 [packed = true];
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_keys:
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, this->mutable_keys())));
} else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
== ::google::protobuf::internal::WireFormatLite::
WIRETYPE_VARINT) {
DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1, 18, input, this->mutable_keys())));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_vals;
break;
}
// repeated uint32 vals = 3 [packed = true];
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_vals:
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, this->mutable_vals())));
} else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
== ::google::protobuf::internal::WireFormatLite::
WIRETYPE_VARINT) {
DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1, 26, input, this->mutable_vals())));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(34)) goto parse_info;
break;
}
// optional .OSMPBF.Info info = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_info:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_info()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(66)) goto parse_roles_sid;
break;
}
// repeated int32 roles_sid = 8 [packed = true];
case 8: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_roles_sid:
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, this->mutable_roles_sid())));
} else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
== ::google::protobuf::internal::WireFormatLite::
WIRETYPE_VARINT) {
DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1, 66, input, this->mutable_roles_sid())));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(74)) goto parse_memids;
break;
}
// repeated sint64 memids = 9 [packed = true];
case 9: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_memids:
DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
input, this->mutable_memids())));
} 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, 74, input, this->mutable_memids())));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(82)) goto parse_types;
break;
}
// repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
case 10: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_types:
::google::protobuf::uint32 length;
DO_(input->ReadVarint32(&length));
::google::protobuf::io::CodedInputStream::Limit limit = input->PushLimit(length);
while (input->BytesUntilLimit() > 0) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
if (::OSMPBF::Relation_MemberType_IsValid(value)) {
add_types(static_cast< ::OSMPBF::Relation_MemberType >(value));
}
}
input->PopLimit(limit);
} else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag)
== ::google::protobuf::internal::WireFormatLite::
WIRETYPE_VARINT) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
if (::OSMPBF::Relation_MemberType_IsValid(value)) {
add_types(static_cast< ::OSMPBF::Relation_MemberType >(value));
} else {
mutable_unknown_fields()->AddVarint(10, value);
}
} 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::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void Relation::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required int64 id = 1;
if (_has_bit(0)) {
::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->id(), output);
}
// repeated uint32 keys = 2 [packed = true];
if (this->keys_size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
output->WriteVarint32(_keys_cached_byte_size_);
}
for (int i = 0; i < this->keys_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
this->keys(i), output);
}
// repeated uint32 vals = 3 [packed = true];
if (this->vals_size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteTag(3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
output->WriteVarint32(_vals_cached_byte_size_);
}
for (int i = 0; i < this->vals_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
this->vals(i), output);
}
// optional .OSMPBF.Info info = 4;
if (_has_bit(3)) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4, this->info(), output);
}
// repeated int32 roles_sid = 8 [packed = true];
if (this->roles_sid_size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteTag(8, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
output->WriteVarint32(_roles_sid_cached_byte_size_);
}
for (int i = 0; i < this->roles_sid_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
this->roles_sid(i), output);
}
// repeated sint64 memids = 9 [packed = true];
if (this->memids_size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteTag(9, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
output->WriteVarint32(_memids_cached_byte_size_);
}
for (int i = 0; i < this->memids_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteSInt64NoTag(
this->memids(i), output);
}
// repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
if (this->types_size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteTag(
10,
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
output);
output->WriteVarint32(_types_cached_byte_size_);
}
for (int i = 0; i < this->types_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteEnumNoTag(
this->types(i), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* Relation::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required int64 id = 1;
if (_has_bit(0)) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->id(), target);
}
// repeated uint32 keys = 2 [packed = true];
if (this->keys_size() > 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
2,
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
target);
target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
_keys_cached_byte_size_, target);
}
for (int i = 0; i < this->keys_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteUInt32NoTagToArray(this->keys(i), target);
}
// repeated uint32 vals = 3 [packed = true];
if (this->vals_size() > 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
3,
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
target);
target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
_vals_cached_byte_size_, target);
}
for (int i = 0; i < this->vals_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteUInt32NoTagToArray(this->vals(i), target);
}
// optional .OSMPBF.Info info = 4;
if (_has_bit(3)) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
4, this->info(), target);
}
// repeated int32 roles_sid = 8 [packed = true];
if (this->roles_sid_size() > 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
8,
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
target);
target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
_roles_sid_cached_byte_size_, target);
}
for (int i = 0; i < this->roles_sid_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteInt32NoTagToArray(this->roles_sid(i), target);
}
// repeated sint64 memids = 9 [packed = true];
if (this->memids_size() > 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
9,
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
target);
target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
_memids_cached_byte_size_, target);
}
for (int i = 0; i < this->memids_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteSInt64NoTagToArray(this->memids(i), target);
}
// repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
if (this->types_size() > 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
10,
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
target);
target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( _types_cached_byte_size_, target);
}
for (int i = 0; i < this->types_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumNoTagToArray(
this->types(i), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int Relation::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required int64 id = 1;
if (has_id()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int64Size(
this->id());
}
// optional .OSMPBF.Info info = 4;
if (has_info()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->info());
}
}
// repeated uint32 keys = 2 [packed = true];
{
int data_size = 0;
for (int i = 0; i < this->keys_size(); i++) {
data_size += ::google::protobuf::internal::WireFormatLite::
UInt32Size(this->keys(i));
}
if (data_size > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
}
_keys_cached_byte_size_ = data_size;
total_size += data_size;
}
// repeated uint32 vals = 3 [packed = true];
{
int data_size = 0;
for (int i = 0; i < this->vals_size(); i++) {
data_size += ::google::protobuf::internal::WireFormatLite::
UInt32Size(this->vals(i));
}
if (data_size > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
}
_vals_cached_byte_size_ = data_size;
total_size += data_size;
}
// repeated int32 roles_sid = 8 [packed = true];
{
int data_size = 0;
for (int i = 0; i < this->roles_sid_size(); i++) {
data_size += ::google::protobuf::internal::WireFormatLite::
Int32Size(this->roles_sid(i));
}
if (data_size > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
}
_roles_sid_cached_byte_size_ = data_size;
total_size += data_size;
}
// repeated sint64 memids = 9 [packed = true];
{
int data_size = 0;
for (int i = 0; i < this->memids_size(); i++) {
data_size += ::google::protobuf::internal::WireFormatLite::
SInt64Size(this->memids(i));
}
if (data_size > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
}
_memids_cached_byte_size_ = data_size;
total_size += data_size;
}
// repeated .OSMPBF.Relation.MemberType types = 10 [packed = true];
{
int data_size = 0;
for (int i = 0; i < this->types_size(); i++) {
data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
this->types(i));
}
if (data_size > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(data_size);
}
_types_cached_byte_size_ = data_size;
total_size += data_size;
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Relation::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const Relation* source =
::google::protobuf::internal::dynamic_cast_if_available<const Relation*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void Relation::MergeFrom(const Relation& from) {
GOOGLE_CHECK_NE(&from, this);
keys_.MergeFrom(from.keys_);
vals_.MergeFrom(from.vals_);
roles_sid_.MergeFrom(from.roles_sid_);
memids_.MergeFrom(from.memids_);
types_.MergeFrom(from.types_);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from._has_bit(0)) {
set_id(from.id());
}
if (from._has_bit(3)) {
mutable_info()->::OSMPBF::Info::MergeFrom(from.info());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Relation::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Relation::CopyFrom(const Relation& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Relation::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
return true;
}
void Relation::Swap(Relation* other) {
if (other != this) {
std::swap(id_, other->id_);
keys_.Swap(&other->keys_);
vals_.Swap(&other->vals_);
std::swap(info_, other->info_);
roles_sid_.Swap(&other->roles_sid_);
memids_.Swap(&other->memids_);
types_.Swap(&other->types_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata Relation::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = Relation_descriptor_;
metadata.reflection = Relation_reflection_;
return metadata;
}
// @@protoc_insertion_point(namespace_scope)
} // namespace OSMPBF
// @@protoc_insertion_point(global_scope)